<template>
|
<div class="borrower">
|
<p class="title" style="margin-top: 50px;margin-bottom: 10px;">
|
<span></span>
|
中登网登记信息
|
</p>
|
<div style="margin-bottom:10px" v-if="applyInfo.phaseNo >= '0060'">
|
<el-button size="small" type="primary" @click="onZhdwRegister" v-if="applyInfo.phaseNo == '0060'">中登网登记</el-button>
|
<el-button size="small" type="primary" @click="zhdwDownload">登记证明查看</el-button>
|
</div>
|
<!-- <el-table
|
stripe
|
highlight-current-row
|
:data="loanContactList"
|
:header-cell-style="{ background: '#f5f5f5', color: '#222222' }"
|
style="width: 100%;margin-bottom: 40px;"
|
>
|
<el-table-column v-for="(item, idx) in tableColumn1" :key="idx"
|
:prop="item.prop"
|
:label="item.label"
|
></el-table-column>
|
</el-table> -->
|
|
<KeysTable
|
:list="loanContactList"
|
:header="tableColumn1"
|
:isShowPages="false"
|
></KeysTable>
|
|
<div style="padding-bottom: 40px;"></div>
|
|
<!-- <el-form
|
:model="resultInfo"
|
ref="resultForm"
|
size="small"
|
inline
|
label-width="165px"
|
>
|
<el-form-item label="中登网质押状态" >
|
<el-input :value="resultInfo.pledgeStatus == 1 ? '成功' : '失败'" disabled></el-input>
|
</el-form-item>
|
<el-form-item label="中登网质押上传时间" >
|
<el-input v-model="resultInfo.uploadDate" disabled></el-input>
|
</el-form-item>
|
<el-form-item label="中登网质押描述" style="width: 66.6%;">
|
<el-input type="textarea" v-model="resultInfo.pledgeDesc" disabled></el-input>
|
</el-form-item>
|
</el-form> -->
|
|
<ZhdwConfirmDialog ref="zhdwConfirmDialog" ></ZhdwConfirmDialog>
|
</div>
|
</template>
|
<script>
|
// 中登网登记信息
|
import {
|
qryLoanContactList,
|
} from "@/api/product";
|
import {
|
zhdwQueryResult,
|
zhdwQryBillResult
|
} from "@comprehensive/serve/public";
|
|
import ZhdwConfirmDialog from "@comprehensive/components/ZhdwConfirmDialog";
|
import KeysTable from "@comprehensive/components/KeysTable";
|
import { zhongdengRegisterHeaderArr } from "@comprehensive/utils/formHeaders";
|
export default {
|
props: ["applyInfo"],
|
components: {KeysTable, ZhdwConfirmDialog},
|
data() {
|
return {
|
resultInfo: {},
|
loanContactList: [],
|
tableColumn1: [...zhongdengRegisterHeaderArr],
|
};
|
},
|
async mounted() {
|
this.loanContactList = await this.getLoanContactList();
|
this.queryResult()
|
},
|
methods: {
|
// 中登网登记
|
async onZhdwRegister() {
|
// if (!this.putoutCheckInfoList.length) {
|
// this.$message.warning("请选择需要处理的数据");
|
// return;
|
// }
|
// if (this.putoutCheckInfoList.length !== 1) {
|
// this.$message.warning("只可选择一条数据");
|
// return;
|
// }
|
// if (this.putoutCheckInfoList[0].productName != '佣金贷' ) {
|
// this.$message.warning("此产品不需要中登网登记");
|
// return;
|
// }
|
this.$refs.zhdwConfirmDialog.initInfo(this.applyInfo)
|
// comfirm('',`请确认是否提交中登网登记?`,async ()=>{
|
// const res = await zhdwRegister({
|
// applyNo: this.putoutCheckInfoList[0].serialNo
|
// })
|
// if(res.status == '0'){
|
// this.$message.success('中登网登记成功!')
|
// } else {
|
// this.$message.error(res.msg)
|
// }
|
// })
|
},
|
// 查询中登网登记信息
|
getLoanContactList() {
|
return new Promise(resolve => {
|
zhdwQryBillResult({
|
applySerialNo: this.applyInfo.serialNo
|
}).then(res => {
|
res.result.map(item => {
|
item.signStatus = item.signStatus == 1 ? "完成" : "未完成"
|
})
|
resolve(res.result);
|
});
|
});
|
},
|
zhdwDownload() {
|
const url = `${process.env.VUE_APP_API_ORIGIN}/rlc-cts/server/zhdw/downloadPDF/${this.applyInfo.serialNo}`;
|
window.open(url)
|
},
|
queryResult() {
|
zhdwQueryResult({
|
applySerialNo: this.applyInfo.serialNo
|
}).then(res => {
|
this.resultInfo = res.result
|
});
|
}
|
}
|
};
|
</script>
|
|
<style lang="postcss" scoped>
|
|
|
</style>
|
|