Gitea 2 years ago
parent ce5383d68d
commit b9dc712e1e
  1. 11
      ant-design-vue-jeecg/src/views/zygoods/modules/ZyGoodsForm.vue

@ -161,19 +161,22 @@
required: true, message: '请选择类型!' required: true, message: '请选择类型!'
}], }],
number: [ number: [
{ required: false}, { required: true, message: '请输入包装个数!'},
{ pattern: /^[+]{0,1}(\d+)$/, message: '包装个数必须大于等于0!'}, { pattern: /^[+]{0,1}(\d+)$/, message: '包装个数必须大于等于0!'},
], ],
unitPrice: [ unitPrice: [
{ required: false}, { required: true, message: '请输入单价!'},
{ pattern: /^(([1-9][0-9]*)|([0]\.\d{0,2}|[1-9][0-9]*\.\d{0,2}))$/, message: '请输入正确的金额!'}, { pattern: /^(([1-9][0-9]*)|([0]\.\d{0,2}|[1-9][0-9]*\.\d{0,2}))$/, message: '请输入正确的金额!'},
], ],
unit: [
{ required: true , message: '请输入单位!'}
],
discount: [ discount: [
{ required: false}, { required: true, message: '请输入折扣!'},
{ pattern: /^(([1-9][0-9]*)|([0]\.\d{0,2}|[1-9][0-9]*\.\d{0,2}))$/, message: '请输入正确的金额!'}, { pattern: /^(([1-9][0-9]*)|([0]\.\d{0,2}|[1-9][0-9]*\.\d{0,2}))$/, message: '请输入正确的金额!'},
], ],
promotionPrice: [ promotionPrice: [
{ required: false}, { required: true, message: '请输入促销价!'},
{ pattern: /^(([1-9][0-9]*)|([0]\.\d{0,2}|[1-9][0-9]*\.\d{0,2}))$/, message: '请输入正确的金额!'}, { pattern: /^(([1-9][0-9]*)|([0]\.\d{0,2}|[1-9][0-9]*\.\d{0,2}))$/, message: '请输入正确的金额!'},
], ],
goodsName: [ goodsName: [

Loading…
Cancel
Save