宁夏退料在用量修改
This commit is contained in:
parent
2313d7baca
commit
82f8e5bb6c
|
|
@ -119,7 +119,7 @@
|
|||
<el-table-column label="规格型号" prop="typeCode" min-width="200" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="计量单位" prop="unitNames" min-width="100" />
|
||||
|
||||
<el-table-column label="当前在用量" align="center" prop="num" min-width="180"></el-table-column>
|
||||
<el-table-column label="当前在用量" align="center" prop="useNum" min-width="180"></el-table-column>
|
||||
<el-table-column label="退料数量" align="center" prop="createTime" min-width="180">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
|
|
@ -287,7 +287,8 @@ export default {
|
|||
typeName: '', //显示的设备类型
|
||||
typeCode: '', //显示的设备规格
|
||||
unitNames: '', //显示的设备 单位
|
||||
num: '', //当前在用量
|
||||
num: '',
|
||||
useNum: '', //当前在用量
|
||||
remark: '', //单条备注
|
||||
preNum: 1, //预领数量
|
||||
},
|
||||
|
|
@ -710,7 +711,7 @@ export default {
|
|||
},
|
||||
|
||||
checkNum(row) {
|
||||
let maxNum = row.num
|
||||
let maxNum = row.useNum
|
||||
if (row.num <= 1) {
|
||||
row.num = 1
|
||||
} else if (row.num >= maxNum) {
|
||||
|
|
@ -759,6 +760,7 @@ export default {
|
|||
template.typeName = node.pathLabels[2]
|
||||
template.typeCode = node.pathLabels[3]
|
||||
template.num = node.data.num
|
||||
template.useNum = node.data.useNum
|
||||
return template
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue