Commit 262dd98d authored by zhoutong's avatar zhoutong

理货页面只显示一条品名了,实际上有4条

parent 99038f77
...@@ -171,16 +171,16 @@ export default { ...@@ -171,16 +171,16 @@ export default {
}); });
}); });
}); });
let relist = [] // let relist = []
list.forEach(l=>{ // list.forEach(l=>{
let index = relist.findIndex(i=>i.orderId == l.orderId && i.positionNo == l.positionNo) // let index = relist.findIndex(i=>i.orderId == l.orderId && i.positionNo == l.positionNo)
if(index == -1){ // if(index == -1){
relist.push(l) // relist.push(l)
}else{ // }else{
relist[index].warehouseInInfo.cartonsNum = parseInt(relist[index].warehouseInInfo.cartonsNum)+parseInt(l.warehouseInInfo.cartonsNum) // relist[index].warehouseInInfo.cartonsNum = parseInt(relist[index].warehouseInInfo.cartonsNum)+parseInt(l.warehouseInInfo.cartonsNum)
} // }
}) // })
this.tallyList = relist; this.tallyList = list;
}); });
}, },
// 选中 // 选中
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment