Compare commits
2 Commits
4f5e03d1c8
...
a885ad1633
| Author | SHA1 | Date | |
|---|---|---|---|
| a885ad1633 | |||
| f23bba71be |
@ -572,6 +572,14 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
|
} else if( 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 = true;
|
||||||
|
} else {
|
||||||
|
item.disabled = false;
|
||||||
|
}
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.vehicleTypes.map(item => {
|
this.vehicleTypes.map(item => {
|
||||||
item.disabled = false;
|
item.disabled = false;
|
||||||
@ -667,8 +675,21 @@ export default {
|
|||||||
this.vehicleLicenseInfo.issueDate = frontInfo?.issueDate;
|
this.vehicleLicenseInfo.issueDate = frontInfo?.issueDate;
|
||||||
this.vehicleLicenseInfo.issueAuthority = frontInfo?.seal;
|
this.vehicleLicenseInfo.issueAuthority = frontInfo?.seal;
|
||||||
this.setDefault();
|
this.setDefault();
|
||||||
|
this.checkDisabledItems();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
checkDisabledItems() {
|
||||||
|
let _arr = [];
|
||||||
|
this.selectedOption.map(item => {
|
||||||
|
let _tempArr = this.vehicleTypes.filter(_item => _item.disabled && _item.value == item);
|
||||||
|
_arr = [..._arr, ..._tempArr]
|
||||||
|
})
|
||||||
|
if (_arr.length > 0) {
|
||||||
|
this.$toast(`车辆类别数据不合法:${_arr.map(item => item.name).join('、')}`)
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
},
|
||||||
async vehicleBackOcrHandler() { // 行驶证副页 ocr 识别
|
async vehicleBackOcrHandler() { // 行驶证副页 ocr 识别
|
||||||
this.vehicleLicenseInfo.recordNumber = '';
|
this.vehicleLicenseInfo.recordNumber = '';
|
||||||
this.vehicleLicenseInfo.passengerCapacity = '';
|
this.vehicleLicenseInfo.passengerCapacity = '';
|
||||||
@ -821,6 +842,10 @@ export default {
|
|||||||
this.$toast('车辆类别不能为空')
|
this.$toast('车辆类别不能为空')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
let res = this.checkDisabledItems();
|
||||||
|
if(!res) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
if( !this.virtualVehicle ) {
|
if( !this.virtualVehicle ) {
|
||||||
this.$toast('车辆属性不能为空')
|
this.$toast('车辆属性不能为空')
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user