rev:修改状态标识

This commit is contained in:
zhangzq
2024-07-04 10:08:13 +08:00
parent e20ab6f882
commit d1628efd15
8 changed files with 36 additions and 12 deletions

View File

@@ -274,10 +274,10 @@ export default {
let status = ''
switch (command) {
case 'a':// 完成
status = '90'
status = '80'
break
case 'b':// 取消
status = '100'
status = '90'
break
case 'c':// 下发
status = '20'

View File

@@ -105,7 +105,12 @@
<el-table-column prop="pcsn" label="批次" min-width="150" show-tooltip-when-overflow/>
<el-table-column prop="qty" label="总库存" min-width="150" show-tooltip-when-overflow/>
<el-table-column prop="frozen_qty" label="冻结库存" show-tooltip-when-overflow/>
<el-table-column prop="unit_name" label="单位" show-tooltip-when-overflow/>
<el-table-column prop="unit_id" label="单位" show-tooltip-when-overflow>
<template slot-scope="scope">{{ tableEnum.label.bm_measure_unit[scope.row.unit_id] }}</template>
</el-table-column>
<el-table-column prop="lock_type" label="库存锁定" show-tooltip-when-overflow>
<template slot-scope="scope">{{ statusEnum.label.LOCK[scope.row.lock_type] }}</template>
</el-table-column>
<el-table-column prop="update_time" label="修改时间" width="120" show-tooltip-when-overflow/>
<!-- <el-table-column-->
<!-- label="操作"-->
@@ -152,6 +157,8 @@ export default {
dicts: [],
name: 'StructIvtInfo',
components: {pagination, crudOperation, rrOperation, udOperation},
tableEnums: [ 'bm_measure_unit#unit_name#unit_id' ],
statusEnums: [ 'LOCK' ],
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({