From 490cb664555c186916be4f8a18b72271d2db6d60 Mon Sep 17 00:00:00 2001 From: wangdong <1551135706@qq.com> Date: Wed, 29 May 2024 19:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81sku=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=94=99=E4=B9=B1=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= 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..bb56dc2 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]