|
@ -390,9 +390,13 @@ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
// 库存余额是0不让添加 |
|
|
// 库存余额是0不让添加 |
|
|
|
|
|
|
|
|
if(!balance.qty){ |
|
|
if(!balance.qty){ |
|
|
this.showErrorMessage("物料号[" + result.label.itemCode + "]库存余额余额数量是0") |
|
|
this.$refs.comMessage.showConfirmWarningModal("物料号[" + result.label.itemCode + "]库存余额数量是0") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
// 不可以大于库存余额数量 |
|
|
|
|
|
if(result.label.qty > balance.qty){ |
|
|
|
|
|
this.$refs.comMessage.showConfirmWarningModal("物料号[" + result.label.itemCode + "]数量[" + result.label.qty + "]不可以大于库存余额数量[" + balance.qty + "]") |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (item == undefined) { |
|
|
if (item == undefined) { |
|
@ -606,7 +610,7 @@ |
|
|
console.log("提交" ,params) |
|
|
console.log("提交" ,params) |
|
|
let obj = params.subList.find(item=>item.balanceQty < item.handleQty) |
|
|
let obj = params.subList.find(item=>item.balanceQty < item.handleQty) |
|
|
if(obj){ |
|
|
if(obj){ |
|
|
this.$refs.comMessage.showConfirmWarningModal('批次[' +obj.batch + ']数量[' + obj.handleQty + ']不允许大于库存数量[' +obj.balanceQty + ']') |
|
|
this.$refs.comMessage.showConfirmWarningModal('物料号[' +obj.itemCode + ']批次[' +obj.batch + ']数量[' + obj.handleQty + ']不允许大于库存数量[' +obj.balanceQty + ']') |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|