Browse Source

YT-957新增输入数量大于库存数量可以添加到列表,大于库存余额时应有提示

intex
zhang_li 2 weeks ago
parent
commit
1e84d07946
  1. 10
      src/pages/inventoryMove/coms/comMoveRecord.vue

10
src/pages/inventoryMove/coms/comMoveRecord.vue

@ -390,9 +390,13 @@
}
})
// 0
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
}
if (item == undefined) {
@ -606,7 +610,7 @@
console.log("提交" ,params)
let obj = params.subList.find(item=>item.balanceQty < item.handleQty)
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()
return
}

Loading…
Cancel
Save