CRM_26-08-13#story#9204,关于优化“我的车辆”中“牌照”分类的需求

This commit is contained in:
zlf
2026-08-12 14:37:18 +08:00
parent e04be176fa
commit d92f28a03e
+8 -2
View File
@@ -572,7 +572,7 @@ export default {
name: '黄牌', name: '黄牌',
value: 2 value: 2
}, { }, {
name: '新能源', name: '绿牌',
value: 3 value: 3
}, { }, {
name: '临牌', name: '临牌',
@@ -580,6 +580,9 @@ export default {
}, { }, {
name: '其他', name: '其他',
value: 5 value: 5
}, {
name: '黄绿牌',
value: 6
}], }],
virtualVehicleOptions: [{ virtualVehicleOptions: [{
name: '自有车辆', name: '自有车辆',
@@ -866,12 +869,15 @@ export default {
} }
}, },
getVehicleLicense(color) { getVehicleLicense(color) {
color = color || ''
if( color == '蓝' ) { if( color == '蓝' ) {
this.vehicleLicense = 1 this.vehicleLicense = 1
} else if(color == '黄') { } else if(color == '黄') {
this.vehicleLicense = 2 this.vehicleLicense = 2
} else if(color == '临牌') { } else if(color == '临牌') {
this.vehicleLicense = 4 this.vehicleLicense = 4
} else if(color.includes('黄绿')) {
this.vehicleLicense = 6
} else if(color.includes('绿')) { } else if(color.includes('绿')) {
this.vehicleLicense = 3 this.vehicleLicense = 3
} else { } else {
@@ -1205,7 +1211,7 @@ export default {
cardSide: 'FRONT' cardSide: 'FRONT'
}); });
this.vehicleFrontLicensePlate=res.data?.number this.vehicleFrontLicensePlate=res.data?.number
this.getVehicleLicense(res.data.color) this.getVehicleLicense(res.data?.color)
}, },
async vehicleOcrHandler() { // 行驶证首页 ocr 识别 async vehicleOcrHandler() { // 行驶证首页 ocr 识别
this.vehicleLicenseInfo.licensePlateNumber = ''; this.vehicleLicenseInfo.licensePlateNumber = '';