From 314ab0b729580ea4e11b9f4166947b6574e202e7 Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Thu, 7 Aug 2025 15:31:28 +0800 Subject: [PATCH] =?UTF-8?q?story#6982,=E8=BD=A6=E8=BE=86=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=A2=B3=E7=90=86=E7=9A=84=E9=9C=80=E6=B1=82-=E8=BD=A6?= =?UTF-8?q?=E8=BE=86=E7=B1=BB=E5=88=AB=E9=80=89=E6=8B=A9=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/vehicleAdd.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/views/index/vehicleAdd.vue b/src/views/index/vehicleAdd.vue index 5b7a2a4e..6318f79d 100644 --- a/src/views/index/vehicleAdd.vue +++ b/src/views/index/vehicleAdd.vue @@ -308,7 +308,7 @@ export default { }else{ this.supplierServiceList = this.oldSupplierServiceList } - + this.setDefault(); }, }, @@ -321,6 +321,17 @@ export default { } }, 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) { if( color == '蓝' ) { this.vehicleLicense = 1 @@ -402,6 +413,7 @@ export default { this.vehicleLicenseInfo.registrationDate = frontInfo?.registerDate; this.vehicleLicenseInfo.issueDate = frontInfo?.issueDate; this.vehicleLicenseInfo.issueAuthority = frontInfo?.seal; + this.setDefault(); } }, async vehicleBackOcrHandler() { // 行驶证副页 ocr 识别