From 5cf2559335a08fc153f7666a4d11df676c6ce736 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Wed, 15 May 2024 17:00:31 +0800 Subject: [PATCH] =?UTF-8?q?task#13769,=20=E9=A9=BE=E9=A9=B6=E5=91=98?= =?UTF-8?q?=E5=BD=95=E5=85=A5=E6=97=B6=E5=B0=91=E6=95=B0=E5=90=8D=E5=AD=97?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E5=BC=82=E5=B8=B8=E6=AF=94=E5=AF=B9=E8=A7=A3?= =?UTF-8?q?=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/driverAdd.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/index/driverAdd.vue b/src/views/index/driverAdd.vue index 04a56863..d6c7422e 100644 --- a/src/views/index/driverAdd.vue +++ b/src/views/index/driverAdd.vue @@ -258,7 +258,12 @@ export default { }) this.driverName = res?.data?.name; this.identityCardNumber = res?.data?.idNum; - if( this.drivingLicenceName && this.driverName != this.drivingLicenceName ) { + let aaa='' + if(this.drivingLicenceName){ + aaa = this.drivingLicenceName.replace(/[^\u4e00-\u9fff]+/g, ''); + } + let bbb=this.driverName.replace(/[^\u4e00-\u9fff]+/g, ''); + if( this.drivingLicenceName && aaa != bbb ) { this.$toast('身份证信息与驾驶证信息不匹配') } }, @@ -299,7 +304,12 @@ export default { this.drivingModel = res.data?.class_; this.drivingLicenceName = res.data?.name - if( this.driverName && this.drivingLicenceName != this.driverName ) { + let aaa='' + if(this.driverName){ + aaa = this.driverName.replace(/[^\u4e00-\u9fff]+/g, ''); + } + let bbb = this.drivingLicenceName.replace(/[^\u4e00-\u9fff]+/g, ''); + if( this.driverName && bbb != aaa ) { this.$toast('身份证信息与驾驶证信息不匹配') } }