diff --git a/src/common/model/goods/Index.js b/src/common/model/goods/Index.js index e5f8d11..34898e3 100644 --- a/src/common/model/goods/Index.js +++ b/src/common/model/goods/Index.js @@ -114,7 +114,7 @@ export default { } // 单规格数据 if (goodsInfo.spec_type == 10) { - const skuOne = _.pick(goodsInfo.skuList[0], ['goods_price', 'line_price', 'stock_num', 'goods_weight']) + const skuOne = _.pick(goodsInfo.skuList[0], ['goods_price', 'line_price', 'cost_price', 'stock_num', 'goods_weight']) goodsFormData = { ...goodsFormData, ...skuOne } } // 商品限购数据 diff --git a/src/views/goods/Update.vue b/src/views/goods/Update.vue index f5d1d8b..60fcefe 100644 --- a/src/views/goods/Update.vue +++ b/src/views/goods/Update.vue @@ -56,7 +56,7 @@ @@ -65,7 +65,7 @@ @@ -199,7 +199,11 @@ :wrapperCol="wrapperCol" extra="成本价仅用于商品页展示" > - + @@ -610,7 +614,7 @@ export default { // 表单字段与tabKey对应关系 // 只需要必填字段就可 const tabsFieldsMap = [ - ['goods_type', 'goods_name', 'categorys', 'imagesIds', 'delivery_id', 'is_ind_delivery_type', 'delivery_type','is_brand', 'is_in_store'], + ['goods_type', 'goods_name', 'categorys', 'imagesIds', 'delivery_id', 'is_ind_delivery_type', 'delivery_type', 'is_brand', 'is_in_store'], ['spec_type', 'goods_price', 'is_restrict', 'restrict_total', 'restrict_single', 'cost_price'], ['content'], ['alone_grade_equity', 'first_money', 'second_money', 'third_money']