From c2c319bfe8412ecc031ec8a6b736d1f825d2bcec Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Wed, 22 Oct 2025 15:02:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BD=9C=E5=9C=A8=E6=9C=8D=E5=8A=A1=E5=95=86?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/supplierAdd.vue | 18 +++++++++++------- src/views/index/supplierInfo.vue | 13 ++++++++++--- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/src/views/index/supplierAdd.vue b/src/views/index/supplierAdd.vue index 2143088e..668151c9 100644 --- a/src/views/index/supplierAdd.vue +++ b/src/views/index/supplierAdd.vue @@ -84,7 +84,7 @@ clearable> -
+
请先添加企业微信,保证申请流程正常进行。
企业微信二维码 @@ -147,7 +147,7 @@ children: 'children', label: 'title' }, - areaProps: { multiple: true, checkStrictly: true, value: 'id',label: 'title', }, + areaProps: { multiple: true, checkStrictly: true, value: 'id',label: 'title', emitPath: false, }, configId: '', wechatId: '', } @@ -184,6 +184,7 @@ this.idFrontPhoto = _data?.idCardFrontUrl; this.idBackPhoto = _data?.idCardBackUrl; this.companyPhoto = _data?.businessLicense; + this.wechatId = _data?.wechatId if(this.idFrontPhoto) { this.idFrontPhotoList = [{ url : this.idFrontPhoto }]; } @@ -197,7 +198,8 @@ this.$refs.tree.setCheckedKeys(_data.serviceType.split(',')) } if(_data?.serviceAreaCode) { - this.form.serviceAreaCode = _data?.serviceAreaCode.split(',') + this.$set(this.form, 'serviceAreaCode', _data?.serviceAreaCode.split(',').map(item => Number(item))); + // this.form.serviceAreaCode = _data?.serviceAreaCode.split(',').map(item => Number(item)); } }, async applyAdd() { @@ -217,10 +219,12 @@ this.$toast('服务区域不能为空') return } - await this.QrCodeResult(); - if( !this.wechatId ) { - this.$toast('请先添加企微再申请') - return + if( !this.id ) { + await this.QrCodeResult(); + if( !this.wechatId ) { + this.$toast('请先添加企微再申请') + return + } } if( this.$refs.tree.getCheckedKeys().length > 0 ) { await this.saveHandler() diff --git a/src/views/index/supplierInfo.vue b/src/views/index/supplierInfo.vue index 18f17cb7..c9e6e22b 100644 --- a/src/views/index/supplierInfo.vue +++ b/src/views/index/supplierInfo.vue @@ -151,9 +151,16 @@ this.$toast('请输入不通过原因') return } - if( this.form.state == 1 && !this.form.abbr ) { - this.$toast('请输入服务商简称') - return + if( this.form.state == 1 ) { + const reg = /^[\u4e00-\u9fa5]{2}$/; + if(!this.form.abbr) { + this.$toast('请输入服务商简称') + return + } + if(!(reg.test(this.form.abbr))) { + this.$toast('服务商简称请输入两位汉字') + return + } } try { await auditSupplier({