| | |
| | | placeholder="请输入内容" |
| | | clearable></u--input> |
| | | </u-form-item> |
| | | <u-form-item prop="password" |
| | | <u-form-item prop="password" |
| | | label="密码" |
| | | labelWidth="22%" |
| | | borderBottom |
| | |
| | | @change="inputchange($event,4)" |
| | | placeholder="请输入内容" |
| | | clearable></u--input><span style="position: absolute;right: 120rpx;line-height: 40px">吨</span> |
| | | </u-form-item> |
| | | |
| | | <u-form-item prop="axleNum" |
| | | label="车轴数" |
| | | labelWidth="22%" |
| | | borderBottom |
| | | v-if="radiovalue1 == '司机'" |
| | | required> |
| | | <u--input v-model="registerFormModel.axleNum" |
| | | @change="inputchange($event,6)" |
| | | placeholder="请输入内容" |
| | | clearable></u--input> |
| | | </u-form-item> |
| | | |
| | | <u-form-item prop="certification" |
| | | label="从业资格证号" |
| | | labelWidth="22%" |
| | | borderBottom |
| | | v-if="radiovalue1 == '司机'" |
| | | required> |
| | | <u--input v-model="registerFormModel.certification" |
| | | placeholder="请输入内容" |
| | | clearable></u--input> |
| | | </u-form-item> |
| | | |
| | | <u-form-item prop="freightCompany" |
| | | label="承运单位" |
| | | labelWidth="22%" |
| | | borderBottom |
| | | v-if="radiovalue1 == '司机'" |
| | | > |
| | | <u--input v-model="registerFormModel.freightCompany" |
| | | placeholder="请输入内容" |
| | | clearable></u--input> |
| | | </u-form-item> |
| | | |
| | | <u-form-item prop="carImg" |
| | |
| | | isNonCoal: [], |
| | | isCoalCar: 1, //是否为煤炭车辆(司机使用字段) 1 是 2 不是 |
| | | inventoryImg: '', |
| | | countryNumberCar: 0, //车辆类型;国五 1,国六 2 |
| | | countryNumberCar: 0, //车辆类型;国五 1,国六 2, |
| | | certification:'', |
| | | freightCompany:'', |
| | | axleNum:"", |
| | | |
| | | }, |
| | | fileList1: [], |
| | | fileList2: [], |
| | |
| | | return String(value); |
| | | }, |
| | | validator: (rule, value, callback) => { |
| | | return uni.$u.test.carNo(value); |
| | | // 新能源车牌 |
| | | const xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5,6}[A-Z]$)|([A-Z][A-HJ-NP-Z0-9][0-9]{4,5}$))/ |
| | | // 旧车牌 |
| | | const creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/ |
| | | if (value.length === 7) { |
| | | return creg.test(value) |
| | | } if (value.length === 8) { |
| | | return xreg.test(value) |
| | | } |
| | | return false |
| | | }, |
| | | message: '请输入正确的车牌号', |
| | | trigger: ['change', 'blur'] |
| | |
| | | // message: '请输入车货总重', |
| | | validator: maxVstotalFun1, |
| | | trigger: ['blur', 'change'] |
| | | } |
| | | }, |
| | | axleNum:{ |
| | | type: 'number', |
| | | required: false, |
| | | message: '请输入车轴数', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | freightCompany:{ |
| | | type: 'string', |
| | | required: false, |
| | | message: '请输入承运单位', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | certification:{ |
| | | type: 'string', |
| | | required: false, |
| | | message: '请输入从业资格证号', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | }, |
| | | radiolist1: [{ |
| | | name: '司机', |
| | |
| | | this.$nextTick(() => { |
| | | this.registerFormModel.totalLoad = e.replace(inputType, ''); |
| | | }) |
| | | |
| | | break; |
| | | case 6: |
| | | this.$nextTick(() => { |
| | | this.registerFormModel.axleNum = e.replace(inputType, ''); |
| | | }) |
| | | } |
| | | }, |
| | | registerClick() { |