Commit 61a5ae7f authored by feifei's avatar feifei

下载合同

parent c647c3d3
...@@ -161,6 +161,18 @@ ...@@ -161,6 +161,18 @@
</el-collapse-item> </el-collapse-item>
<el-collapse-item title="借款合同列表" name="9">
<el-table :data="contractList" stripe style="width: 100%;">
<el-table-column prop="contractName" label="合同类型" width="150px"></el-table-column>
<el-table-column prop="contractUrl" label="下载">
<template slot-scope="scope">
<a :href="scope.row.contractUrl" target="_blank" class="buttonText">合同下载</a>
</template>
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item title="账单详情" name="4"> <el-collapse-item title="账单详情" name="4">
<br/> <br/>
...@@ -544,6 +556,11 @@ export default { ...@@ -544,6 +556,11 @@ export default {
planDate: '', planDate: '',
status: '', status: '',
}], }],
contractList: [{
contractName: '',
contractUrl: '',
}],
companyInfo: [{ companyInfo: [{
companyName: '', companyName: '',
companyAddress: '', companyAddress: '',
...@@ -938,6 +955,8 @@ export default { ...@@ -938,6 +955,8 @@ export default {
this.loanModel = res.data.result.applyVo ? res.data.result.applyVo : ''; this.loanModel = res.data.result.applyVo ? res.data.result.applyVo : '';
//还款信息 //还款信息
this.loanBackedData(res.data.result.applyVo.loanNo); this.loanBackedData(res.data.result.applyVo.loanNo);
//合同列表
this.contractData(res.data.result.applyVo.loanNo);
/*if(res.data.result.backedVo == null){ /*if(res.data.result.backedVo == null){
this.loanBackedList = []; this.loanBackedList = [];
}else { }else {
...@@ -953,7 +972,6 @@ export default { ...@@ -953,7 +972,6 @@ export default {
}, },
//还款信息 //还款信息
loanBackedData(record) { loanBackedData(record) {
console.log(this.backValue,887);
this.$$post('/back/detailPageList', { this.$$post('/back/detailPageList', {
bizNo: record, bizNo: record,
size: this.page.size, size: this.page.size,
...@@ -977,6 +995,25 @@ export default { ...@@ -977,6 +995,25 @@ export default {
}); });
}, },
//借款合同信息
contractData(record) {
this.$$get('/loan/contract?loanNo=' + record).then(res => {
if (res.data.code != 200) {
// this.isShow = false;
this.$message.error(res.data.message);
} else {
if (res.data.result == null) {
this.contractList = [];
} else {
this.contractList = res.data.result.result ? res.data.result.result : '';
}
}
}).catch(error => {
this.$message.error(error || '网络异常,请稍后。。。');
});
},
// 绑卡记录 // 绑卡记录
ownerBankBind(record) { ownerBankBind(record) {
this.ui.ownerBankBind = { this.ui.ownerBankBind = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment