task#13769,司机添加识别格式规整,未识别到时不格式化
This commit is contained in:
@ -274,14 +274,20 @@ export default {
|
|||||||
cardSide: 'BACK'
|
cardSide: 'BACK'
|
||||||
});
|
});
|
||||||
this.idCardAuthority=res.data.authority
|
this.idCardAuthority=res.data.authority
|
||||||
let date=res.data.validDate.split('-')
|
if(!res.data.validDate){
|
||||||
this.idCardValidStartTime=formatDate1(date[0]) +' '+ '00:00:00';
|
return
|
||||||
if(date[1] == '长期'){
|
}
|
||||||
this.idCardValidEndTime='2099/12/12' +' '+ '00:00:00';
|
let date=res.data.validDate.split('-')
|
||||||
}else{
|
if(date[0]){
|
||||||
this.idCardValidEndTime=formatDate1(date[1]) +' '+ '00:00:00';
|
this.idCardValidStartTime=formatDate1(date[0]) +' '+ '00:00:00';
|
||||||
|
}
|
||||||
|
if(date[1]){
|
||||||
|
if(date[1] == '长期'){
|
||||||
|
this.idCardValidEndTime='2099/12/12' +' '+ '00:00:00';
|
||||||
|
}else{
|
||||||
|
this.idCardValidEndTime=formatDate1(date[1]) +' '+ '00:00:00';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
console.log("==",this.idCardValidEndTime)
|
|
||||||
},
|
},
|
||||||
async drivingLicenceOcrHandler() { // 驾驶证正面 ocr识别
|
async drivingLicenceOcrHandler() { // 驾驶证正面 ocr识别
|
||||||
this.driverInfo.drivingLicenceValidityDate = '';
|
this.driverInfo.drivingLicenceValidityDate = '';
|
||||||
|
Reference in New Issue
Block a user