|
@@ -68,6 +68,11 @@
|
|
|
</view>
|
|
|
<image class="" :src="dataDetails.drivingLicenseBackPage" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
+ <view class="flex row">
|
|
|
+ <view class="left-text">行驶证档案编号</view>
|
|
|
+ <u--input placeholder="输入行驶证档案编号" inputAlign='left' border="none" v-model="dataDetails.drivingLicenseNumber">
|
|
|
+ </u--input>
|
|
|
+ </view>
|
|
|
|
|
|
<view class="flex row">
|
|
|
<view class="left-text">行驶证有效期</view>
|
|
@@ -107,6 +112,11 @@
|
|
|
<image class="" :src="dataDetails.trailerLicenseBackPage" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="flex row">
|
|
|
+ <view class="left-text">挂车行驶证档案编号</view>
|
|
|
+ <u--input placeholder="输入挂车行驶证档案编号" inputAlign='left' border="none" v-model="dataDetails.trailerLicenseNumber">
|
|
|
+ </u--input>
|
|
|
+ </view>
|
|
|
|
|
|
<view class="flex row" v-if="isGCar">
|
|
|
<view class="left-text">挂车行驶证有效期</view>
|
|
@@ -136,10 +146,10 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="title">运营证</view>
|
|
|
+ <view class="title">道路运输证</view>
|
|
|
<view @click="uploadImg(8)" class="picture picture8" v-if="!dataDetails.operationCertificate">
|
|
|
<image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
|
|
|
- <view class="text">上传运营证</view>
|
|
|
+ <view class="text">上传道路运输证</view>
|
|
|
</view>
|
|
|
<view v-if="dataDetails.operationCertificate" @click.stop="uploadImg(1)"
|
|
|
class="preview-card-img picture">
|
|
@@ -150,18 +160,23 @@
|
|
|
<image class="" :src="dataDetails.operationCertificate" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
<view class="flex row">
|
|
|
- <view class="left-text">运营证有效期</view>
|
|
|
+ <view class="left-text">道路运输证号</view>
|
|
|
+ <u--input placeholder="输入道路运输证号" inputAlign='left' border="none" v-model="dataDetails.operationCertificateNumber">
|
|
|
+ </u--input>
|
|
|
+ </view>
|
|
|
+ <view class="flex row">
|
|
|
+ <view class="left-text">道路运输证有效期</view>
|
|
|
<view class="" @click="selectValidityPeriod(4)">
|
|
|
{{dataDetails.operationCertificateValidityDate?dataDetails.operationCertificateValidityDate:'选择有效期>'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view v-if="isGCar">
|
|
|
- <view class="title row flex">挂车运营证</view>
|
|
|
+ <view class="title row flex">挂车道路运输证</view>
|
|
|
<view @click="uploadImg(9)" class="picture picture9"
|
|
|
v-if="!dataDetails.trailerOperationCertificate">
|
|
|
<image class="xj-image" src="@/static/images/mine/ic_shanchuan@2x.png"></image>
|
|
|
- <view class="text">上传挂车运营证</view>
|
|
|
+ <view class="text">上传挂车道路运输证</view>
|
|
|
</view>
|
|
|
<view v-if="dataDetails.trailerOperationCertificate" @click.stop="uploadImg(1)"
|
|
|
class="preview-card-img picture">
|
|
@@ -172,9 +187,14 @@
|
|
|
<image class="" :src="dataDetails.trailerOperationCertificate" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="flex row">
|
|
|
+ <view class="left-text">挂车道路运输证号</view>
|
|
|
+ <u--input placeholder="输入挂车道路运输证号" inputAlign='left' border="none" v-model="dataDetails.trailerOperationCertificateNumber">
|
|
|
+ </u--input>
|
|
|
+ </view>
|
|
|
|
|
|
<view class="flex row" v-if="isGCar">
|
|
|
- <view class="left-text">挂车运营证有效期</view>
|
|
|
+ <view class="left-text">挂车道路运输证有效期</view>
|
|
|
<view class="" @click="selectValidityPeriod(5)">
|
|
|
{{dataDetails.trailerOperationCertificateValidityDate?dataDetails.trailerOperationCertificateValidityDate:'选择有效期>'}}
|
|
|
</view>
|
|
@@ -410,7 +430,14 @@
|
|
|
if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseValidityDate)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "行驶证副页不能为空!",
|
|
|
+ message: "行驶证有效期不能为空!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseNumber)) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "行驶证档案编号不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
@@ -421,7 +448,7 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- if (uni.$u.test.isEmpty(this.dataDetails.drivingLicenseBackPage)) {
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
message: "挂车行驶证副页不能为空!",
|
|
@@ -435,6 +462,13 @@
|
|
|
})
|
|
|
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',
|
|
@@ -459,44 +493,65 @@
|
|
|
if (uni.$u.test.isEmpty(this.dataDetails.operationCertificate)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "运营证不能为空!",
|
|
|
+ message: "道路运输证不能为空!",
|
|
|
+ })
|
|
|
+ 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',
|
|
|
- message: "运营证有效期不能为空!",
|
|
|
+ message: "道路运输证有效期不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificate)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "挂车运营证不能为空!",
|
|
|
+ message: "挂车道路运输证不能为空!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateNumber)) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "挂车道路运输证号不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
if (uni.$u.test.isEmpty(this.dataDetails.trailerOperationCertificateValidityDate)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "挂车运营证有效期不能为空!",
|
|
|
+ message: "挂车道路运输证有效期不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
return false
|
|
|
},
|
|
|
submit() {
|
|
|
- uni.switchTab({
|
|
|
- url:'/pages/mine/index'
|
|
|
- })
|
|
|
+
|
|
|
+
|
|
|
// 校验
|
|
|
if (this.validate()) return
|
|
|
+ debugger
|
|
|
if(this.dataDetails.driverSex=='男'){
|
|
|
this.dataDetails.driverCall = this.dataDetails.driverCall+'先生'
|
|
|
}else{
|
|
|
this.dataDetails.driverCall = this.dataDetails.driverCall+'女士'
|
|
|
}
|
|
|
+ if(!this.consentStatus){
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "请勾选协议!",
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|