diff --git a/mes/qd/src/views/wms/basedata/em/equipmentfile/ChangeDialog.vue b/mes/qd/src/views/wms/basedata/em/equipmentfile/ChangeDialog.vue index 5c80166d..d37e5ef4 100644 --- a/mes/qd/src/views/wms/basedata/em/equipmentfile/ChangeDialog.vue +++ b/mes/qd/src/views/wms/basedata/em/equipmentfile/ChangeDialog.vue @@ -100,6 +100,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -163,7 +304,7 @@ export default { type: Object } }, - dicts: ['device_type', 'workorder_type', 'changetype', 'is_produceuse', 'device_status', 'EM_DEVICE_WX_INVTYPE', 'EM_DEVICE_BY_INVTYPE'], + dicts: ['EM_DEVICE_BY_INVSTATUS', 'EM_FAULT_LEVEL', 'EM_DEVICE_WX_INVSTATUS', 'EM_DEVICE_MAINT_OBJECT', 'EM_DEVICE_WX_CYCLE', 'EM_DEVICE_WX_TYPE', 'device_type', 'workorder_type', 'changetype', 'is_produceuse', 'device_status', 'EM_DEVICE_WX_INVTYPE', 'EM_DEVICE_BY_INVTYPE'], data() { return { dialogVisible: false, @@ -173,6 +314,10 @@ export default { tableDtl: [], tableDtl2: [], tableDtl3: [], + tableDtl4: [], + tableDtl5: [], + tableDtl6: [], + tableDtl7: [], mstrow: {}, viewShow1: false, viewShow2: false, @@ -220,6 +365,34 @@ export default { this.tableDtl3 = res }) }, + formatInvsName(row, cloum) { + return this.dict.label.EM_DEVICE_BY_INVSTATUS[row.invstatus] + }, + formatStatusName(row, cloum) { + return this.dict.label.EM_DEVICE_WX_INVSTATUS[row.invstatus] + }, + formatTypeName(row, cloum) { + return this.dict.label.EM_DEVICE_WX_INVTYPE[row.maintenancecycle] + }, + formatLevelName(row, cloum) { + return this.dict.label.EM_FAULT_LEVEL[row.fault_level] + }, + formatMainObject(row, cloum) { + return this.dict.label.EM_DEVICE_MAINT_OBJECT[row.maint_object] + }, + format_is_active(row) { + if (row.is_active.includes('1')) { + return '是' + } else { + return '否' + } + }, + formatMainName(row, cloum) { + return this.dict.label.EM_DEVICE_WX_CYCLE[row.maintenancecycle] + }, + formatRepairpType(row, cloum) { + return this.dict.label.EM_DEVICE_WX_TYPE[row.repair_type] + }, handleClose() { this.dialogVisible2 = false },