|
|
|
@ -1,13 +1,18 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<el-dialog :title="dialogData.title" :visible.sync="isshow" width="70%" :before-close="MisShow"> |
|
|
|
<div class="select" v-if="!isexamine &&dialogType==1"> |
|
|
|
<el-radio v-model="query.account_type" label="buyer" border @change="getAccountData">购买方</el-radio> |
|
|
|
<el-radio v-model="query.account_type" label="enter_shop" border @change="getAccountData">托管方</el-radio> |
|
|
|
<el-radio v-model="query.account_type" label="third_party" border @change="getAccountData">第三方</el-radio> |
|
|
|
</div> |
|
|
|
<p class="tips"> |
|
|
|
{{dialogData.tips}} |
|
|
|
<span style="color:red">{{dialogData.tips1}}</span> |
|
|
|
</p> |
|
|
|
<div class="body"> |
|
|
|
<el-tabs tab-position="left" v-model="tabID"> |
|
|
|
<el-tab-pane v-for="(item,index) in dialogData.sidebar" :key="index" @tab-click="handleClick" :name="item.id"> |
|
|
|
<el-tab-pane v-for="(item) in dialogData.sidebar" :key="item.id" @tab-click="handleClick" :name="item.id"> |
|
|
|
<span slot="label"> |
|
|
|
<i class="el-icon-question" v-if="item.type==2" style="color:#4E73E4"></i> |
|
|
|
<span v-else-if="item.type==1" style="color:red">*</span> |
|
|
|
@ -17,6 +22,19 @@ |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</div> |
|
|
|
<div class="feedback feedback1" v-if="isexamine"> |
|
|
|
<el-radio v-model="query.status" :label="1" border>审核通过</el-radio> |
|
|
|
<el-radio v-model="query.status" :label="2" border>审核不通过</el-radio> |
|
|
|
</div> |
|
|
|
<div class="feedback" > |
|
|
|
<span>{{isexamine==true?'审核反馈:':'账户备注:'}}</span> |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
|
:rows="2" |
|
|
|
placeholder="请输入内容" |
|
|
|
v-model="query.message"> |
|
|
|
</el-input> |
|
|
|
</div> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="MisShow">取 消</el-button> |
|
|
|
<el-button type="primary" @click="saveEdit">确 定</el-button> |
|
|
|
@ -27,7 +45,8 @@ |
|
|
|
<script> |
|
|
|
import {whySidebar} from '../dialog/sidebar.vue' |
|
|
|
import sidebarContent from '../dialog/content.vue' |
|
|
|
import {getAccountData} from '../../../api/index' |
|
|
|
import {getAccountData,accountCheck} from '../../../api/index' |
|
|
|
import bus from '../bus' |
|
|
|
export default { |
|
|
|
name:'whyDialog', |
|
|
|
props:{ |
|
|
|
@ -46,7 +65,11 @@ export default { |
|
|
|
}, |
|
|
|
account_type:{ |
|
|
|
type:String, |
|
|
|
require: true |
|
|
|
default:'buyer', |
|
|
|
}, |
|
|
|
isexamine:{ |
|
|
|
type:Boolean, |
|
|
|
default:false, |
|
|
|
} |
|
|
|
}, |
|
|
|
data(){ |
|
|
|
@ -57,6 +80,13 @@ export default { |
|
|
|
tips1:'', |
|
|
|
sidebar:[] |
|
|
|
}, |
|
|
|
query:{ |
|
|
|
message:'', |
|
|
|
status:'', |
|
|
|
account_type:'', |
|
|
|
uid:'', |
|
|
|
account_data:'' |
|
|
|
}, |
|
|
|
tabID:'', |
|
|
|
contentDatas:'' |
|
|
|
} |
|
|
|
@ -65,40 +95,71 @@ export default { |
|
|
|
whySidebar,sidebarContent |
|
|
|
}, |
|
|
|
created(){ |
|
|
|
if (this.dialogType==1) { |
|
|
|
this.dialogData.title='账户信息'; |
|
|
|
if (this.account_type!='all') { |
|
|
|
this.dialogData.tips1='(*注:以下文件需加盖公章)'; |
|
|
|
} |
|
|
|
this.dialogData.tips='以下为交易平台账户申请账户时提交的相关资料:'; |
|
|
|
this.dialogData.sidebar=[ |
|
|
|
{title:'企业风险评估',type:0,id:'assessment'},{title:'基础信息',type:1,id:'basics'},{title:'营业执照(复印件)',type:1,id:'license'}, |
|
|
|
{title:'法人代表证明书',type:1,id:'certificate'},{title:'法人身份证(复印件)',type:1,id:'IDCard'},{title:'数字证书申请表',type:1,id:'application'}, |
|
|
|
{title:'银行开户证明',type:1,id:'bankProve'},{title:'开户申请书与承诺书',type:1,id:'promise'},{title:'法人授权委托书',type:0,id:'entrust'}, |
|
|
|
{title:'经办人身份证(复印件)',type:0,id:'IDCard1'},{title:'资产证明文件',type:2,id:'assets'},{title:'其他要求文件',type:0,id:'else'} |
|
|
|
] |
|
|
|
this.getAccountData() |
|
|
|
} |
|
|
|
this.tabID=this.dialogData.sidebar[0].id |
|
|
|
this.query.uid=this.dialogID; |
|
|
|
this.query.account_type=this.account_type; |
|
|
|
this.getAccountData() |
|
|
|
bus.$on('basics', (e) => { |
|
|
|
console.log(e) |
|
|
|
this.contentDatas=e; |
|
|
|
}) |
|
|
|
bus.$on('img',(e)=>{ |
|
|
|
console.info(e) |
|
|
|
this.contentDatas[e.key]=e.url; |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
getAccountData(){ |
|
|
|
let data={ |
|
|
|
uid:this.dialogID, |
|
|
|
account_type:this.account_type |
|
|
|
} |
|
|
|
getAccountData(data).then(res => { |
|
|
|
getAccountData(this.query).then(res => { |
|
|
|
console.log(res); |
|
|
|
if (res.code==100) { |
|
|
|
this.contentDatas=res.data |
|
|
|
if (res.data.check_status==0) { |
|
|
|
this.$message.error('暂无数据~'); |
|
|
|
this.query.account_type=this.account_type |
|
|
|
}else{ |
|
|
|
this.contentDatas=res.data |
|
|
|
this.init() |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
init(){ |
|
|
|
if (this.dialogType==1) { |
|
|
|
this.dialogData.title='账户信息'; |
|
|
|
if (this.isexamine) { |
|
|
|
this.dialogData.tips1='(*注:以下文件需加盖公章)'; |
|
|
|
} |
|
|
|
this.dialogData.tips='以下为交易平台账户申请账户时提交的相关资料:'; |
|
|
|
if (this.contentDatas.account_type==2) { |
|
|
|
this.dialogData.sidebar=[ |
|
|
|
{title:'企业风险评估',type:0,id:'assessment'},{title:'基础信息',type:1,id:'basics'},{title:'身份证(复印件)',type:1,id:'IDCard'}, |
|
|
|
{title:'数字证书申请表',type:1,id:'application'},{title:'资产证明文件',type:2,id:'assets'},{title:'其他要求文件',type:0,id:'else'} |
|
|
|
] |
|
|
|
}else{ |
|
|
|
this.dialogData.sidebar=[ |
|
|
|
{title:'企业风险评估',type:0,id:'assessment'},{title:'基础信息',type:1,id:'basics'},{title:'营业执照(复印件)',type:1,id:'license'}, |
|
|
|
{title:'法人代表证明书',type:1,id:'certificate'},{title:'法人身份证(复印件)',type:1,id:'IDCard'},{title:'数字证书申请表',type:1,id:'application'}, |
|
|
|
{title:'银行开户证明',type:1,id:'bankProve'},{title:'开户申请书与承诺书',type:1,id:'promise'},{title:'法人授权委托书',type:0,id:'entrust'}, |
|
|
|
{title:'经办人身份证(复印件)',type:0,id:'IDCard1'},{title:'资产证明文件',type:2,id:'assets'},{title:'其他要求文件',type:0,id:'else'} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
this.tabID=this.dialogData.sidebar[0].id |
|
|
|
}, |
|
|
|
handleClick(tab){ |
|
|
|
this.tabID=tab.id |
|
|
|
}, |
|
|
|
saveEdit(){ |
|
|
|
|
|
|
|
this.query.account_data=this.contentDatas |
|
|
|
accountCheck(this.query).then(res => { |
|
|
|
console.log(res); |
|
|
|
if (res.code==100) { |
|
|
|
this.MisShow() |
|
|
|
this.$message.success('提交成功~'); |
|
|
|
this.$emit('getData') |
|
|
|
}else{ |
|
|
|
this.$message.error(res.msg); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
MisShow(){ |
|
|
|
this.$emit('MisShow') |
|
|
|
@ -114,4 +175,20 @@ export default { |
|
|
|
display: flex; |
|
|
|
margin-top: 30px; |
|
|
|
} |
|
|
|
.feedback{ |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
font-size: 16px; |
|
|
|
color: #333333; |
|
|
|
width: 90%; |
|
|
|
margin: 0 auto; |
|
|
|
margin-top: 20px; |
|
|
|
} |
|
|
|
.feedback>>>.el-textarea{ |
|
|
|
width: 90%; |
|
|
|
margin-left: 10px; |
|
|
|
} |
|
|
|
.select{ |
|
|
|
margin-bottom: 15px; |
|
|
|
} |
|
|
|
</style> |