保留正整数,且保留一位小数

zhc4dev
wangjiadong 2 years ago
parent 3b01277139
commit 70afd6e1e3
  1. 52
      ant-design-vue-jeecg/src/views/customermeasure/admin/modules/CustomerMeasureForm.vue

@ -153,6 +153,58 @@
{ required: false}, { required: false},
{ validator: (rule, value, callback) => validateDuplicateValue('customer_measure', 'sort', value, this.model.id, callback)}, { validator: (rule, value, callback) => validateDuplicateValue('customer_measure', 'sort', value, this.model.id, callback)},
], ],
height: [
{ required: true, message: '请输入身高!'},
{pattern: /^\d*\.?\d$/,message:'请输入大于0的数,保留一位小数'},
],
weight: [
{ required: true, message: '请输入体重!'},
{pattern: /^\d*\.?\d$/,message:'请输入大于0的数,保留一位小数'},
],
cuff: [
{ required: true, message: '请输入袖口!'},
{pattern: /^\d*\.?\d$/,message:'请输入大于0的数,保留一位小数'},
],
sleeveLength: [
{ required: true, message: '请输入袖长!'},
{pattern: /^\d*\.?\d$/,message:'请输入大于0的数,保留一位小数'},
],
bust: [
{ required: true, message: '请输入胸围!'},
{pattern: /^\d*\.?\d$/,message:'请输入大于0的数,保留一位小数'},
],
theWaist: [
{ required: true, message: '请输入腰围!'},
{pattern: /^\d*\.?\d$/,message:'请输入大于0的数,保留一位小数'},
],
shoulderWidth: [
{ required: true, message: '请输入肩宽!'},
{pattern: /^\d*\.?\d$/,message:'请输入大于0的数,保留一位小数'},
],
forebodyLength: [
{ required: true, message: '请输入前身长!'},
{pattern: /^\d*\.?\d$/,message:'请输入大于0的数,保留一位小数'},
],
neck: [
{ required: true, message: '请输入领围!'},
{pattern: /^\d*\.?\d$/,message:'请输入大于0的数,保留一位小数'},
],
hipline: [
{ required: true, message: '请输入臀围!'},
{pattern: /^\d*\.?\d$/,message:'请输入大于0的数,保留一位小数'},
],
length: [
{ required: true, message: '请输入衣长!'},
{pattern: /^\d*\.?\d$/,message:'请输入大于0的数,保留一位小数'},
],
sternalDistance: [
{ required: true, message: '请输入胸距!'},
{pattern: /^\d*\.?\d$/,message:'请输入大于0的数,保留一位小数'},
],
hem: [
{ required: true, message: '请输入下摆!'},
{pattern: /^\d*\.?\d$/,message:'请输入大于0的数,保留一位小数'},
],
}, },
url: { url: {
add: "/customermeasure/customerMeasure/add", add: "/customermeasure/customerMeasure/add",

Loading…
Cancel
Save