diff --git a/src/views/index/driverAdd.vue b/src/views/index/driverAdd.vue index 8753eb15..d9fd2188 100644 --- a/src/views/index/driverAdd.vue +++ b/src/views/index/driverAdd.vue @@ -244,6 +244,8 @@ export default { this.icon = res.data; }, async idCardOcrHandler() { // 身份证正面 ocr识别 + this.driverName = ''; + this.identityCardNumber = ''; let res = await ocrHandler({ ocrType: 1, imageUrl: this.identityCardFront, @@ -256,6 +258,11 @@ export default { } }, async drivingLicenceOcrHandler() { // 驾驶证正面 ocr识别 + this.driverInfo.drivingLicenceValidityDate = ''; + this.driverInfo.drivingBeginDate = ''; + this.driverInfo.lssueDate = ''; + this.drivingModel = ''; + this.drivingLicenceName = ''; let res = await ocrHandler({ ocrType: 2, imageUrl: this.drivingLicenceFront, diff --git a/src/views/index/vehicleAdd.vue b/src/views/index/vehicleAdd.vue index ca58f903..7da64a07 100644 --- a/src/views/index/vehicleAdd.vue +++ b/src/views/index/vehicleAdd.vue @@ -187,6 +187,17 @@ export default { this.vehicleFrontPhoto = res.data; }, async vehicleOcrHandler() { // 行驶证首页 ocr 识别 + this.vehicleLicenseInfo.licensePlateNumber = ''; + this.vehicleLicenseInfo.vehicleType = ''; + this.vehicleLicenseInfo.owner = ''; + this.vehicleLicenseInfo.address = ''; + this.vehicleLicenseInfo.useNature = ''; + this.vehicleLicenseInfo.model = ''; + this.vehicleLicenseInfo.vinCode = ''; + this.vehicleLicenseInfo.engineNumber = ''; + this.vehicleLicenseInfo.registrationDate = ''; + this.vehicleLicenseInfo.issueDate = ''; + this.vehicleLicenseInfo.issueAuthority = ''; let res = await ocrHandler({ ocrType: 3, imageUrl: this.vehicleLicenseFront, @@ -209,6 +220,13 @@ export default { } }, async vehicleBackOcrHandler() { // 行驶证副页 ocr 识别 + this.vehicleLicenseInfo.recordNumber = ''; + this.vehicleLicenseInfo.passengerCapacity = ''; + this.vehicleLicenseInfo.totalWeight = ''; + this.vehicleLicenseInfo.curbWeight = ''; + this.vehicleLicenseInfo.permittedWeight = ''; + this.vehicleLicenseInfo.overallDimension = ''; + this.vehicleLicenseInfo.tractionWeight = ''; let res = await ocrHandler({ ocrType: 3, imageUrl: this.vehicleLicenseBack,