多商户商品规格删除问题

master
wangdong 3 months ago
parent 4e486a8af1
commit 6690c7cc35
  1. 12
      src/views/goods/modules/MultiSpec.vue
  2. 12876
      yarn.lock

@ -284,7 +284,15 @@ export default {
this.$message.error('一个商品只能选择一次', 2)
return false
}
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) {
@ -301,11 +309,11 @@ export default {
// item.goods_name = res.goods_name
item.goods_id = res.goods_id
})
},
//
getGoodsDetail(goodsId = null) {
if (!goodsId) return false
return new Promise((resolve, reject) => {
GoodsApi.detail({ goodsId }).then((result) => {
resolve(result.data.goodsInfo)

12876
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save