CRM_26-04-22#story#8495,潜在供应商H5页面提交信息,信息审核,提交补充信息与退回理由的优化与修复
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div class="wrap">
|
||||
<div class="error_bar" v-if="errorMsg">{{ errorMsg }}</div>
|
||||
<div class="top_banner">
|
||||
<img src="@/assets/supplier/topBg.png" alt="">
|
||||
</div>
|
||||
@@ -134,6 +135,7 @@
|
||||
data() {
|
||||
return {
|
||||
clickFlag: true,
|
||||
errorMsg: '',
|
||||
phoneVerify: [{ required: true, message: '请输入联系电话' }, { validator: value => { return /^1[3456789]\d{9}$/.test(value) }, message: '联系电话格式不正确' }],
|
||||
emailVerify: [{ required: true, message: '请输入邮箱' }, { validator: value => { return /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/.test(value) }, message: '邮箱格式不正确' }],
|
||||
id:'', //车辆Id
|
||||
@@ -231,7 +233,11 @@
|
||||
this.idBackPhoto = _data?.idCardBackUrl;
|
||||
this.companyPhoto = _data?.businessLicense;
|
||||
this.licensePhoto = _data?.accountUrl;
|
||||
this.wechatId = _data?.wechatId
|
||||
this.wechatId = _data?.wechatId;
|
||||
this.form.person = _data.legalName;
|
||||
if( _data.failReason ) {
|
||||
this.showError(_data.failReason)
|
||||
}
|
||||
if(this.idFrontPhoto) {
|
||||
this.idFrontPhotoList = [{ url : this.idFrontPhoto }];
|
||||
}
|
||||
@@ -252,49 +258,54 @@
|
||||
// this.form.serviceAreaCode = _data?.serviceAreaCode.split(',').map(item => Number(item));
|
||||
}
|
||||
},
|
||||
showError(msg) {
|
||||
this.errorMsg = msg;
|
||||
},
|
||||
async applyAdd() {
|
||||
this.errorMsg = '';
|
||||
if( !this.idFrontPhoto ) {
|
||||
this.$toast('法人身份证人像页未上传')
|
||||
this.showError('法人身份证人像页未上传')
|
||||
return
|
||||
}
|
||||
if( !this.idBackPhoto ) {
|
||||
this.$toast('法人身份证国徽页未上传')
|
||||
this.showError('法人身份证国徽页未上传')
|
||||
return
|
||||
}
|
||||
if( !this.companyPhoto ) {
|
||||
this.$toast('营业执照未上传')
|
||||
this.showError('营业执照未上传')
|
||||
return
|
||||
}
|
||||
if(this.form.person != this.form.legalName){
|
||||
this.$toast('身份证法人姓名和营业执照法人不一致')
|
||||
this.showError('身份证法人姓名和营业执照法人不一致')
|
||||
return
|
||||
}
|
||||
if( !this.licensePhoto ) {
|
||||
this.$toast('开户许可证未上传')
|
||||
this.showError('开户许可证未上传')
|
||||
return
|
||||
}
|
||||
if( !(this.$refs.tree.getCheckedKeys().length > 0) ) {
|
||||
this.showError('服务能力不能为空')
|
||||
return
|
||||
}
|
||||
if( !(this.form.serviceAreaCode.length > 0) ) {
|
||||
this.$toast('服务区域不能为空')
|
||||
this.showError('服务区域不能为空')
|
||||
return
|
||||
}
|
||||
if( !this.qrCode ) {
|
||||
if( !this.qrCode && !this.id) {
|
||||
await this.QrCodeHandler();
|
||||
this.$toast('请先添加下方企微再申请')
|
||||
this.showError('请先添加下方企微再申请')
|
||||
return
|
||||
}
|
||||
// this.wechatId='wmOTNXBwAABrvKkE_Fh8ZN8Xm2S9v2wQ'
|
||||
if(!this.wechatId) {
|
||||
await this.QrCodeResult();
|
||||
if( !this.wechatId ) {
|
||||
this.$toast('请先添加企微再申请')
|
||||
this.showError('请先添加企微再申请')
|
||||
return
|
||||
}
|
||||
}
|
||||
if( this.$refs.tree.getCheckedKeys().length > 0 ) {
|
||||
await this.saveHandler()
|
||||
} else {
|
||||
this.$toast('服务能力不能为空')
|
||||
return
|
||||
}
|
||||
},
|
||||
async QrCodeResult() { //获取添加企微结果
|
||||
@@ -335,6 +346,8 @@
|
||||
this.clickFlag = true
|
||||
}, 1000)
|
||||
});
|
||||
} catch (e) {
|
||||
this.showError(e)
|
||||
} finally {
|
||||
setTimeout(() => {
|
||||
this.clickFlag = true
|
||||
@@ -447,8 +460,8 @@
|
||||
ocrType: 15,
|
||||
imageUrl: this.licensePhoto,
|
||||
})
|
||||
this.form.accountInfoDTO.accountNumber=res?.data?.accountNumber
|
||||
this.form.accountInfoDTO.accountName = res?.data?.accountBank
|
||||
this.form.accountInfoDTO.accountNumber=res?.data?.accountNumber || ''
|
||||
this.form.accountInfoDTO.accountName = res?.data?.accountBank || ''
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
@@ -468,6 +481,17 @@
|
||||
padding-bottom: 100px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.error_bar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 9999;
|
||||
background-color: #e53935;
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
padding: 10px 16px;
|
||||
text-align: center;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.top_banner {
|
||||
width: 100%;
|
||||
img {
|
||||
|
||||
Reference in New Issue
Block a user