|
@@ -204,7 +204,7 @@ export default {
|
|
|
productBrief: '', // 商品简介
|
|
|
shopGroupId: '', // 商品分组id
|
|
|
classifyId: '', // 分类id
|
|
|
- sortId: '', // 排序值
|
|
|
+ sortId: 0, // 排序值
|
|
|
productMarque: '', // 商品型号
|
|
|
supplierName: '', // 供应商名称
|
|
|
ifLogistics: '', // 是否需要物流 1-是 0-否
|
|
@@ -312,7 +312,7 @@ export default {
|
|
|
dialogVisible: false,
|
|
|
rules: {
|
|
|
productName: [ { required: true, message: '请输入商品名称', trigger: 'blur' } ],
|
|
|
- sortId: [{ required: true, message: '请输入排序值', trigger: 'blur' }, { type: 'number', message: '排序值必须为数字' }],
|
|
|
+ sortId: [{ required: false, message: '请输入排序值', trigger: 'blur' }, { type: 'number', message: '排序值必须为数字' }],
|
|
|
shopGroupId: [ { required: true, message: '请选择商品分组', trigger: 'change' } ],
|
|
|
classifyId: [ { required: true, message: '请选择商品分类', trigger: 'change' } ],
|
|
|
ifLogistics: [ { required: true, message: '请选择是否需要物流', trigger: 'change' } ],
|