领料出库恢复限制

This commit is contained in:
FrancisHu 2024-07-31 15:03:30 +08:00
parent ab24cae703
commit 1497d38315
1 changed files with 7 additions and 2 deletions

View File

@ -539,6 +539,7 @@
v-model.number="scope.row.inputNum"
placeholder="请输入出库数量"
type="number"
@input="checkNum(scope.row)"
clearable
style="width: 100%"
/>
@ -872,9 +873,9 @@ export default {
// console.log(this.dialogQuery)
getLeaseAuditListDetail(this.dialogQuery).then((response) => {
// 0
response.data.rows.forEach(item => {
/* response.data.rows.forEach(item => {
item.outNum = item.outNum < 0 ? 0 : item.outNum
})
}) */
this.dialogList = response.data.rows
this.dialogTotal = response.data.total
})
@ -987,6 +988,7 @@ export default {
},
//
saveCodeOut() {
if (this.maCodeList.length <= this.outObj.outNum) {
let params = this.maCodeList.map((item) => {
let obj = {
id: this.outObj.id,
@ -1008,6 +1010,9 @@ export default {
this.handleDialogQuery()
this.handleQuery()
})
} else {
this.$modal.msgError('所选机具编码已超出出库数量!')
}
},
//
saveNumOut() {