|
|
|
@ -25,6 +25,12 @@ |
|
|
|
|
v-decorator="['goods_name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]" |
|
|
|
|
/> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="商品型号" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-input |
|
|
|
|
placeholder="请输入商品型号" |
|
|
|
|
v-decorator="['cmmdty_model', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]" |
|
|
|
|
/> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="商品分类" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-tree-select |
|
|
|
|
placeholder="请选择商品分类" |
|
|
|
@ -53,7 +59,28 @@ |
|
|
|
|
v-decorator="['imagesIds', { rules: [{ required: true, message: '请至少上传1张商品图片' }] }]" |
|
|
|
|
/> |
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
|
|
<a-form-item label="商品来源" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-radio-group v-decorator="['goods_source', { initialValue: 0, rules: [{ required: true }] }]"> |
|
|
|
|
<a-radio :value="0">京东</a-radio> |
|
|
|
|
<a-radio :value="1">苏宁</a-radio> |
|
|
|
|
<a-radio :value="2">天猫</a-radio> |
|
|
|
|
<a-radio :value="3">工厂</a-radio> |
|
|
|
|
<a-radio :value="4">仓配</a-radio> |
|
|
|
|
<a-radio :value="5">自采</a-radio> |
|
|
|
|
<a-radio :value="6">店内</a-radio> |
|
|
|
|
</a-radio-group> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="发货时效" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-radio-group v-decorator="['delivery_time', { initialValue: 0, rules: [{ required: true }] }]"> |
|
|
|
|
<a-radio :value="0">24小时</a-radio> |
|
|
|
|
<a-radio :value="1">48小时</a-radio> |
|
|
|
|
<a-radio :value="2">72小时</a-radio> |
|
|
|
|
<a-radio :value="3">7天内</a-radio> |
|
|
|
|
<a-radio :value="4">15天内</a-radio> |
|
|
|
|
<a-radio :value="5">30天内</a-radio> |
|
|
|
|
<a-radio :value="6">45天内</a-radio> |
|
|
|
|
</a-radio-group> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="是否大牌正品" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-radio-group v-decorator="['is_brand', { initialValue: 0, rules: [{ required: true }] }]"> |
|
|
|
|
<a-radio :value="0">否</a-radio> |
|
|
|
@ -67,6 +94,12 @@ |
|
|
|
|
<a-radio :value="1">是</a-radio> |
|
|
|
|
</a-radio-group> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="是否审单" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-radio-group v-decorator="['is_check', { initialValue: 0, rules: [{ required: true }] }]"> |
|
|
|
|
<a-radio :value="0">否</a-radio> |
|
|
|
|
<a-radio :value="1">是</a-radio> |
|
|
|
|
</a-radio-group> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="是否店内" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-radio-group v-decorator="['is_in_store', { initialValue: 0, rules: [{ required: true }] }]"> |
|
|
|
|
<a-radio :value="0">否</a-radio> |
|
|
|
@ -529,7 +562,7 @@ export default { |
|
|
|
|
Ueditor, |
|
|
|
|
InputNumberGroup, |
|
|
|
|
MultiSpec, |
|
|
|
|
AreasModal |
|
|
|
|
AreasModal, |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
@ -650,7 +683,8 @@ export default { |
|
|
|
|
e.preventDefault() |
|
|
|
|
// 表单验证 |
|
|
|
|
const { |
|
|
|
|
form: { validateFields },ruleList |
|
|
|
|
form: { validateFields }, |
|
|
|
|
ruleList, |
|
|
|
|
} = this |
|
|
|
|
validateFields((errors, values) => { |
|
|
|
|
// 定位到错误的tab选项卡 |
|
|
|
@ -725,8 +759,8 @@ export default { |
|
|
|
|
}) |
|
|
|
|
.finally(() => (this.isLoading = false)) |
|
|
|
|
}, |
|
|
|
|
// 新增记录 |
|
|
|
|
handleAdd() { |
|
|
|
|
// 新增记录 |
|
|
|
|
handleAdd() { |
|
|
|
|
const index = this.ruleList.length |
|
|
|
|
const newItem = { ...defaultItem, key: index } |
|
|
|
|
// 排除的城市id集(已存在的城市id集) |
|
|
|
@ -792,4 +826,3 @@ export default { |
|
|
|
|
<style lang="less" scoped> |
|
|
|
|
@import './style.less'; |
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
|