|
@@ -23,7 +23,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="flex row">
|
|
<view class="flex row">
|
|
<view class="left-text">道路运输证号</view>
|
|
<view class="left-text">道路运输证号</view>
|
|
- <u--input placeholder="输入道路运输证号" inputAlign='right' border="none"
|
|
|
|
|
|
+ <u--input maxlength='12' placeholder="输入道路运输证号" inputAlign='right' border="none"
|
|
v-model="dataDetails.operationCertificateNumber">
|
|
v-model="dataDetails.operationCertificateNumber">
|
|
</u--input>
|
|
</u--input>
|
|
</view>
|
|
</view>
|
|
@@ -50,7 +50,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="flex row" v-if="sign == '挂车'">
|
|
<view class="flex row" v-if="sign == '挂车'">
|
|
<view class="left-text">挂车道路运输证号</view>
|
|
<view class="left-text">挂车道路运输证号</view>
|
|
- <u--input placeholder="输入挂车道路运输证号" inputAlign='right' border="none"
|
|
|
|
|
|
+ <u--input maxlength='12' placeholder="输入挂车道路运输证号" inputAlign='right' border="none"
|
|
v-model="dataDetails.trailerOperationCertificateNumber">
|
|
v-model="dataDetails.trailerOperationCertificateNumber">
|
|
</u--input>
|
|
</u--input>
|
|
</view>
|
|
</view>
|
|
@@ -89,9 +89,15 @@
|
|
</view>
|
|
</view>
|
|
<image class="" :src="dataDetails.drivingLicenseBackPage" mode="aspectFit"></image>
|
|
<image class="" :src="dataDetails.drivingLicenseBackPage" mode="aspectFit"></image>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="flex row flex-space-between">
|
|
|
|
+ <view class="left-text">行驶证车辆类型</view>
|
|
|
|
+ <u--input maxlength='10' placeholder="输入行驶证上的车辆类型" inputAlign='right' border="none"
|
|
|
|
+ v-model="dataDetails.vehicleType">
|
|
|
|
+ </u--input>
|
|
|
|
+ </view>
|
|
<view class="flex row flex-space-between">
|
|
<view class="flex row flex-space-between">
|
|
<view class="left-text">行驶证档案编号</view>
|
|
<view class="left-text">行驶证档案编号</view>
|
|
- <u--input placeholder="输入行驶证档案编号" inputAlign='right' border="none"
|
|
|
|
|
|
+ <u--input maxlength='12' placeholder="输入行驶证档案编号" inputAlign='right' border="none"
|
|
v-model="dataDetails.drivingLicenseNumber">
|
|
v-model="dataDetails.drivingLicenseNumber">
|
|
</u--input>
|
|
</u--input>
|
|
</view>
|
|
</view>
|
|
@@ -165,7 +171,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="flex row flex-space-between" v-if="sign == '挂车'">
|
|
<view class="flex row flex-space-between" v-if="sign == '挂车'">
|
|
<view class="left-text">挂车行驶证档案编号</view>
|
|
<view class="left-text">挂车行驶证档案编号</view>
|
|
- <u--input placeholder="输入挂车行驶证档案编号" inputAlign='right' border="none"
|
|
|
|
|
|
+ <u--input maxlength='12' placeholder="输入挂车行驶证档案编号" inputAlign='right' border="none"
|
|
v-model="dataDetails.trailerLicenseNumber">
|
|
v-model="dataDetails.trailerLicenseNumber">
|
|
</u--input>
|
|
</u--input>
|
|
</view>
|
|
</view>
|
|
@@ -475,6 +481,7 @@
|
|
},
|
|
},
|
|
hidden(){
|
|
hidden(){
|
|
this.$refs.keyboard.open(false)
|
|
this.$refs.keyboard.open(false)
|
|
|
|
+ this.$refs.keyboard1.open(false)
|
|
},
|
|
},
|
|
//挂车牌号弹出键盘
|
|
//挂车牌号弹出键盘
|
|
handleShowKeyboard1(index) {
|
|
handleShowKeyboard1(index) {
|
|
@@ -1061,6 +1068,13 @@
|
|
})
|
|
})
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
|
|
+ if (this.dataDetails.trailerOperationCertificateNumber.length!=12) {
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: "挂车道路运输证号输入错误!",
|
|
|
|
+ })
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateValidityDate)) {
|
|
if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateValidityDate)) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -1076,10 +1090,17 @@
|
|
})
|
|
})
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseBackPage)) {
|
|
|
|
|
|
+ if (this.dataDetails.vehicleType.length<2||this.dataDetails.vehicleType.length>10) {
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: "行驶证车辆类型输入错误!",
|
|
|
|
+ })
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseNumber)) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
- message: "行驶证副页不能为空!",
|
|
|
|
|
|
+ message: "行驶证档案编号不能为空!",
|
|
})
|
|
})
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
@@ -1090,6 +1111,13 @@
|
|
})
|
|
})
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
|
|
+ if (this.dataDetails.drivingLicenseNumber.length!=12) {
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: "行驶证档案编号输入错误!",
|
|
|
|
+ })
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseRegistrationDate)) {
|
|
if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseRegistrationDate)) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -1147,6 +1175,13 @@
|
|
})
|
|
})
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
|
|
+ if (this.dataDetails.trailerLicenseNumber.length!=12) {
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: "挂车行驶证档案编号输入错误!",
|
|
|
|
+ })
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseRegistrationDate)) {
|
|
if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseRegistrationDate)) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -1310,7 +1345,9 @@
|
|
delete this.dataDetails.guaUseNature
|
|
delete this.dataDetails.guaUseNature
|
|
}
|
|
}
|
|
if(this.dataDetails.carCategory == "挂车"){
|
|
if(this.dataDetails.carCategory == "挂车"){
|
|
- this.dataDetails.guaCarNumber=this.dataDetails.guaCarNumber+'挂'
|
|
|
|
|
|
+ if(this.dataDetails.guaCarNumber.indexOf('挂')==-1){
|
|
|
|
+ this.dataDetails.guaCarNumber=this.dataDetails.guaCarNumber+'挂'
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.$request.baseRequest('post', '/driverCarInfo/api/addInfo', this.dataDetails).then(res => {
|
|
this.$request.baseRequest('post', '/driverCarInfo/api/addInfo', this.dataDetails).then(res => {
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|