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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<template>
  <div>
    <!-- 该操作会导致缓存问题没法及时刷新,待修复 -->
    <!-- <keep-alive v-if="isKeepAlive">
      <component v-bind="$attrs" :relationtype="relationtype" v-bind:is="componentName"></component>
    </keep-alive>
    <component v-else v-bind="$attrs" :relationtype="relationtype" v-bind:is="componentName"></component>-->
    <component
      v-bind="$attrs"
      :sellerOrBuyer="sellerOrBuyer"
      :relationtype="relationtype"
      v-bind:is="componentName"
    ></component>
  </div>
</template>
<script>
// 动态组件
 
const CustomerBasicInfo = () => import('./tabsComponent/CustomerBasicInfo')
const GuarantorOrCoBorrowerListAndDetail = () =>
  import('./tabsComponent/GuarantorOrCoBorrowerListAndDetail')
const ImageMenuList = () => import('./tabsComponent/ImageMenuList')
const HouseList = () => import('./tabsComponent/HouseList')
const ApplyDetail = () => import('./tabsComponent/ApplyDetail')
const PreMerchantInterestInfo = () =>
  import('./tabsComponent/PreMerchantInterestInfo')
const PreCustomerInterestInfo = () =>
  import('./tabsComponent/PreCustomerInterestInfo')
const CreditReportList = () => import('./tabsComponent/CreditReportList')
const RiskAutoExamineDetail = () =>
  import('./tabsComponent/RiskAutoExamineDetail')
const OpinionList = () => import('./tabsComponent/OpinionList')
const FlowList = () => import('./tabsComponent/FlowList')
const CustomerHistoryApplyList = () =>
  import('./tabsComponent/CustomerHistoryApplyList')
const EdocPrint = () => import('./tabsComponent/EdocPrint')
const AcctLoan = () => import('./tabsComponent/AcctLoan')
const AcctPaymentScheduleList = () =>
  import('./tabsComponent/AcctPaymentScheduleList')
const AcctPaymentLogList = () => import('./tabsComponent/AcctPaymentLogList')
const AcctTransactionList = () => import('./tabsComponent/AcctTransactionList')
const LoanChangeList = () => import('./tabsComponent/LoanChangeList')
const AcctSubledgerDetailList = () =>
  import('./tabsComponent/AcctSubledgerDetailList')
const SellerOrBuyer = () => import('./tabsComponent/SellerOrBuyer')
const Receivable = () => import('./tabsComponent/Receivable')
const FeeSettleInfo = () => import('./tabsComponent/FeeSettleInfo')
const EnterpriseInfo = () => import('./tabsComponent/EnterpriseInfo')
const AcctPaymentInfo = () => import('./tabsComponent/AcctPaymentInfo')
const LoanEnterprise = () => import('./tabsComponent/LoanEnterprise')
const AcctReceivables = () => import('./tabsComponent/AcctReceivables')
const AcctMoneyBack = () => import('./tabsComponent/AcctMoneyBack')
const commission = () => import('./tabsComponent/commission')
const ReFactoring = () => import('./tabsComponent/ReFactoring')
const EntAlterRecord = () => import('./tabsComponent/EntAlterRecord')
 
export default {
  components: {
    CustomerBasicInfo,
    GuarantorOrCoBorrowerListAndDetail,
    ImageMenuList,
    HouseList, // 物业信息
    ApplyDetail, // 贷款申请信息
    PreMerchantInterestInfo, // 预收商户贴息
    PreCustomerInterestInfo,
    CreditReportList,
    RiskAutoExamineDetail,
    OpinionList,
    FlowList,
    CustomerHistoryApplyList,
    EdocPrint,
    AcctLoan,
    AcctPaymentScheduleList,
    AcctPaymentLogList,
    AcctTransactionList,
    LoanChangeList,
    AcctSubledgerDetailList,
    SellerOrBuyer,
    Receivable,
    FeeSettleInfo,
    EnterpriseInfo,
    LoanEnterprise,
    AcctPaymentInfo,
    AcctReceivables,
    AcctMoneyBack,
    commission,
    ReFactoring,
    AcctMoneyBack,
    EntAlterRecord
  },
  props: {
    /**
     * 节点信息
     * @example
     * { "tabname": "借款人信息", "exist": "Y", "gray": "N", "visible": "Y" }
     */
    info: {
      type: Object,
      required: true
    },
    isKeepAlive: {
      type: Boolean,
      default: true
    }
  },
  computed: {
    relationtype() {
      let { info } = this
      let { tabname } = info
      let relationtype = '01'
      if (tabname === '担保人信息') {
        relationtype = '02'
      }
      return relationtype
    },
    componentName(item) {
      let { info } = this
      let { tabname } = info
      let tabComponent = null
 
      if (tabname === '借款人信息') {
        tabComponent = 'CustomerBasicInfo'
      }
 
      if (tabname === '共借人信息' || tabname === '担保人信息') {
        tabComponent = 'GuarantorOrCoBorrowerListAndDetail'
      }
 
      if (tabname === '物业信息') {
        tabComponent = 'HouseList'
      }
 
      if (tabname === '企业信息') {
        tabComponent = 'EnterpriseInfo'
      }
 
      if (tabname === '借款企业信息') {
        tabComponent = 'LoanEnterprise'
      }
 
      if (tabname === '准入项目信息') {
        tabComponent = 'commission'
      }
 
      if (tabname === '应收账款信息') {
        tabComponent = 'AcctReceivables'
      }
 
      if (tabname === '贷款申请信息') {
        tabComponent = 'ApplyDetail'
      }
 
      if (tabname === '再保理信息') {
        tabComponent = 'ReFactoring'
      }
 
      if (tabname === '预收商户贴息') {
        tabComponent = 'PreMerchantInterestInfo'
      }
 
      if (tabname === '预收客户息费') {
        tabComponent = 'PreCustomerInterestInfo'
      }
 
      if (tabname === '主/共借人征信信息') {
        tabComponent = 'CreditReportList'
      }
 
      if (tabname === '风控审批信息') {
        tabComponent = 'RiskAutoExamineDetail'
      }
 
      if (tabname === '历史审批意见') {
        tabComponent = 'OpinionList'
      }
 
      if (tabname === '流程流转记录') {
        tabComponent = 'FlowList'
      }
 
      if (tabname === '历史贷款信息') {
        tabComponent = 'CustomerHistoryApplyList'
      }
 
      if (tabname === '电子合同信息') {
        tabComponent = 'EdocPrint'
      }
 
      if (tabname === '影像资料信息') {
        tabComponent = 'ImageMenuList'
      }
 
      if (tabname === '借据信息') {
        tabComponent = 'AcctLoan'
      }
 
      if (tabname === '还款计划') {
        tabComponent = 'AcctPaymentScheduleList'
      }
 
      if (tabname === '还款信息') {
        tabComponent = 'AcctPaymentInfo'
      }
 
      if (tabname === '回款信息') {
        tabComponent = 'AcctMoneyBack'
      }
 
      if (tabname === '还款入账记录') {
        tabComponent = 'AcctPaymentLogList'
      }
 
      if (tabname === '交易申请记录') {
        tabComponent = 'AcctTransactionList'
      }
 
      if (tabname === '会计分录信息') {
        tabComponent = 'AcctSubledgerDetailList'
      }
 
      if (tabname === '本金回款信息') {
        tabComponent = 'Receivable'
      }
 
      if (tabname === '息费结算信息') {
        tabComponent = 'FeeSettleInfo'
      }
 
      if (tabname === '贷后变更记录') {
        tabComponent = 'LoanChangeList'
      }
 
      if (tabname === '卖方信息') {
        tabComponent = 'SellerOrBuyer'
      }
 
      if (tabname === '买方信息') {
        tabComponent = 'SellerOrBuyer'
      }
 
      if (tabname === '企业信息变更记录') {
        tabComponent = 'EntAlterRecord'
      }
      
      return tabComponent
    },
    sellerOrBuyer() {
      let { info } = this
      let { tabname } = info
      let result = ''
      if (tabname === '卖方信息') {
        result = '01'
      }
 
      if (tabname === '买方信息') {
        result = '02'
      }
      return result
    }
  }
}
</script>
<style lang="postcss" scoped>
</style>