From 9efa06f66c13bb2c33bb5783b3cbee9016815c32 Mon Sep 17 00:00:00 2001 From: zds <2388969634@qq.com> Date: Tue, 19 Jul 2022 14:32:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/basedata/em/equipmentfile/ChangeDialog.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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] }