@ -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)
)
// }
@ -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) {