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 308de707..56ac7877 100644 --- a/mes/qd/src/views/wms/basedata/em/equipmentfile/ChangeDialog.vue +++ b/mes/qd/src/views/wms/basedata/em/equipmentfile/ChangeDialog.vue @@ -105,7 +105,7 @@ - + @@ -167,7 +167,7 @@ export default { type: Object } }, - dicts: ['device_type', 'workorder_type', 'changetype', 'is_produceuse', 'device_status'], + dicts: ['device_type', 'workorder_type', 'changetype', 'is_produceuse', 'device_status', 'EM_DEVICE_WX_INVTYPE', 'EM_DEVICE_BY_INVTYPE'], data() { return { dialogVisible: false, @@ -243,7 +243,6 @@ export default { let isLt2M = true isLt2M = file.size / 1024 / 1024 < 50 if (!isLt2M) { - //this.loading = false this.$message.error('上传文件大小不能超过 50MB!') } return isLt2M @@ -256,7 +255,6 @@ export default { type: 'error', duration: 2500 }) - //this.loading = false }, submitUpload2() { this.dialogVisible2 = true @@ -267,6 +265,13 @@ export default { this.tableDtl3 = res }) }, + inv_typeFormat(row) { + if (row.invcode.includes('WXD')) { + return this.dict.label.EM_DEVICE_WX_INVTYPE[row.invtype] + }else{ + return this.dict.label.EM_DEVICE_BY_INVTYPE[row.invtype] + } + }, device_typeFormat(row) { return this.dict.label.changetype[row.changetype] }