diff --git a/src/common/model/goods/MultiSpec.js b/src/common/model/goods/MultiSpec.js index e385d70..a8b02ec 100644 --- a/src/common/model/goods/MultiSpec.js +++ b/src/common/model/goods/MultiSpec.js @@ -230,7 +230,7 @@ export default class MultiSpec { oldSkuItem = oldSkuList.find( (item) => newSkuList[index].tempId === - (item.goods_props && item.goods_props.length > 0) ? item.goods_props.map((v) => v.value.name).join('_') : item.tempId + ((item.goods_props && item.goods_props.length > 0) ? item.goods_props.map((v) => v.value.name).join('_') : item.tempId) ) // } diff --git a/src/views/goods/modules/MultiSpec.vue b/src/views/goods/modules/MultiSpec.vue index d936960..734ffa5 100644 --- a/src/views/goods/modules/MultiSpec.vue +++ b/src/views/goods/modules/MultiSpec.vue @@ -320,15 +320,6 @@ export default { this.$message.error('一个商品只能选择一次', 2) return } - if (!goodsId) { - item.goods_price = ''; - item.cost_price = ''; - item.stock_num = ''; - item.goods_weight = ''; - item.goods_sku_no = ''; - item.goods_id = ''; - return false; - } this.getGoodsDetail(goodsId).then((res) => { const queryGoodsId = this.$route.query.goodsId if (res.spec_type === 20 && queryGoodsId !== goodsId) {