Browse Source

YT-1022da物料隔离任务,扫描后提交

intex_online20241205
张立 5 months ago
parent
commit
b6d06e0bba
  1. 7
      src/pages/inventoryMove/job/inventoryMoveDetail.vue

7
src/pages/inventoryMove/job/inventoryMoveDetail.vue

@ -551,6 +551,8 @@
let str1 = '' let str1 = ''
this.detailSource.forEach((item) => { this.detailSource.forEach((item) => {
item.subList.forEach(cur => { item.subList.forEach(cur => {
if(cur.scaned){
if (cur.qty != cur.handleQty) { if (cur.qty != cur.handleQty) {
var tempHandleQty = 0 var tempHandleQty = 0
if (cur.handleQty) { if (cur.handleQty) {
@ -560,13 +562,12 @@
} }
str += str +=
`物料号【${item.itemCode}】批次【${cur.batch}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致\n` `物料号【${item.itemCode}】批次【${cur.batch}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致\n`
if( cur.handleQty > cur.balance.balanceQty){ if(cur.handleQty > cur.balance.balanceQty){
console.log(2333,cur.handleQty)
console.log(2333,cur.balance.balanceQty)
str1 += str1 +=
`物料号【${item.itemCode}】批次【${cur.batch}】提交数量【${ cur.handleQty}】不可以大于库存数量【${cur.balance.balanceQty}` `物料号【${item.itemCode}】批次【${cur.batch}】提交数量【${ cur.handleQty}】不可以大于库存数量【${cur.balance.balanceQty}`
} }
} }
}
}) })
}) })
if(str1){ if(str1){

Loading…
Cancel
Save