zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<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>