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