From 9759f638cd76e8fad695a9fb424e6f598024c689 Mon Sep 17 00:00:00 2001 From: fanfan Date: Thu, 28 Mar 2024 22:05:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E6=A0=BC=E6=8F=90=E7=A4=BA=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=20=E5=9B=9E=E6=98=BE=E7=A9=BA=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/model/goods/MultiSpec.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/common/model/goods/MultiSpec.js b/src/common/model/goods/MultiSpec.js index 4c9bd0d..f4ae8b9 100644 --- a/src/common/model/goods/MultiSpec.js +++ b/src/common/model/goods/MultiSpec.js @@ -222,11 +222,11 @@ export default class MultiSpec { for (const index in newSkuList) { // 查找符合的旧记录 let oldSkuItem = {} - /* if (oldSkuList.length === newSkuList.length) { + // if (oldSkuList.length === newSkuList.length) { oldSkuItem = _.cloneDeep(oldSkuList[index]) - } else { - oldSkuItem = oldSkuList.find(item => item.tempId === newSkuList[index].tempId) - } */ + // } else { + // oldSkuItem = oldSkuList.find(item => item.tempId === newSkuList[index].tempId) + // } const item = newSkuList[index] @@ -397,10 +397,10 @@ export default class MultiSpec { const skuItem = skuList[skuIndex] for (const colIndex in columns) { const value = skuItem[columns[colIndex].field] - if (value === '' || value === null) { - this.error = `${columns[colIndex].name}不能为空` - return false - } + // if (value === '' || value === null) { + // this.error = `${columns[colIndex].name}不能为空` + // return false + // } } } return true