潜在服务商修改

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> clearable></el-cascader>
</template> </template>
</van-field> </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_title">请先添加企业微信保证申请流程正常进行</div>
<div class="wei_code_bg"> <div class="wei_code_bg">
<img v-if="qrCodeUrl" :src="qrCodeUrl" alt="企业微信二维码" /> <img v-if="qrCodeUrl" :src="qrCodeUrl" alt="企业微信二维码" />
@ -147,7 +147,7 @@
children: 'children', children: 'children',
label: 'title' label: 'title'
}, },
areaProps: { multiple: true, checkStrictly: true, value: 'id',label: 'title', }, areaProps: { multiple: true, checkStrictly: true, value: 'id',label: 'title', emitPath: false, },
configId: '', configId: '',
wechatId: '', wechatId: '',
} }
@ -184,6 +184,7 @@
this.idFrontPhoto = _data?.idCardFrontUrl; this.idFrontPhoto = _data?.idCardFrontUrl;
this.idBackPhoto = _data?.idCardBackUrl; this.idBackPhoto = _data?.idCardBackUrl;
this.companyPhoto = _data?.businessLicense; this.companyPhoto = _data?.businessLicense;
this.wechatId = _data?.wechatId
if(this.idFrontPhoto) { if(this.idFrontPhoto) {
this.idFrontPhotoList = [{ url : this.idFrontPhoto }]; this.idFrontPhotoList = [{ url : this.idFrontPhoto }];
} }
@ -197,7 +198,8 @@
this.$refs.tree.setCheckedKeys(_data.serviceType.split(',')) this.$refs.tree.setCheckedKeys(_data.serviceType.split(','))
} }
if(_data?.serviceAreaCode) { 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() { async applyAdd() {
@ -217,10 +219,12 @@
this.$toast('服务区域不能为空') this.$toast('服务区域不能为空')
return return
} }
await this.QrCodeResult(); if( !this.id ) {
if( !this.wechatId ) { await this.QrCodeResult();
this.$toast('请先添加企微再申请') if( !this.wechatId ) {
return this.$toast('请先添加企微再申请')
return
}
} }
if( this.$refs.tree.getCheckedKeys().length > 0 ) { if( this.$refs.tree.getCheckedKeys().length > 0 ) {
await this.saveHandler() await this.saveHandler()

View File

@ -151,9 +151,16 @@
this.$toast('请输入不通过原因') this.$toast('请输入不通过原因')
return return
} }
if( this.form.state == 1 && !this.form.abbr ) { if( this.form.state == 1 ) {
this.$toast('请输入服务商简称') const reg = /^[\u4e00-\u9fa5]{2}$/;
return if(!this.form.abbr) {
this.$toast('请输入服务商简称')
return
}
if(!(reg.test(this.form.abbr))) {
this.$toast('服务商简称请输入两位汉字')
return
}
} }
try { try {
await auditSupplier({ await auditSupplier({