From a885ad16331240a7206eeb8ecf190ae270a8209c Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Fri, 10 Oct 2025 09:33:52 +0800 Subject: [PATCH] =?UTF-8?q?CRM=5F25-10-15#story#7305#=E8=BD=A6=E8=BE=86?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=A2=B3=E7=90=86=E7=9A=84=E9=9C=80=E6=B1=82?= =?UTF-8?q?-=E8=BD=A6=E8=BE=86=E7=B1=BB=E5=88=AB=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E9=99=90=E5=88=B6=EF=BC=88=E4=BA=8C=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/vehicleAdd.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/views/index/vehicleAdd.vue b/src/views/index/vehicleAdd.vue index e707d2de..670d5e2a 100644 --- a/src/views/index/vehicleAdd.vue +++ b/src/views/index/vehicleAdd.vue @@ -675,8 +675,21 @@ export default { this.vehicleLicenseInfo.issueDate = frontInfo?.issueDate; this.vehicleLicenseInfo.issueAuthority = frontInfo?.seal; this.setDefault(); + this.checkDisabledItems(); } }, + checkDisabledItems() { + let _arr = []; + this.selectedOption.map(item => { + let _tempArr = this.vehicleTypes.filter(_item => _item.disabled && _item.value == item); + _arr = [..._arr, ..._tempArr] + }) + if (_arr.length > 0) { + this.$toast(`车辆类别数据不合法:${_arr.map(item => item.name).join('、')}`) + return false + } + return true + }, async vehicleBackOcrHandler() { // 行驶证副页 ocr 识别 this.vehicleLicenseInfo.recordNumber = ''; this.vehicleLicenseInfo.passengerCapacity = ''; @@ -829,6 +842,10 @@ export default { this.$toast('车辆类别不能为空') return } + let res = this.checkDisabledItems(); + if(!res) { + return false + } if( !this.virtualVehicle ) { this.$toast('车辆属性不能为空') return