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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<template>
  <div class="borrower">
    <template  v-if="(currentFlowno == 'CreditFlowCommon' || currentFlowno == 'CreditFlowCase') && $route.query.productID.indexOf('OFF_') < 0">
      <guarantor :applyInfoProp="applyInfo" style="padding-right:40px"></guarantor>
    </template>
    <template v-else-if="currentFlowno == 'MainCreditFlow'">
      <guarantor :applyInfoProp="applyInfo" style="padding-right:40px"></guarantor>
    </template>
    <template v-else>
      <KeysTable
        :list="guarantorListValueArr"
        :header="guarantorListTableHeaderArr"
        :isShowPages="false"
        title="担保人信息"
      ></KeysTable>
    </template>
 
  </div>
</template>
 
<script>
import {
  qryGuarantorOrCoBorrower, //查询股东信息
} from "@/api/product";
import guarantor from "@/views/product/views/CreditFlowCase/guarantor/index.vue";
import FormInfo from "../FormInfo";
import KeysTable from "../KeysTable";
import common from "@/utils/common";
// 股东信息
export default {
  props: {
    // 申请编号
    serialNo: {
      type: String,
      required: true,
    },
    objectType: {
      type: String,
      default: "",
    },
    customerID: {
      type: String,
      default: "",
    },
    flowno: {
      type: String,
 
      // 默认为案场
      default: 'CreditFlowCase'
    }
  },
  components: {
    FormInfo,
    KeysTable,
    guarantor
  },
  data() {
    return {
      currentFlowno: "",
      applyInfo: {},
      info: {}, //接口获取到的参数为值
      loading: false, //是否loading
      guarantorListTableHeaderArr: [
        {
          prop: "borrowertypeCn",
          width: "auto",
          label: "担保人类型",
        },
        {
          prop: "relativecustomername",
          width: "auto",
          label: "担保人名称",
        },
        {
          prop: "certtypeCn",
          width: "auto",
          label: "证件类型",
        },
        {
          prop: "certid",
          width: "auto",
          label: "证件号码",
        },
        {
          prop: "phone",
          width: "auto",
          label: "电话号码",
        },
        {
          prop: "contactsname",
          width: "auto",
          label: "联系人姓名",
        },
        {
          prop: "contactsidnum",
          width: "auto",
          label: "联系人证件号码",
        },
        {
          prop: "contactsphone",
          width: "auto",
          label: "联系人手机号"
        },
        {
          prop: "permanentprovinceCn",
          width: "auto",
          isAddress:'true',
          label: "担保人地址(省市区)",
        },
        {
          prop: "permanentaddress",
          width: "auto",
          label: "担保人详细地址",
        }
      ], //贷款合同信息列表title
      // row.permanentprovinceCn ? row.permanentprovinceCn+row.permanentcityCn+row.permanentcountyCn : '--'
      guarantorListValueArr: [], //股东信息列表服务器返回数据
    };
  },
  created() {
    this.init();
  },
  methods: {
    init() {
      this.currentFlowno = this.flowno
      console.log('担保人信息打印',this.flowno, this.$route.query.productID.indexOf('OFF_'))
      if(this.flowno == 'CreditFlowCommon' ||this.flowno == 'CreditFlowCase' && this.$route.query.productID.indexOf('OFF_') < 0) {
        const { serialNo, customerID } = this;
        this.applyInfo = {
          serialNo: serialNo,
          customerid: customerID,
        }
      }else if (this.flowno == 'MainCreditFlow') {
        const { serialNo, customerID } = this;
        this.applyInfo = {
          serialNo: serialNo,
          customerid: customerID,
          flowno: 'MainCreditFlow'
        }
      }
      else {
        this.qryGuarantorOrCoBorrower();
      }
    },
    //股东信息数据
    async qryGuarantorOrCoBorrower() {
      this.loading = true;
      const { serialNo, customerID } = this;
      const res = await qryGuarantorOrCoBorrower({
        applySerialNo: serialNo,
        customerId: customerID,
        relationtype: '02'
      });
 
      this.loading = false;
      const { result } = res;
      this.guarantorListValueArr = result || [];
    },   
  },
  watch: {
    serialNo() {
      this.init();
    },
  },
};
</script>
 
<style lang="postcss" scoped>
.form-section {
  display: flex;
  align-items: baseline;
  & .search {
    margin: 10px 0 0 50px;
    padding: 0;
  }
}
 
.borrower {
  & >>> .title {
 
    margin: 30px 0 20px 0;
    padding: 0 0 0 10px;
    border-left: solid 2px #0081F0;
    line-height: 16px;
    font-size: 14px;
    color: #222222;
  }
 
  & >>> .btn {
    display: none;
  }
}
</style>