|
|
|
@ -56,7 +56,7 @@ |
|
|
|
|
|
|
|
|
|
<a-form-item label="是否大牌正品" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-radio-group |
|
|
|
|
v-decorator="['is_brand', { initialValue: 0, rules: [{ required: true }] }]" |
|
|
|
|
v-decorator="['is_brand', { initialValue: 0, rules: [{ required: true }] }]" |
|
|
|
|
> |
|
|
|
|
<a-radio :value="0">否</a-radio> |
|
|
|
|
<a-radio :value="1">是</a-radio> |
|
|
|
@ -65,7 +65,7 @@ |
|
|
|
|
|
|
|
|
|
<a-form-item label="是否新品首发" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-radio-group |
|
|
|
|
v-decorator="['is_new', { initialValue: 0, rules: [{ required: true }] }]" |
|
|
|
|
v-decorator="['is_new', { initialValue: 0, rules: [{ required: true }] }]" |
|
|
|
|
> |
|
|
|
|
<a-radio :value="0">否</a-radio> |
|
|
|
|
<a-radio :value="1">是</a-radio> |
|
|
|
@ -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 |
|
|
|
@ -406,8 +410,8 @@ |
|
|
|
|
addonAfter="折" |
|
|
|
|
:inputProps="{ min: 0, max: 9.9 }" |
|
|
|
|
v-decorator="[`alone_grade_equity[grade_id:${item.grade_id}]`, { |
|
|
|
|
initialValue: formData.defaultUserGradeValue[item.grade_id], rules: [{ required: true, message: '折扣率不能为空'}] |
|
|
|
|
}]" |
|
|
|
|
initialValue: formData.defaultUserGradeValue[item.grade_id], rules: [{ required: true, message: '折扣率不能为空'}] |
|
|
|
|
}]" |
|
|
|
|
/> |
|
|
|
|
</a-form-item> |
|
|
|
|
</div> |
|
|
|
@ -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'] |
|
|
|
|