diff --git a/src/components/AiCopyFromTemu.vue b/src/components/AiCopyFromTemu.vue index a2ec3fc..50a16a3 100644 --- a/src/components/AiCopyFromTemu.vue +++ b/src/components/AiCopyFromTemu.vue @@ -244,6 +244,9 @@ export default { /*if (!flag && (item1.specKeyId != 1001 && item1.specKeyId != 43404162)) { specIds.push({spec_key_id: item1.spec_key_id, spec_value: item1.spec_value}) }*/ + if (!flag) { + specIds.push({spec_key_id: item1.spec_key_id, spec_value: item1.spec_value}) + } }) }) @@ -310,6 +313,9 @@ export default { /*if (!flag && (item1.specKeyId != 1001 && item1.specKeyId != 43404162)) { specIds.push({specKeyId: item1.specKeyId, specValue: item1.specValue}) }*/ + if (!flag) { + specIds.push({specKeyId: item1.specKeyId, specValue: item1.specValue}) + } }) }) diff --git a/src/view/shipping/NormalSendGoods.vue b/src/view/shipping/NormalSendGoods.vue index acc03f2..abb291e 100644 --- a/src/view/shipping/NormalSendGoods.vue +++ b/src/view/shipping/NormalSendGoods.vue @@ -558,20 +558,25 @@ return item.isCanJoinDeliverPlatform; }) res.result.subOrderForSupplierList.map((item) => { - data.push({ - robTotal: 0, - subPurchaseOrderSn: item.subPurchaseOrderSn, - originalPurchaseOrderSn: item.originalPurchaseOrderSn, - productName: item.productName, - productSn: item.productSn, - productSkcId: item.productSkcId, - productSkcPicture: item.productSkcPicture, - status: item.status, - detailList: item.skuQuantityDetailList, - category: item.category, - mallId: mallId, - mallName: mallName + let temp = data.filter(i => { + return i.subPurchaseOrderSn == item.subPurchaseOrderSn }) + if (temp.length == 0) { + data.push({ + robTotal: 0, + subPurchaseOrderSn: item.subPurchaseOrderSn, + originalPurchaseOrderSn: item.originalPurchaseOrderSn, + productName: item.productName, + productSn: item.productSn, + productSkcId: item.productSkcId, + productSkcPicture: item.productSkcPicture, + status: item.status, + detailList: item.skuQuantityDetailList, + category: item.category, + mallId: mallId, + mallName: mallName + }) + } }) if (this.pageSize == length) {