From 61573fbf957fb5a21112da94db93acf3348896fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BC=9F?= <943146732@qq.com> Date: Wed, 13 Mar 2024 10:52:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=88=90=E6=9C=AC=E4=BB=B7?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/model/goods/Index.js | 2 +- src/views/goods/Update.vue | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) 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']