Browse Source

单个asn收货是可以的,但是多个ASN收货点击提交不可以,

intex_online20241228
zhang_li 1 month ago
parent
commit
b704be07a0
  1. 8
      src/pages/purchaseReceipt/job/purchaseReceiptAsn.vue

8
src/pages/purchaseReceipt/job/purchaseReceiptAsn.vue

@ -397,7 +397,9 @@
count++
obj = {...item}
obj.id = item.masterId
if(this.params.some(i => i.asnNumber == item.asnNumber)){
let isHaveObj = this.params.find(i => i.asnNumber == item.asnNumber)
if(isHaveObj){
console.log(22,isHaveObj)
item.packageDOS.forEach(cur=>{
if(cur.scaned){
obj1 = {
@ -426,7 +428,7 @@
handleQty:cur.handleQty,
qty:item.qty,
}
obj.subList.push(obj1)
isHaveObj.subList.push(obj1)
}
})
}else{
@ -462,6 +464,7 @@
obj.subList.push(obj1)
}
})
console.log(obj)
this.params.push(obj)
}
}
@ -472,6 +475,7 @@
str1 += `ASN单号【${item.asnNumber}】物料代码【${item.itemCode}】实际收货数量为0,\n`
}
})
this.params.forEach(item=>{
delete item.packageDOS
item.subList.forEach(cur=>{

Loading…
Cancel
Save