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;