宁夏退料在用量修改

This commit is contained in:
zzyuan 2024-04-25 10:04:44 +08:00
parent 2313d7baca
commit 82f8e5bb6c
1 changed files with 5 additions and 3 deletions

View File

@ -119,7 +119,7 @@
<el-table-column label="规格型号" prop="typeCode" min-width="200" :show-overflow-tooltip="true" /> <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="计量单位" 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"> <el-table-column label="退料数量" align="center" prop="createTime" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
@ -287,7 +287,8 @@ export default {
typeName: '', // typeName: '', //
typeCode: '', // typeCode: '', //
unitNames: '', // unitNames: '', //
num: '', // num: '',
useNum: '', //
remark: '', // remark: '', //
preNum: 1, // preNum: 1, //
}, },
@ -710,7 +711,7 @@ export default {
}, },
checkNum(row) { checkNum(row) {
let maxNum = row.num let maxNum = row.useNum
if (row.num <= 1) { if (row.num <= 1) {
row.num = 1 row.num = 1
} else if (row.num >= maxNum) { } else if (row.num >= maxNum) {
@ -759,6 +760,7 @@ export default {
template.typeName = node.pathLabels[2] template.typeName = node.pathLabels[2]
template.typeCode = node.pathLabels[3] template.typeCode = node.pathLabels[3]
template.num = node.data.num template.num = node.data.num
template.useNum = node.data.useNum
return template return template
}, },
}, },