CRM_26-01-13#story#7762,潜在服务商增加财务结算信息的需求--曹智龙

This commit is contained in:
2026-01-07 14:53:27 +08:00
parent 58f1f5033d
commit 3ba634d602
2 changed files with 34 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

@@ -9,7 +9,7 @@
<img class="title1" src="@/assets/supplier/title1.png" alt=""> <img class="title1" src="@/assets/supplier/title1.png" alt="">
<div class="credentials_wrap"> <div class="credentials_wrap">
<div class="credentials_item"> <div class="credentials_item">
<div class="credentials_title">1. 法人身份证正面</div> <div class="credentials_title">1.法人身份证人像页</div>
<van-uploader <van-uploader
accept="image/*" accept="image/*"
v-model="idFrontPhotoList" v-model="idFrontPhotoList"
@@ -22,7 +22,7 @@
</van-uploader> </van-uploader>
</div> </div>
<div class="credentials_item ml2"> <div class="credentials_item ml2">
<div class="credentials_title">2. 法人身份证反面</div> <div class="credentials_title">2.法人身份证国徽页</div>
<van-uploader <van-uploader
accept="image/*" accept="image/*"
v-model="idBackPhotoList" v-model="idBackPhotoList"
@@ -47,6 +47,19 @@
</div> </div>
</van-uploader> </van-uploader>
</div> </div>
<div class="credentials_item">
<div class="credentials_title">4.开户许可证</div>
<van-uploader
accept="image/*"
v-model="licensePhotoList"
:after-read="licensePhotoHandler"
:max-size="5 * 1024 * 1024"
max-count="1">
<div class="custom-background">
<img src="@/assets/supplier/licensePhoto.png" alt="">
</div>
</van-uploader>
</div>
</div> </div>
</div> </div>
<div class="company_info"> <div class="company_info">
@@ -57,6 +70,7 @@
<van-field :border="true" readonly v-model="form.legalName" class="required" name="legalName" label="法人姓名" placeholder="请输入" :rules="[{ required: true, message: '请输入法人姓名' }]" /> <van-field :border="true" readonly v-model="form.legalName" class="required" name="legalName" label="法人姓名" placeholder="请输入" :rules="[{ required: true, message: '请输入法人姓名' }]" />
<van-field :border="true" v-model="form.linkName" class="required" name="linkName" label="联系人姓名" placeholder="请输入" :rules="[{ required: true, message: '请输入联系人姓名' }]" /> <van-field :border="true" v-model="form.linkName" class="required" name="linkName" label="联系人姓名" placeholder="请输入" :rules="[{ required: true, message: '请输入联系人姓名' }]" />
<van-field :border="true" v-model="form.linkPhone" class="required" name="linkPhone" label="联系电话" placeholder="请输入" :rules="phoneVerify" /> <van-field :border="true" v-model="form.linkPhone" class="required" name="linkPhone" label="联系电话" placeholder="请输入" :rules="phoneVerify" />
<van-field :border="true" v-model="form.linkEmail" class="required" name="linkEmail" label="邮箱" placeholder="请输入" :rules="emailVerify" />
<van-field :border="true" class="required" name="serviceType" label="服务能力"> <van-field :border="true" class="required" name="serviceType" label="服务能力">
<template #input> <template #input>
<el-tree <el-tree
@@ -121,13 +135,16 @@
return { return {
clickFlag: true, clickFlag: true,
phoneVerify: [{ required: true, message: '请输入联系电话' }, { validator: value => { return /^1[3456789]\d{9}$/.test(value) }, message: '联系电话格式不正确' }], 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 id:'', //车辆Id
idBackPhotoList: [], idBackPhotoList: [],
idBackPhoto: '', idBackPhoto: '',
idFrontPhotoList: [], idFrontPhotoList: [],
idFrontPhoto: '', idFrontPhoto: '',
companyPhotoList: [], companyPhotoList: [],
licensePhotoList: [],
companyPhoto: '', companyPhoto: '',
licensePhoto:'',
form: { form: {
name: '', name: '',
legalName: '', legalName: '',
@@ -138,6 +155,7 @@
trailCount: '', trailCount: '',
minorCount: '', minorCount: '',
serviceAreaCode: [], serviceAreaCode: [],
linkEmail:'',
}, },
qrCodeUrl: '', qrCodeUrl: '',
qrCode: '', qrCode: '',
@@ -195,6 +213,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.liensePhoto = _data?.accountUrl;
this.wechatId = _data?.wechatId this.wechatId = _data?.wechatId
if(this.idFrontPhoto) { if(this.idFrontPhoto) {
this.idFrontPhotoList = [{ url : this.idFrontPhoto }]; this.idFrontPhotoList = [{ url : this.idFrontPhoto }];
@@ -205,6 +224,9 @@
if(this.companyPhoto) { if(this.companyPhoto) {
this.companyPhotoList = [{ url : this.companyPhoto }]; this.companyPhotoList = [{ url : this.companyPhoto }];
} }
if(this.licensePhoto){
this.licensePhotoList= [{ url : this.licensePhoto }];
}
if( _data.service ) { if( _data.service ) {
this.$refs.tree.setCheckedKeys(_data.service.split(',')) this.$refs.tree.setCheckedKeys(_data.service.split(','))
} }
@@ -277,6 +299,7 @@
idCardFrontUrl: this.idFrontPhoto, idCardFrontUrl: this.idFrontPhoto,
idCardBackUrl: this.idBackPhoto, idCardBackUrl: this.idBackPhoto,
businessLicense: this.companyPhoto, businessLicense: this.companyPhoto,
accountUrl:this.licensePhoto,
service: this.$refs.tree.getCheckedKeys().join(',') , service: this.$refs.tree.getCheckedKeys().join(',') ,
serviceAreaCode: checkArr.join(','), serviceAreaCode: checkArr.join(','),
wechatId: this.wechatId, wechatId: this.wechatId,
@@ -384,6 +407,12 @@
this.form.areaName = res?.data?.address this.form.areaName = res?.data?.address
await this.QrCodeHandler(); await this.QrCodeHandler();
}, },
async licensePhotoHandler(file){// 开户许可证
const formData = new FormData();
formData.append("file" , file.file);
let res = await uploadImage(formData);
this.licensePhoto = res.data
},
}, },
computed: { computed: {
regionText() { regionText() {
@@ -413,12 +442,13 @@
padding: 0 20px; padding: 0 20px;
} }
.credentials_info { .credentials_info {
height: 170px; //height: 170px;
} }
.credentials_wrap { .credentials_wrap {
display: flex; display: flex;
width: 100%; width: 100%;
margin-top: 10px; margin-top: 10px;
flex-wrap: wrap;
.credentials_item { .credentials_item {
width: 32%; width: 32%;
text-align: center; text-align: center;