|
@@ -1305,13 +1305,13 @@
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// 添加包装批号丶包装编码丶包装数量
|
|
// 添加包装批号丶包装编码丶包装数量
|
|
|
|
|
+ const onlyCodeList = await outin.getAssetNum({
|
|
|
|
|
+ assetCode: list.detailList[0].categoryCode,
|
|
|
|
|
+ batchNum: batchNo,
|
|
|
|
|
+ num: list.detailList.length
|
|
|
|
|
+ });
|
|
|
Promise.all(
|
|
Promise.all(
|
|
|
sameItemWraplist.map(async (goodsItem) => {
|
|
sameItemWraplist.map(async (goodsItem) => {
|
|
|
- const onlyCodeList = await outin.getAssetNum({
|
|
|
|
|
- assetCode: goodsItem[0].categoryCode,
|
|
|
|
|
- batchNum: batchNo,
|
|
|
|
|
- num: goodsItem.length
|
|
|
|
|
- });
|
|
|
|
|
goodsItem = goodsItem.map((wrapItem) => {
|
|
goodsItem = goodsItem.map((wrapItem) => {
|
|
|
return {
|
|
return {
|
|
|
...wrapItem,
|
|
...wrapItem,
|
|
@@ -1328,6 +1328,7 @@
|
|
|
clientCode: wrapItem.extInfo.clientCode,
|
|
clientCode: wrapItem.extInfo.clientCode,
|
|
|
num: wrapItem.quantity,
|
|
num: wrapItem.quantity,
|
|
|
isPack: false,
|
|
isPack: false,
|
|
|
|
|
+ packingCount: 1,
|
|
|
minPackingCount: wrapItem.quantity,
|
|
minPackingCount: wrapItem.quantity,
|
|
|
onlyCode: onlyCodeList.shift().onlyCode,
|
|
onlyCode: onlyCodeList.shift().onlyCode,
|
|
|
result: '0',
|
|
result: '0',
|