🐞 fix: 设备管理bug修复
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
<el-table v-loading="loading" :data="maintenrecordList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="设备编码" align="center" prop="machineryCode" >
|
||||
<template slot-scope="scope">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
@click="handleView(scope.row)"
|
||||
@@ -98,18 +98,18 @@
|
||||
<el-table-column label="规格型号" align="center" prop="machinerySpec" />
|
||||
<el-table-column label="计划名称" align="center" prop="planName" />
|
||||
<el-table-column label="保养时间" align="center" prop="maintenTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.maintenTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="保养人" align="center" prop="nickName" />
|
||||
<el-table-column label="状态" align="center" prop="status" >
|
||||
<template slot-scope="scope">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="mes_order_status" :value="scope.row.status"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@@ -222,14 +222,17 @@ import MachinerySelectSingle from "@/components/machinerySelect/single.vue";
|
||||
import CheckplanSelect from "@/components/dvplanSelect/index.vue";
|
||||
import UserSingleSelect from "@/components/userSelect/single.vue"
|
||||
import MaintenRecordLine from "./line.vue"
|
||||
import useUserStore from '@/store/modules/user'
|
||||
export default {
|
||||
name: "Maintenrecord",
|
||||
components: {MachinerySelectSingle, CheckplanSelect, UserSingleSelect, MaintenRecordLine},
|
||||
setup() {
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { mes_order_status } = proxy.useDict("mes_order_status");
|
||||
const userStore = useUserStore();
|
||||
return {
|
||||
mes_order_status
|
||||
mes_order_status,
|
||||
userStore
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -295,9 +298,9 @@ export default {
|
||||
reset() {
|
||||
this.form = {
|
||||
recordId: null, planId: null, planCode: null, planName: null, planType: null, machineryId: null, machineryCode: null, machineryName: null, machineryBrand: null, machinerySpec: null, maintenTime: null, userId: null, userName: null, nickName: null, status: "PREPARE", remark: null, attr1: null, attr2: null, attr3: null, attr4: null, createBy: null, createTime: null, updateBy: null, updateTime: null };
|
||||
this.form.userId= this.$store.state.user.id;
|
||||
this.form.nickName= this.$store.state.user.nick;
|
||||
this.form.userName= this.$store.state.user.name;
|
||||
this.form.userId= this.userStore.id;
|
||||
this.form.nickName= this.userStore.nickName;
|
||||
this.form.userName= this.userStore.name;
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
|
||||
Reference in New Issue
Block a user