This commit is contained in:
bb_pan 2025-07-23 18:25:58 +08:00
parent 89fd68034d
commit fc3ebb9089
1 changed files with 56 additions and 48 deletions

View File

@ -756,6 +756,7 @@ export default {
this.queryParams.createBy = this.user.userName
// this.queryParams.companyId = this.user.companyId
this.queryParams.userId = this.user.userId
try {
let res
if (this.taskId) {
@ -808,6 +809,11 @@ export default {
} else {
this.submitLoading = false
}
} catch (error) {
this.submitLoading = false
} finally {
this.submitLoading = false
}
}
})
},
@ -836,8 +842,10 @@ export default {
let maxNum = row.num
if (row.preNum <= 1) {
row.preNum = 1
} else if (row.preNum >= maxNum) {
row.preNum = maxNum
} else if (row.preNum > maxNum) {
// row.preNum = maxNum
// :
this.$message.error(`该设备的库存为${maxNum},预领数量不可超过此库存,请重新填写!`)
}
},
///////