![企业微信二维码]()
@@ -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({