mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
修改
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
<el-input v-model="dialogForm.email"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="上传法人身份证正面照" >
|
||||
<el-upload list-type="picture-card" :action="actionUrl" :headers="headers" :on-success="idCardSuccess"
|
||||
<el-upload list-type="picture-card" :class="{hide:uploadDisable}" :action="actionUrl" :headers="headers" :on-success="idCardSuccess"
|
||||
:on-remove="idCardRemove"
|
||||
:file-list="idCardList"
|
||||
:limit="1"
|
||||
@@ -109,7 +109,7 @@
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
<el-form-item label="上传法人身份证反面照" >
|
||||
<el-upload :action="actionUrl" :headers="headers" :on-success="sideCardSuccess"
|
||||
<el-upload :class="{hide:sideDisable}" :action="actionUrl" :headers="headers" :on-success="sideCardSuccess"
|
||||
:on-remove="sideCardRemove"
|
||||
:file-list="sideCardList"
|
||||
list-type="picture-card"
|
||||
@@ -121,7 +121,7 @@
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
<el-form-item label="上传开户银行许可证" >
|
||||
<el-upload :action="actionUrl" :headers="headers" :on-success="depositBankSuccess"
|
||||
<el-upload :class="{hide:depositBankDisable}" :action="actionUrl" :headers="headers" :on-success="depositBankSuccess"
|
||||
:on-remove="depositBankRemove"
|
||||
:file-list="depositBankList"
|
||||
list-type="picture-card"
|
||||
@@ -133,7 +133,7 @@
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
<el-form-item label="上传营业执照" >
|
||||
<el-upload :action="actionUrl" :headers="headers" :on-success="businessSuccess"
|
||||
<el-upload :class="{hide:businessDisable}" :action="actionUrl" :headers="headers" :on-success="businessSuccess"
|
||||
:on-remove="businessRemove"
|
||||
:file-list="businessList"
|
||||
list-type="picture-card"
|
||||
@@ -723,7 +723,11 @@ export default {
|
||||
idCardList:[],
|
||||
sideCardList:[],
|
||||
depositBankList:[],
|
||||
businessList:[]
|
||||
businessList:[],
|
||||
uploadDisable:false,
|
||||
sideDisable:false,
|
||||
depositBankDisable:false,
|
||||
businessDisable:false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -739,11 +743,15 @@ export default {
|
||||
this.imageUrl = URL.createObjectURL(file.raw);
|
||||
console.log("图片上传成功 url:", this.imageUrl);
|
||||
this.businessList.push({ url: res.url });
|
||||
if(res.code === 200) {
|
||||
this.businessDisable = true
|
||||
}
|
||||
},
|
||||
businessRemove(file, fileList) {
|
||||
console.log("移除图片", file, fileList);
|
||||
const i = this.businessList.findIndex((x) => x.uid === file.uid);
|
||||
this.businessList.splice(i, 1);
|
||||
this.businessDisable = false
|
||||
},
|
||||
depositBankExceed(files) {
|
||||
this.$message.warning(
|
||||
@@ -757,11 +765,15 @@ export default {
|
||||
this.imageUrl = URL.createObjectURL(file.raw);
|
||||
console.log("图片上传成功 url:", this.imageUrl);
|
||||
this.depositBankList.push({ url: res.url });
|
||||
if(res.code === 200) {
|
||||
this.depositBankDisable = true
|
||||
}
|
||||
},
|
||||
depositBankRemove(file, fileList) {
|
||||
console.log("移除图片", file, fileList);
|
||||
const i = this.depositBankList.findIndex((x) => x.uid === file.uid);
|
||||
this.depositBankList.splice(i, 1);
|
||||
this.depositBankDisable = false
|
||||
},
|
||||
sideCardExceed(files) {
|
||||
this.$message.warning(
|
||||
@@ -772,8 +784,10 @@ export default {
|
||||
},
|
||||
sideCardSuccess(res) {
|
||||
this.$refs.dialogForm.clearValidate()
|
||||
console.log("图片上传成功 url:", this.imageUrl);
|
||||
this.sideCardList.push({ url: res.url });
|
||||
if(res.code === 200) {
|
||||
this.sideDisable = true
|
||||
}
|
||||
},
|
||||
sideCardRemove(file, fileList) {
|
||||
console.log("移除图片", file, fileList);
|
||||
@@ -781,6 +795,7 @@ export default {
|
||||
const i = this.sideCardList.findIndex((x) => x.uid === file.uid);
|
||||
// 调用splice方法,移除图片信息
|
||||
this.sideCardList.splice(i, 1);
|
||||
this.sideDisable = false
|
||||
},
|
||||
idCardExceed(files) {
|
||||
this.$message.warning(
|
||||
@@ -789,9 +804,12 @@ export default {
|
||||
}张`
|
||||
);
|
||||
},
|
||||
idCardSuccess(res, file) {
|
||||
idCardSuccess(res) {
|
||||
this.$refs.dialogForm.clearValidate()
|
||||
this.idCardList.push({ url: res.url });
|
||||
if (res.code===200){
|
||||
this.uploadDisable = true
|
||||
}
|
||||
},
|
||||
idCardRemove(file, fileList) {
|
||||
console.log("移除图片", file, fileList);
|
||||
@@ -799,6 +817,7 @@ export default {
|
||||
const i = this.idCardList.findIndex((x) => x.uid === file.uid);
|
||||
// 调用splice方法,移除图片信息
|
||||
this.idCardList.splice(i, 1);
|
||||
this.uploadDisable = false
|
||||
},
|
||||
updateDialogForm(form){
|
||||
console.log(this.adapayCorpMember,'this.adapayCorpMember')
|
||||
@@ -817,7 +836,7 @@ export default {
|
||||
// <!-- A-待审核;B-审核失败;C-开户失败;D-开户成功但未创建结算账户;E-开户和创建结算账户成功
|
||||
auditStatus(status){
|
||||
let arr = [{type:'A',statusTitle:'待审核'},{type:'B',statusTitle:'审核失败'},{type:'C',statusTitle:'开户失败'},{type:'D',statusTitle:'开户成功但未创建结算账户'},{type:'E',statusTitle:'开户和创建结算账户成功'}]
|
||||
let str = arr.find(item => item.type == status)
|
||||
let str = arr.find(item => item.type === status)
|
||||
// console.log(str,'str auditStatus')
|
||||
if (str ==null){
|
||||
return '一'
|
||||
@@ -826,7 +845,7 @@ export default {
|
||||
}
|
||||
},
|
||||
provCode(code){
|
||||
let arr = this.options.find(item => item.value == code)
|
||||
let arr = this.options.find(item => item.value === code)
|
||||
if (arr ==null){
|
||||
return '一'
|
||||
} else{
|
||||
@@ -841,7 +860,6 @@ export default {
|
||||
} else{
|
||||
return arr.title
|
||||
}
|
||||
|
||||
},
|
||||
enterpriseChange(value) {
|
||||
this.dialogForm.provCode = value[0]
|
||||
@@ -929,7 +947,7 @@ export default {
|
||||
::v-deep .el-input .el-input--medium{
|
||||
width: 43% !important;
|
||||
}
|
||||
.freePic ::v-deep .el-upload--picture-card {
|
||||
.hide ::v-deep .el-upload--picture-card {
|
||||
display: none;
|
||||
}
|
||||
.status-card{
|
||||
|
||||
Reference in New Issue
Block a user