修复成本价不显示的问题

feature/0423
陈伟 9 months ago
parent 8fd6691bb2
commit 61573fbf95
  1. 2
      src/common/model/goods/Index.js
  2. 8
      src/views/goods/Update.vue

@ -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 }
}
// 商品限购数据

@ -199,7 +199,11 @@
:wrapperCol="wrapperCol"
extra="成本价仅用于商品页展示"
>
<a-input-number :min="0" :precision="2" v-decorator="['cost_price']" />
<a-input-number
:min="0.01"
:precision="2"
v-decorator="['cost_price']"
/>
<span class="ml-10"></span>
</a-form-item>
<a-form-item
@ -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']

Loading…
Cancel
Save