This commit is contained in:
hayu 2025-09-03 21:58:14 +08:00
parent 83e5b7f5e0
commit 119de47912
1 changed files with 4 additions and 4 deletions

View File

@ -1306,17 +1306,17 @@ export default {
} }
if (row.preNum <= 0) { if (row.preNum <= 0) {
row.preNum = 0 row.preNum = 0
return return
} }
if (row.preNum < row.alNum) { if (row.preNum < row.alNum) {
row.preNum = minNum row.preNum = minNum
this.$message.error('预出库数量不能小于已出库数量') this.$message.error('预出库数量不能小于已出库数量')
return return
} }
if (row.preNum > (row.storageNum-row.pendingOutNum)) { if (row.preNum > (row.storageNum-row.pendingOutNum)) {
// row.preNum = maxNum // row.preNum = maxNum
this.$message.error('预出库数量不能大于可出库数量') this.$message.error('预出库数量不能大于可出库数量')
return return
} }
const res = await updatePreNum({ const res = await updatePreNum({
preNum: row.preNum, preNum: row.preNum,
@ -1329,7 +1329,7 @@ export default {
this.handleQueryOutView() this.handleQueryOutView()
this.getList() this.getList()
this.getOutNum() this.getOutNum()
} }
}, },
printView() { printView() {