From 9f968113db0ed5c5f71d7b2a15cd34aab90a60ac Mon Sep 17 00:00:00 2001 From: wangdong <1551135706@qq.com> Date: Wed, 29 May 2024 17:16:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81sku=E7=BB=84=E5=90=88?= =?UTF-8?q?=E9=94=99=E4=B9=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/model/goods/MultiSpec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/model/goods/MultiSpec.js b/src/common/model/goods/MultiSpec.js index 30d1c80..644f8ab 100644 --- a/src/common/model/goods/MultiSpec.js +++ b/src/common/model/goods/MultiSpec.js @@ -223,10 +223,10 @@ export default class MultiSpec { // 查找符合的旧记录 let oldSkuItem = {} // if (oldSkuList.length === newSkuList.length) { - oldSkuItem = _.cloneDeep(oldSkuList[index]) + // oldSkuItem = _.cloneDeep(oldSkuList[index]) // } else { - // oldSkuItem = oldSkuList.find(item => item.tempId === newSkuList[index].tempId) - // } + oldSkuItem = oldSkuList.find(item => newSkuList[index].tempId === item.goods_props.map(v => v.value.name).join('_')) + // } const item = newSkuList[index]