From 17a4131bf1652a082c76d23cf364daa3f37af43e Mon Sep 17 00:00:00 2001 From: paulGao Date: Fri, 14 Oct 2022 15:43:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=A6=96=E4=B8=AA=E8=A7=84=E6=A0=BC=E9=A1=B9=E7=9A=84=E8=A7=84?= =?UTF-8?q?=E6=A0=BC=E5=80=BC=E6=97=B6=E3=80=82=E8=A7=84=E6=A0=BC=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=98=BE=E7=A4=BA=E9=94=99=E4=B9=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/orderCenter/AfterSaleDetail.vue | 2 +- .../goods/goods-seller/goodsOperationSec.vue | 39 +++++++++++++------ 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue b/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue index a98c3304..859ebf5d 100644 --- a/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue +++ b/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue @@ -5,7 +5,7 @@ + afterSale.serviceType != 'RETURN_MONEY'" size="small">提交物流 
diff --git a/seller/src/views/goods/goods-seller/goodsOperationSec.vue b/seller/src/views/goods/goods-seller/goodsOperationSec.vue index f785219c..27d11a9e 100644 --- a/seller/src/views/goods/goods-seller/goodsOperationSec.vue +++ b/seller/src/views/goods/goods-seller/goodsOperationSec.vue @@ -1473,18 +1473,35 @@ export default { filterSkuInfo.forEach((skuInfo) => { totalLength *= skuInfo.spec_values.length; }); - for (let i = 0; i < totalLength; i++) { - let find = cloneObj(this.skuTableData[index - 1]); - find[item.name] = ""; - find.id = ""; - find.price && (find.price = ""); - find.sn && (find.sn = ""); - find.cost && (find.cost = ""); - find.quantity && (find.quantity = ""); - find.weight && (find.weight = ""); + if ($index === 0) { + index = 1; + for (let i = 0; i < totalLength; i++) { + let find = cloneObj(this.skuTableData[index - 1]); + find[item.name] = ""; + find.id = ""; + find.price && (find.price = ""); + find.sn && (find.sn = ""); + find.cost && (find.cost = ""); + find.quantity && (find.quantity = ""); + find.weight && (find.weight = ""); - this.skuTableData.splice(index, 0, find); - index += beforeLength + 1; + this.skuTableData.splice(this.skuTableData.length, 0, find); + index ++; + } + } else { + for (let i = 0; i < totalLength; i++) { + let find = cloneObj(this.skuTableData[index - 1]); + find[item.name] = ""; + find.id = ""; + find.price && (find.price = ""); + find.sn && (find.sn = ""); + find.cost && (find.cost = ""); + find.quantity && (find.quantity = ""); + find.weight && (find.weight = ""); + + this.skuTableData.splice(index, 0, find); + index += $index === 0 ? beforeLength : beforeLength + 1; + } } } this.baseInfoForm.regeneratorSkuFlag = true;