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