story#6982,车辆信息梳理的需求-车辆类别选择限制
This commit is contained in:
@ -308,7 +308,7 @@ export default {
|
|||||||
}else{
|
}else{
|
||||||
this.supplierServiceList = this.oldSupplierServiceList
|
this.supplierServiceList = this.oldSupplierServiceList
|
||||||
}
|
}
|
||||||
|
this.setDefault();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -321,6 +321,17 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
setDefault() {
|
||||||
|
if( this.vehicleLicenseInfo?.vehicleType?.includes('轻型') || this.vehicleLicenseInfo?.vehicleType.includes('微型') || this.vehicleLicenseInfo?.vehicleType.includes('普通') || this.vehicleLicenseInfo?.vehicleType.includes('摩托') ) {
|
||||||
|
this.vehicleTypes.map(item => {
|
||||||
|
if( item.value == 1 || item.value == 9 ) {
|
||||||
|
item.disabled = false;
|
||||||
|
} else {
|
||||||
|
item.disabled = true;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
getVehicleLicense(color) {
|
getVehicleLicense(color) {
|
||||||
if( color == '蓝' ) {
|
if( color == '蓝' ) {
|
||||||
this.vehicleLicense = 1
|
this.vehicleLicense = 1
|
||||||
@ -402,6 +413,7 @@ export default {
|
|||||||
this.vehicleLicenseInfo.registrationDate = frontInfo?.registerDate;
|
this.vehicleLicenseInfo.registrationDate = frontInfo?.registerDate;
|
||||||
this.vehicleLicenseInfo.issueDate = frontInfo?.issueDate;
|
this.vehicleLicenseInfo.issueDate = frontInfo?.issueDate;
|
||||||
this.vehicleLicenseInfo.issueAuthority = frontInfo?.seal;
|
this.vehicleLicenseInfo.issueAuthority = frontInfo?.seal;
|
||||||
|
this.setDefault();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async vehicleBackOcrHandler() { // 行驶证副页 ocr 识别
|
async vehicleBackOcrHandler() { // 行驶证副页 ocr 识别
|
||||||
|
Reference in New Issue
Block a user