From 0a65f7c6413b83802d9bc85e8378f12af346365b Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Thu, 6 Jun 2024 10:14:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=8C=E9=A9=B6=E8=AF=81=E5=89=AF=E9=A1=B5oc?= =?UTF-8?q?r=E8=AF=86=E5=88=AB=EF=BC=8C=E4=BB=A5=E6=A1=A3=E6=A1=88?= =?UTF-8?q?=E7=BC=96=E5=8F=B7=E5=8C=BA=E5=88=86=E8=AF=86=E5=88=AB=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E6=8D=A2=E6=88=90=E4=BB=A5=E8=BD=A6=E7=89=8C=E5=8F=B7?= =?UTF-8?q?=E5=8C=BA=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/vehicleAdd.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/index/vehicleAdd.vue b/src/views/index/vehicleAdd.vue index 3f98ee4f..1818e1bd 100644 --- a/src/views/index/vehicleAdd.vue +++ b/src/views/index/vehicleAdd.vue @@ -227,6 +227,7 @@ export default { this.vehicleLicenseInfo.permittedWeight = ''; this.vehicleLicenseInfo.overallDimension = ''; this.vehicleLicenseInfo.tractionWeight = ''; + this.vehicleLicenseInfo.backPlateNo = ''; // 行驶证副页 车牌号,仅用来判断 ocr 识别是否成功 let res = await ocrHandler({ ocrType: 3, imageUrl: this.vehicleLicenseBack, @@ -241,6 +242,7 @@ export default { this.vehicleLicenseInfo.permittedWeight = backInfo?.loadQuality; this.vehicleLicenseInfo.overallDimension = backInfo?.externalSize; this.vehicleLicenseInfo.tractionWeight = backInfo?.TotalQuasiMass; + this.vehicleLicenseInfo.backPlateNo = backInfo?.plateNo; } console.log('this.vehicle', this.vehicleLicenseInfo) }, @@ -307,7 +309,7 @@ export default { this.$toast('行驶证主页识别失败') return } - if( !this.vehicleLicenseInfo.recordNumber ) { + if( !this.vehicleLicenseInfo.backPlateNo ) { this.$toast('行驶证副页识别失败') return }