更新
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
<el-table-column prop="changetype" label="变更类型名称" align="center" width="120px" :formatter="device_typeFormat" />
|
||||
<el-table-column min-width="120" prop="change_reason" label="变更内容" align="center" />
|
||||
<el-table-column min-width="80" prop="change_name" label="操作人" align="center" />
|
||||
<el-table-column min-width="80" prop="invtype" label="源单类型" align="center" />
|
||||
<el-table-column min-width="80" prop="invtype" label="源单类型" align="center" :formatter="inv_typeFormat"/>
|
||||
<el-table-column min-width="120" prop="invcode" label="源单号" align="center" />
|
||||
<el-table-column min-width="120" prop="change_content" label="备注" align="center" />
|
||||
</el-table>
|
||||
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user