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