潜在服务商修改

This commit is contained in:
2025-10-22 15:02:46 +08:00
parent f622bb6d45
commit c2c319bfe8
2 changed files with 21 additions and 10 deletions

View File

@ -84,7 +84,7 @@
clearable></el-cascader>
</template>
</van-field>
<div class="wei_code_wrap" v-if="form.name">
<div class="wei_code_wrap" v-if="form.name && !id">
<div class="wei_title">请先添加企业微信保证申请流程正常进行</div>
<div class="wei_code_bg">
<img v-if="qrCodeUrl" :src="qrCodeUrl" alt="企业微信二维码" />
@ -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()

View File

@ -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({