|
@@ -3,8 +3,8 @@
|
|
<view class="top-head"></view>
|
|
<view class="top-head"></view>
|
|
<view class="container">
|
|
<view class="container">
|
|
<u-radio-group v-model="radiovalue" iconPlacement="row" class='radio-group'>
|
|
<u-radio-group v-model="radiovalue" iconPlacement="row" class='radio-group'>
|
|
- <u-radio :customStyle="{marginBottom: '8px',marginRight:'4px'}" v-for="(item, index) in radiolist" :key="index"
|
|
|
|
- :label="item.name" :name="item.name" @change="radioChange">
|
|
|
|
|
|
+ <u-radio :customStyle="{marginBottom: '8px',marginRight:'4px'}" v-for="(item, index) in radiolist"
|
|
|
|
+ :key="index" :label="item.name" :name="item.name" @change="radioChange">
|
|
</u-radio>
|
|
</u-radio>
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
<view class="level1-title">证件信息</view>
|
|
<view class="level1-title">证件信息</view>
|
|
@@ -45,7 +45,7 @@
|
|
</view>
|
|
</view>
|
|
<view>~</view>
|
|
<view>~</view>
|
|
<view style='font-size:12px;' class="" @click="selectValidityPeriod(9)">
|
|
<view style='font-size:12px;' class="" @click="selectValidityPeriod(9)">
|
|
-
|
|
|
|
|
|
+
|
|
{{dataDetails.driverLicenseValidityDate?dataDetails.driverLicenseValidityDate:'结束时间'}}
|
|
{{dataDetails.driverLicenseValidityDate?dataDetails.driverLicenseValidityDate:'结束时间'}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -57,7 +57,8 @@
|
|
</view>
|
|
</view>
|
|
<view class="flex row noborder">
|
|
<view class="flex row noborder">
|
|
<view class="left-text">驾驶证发证机关</view>
|
|
<view class="left-text">驾驶证发证机关</view>
|
|
- <u--input placeholder="请输入驾驶证发证机关" inputAlign='right' border="none" v-model="dataDetails.lssuingAuthority" >
|
|
|
|
|
|
+ <u--input placeholder="请输入驾驶证发证机关" inputAlign='right' border="none"
|
|
|
|
+ v-model="dataDetails.lssuingAuthority">
|
|
</u--input>
|
|
</u--input>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -83,22 +84,25 @@
|
|
</view>
|
|
</view>
|
|
<view class="flex row ">
|
|
<view class="flex row ">
|
|
<view class="left-text">从业资格证号</view>
|
|
<view class="left-text">从业资格证号</view>
|
|
- <u--input maxlength='30' placeholder="请输入从业资格证号" inputAlign='right' border="none" v-model="dataDetails.qualificationCertificateNumber">
|
|
|
|
|
|
+ <u--input maxlength='30' placeholder="请输入从业资格证号" inputAlign='right' border="none"
|
|
|
|
+ v-model="dataDetails.qualificationCertificateNumber">
|
|
</u--input>
|
|
</u--input>
|
|
</view>
|
|
</view>
|
|
<view class="flex row ">
|
|
<view class="flex row ">
|
|
<view class="left-text">道路运输经营许可证号</view>
|
|
<view class="left-text">道路运输经营许可证号</view>
|
|
- <u--input maxlength='30' placeholder="请输入道路运输经营许可证号" inputAlign='right' border="none" v-model="dataDetails.actualCarrierBusinessLicense">
|
|
|
|
|
|
+ <u--input maxlength='30' placeholder="请输入道路运输经营许可证号" inputAlign='right' border="none"
|
|
|
|
+ v-model="dataDetails.actualCarrierBusinessLicense">
|
|
</u--input>
|
|
</u--input>
|
|
</view>
|
|
</view>
|
|
<view class="flex row noborder">
|
|
<view class="flex row noborder">
|
|
<view class="left-text">通讯地址</view>
|
|
<view class="left-text">通讯地址</view>
|
|
- <u--textarea v-model="dataDetails.postalAddress" border="none" placeholder="输入通讯地址" autoHeight maxlength="30"></u--textarea>
|
|
|
|
|
|
+ <u--textarea v-model="dataDetails.postalAddress" border="none" placeholder="输入通讯地址" autoHeight
|
|
|
|
+ maxlength="30"></u--textarea>
|
|
<!-- <u--input placeholder="输入通讯地址" inputAlign='right' border="none" v-model="dataDetails.postalAddress"></u--input> -->
|
|
<!-- <u--input placeholder="输入通讯地址" inputAlign='right' border="none" v-model="dataDetails.postalAddress"></u--input> -->
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<view class="flex service align-center">
|
|
<view class="flex service align-center">
|
|
<u--image @click='consent'
|
|
<u--image @click='consent'
|
|
:src="consentStatus==true?'../../static/images/mine/duihao@2x.png':'../../static/images/mine/wxz.png'"
|
|
:src="consentStatus==true?'../../static/images/mine/duihao@2x.png':'../../static/images/mine/wxz.png'"
|
|
@@ -119,13 +123,11 @@
|
|
<!-- <u-picker :show="isShowValidity" ref="uPicker" :columns="validityPeriod" @confirm="confirmValidityPeriod"
|
|
<!-- <u-picker :show="isShowValidity" ref="uPicker" :columns="validityPeriod" @confirm="confirmValidityPeriod"
|
|
:closeOnClickOverlay='true' @close='isShowValidity=false' @cancel='isShowValidity=false'>
|
|
:closeOnClickOverlay='true' @close='isShowValidity=false' @cancel='isShowValidity=false'>
|
|
</u-picker> -->
|
|
</u-picker> -->
|
|
- <itmister-date-picker :dateStatus="0"
|
|
|
|
- ref="datestartEl" :startYear="1980" :futureYear="10"
|
|
|
|
- @dateConfirm="confirmValidityPeriod"></itmister-date-picker>
|
|
|
|
- <itmister-date-picker :overdueContent="overdueContent" :dateStatus="status"
|
|
|
|
- :periodOfValidity="true"
|
|
|
|
- ref="dateEl" :startYear="1980" :futureYear="10"
|
|
|
|
- @dateConfirm="confirmValidityPeriod"></itmister-date-picker>
|
|
|
|
|
|
+ <itmister-date-picker :dateStatus="0" ref="datestartEl" :startYear="1980" :futureYear="10"
|
|
|
|
+ @dateConfirm="confirmValidityPeriod"></itmister-date-picker>
|
|
|
|
+ <itmister-date-picker :overdueContent="overdueContent" :dateStatus="status" :periodOfValidity="true"
|
|
|
|
+ ref="dateEl" :startYear="1980" :futureYear="10" @dateConfirm="confirmValidityPeriod">
|
|
|
|
+ </itmister-date-picker>
|
|
<u-picker :show="isShowDrive" ref="uPicker" :columns="driveList" @confirm="confirmDriveType"
|
|
<u-picker :show="isShowDrive" ref="uPicker" :columns="driveList" @confirm="confirmDriveType"
|
|
:closeOnClickOverlay='true' @close='isShowDrive=false' @cancel='isShowDrive=false'>
|
|
:closeOnClickOverlay='true' @close='isShowDrive=false' @cancel='isShowDrive=false'>
|
|
</u-picker>
|
|
</u-picker>
|
|
@@ -146,11 +148,13 @@
|
|
isGCar: true,
|
|
isGCar: true,
|
|
ValidityPeriodType: '',
|
|
ValidityPeriodType: '',
|
|
isShowValidity: false,
|
|
isShowValidity: false,
|
|
- isShowDrive:false,
|
|
|
|
- driveList:[["A2","B2"]],
|
|
|
|
- overdueContent:'',
|
|
|
|
|
|
+ isShowDrive: false,
|
|
|
|
+ driveList: [
|
|
|
|
+ ["A2", "B2"]
|
|
|
|
+ ],
|
|
|
|
+ overdueContent: '',
|
|
uploadType: '',
|
|
uploadType: '',
|
|
- status:1,
|
|
|
|
|
|
+ status: 1,
|
|
isShowimgType: false,
|
|
isShowimgType: false,
|
|
dataDetails: {},
|
|
dataDetails: {},
|
|
radiolist: [{
|
|
radiolist: [{
|
|
@@ -170,59 +174,59 @@
|
|
_this = this;
|
|
_this = this;
|
|
console.log(options)
|
|
console.log(options)
|
|
this.get_camera_permission()
|
|
this.get_camera_permission()
|
|
- if(options.data){
|
|
|
|
|
|
+ if (options.data) {
|
|
this.dataDetails = JSON.parse(options.data)
|
|
this.dataDetails = JSON.parse(options.data)
|
|
this.dataDetails.driverType = 1
|
|
this.dataDetails.driverType = 1
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
async get_camera_permission() {
|
|
async get_camera_permission() {
|
|
- var photol=await permision.requestAndroidPermission("android.permission.CAMERA")
|
|
|
|
- if(photol == false){
|
|
|
|
|
|
+ var photol = await permision.requestAndroidPermission("android.permission.CAMERA")
|
|
|
|
+ if (photol == false) {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
content: '您已经关闭相册权限,去设置',
|
|
content: '您已经关闭相册权限,去设置',
|
|
- success: function (res) {
|
|
|
|
|
|
+ success: function(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
permision.gotoAppPermissionSetting()
|
|
permision.gotoAppPermissionSetting()
|
|
- // plus.runtime.openURL("app-settings:");
|
|
|
|
|
|
+ // plus.runtime.openURL("app-settings:");
|
|
} else if (res.cancel) {
|
|
} else if (res.cancel) {
|
|
console.log('用户点击取消');
|
|
console.log('用户点击取消');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
delCard(type) {
|
|
delCard(type) {
|
|
- switch (type) {
|
|
|
|
- case 1:
|
|
|
|
- _this.dataDetails.driverLicenseHomePage = ""
|
|
|
|
- break;
|
|
|
|
- case 2:
|
|
|
|
- _this.dataDetails.driverLicenseBackPage = ""
|
|
|
|
- break;
|
|
|
|
- case 3:
|
|
|
|
- _this.dataDetails.drivingLicenseHomePage = ""
|
|
|
|
- break;
|
|
|
|
- case 4:
|
|
|
|
- _this.dataDetails.drivingLicenseBackPage = ""
|
|
|
|
- break;
|
|
|
|
- case 5:
|
|
|
|
- _this.dataDetails.trailerLicenseHomePage = ""
|
|
|
|
- break;
|
|
|
|
- case 6:
|
|
|
|
- _this.dataDetails.trailerLicenseBackPage = ""
|
|
|
|
- break;
|
|
|
|
- case 7:
|
|
|
|
- _this.dataDetails.qualificationCertificate = ""
|
|
|
|
- break;
|
|
|
|
- case 8:
|
|
|
|
- _this.dataDetails.operationCertificate = ""
|
|
|
|
- break;
|
|
|
|
- case 9:
|
|
|
|
- _this.dataDetails.trailerOperationCertificate = ""
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ switch (type) {
|
|
|
|
+ case 1:
|
|
|
|
+ _this.dataDetails.driverLicenseHomePage = ""
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ _this.dataDetails.driverLicenseBackPage = ""
|
|
|
|
+ break;
|
|
|
|
+ case 3:
|
|
|
|
+ _this.dataDetails.drivingLicenseHomePage = ""
|
|
|
|
+ break;
|
|
|
|
+ case 4:
|
|
|
|
+ _this.dataDetails.drivingLicenseBackPage = ""
|
|
|
|
+ break;
|
|
|
|
+ case 5:
|
|
|
|
+ _this.dataDetails.trailerLicenseHomePage = ""
|
|
|
|
+ break;
|
|
|
|
+ case 6:
|
|
|
|
+ _this.dataDetails.trailerLicenseBackPage = ""
|
|
|
|
+ break;
|
|
|
|
+ case 7:
|
|
|
|
+ _this.dataDetails.qualificationCertificate = ""
|
|
|
|
+ break;
|
|
|
|
+ case 8:
|
|
|
|
+ _this.dataDetails.operationCertificate = ""
|
|
|
|
+ break;
|
|
|
|
+ case 9:
|
|
|
|
+ _this.dataDetails.trailerOperationCertificate = ""
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
consent() {
|
|
consent() {
|
|
this.consentStatus = !this.consentStatus
|
|
this.consentStatus = !this.consentStatus
|
|
@@ -234,53 +238,53 @@
|
|
validate(data) {},
|
|
validate(data) {},
|
|
confirmValidityPeriod(date) {
|
|
confirmValidityPeriod(date) {
|
|
console.log('confirm', date)
|
|
console.log('confirm', date)
|
|
- switch (this.ValidityPeriodType) {
|
|
|
|
- case 0:
|
|
|
|
- this.dataDetails.driverLicenseValidityStartDate = date.date
|
|
|
|
- break
|
|
|
|
- case 1:
|
|
|
|
- this.dataDetails.drivingLicenseValidityDate = date.date
|
|
|
|
- break
|
|
|
|
- case 2:
|
|
|
|
- this.dataDetails.trailerLicenseValidityDate = date.date
|
|
|
|
- break
|
|
|
|
- case 3:
|
|
|
|
- this.dataDetails.qualificationCertificateValidityDate = date.date
|
|
|
|
- break
|
|
|
|
- case 4:
|
|
|
|
- this.dataDetails.operationCertificateValidityDate = date.date
|
|
|
|
- break
|
|
|
|
- case 5:
|
|
|
|
- this.dataDetails.trailerOperationCertificateValidityDate = date.date
|
|
|
|
- break
|
|
|
|
- case 9:
|
|
|
|
- this.dataDetails.driverLicenseValidityDate = date.date
|
|
|
|
- break
|
|
|
|
- }
|
|
|
|
- this.$forceUpdate()
|
|
|
|
-
|
|
|
|
|
|
+ switch (this.ValidityPeriodType) {
|
|
|
|
+ case 0:
|
|
|
|
+ this.dataDetails.driverLicenseValidityStartDate = date.date
|
|
|
|
+ break
|
|
|
|
+ case 1:
|
|
|
|
+ this.dataDetails.drivingLicenseValidityDate = date.date
|
|
|
|
+ break
|
|
|
|
+ case 2:
|
|
|
|
+ this.dataDetails.trailerLicenseValidityDate = date.date
|
|
|
|
+ break
|
|
|
|
+ case 3:
|
|
|
|
+ this.dataDetails.qualificationCertificateValidityDate = date.date
|
|
|
|
+ break
|
|
|
|
+ case 4:
|
|
|
|
+ this.dataDetails.operationCertificateValidityDate = date.date
|
|
|
|
+ break
|
|
|
|
+ case 5:
|
|
|
|
+ this.dataDetails.trailerOperationCertificateValidityDate = date.date
|
|
|
|
+ break
|
|
|
|
+ case 9:
|
|
|
|
+ this.dataDetails.driverLicenseValidityDate = date.date
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
+
|
|
},
|
|
},
|
|
selectValidityPeriod(type) {
|
|
selectValidityPeriod(type) {
|
|
this.ValidityPeriodType = type
|
|
this.ValidityPeriodType = type
|
|
- if(type==0){
|
|
|
|
|
|
+ if (type == 0) {
|
|
this.$refs.datestartEl.show()
|
|
this.$refs.datestartEl.show()
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
switch (this.ValidityPeriodType) {
|
|
switch (this.ValidityPeriodType) {
|
|
- case 3:
|
|
|
|
- this.status=0
|
|
|
|
- this.overdueContent='从业资格证已过期'
|
|
|
|
- break
|
|
|
|
- case 9:
|
|
|
|
- this.overdueContent='驾驶证已过期'
|
|
|
|
- break
|
|
|
|
|
|
+ case 3:
|
|
|
|
+ this.status = 0
|
|
|
|
+ this.overdueContent = '从业资格证已过期'
|
|
|
|
+ break
|
|
|
|
+ case 9:
|
|
|
|
+ this.overdueContent = '驾驶证已过期'
|
|
|
|
+ break
|
|
}
|
|
}
|
|
this.$refs.dateEl.show()
|
|
this.$refs.dateEl.show()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- driveType(){
|
|
|
|
|
|
+ driveType() {
|
|
this.isShowDrive = true
|
|
this.isShowDrive = true
|
|
},
|
|
},
|
|
- confirmDriveType(e){
|
|
|
|
|
|
+ confirmDriveType(e) {
|
|
this.dataDetails.quasiDrivingVehicle = e.value[0]
|
|
this.dataDetails.quasiDrivingVehicle = e.value[0]
|
|
this.isShowDrive = false
|
|
this.isShowDrive = false
|
|
},
|
|
},
|
|
@@ -289,85 +293,98 @@
|
|
// console.log(val)
|
|
// console.log(val)
|
|
console.log(this.uploadType)
|
|
console.log(this.uploadType)
|
|
// if (val.name == '相册') {
|
|
// if (val.name == '相册') {
|
|
- uni.chooseImage({
|
|
|
|
- count: 1,
|
|
|
|
- // sourceType: this.$helper.chooseImage.sourceType,
|
|
|
|
- success: function(res) {
|
|
|
|
- console.log(JSON.stringify(res.tempFilePaths));
|
|
|
|
- uploadImage("images",res.tempFilePaths[0], 'appData/',
|
|
|
|
- result => {
|
|
|
|
- // 上传成功回调函数
|
|
|
|
- console.log('图片地址-----', result)
|
|
|
|
- switch (_this.uploadType) {
|
|
|
|
- case 1:
|
|
|
|
- _this.dataDetails.driverLicenseHomePage = result
|
|
|
|
- _this.$request.baseRequest('get',
|
|
|
|
- '/driverInfo/api/driverLicenseShibie', {
|
|
|
|
- image: result
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.data) {
|
|
|
|
- let date = res.data.driverEndDate.substr(0,4)+"-"+res.data.driverEndDate.substr(4,2)+"-"+res.data.driverEndDate.substr(6,2)
|
|
|
|
- _this.dataDetails.driverLicenseValidityDate = date
|
|
|
|
- if(res.data.allowCar == 'A2' || res.data.allowCar == 'B2'){
|
|
|
|
- _this.dataDetails.quasiDrivingVehicle = res.data.allowCar
|
|
|
|
- }
|
|
|
|
- let sdate = res.data.driverStartDate.substr(0,4)+"-"+res.data.driverStartDate.substr(4,2)+"-"+res.data.driverStartDate.substr(6,2)
|
|
|
|
- _this.dataDetails.driverLicenseValidityStartDate = sdate
|
|
|
|
- _this.dataDetails.lssuingAuthority = res.data.issuingAuthority
|
|
|
|
- _this.$forceUpdate()
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- .catch(res => {
|
|
|
|
- uni.$u.toast(res.message);
|
|
|
|
- });
|
|
|
|
- break;
|
|
|
|
- case 2:
|
|
|
|
- _this.dataDetails.driverLicenseBackPage = result
|
|
|
|
- break;
|
|
|
|
- case 3:
|
|
|
|
- _this.dataDetails.drivingLicenseHomePage = result
|
|
|
|
- break;
|
|
|
|
- case 4:
|
|
|
|
- _this.dataDetails.drivingLicenseBackPage = result
|
|
|
|
- break;
|
|
|
|
- case 5:
|
|
|
|
- _this.dataDetails.trailerLicenseHomePage = result
|
|
|
|
- break;
|
|
|
|
- case 6:
|
|
|
|
- _this.dataDetails.trailerLicenseBackPage = result
|
|
|
|
- break;
|
|
|
|
- case 7:
|
|
|
|
- _this.dataDetails.qualificationCertificate = result
|
|
|
|
- _this.$request.baseRequest('get',
|
|
|
|
- '/driverInfo/api/qualificationLicenseShibie', {
|
|
|
|
- image: result
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.data&&res.data.qualificationCertificate) {
|
|
|
|
- _this.dataDetails.qualificationCertificateValidityDate = res.data.qualificationCertificate
|
|
|
|
- // _this.dataDetails.driverLicenseValidityDate =
|
|
|
|
- // res.data.driverEndDate
|
|
|
|
- }
|
|
|
|
- if(res.data&&res.data.qualificationCertificateNum){
|
|
|
|
- _this.dataDetails.qualificationCertificateNumber = res.data.qualificationCertificateNum.replace(/\s*/g,"")
|
|
|
|
|
|
+ uni.chooseImage({
|
|
|
|
+ count: 1,
|
|
|
|
+ sizeType: ['compressed'],
|
|
|
|
+ // sourceType: this.$helper.chooseImage.sourceType,
|
|
|
|
+ success: function(res) {
|
|
|
|
+ console.log(JSON.stringify(res.tempFilePaths));
|
|
|
|
+ uploadImage("images", res.tempFilePaths[0], 'appData/',
|
|
|
|
+ result => {
|
|
|
|
+ // 上传成功回调函数
|
|
|
|
+ console.log('图片地址-----', result)
|
|
|
|
+ switch (_this.uploadType) {
|
|
|
|
+ case 1:
|
|
|
|
+ _this.dataDetails.driverLicenseHomePage = result
|
|
|
|
+ _this.$request.baseRequest('get',
|
|
|
|
+ '/driverInfo/api/driverLicenseShibie', {
|
|
|
|
+ image: result
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.data) {
|
|
|
|
+ let date = res.data.driverEndDate.substr(0, 4) +
|
|
|
|
+ "-" + res.data.driverEndDate.substr(4, 2) +
|
|
|
|
+ "-" + res.data.driverEndDate.substr(6, 2)
|
|
|
|
+ _this.dataDetails.driverLicenseValidityDate = date
|
|
|
|
+ if (res.data.allowCar == 'A2' || res.data
|
|
|
|
+ .allowCar == 'B2') {
|
|
|
|
+ _this.dataDetails.quasiDrivingVehicle = res
|
|
|
|
+ .data.allowCar
|
|
}
|
|
}
|
|
|
|
+ let sdate = res.data.driverStartDate.substr(0, 4) +
|
|
|
|
+ "-" + res.data.driverStartDate.substr(4, 2) +
|
|
|
|
+ "-" + res.data.driverStartDate.substr(6, 2)
|
|
|
|
+ _this.dataDetails.driverLicenseValidityStartDate =
|
|
|
|
+ sdate
|
|
|
|
+ _this.dataDetails.lssuingAuthority = res.data
|
|
|
|
+ .issuingAuthority
|
|
_this.$forceUpdate()
|
|
_this.$forceUpdate()
|
|
- })
|
|
|
|
- .catch(res => {
|
|
|
|
- uni.$u.toast(res.message);
|
|
|
|
- });
|
|
|
|
- break;
|
|
|
|
- case 8:
|
|
|
|
- _this.dataDetails.operationCertificate = result
|
|
|
|
- break;
|
|
|
|
- case 9:
|
|
|
|
- _this.dataDetails.trailerOperationCertificate = result
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- _this.$forceUpdate()
|
|
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ uni.$u.toast(res.message);
|
|
|
|
+ });
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ _this.dataDetails.driverLicenseBackPage = result
|
|
|
|
+ break;
|
|
|
|
+ case 3:
|
|
|
|
+ _this.dataDetails.drivingLicenseHomePage = result
|
|
|
|
+ break;
|
|
|
|
+ case 4:
|
|
|
|
+ _this.dataDetails.drivingLicenseBackPage = result
|
|
|
|
+ break;
|
|
|
|
+ case 5:
|
|
|
|
+ _this.dataDetails.trailerLicenseHomePage = result
|
|
|
|
+ break;
|
|
|
|
+ case 6:
|
|
|
|
+ _this.dataDetails.trailerLicenseBackPage = result
|
|
|
|
+ break;
|
|
|
|
+ case 7:
|
|
|
|
+ _this.dataDetails.qualificationCertificate = result
|
|
|
|
+ _this.$request.baseRequest('get',
|
|
|
|
+ '/driverInfo/api/qualificationLicenseShibie', {
|
|
|
|
+ image: result
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.data && res.data.qualificationCertificate) {
|
|
|
|
+ _this.dataDetails
|
|
|
|
+ .qualificationCertificateValidityDate = res
|
|
|
|
+ .data.qualificationCertificate
|
|
|
|
+ // _this.dataDetails.driverLicenseValidityDate =
|
|
|
|
+ // res.data.driverEndDate
|
|
|
|
+ }
|
|
|
|
+ if (res.data && res.data.qualificationCertificateNum) {
|
|
|
|
+ _this.dataDetails.qualificationCertificateNumber =
|
|
|
|
+ res.data.qualificationCertificateNum.replace(
|
|
|
|
+ /\s*/g, "")
|
|
|
|
+ }
|
|
|
|
+ _this.$forceUpdate()
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ uni.$u.toast(res.message);
|
|
|
|
+ });
|
|
|
|
+ break;
|
|
|
|
+ case 8:
|
|
|
|
+ _this.dataDetails.operationCertificate = result
|
|
|
|
+ break;
|
|
|
|
+ case 9:
|
|
|
|
+ _this.dataDetails.trailerOperationCertificate = result
|
|
|
|
+ break;
|
|
}
|
|
}
|
|
- )
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ _this.$forceUpdate()
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
|
|
// } else {
|
|
// } else {
|
|
|
|
|
|
@@ -473,7 +490,7 @@
|
|
// return true
|
|
// return true
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
-
|
|
|
|
|
|
+
|
|
// if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
|
|
// if (uni.$u.test.isEmpty(this.dataDetails.trailerLicenseBackPage)) {
|
|
// this.$refs.uToast.show({
|
|
// this.$refs.uToast.show({
|
|
// type: 'error',
|
|
// type: 'error',
|
|
@@ -481,7 +498,7 @@
|
|
// })
|
|
// })
|
|
// return true
|
|
// return true
|
|
// }
|
|
// }
|
|
-
|
|
|
|
|
|
+
|
|
if (uni.$u.test.isEmpty(this.dataDetails.qualificationCertificate)) {
|
|
if (uni.$u.test.isEmpty(this.dataDetails.qualificationCertificate)) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -496,7 +513,7 @@
|
|
})
|
|
})
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
if (uni.$u.test.isEmpty(this.dataDetails.qualificationCertificateNumber)) {
|
|
if (uni.$u.test.isEmpty(this.dataDetails.qualificationCertificateNumber)) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -511,20 +528,15 @@
|
|
// })
|
|
// })
|
|
// return true
|
|
// return true
|
|
// }
|
|
// }
|
|
- // if (this.dataDetails.qualificationCertificateNumber.length !=19 || this.dataDetails.qualificationCertificateNumber.length !=18) {
|
|
|
|
|
|
+
|
|
|
|
+ // if (this.dataDetails.qualificationCertificateNumber.length != 19 || this.dataDetails
|
|
|
|
+ // .qualificationCertificateNumber.length != 18) {
|
|
// this.$refs.uToast.show({
|
|
// this.$refs.uToast.show({
|
|
// type: 'error',
|
|
// type: 'error',
|
|
// message: "从业资格证号输入错误!",
|
|
// message: "从业资格证号输入错误!",
|
|
// })
|
|
// })
|
|
// return true
|
|
// return true
|
|
// }
|
|
// }
|
|
- if (this.dataDetails.qualificationCertificateNumber.length>19||this.dataDetails.qualificationCertificateNumber.length<18) {
|
|
|
|
- this.$refs.uToast.show({
|
|
|
|
- type: 'error',
|
|
|
|
- message: "从业资格证号输入错误!",
|
|
|
|
- })
|
|
|
|
- return true
|
|
|
|
- }
|
|
|
|
// if (uni.$u.test.isEmpty(this.dataDetails.operationCertificate)) {
|
|
// if (uni.$u.test.isEmpty(this.dataDetails.operationCertificate)) {
|
|
// this.$refs.uToast.show({
|
|
// this.$refs.uToast.show({
|
|
// type: 'error',
|
|
// type: 'error',
|
|
@@ -586,11 +598,11 @@
|
|
return false
|
|
return false
|
|
},
|
|
},
|
|
btnBClick() {
|
|
btnBClick() {
|
|
- // 此处用法为在js中调用,需要写uni.$u.throttle()
|
|
|
|
|
|
+ // 此处用法为在js中调用,需要写uni.$u.throttle()
|
|
uni.$u.throttle(this.submit(), 1000)
|
|
uni.$u.throttle(this.submit(), 1000)
|
|
},
|
|
},
|
|
submit() {
|
|
submit() {
|
|
-
|
|
|
|
|
|
+
|
|
// 校验
|
|
// 校验
|
|
if (this.validate()) return
|
|
if (this.validate()) return
|
|
// if(this.dataDetails.driverSex=='男'){
|
|
// if(this.dataDetails.driverSex=='男'){
|
|
@@ -598,7 +610,7 @@
|
|
// }else{
|
|
// }else{
|
|
// this.dataDetails.driverCall = this.dataDetails.driverCall+'女士'
|
|
// this.dataDetails.driverCall = this.dataDetails.driverCall+'女士'
|
|
// }
|
|
// }
|
|
- if(!this.consentStatus){
|
|
|
|
|
|
+ if (!this.consentStatus) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
message: "请勾选协议!",
|
|
message: "请勾选协议!",
|
|
@@ -612,7 +624,7 @@
|
|
title: '加载中'
|
|
title: '加载中'
|
|
})
|
|
})
|
|
this.$request.baseRequest('post', '/driverInfo/api/addInfo', this.dataDetails).then(res => {
|
|
this.$request.baseRequest('post', '/driverInfo/api/addInfo', this.dataDetails).then(res => {
|
|
- if(res.code==200){
|
|
|
|
|
|
+ if (res.code == 200) {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -624,7 +636,7 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
// uni.$u.route('/pages/mine/index');
|
|
// uni.$u.route('/pages/mine/index');
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
uni.$u.toast(res.message);
|
|
uni.$u.toast(res.message);
|
|
}
|
|
}
|
|
@@ -694,7 +706,7 @@
|
|
.radio-group {
|
|
.radio-group {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
.level1-title {
|
|
.level1-title {
|
|
@@ -807,14 +819,17 @@
|
|
height: 80rpx;
|
|
height: 80rpx;
|
|
z-index: 9;
|
|
z-index: 9;
|
|
}
|
|
}
|
|
- .path{
|
|
|
|
|
|
+
|
|
|
|
+ .path {
|
|
color: #2772FB;
|
|
color: #2772FB;
|
|
}
|
|
}
|
|
- /deep/.u-textarea{
|
|
|
|
- padding:9px 0;
|
|
|
|
|
|
+
|
|
|
|
+ /deep/.u-textarea {
|
|
|
|
+ padding: 9px 0;
|
|
}
|
|
}
|
|
- /deep/.u-textarea__field{
|
|
|
|
- color:#000;
|
|
|
|
- text-align:right;
|
|
|
|
|
|
+
|
|
|
|
+ /deep/.u-textarea__field {
|
|
|
|
+ color: #000;
|
|
|
|
+ text-align: right;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|