|
@@ -361,7 +361,6 @@
|
|
|
// data: this.consentStatus
|
|
|
// });
|
|
|
},
|
|
|
- validate(data) {},
|
|
|
confirmValidityPeriod(e) {
|
|
|
console.log('confirm', e)
|
|
|
if(e.value[0]=='长期'){
|
|
@@ -587,24 +586,31 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.driverLicenseBackPage)) {
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.driverLicenseHomePage)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
message: "驾驶证副页不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.driverLicenseValidityStartDate)) {
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.driverLicenseValidityDate)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "驾驶证起始有效期不能为空!",
|
|
|
+ message: "驾驶证有效期不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.driverLicenseValidityDate)) {
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.quasiDrivingVehicle)) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "准驾车型不能为空!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.lssuingAuthority)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "驾驶证结束有效期不能为空!",
|
|
|
+ message: "驾驶证发证机关不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
@@ -636,7 +642,45 @@
|
|
|
// })
|
|
|
// return true
|
|
|
// }
|
|
|
-
|
|
|
+ // if(this.radiovalue=='挂车司机'){
|
|
|
+ // if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseHomePage)) {
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // type: 'error',
|
|
|
+ // message: "挂车行驶证主页不能为空!",
|
|
|
+ // })
|
|
|
+ // return true
|
|
|
+ // }
|
|
|
+ // if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // type: 'error',
|
|
|
+ // message: "挂车行驶证副页不能为空!",
|
|
|
+ // })
|
|
|
+ // return true
|
|
|
+ // }
|
|
|
+ // if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseNumber)) {
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // type: 'error',
|
|
|
+ // message: "挂车行驶证档案编号不能为空!",
|
|
|
+ // })
|
|
|
+ // return true
|
|
|
+ // }
|
|
|
+ // if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseValidityDate)) {
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // type: 'error',
|
|
|
+ // message: "挂车行驶证有效期不能为空!",
|
|
|
+ // })
|
|
|
+ // return true
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ // if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // type: 'error',
|
|
|
+ // message: "行驶证副页不能为空!",
|
|
|
+ // })
|
|
|
+ // return true
|
|
|
+ // }
|
|
|
+
|
|
|
if (uni.$u.test.isEmpty(this.dataDetails.qualificationCertificate)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
@@ -651,6 +695,7 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
+
|
|
|
if (uni.$u.test.isEmpty(this.dataDetails.qualificationCertificateNumber)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
@@ -658,15 +703,14 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
-
|
|
|
- // if (uni.$u.test.rangeLength(this.dataDetails.qualificationCertificateNumber,[12,19])) {
|
|
|
+ // if (!uni.$u.test.rangeLength(this.dataDetails.qualificationCertificateNumber,[12,19])) {
|
|
|
// this.$refs.uToast.show({
|
|
|
// type: 'error',
|
|
|
// message: "从业资格证号输入错误!",
|
|
|
// })
|
|
|
// return true
|
|
|
// }
|
|
|
-
|
|
|
+
|
|
|
if (this.dataDetails.qualificationCertificateNumber.length!=19) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
@@ -681,6 +725,13 @@
|
|
|
// })
|
|
|
// return true
|
|
|
// }
|
|
|
+ // if (uni.$u.test.isEmpty(this.dataDetails.operationCertificateNumber)) {
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // type: 'error',
|
|
|
+ // message: "道路运输证号不能为空!",
|
|
|
+ // })
|
|
|
+ // return true
|
|
|
+ // }
|
|
|
// if (uni.$u.test.isEmpty(this.dataDetails.operationCertificateValidityDate)) {
|
|
|
// this.$refs.uToast.show({
|
|
|
// type: 'error',
|
|
@@ -688,30 +739,7 @@
|
|
|
// })
|
|
|
// return true
|
|
|
// }
|
|
|
-
|
|
|
-
|
|
|
- // if (this.radiovalue == '挂车司机') {
|
|
|
- // if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseHomePage)) {
|
|
|
- // this.$refs.uToast.show({
|
|
|
- // type: 'error',
|
|
|
- // message: "挂车行驶证主页不能为空!",
|
|
|
- // })
|
|
|
- // return true
|
|
|
- // }
|
|
|
- // if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
|
|
|
- // this.$refs.uToast.show({
|
|
|
- // type: 'error',
|
|
|
- // message: "挂车行驶证副页不能为空!",
|
|
|
- // })
|
|
|
- // return true
|
|
|
- // }
|
|
|
- // if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseValidityDate)) {
|
|
|
- // this.$refs.uToast.show({
|
|
|
- // type: 'error',
|
|
|
- // message: "挂车行驶证有效期不能为空!",
|
|
|
- // })
|
|
|
- // return true
|
|
|
- // }
|
|
|
+ // if(this.radiovalue=='挂车司机'){
|
|
|
// if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificate)) {
|
|
|
// this.$refs.uToast.show({
|
|
|
// type: 'error',
|
|
@@ -719,13 +747,6 @@
|
|
|
// })
|
|
|
// return true
|
|
|
// }
|
|
|
- // if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateValidityDate)) {
|
|
|
- // this.$refs.uToast.show({
|
|
|
- // type: 'error',
|
|
|
- // message: "挂车道路运输证有效期不能为空!",
|
|
|
- // })
|
|
|
- // return true
|
|
|
- // }
|
|
|
// if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateNumber)) {
|
|
|
// this.$refs.uToast.show({
|
|
|
// type: 'error',
|
|
@@ -733,10 +754,10 @@
|
|
|
// })
|
|
|
// return true
|
|
|
// }
|
|
|
- // if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseNumber)) {
|
|
|
+ // if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateValidityDate)) {
|
|
|
// this.$refs.uToast.show({
|
|
|
// type: 'error',
|
|
|
- // message: "挂车行驶证档案编号不能为空!",
|
|
|
+ // message: "挂车道路运输证有效期不能为空!",
|
|
|
// })
|
|
|
// return true
|
|
|
// }
|