diff --git a/src/assets/supplier/licensePhoto.png b/src/assets/supplier/licensePhoto.png
new file mode 100644
index 00000000..86c13c59
Binary files /dev/null and b/src/assets/supplier/licensePhoto.png differ
diff --git a/src/views/index/supplierAdd.vue b/src/views/index/supplierAdd.vue
index 687d074f..d6ca0114 100644
--- a/src/views/index/supplierAdd.vue
+++ b/src/views/index/supplierAdd.vue
@@ -9,7 +9,7 @@
-
1. 法人身份证正面
+
1.法人身份证人像页
-
2. 法人身份证反面
+
2.法人身份证国徽页
+
+
4.开户许可证
+
+
+

+
+
+
@@ -57,6 +70,7 @@
+
{ 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
idBackPhotoList: [],
idBackPhoto: '',
idFrontPhotoList: [],
idFrontPhoto: '',
companyPhotoList: [],
+ licensePhotoList: [],
companyPhoto: '',
+ licensePhoto:'',
form: {
name: '',
legalName: '',
@@ -138,6 +155,7 @@
trailCount: '',
minorCount: '',
serviceAreaCode: [],
+ linkEmail:'',
},
qrCodeUrl: '',
qrCode: '',
@@ -195,6 +213,7 @@
this.idFrontPhoto = _data?.idCardFrontUrl;
this.idBackPhoto = _data?.idCardBackUrl;
this.companyPhoto = _data?.businessLicense;
+ this.liensePhoto = _data?.accountUrl;
this.wechatId = _data?.wechatId
if(this.idFrontPhoto) {
this.idFrontPhotoList = [{ url : this.idFrontPhoto }];
@@ -205,6 +224,9 @@
if(this.companyPhoto) {
this.companyPhotoList = [{ url : this.companyPhoto }];
}
+ if(this.licensePhoto){
+ this.licensePhotoList= [{ url : this.licensePhoto }];
+ }
if( _data.service ) {
this.$refs.tree.setCheckedKeys(_data.service.split(','))
}
@@ -277,6 +299,7 @@
idCardFrontUrl: this.idFrontPhoto,
idCardBackUrl: this.idBackPhoto,
businessLicense: this.companyPhoto,
+ accountUrl:this.licensePhoto,
service: this.$refs.tree.getCheckedKeys().join(',') ,
serviceAreaCode: checkArr.join(','),
wechatId: this.wechatId,
@@ -384,6 +407,12 @@
this.form.areaName = res?.data?.address
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: {
regionText() {
@@ -413,12 +442,13 @@
padding: 0 20px;
}
.credentials_info {
- height: 170px;
+ //height: 170px;
}
.credentials_wrap {
display: flex;
width: 100%;
margin-top: 10px;
+ flex-wrap: wrap;
.credentials_item {
width: 32%;
text-align: center;