From a4982efe3caecaa9122fa78857afcc8cdae5e50d Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Mon, 1 May 2023 16:21:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E4=B8=8B=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E6=9B=B4=E6=96=B0=E4=BB=B7=E6=A0=BC=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/goods-batch-buy/goods-batch-buy.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/goods-batch-buy/goods-batch-buy.vue b/components/goods-batch-buy/goods-batch-buy.vue index 2c50bd52..7161ff5e 100644 --- a/components/goods-batch-buy/goods-batch-buy.vue +++ b/components/goods-batch-buy/goods-batch-buy.vue @@ -295,9 +295,11 @@ { for(var i1 in temp_data.goods_spec_data) { if(parseInt(temp_data.is_only_level_one || 0) == 1) { - temp_data.goods_spec_data[i1].base.price = item.data.spec_base.price; - temp_data.goods_spec_data[i1].base.original_price = item.data.spec_base.original_price; - temp_data.goods_spec_data[i1].base.inventory = item.data.spec_base.inventory; + if(temp_data.goods_spec_data[i1].base.id == item.data.spec_base.id) { + temp_data.goods_spec_data[i1].base.price = item.data.spec_base.price; + temp_data.goods_spec_data[i1].base.original_price = item.data.spec_base.original_price; + temp_data.goods_spec_data[i1].base.inventory = item.data.spec_base.inventory; + } } else { for(var i2 in temp_data.goods_spec_data[i1].data) { if(temp_data.goods_spec_data[i1].data[i2].base.id == item.data.spec_base.id) {