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: '黄牌',
value: 2
}, {
name: '新能源',
name: '绿牌',
value: 3
}, {
name: '临牌',
@@ -580,6 +580,9 @@ export default {
}, {
name: '其他',
value: 5
}, {
name: '黄绿牌',
value: 6
}],
virtualVehicleOptions: [{
name: '自有车辆',
@@ -866,12 +869,15 @@ export default {
}
},
getVehicleLicense(color) {
color = color || ''
if( color == '蓝' ) {
this.vehicleLicense = 1
} else if(color == '黄') {
this.vehicleLicense = 2
} else if(color == '临牌') {
this.vehicleLicense = 4
} else if(color.includes('黄绿')) {
this.vehicleLicense = 6
} else if(color.includes('绿')) {
this.vehicleLicense = 3
} else {
@@ -1205,7 +1211,7 @@ export default {
cardSide: 'FRONT'
});
this.vehicleFrontLicensePlate=res.data?.number
this.getVehicleLicense(res.data.color)
this.getVehicleLicense(res.data?.color)
},
async vehicleOcrHandler() { // 行驶证首页 ocr 识别
this.vehicleLicenseInfo.licensePlateNumber = '';