预出库修改
This commit is contained in:
parent
2c96d3b7ac
commit
1613cf86b9
|
|
@ -1362,13 +1362,11 @@ export default {
|
|||
//输入预出库数量
|
||||
async checkPreNum(row) {
|
||||
console.log('🚀 ~ checkPreNum ~ row:', row)
|
||||
// if (row.preNum == row.outNum) return
|
||||
// if (row.preNum > row.outNum) {
|
||||
// row.preNum = row.outNum
|
||||
// this.$message.error('预出库数量不能大于待出库数量')
|
||||
// return
|
||||
// }
|
||||
// let maxNum = row.pendingNum-row.pendingOutNum
|
||||
if (row.preNum > row.storageNum) {
|
||||
row.preNum = row.outNum
|
||||
this.$message.error('预出库数量不能大于库存数量')
|
||||
return
|
||||
}
|
||||
let minNum = row.alNum
|
||||
if (row.unitValue == 1) {
|
||||
row.preNum = Number(String(row.preNum).replace(/[^\d.]/g, ''))
|
||||
|
|
|
|||
Loading…
Reference in New Issue