同步优化企业客户流程模型展示

This commit is contained in:
wkc
2026-08-24 18:30:26 +08:00
parent 3afff5d942
commit dd10192c18
5 changed files with 45 additions and 19 deletions

View File

@@ -110,8 +110,16 @@ public class ModelCorpOutputFields {
private String blackCust;
// 本金逾期
private String prinOverdue;
// BP_本金逾期
private String bpPrinOverdue;
// 利息逾期
private String interestOverdue;
// BP_利息逾期
private String bpIinterestOverdue;
// 信用卡逾期
private String cardOverdue;
// BP_信用卡逾期
private String bpCardOverdue;
// BP_灰名单与逾期
private String bpGreyOverdue;
// TOTAL_BP_风险度

View File

@@ -47,7 +47,11 @@
"greyCust": "0",
"blackCust": "1",
"prinOverdue": "0",
"bpPrinOverdue": "0",
"interestOverdue": "3",
"bpIinterestOverdue": "0",
"cardOverdue": "0",
"bpCardOverdue": "0",
"bpGreyOverdue": "0",
"totalBpRisk": "1.2",
"totalBp": "48.2",

View File

@@ -92,6 +92,7 @@
<!-- 模型输出卡片 -->
<ModelOutputDisplay
:cust-type="detailData.custType"
:guar-type="detailData.guarType"
:retail-output="null"
:corp-output="corpOutput"
/>

View File

@@ -151,8 +151,12 @@
<thead><tr><th>模型输出结果</th><th>影响BP</th></tr></thead>
<tbody>
<tr v-for="(row, index) in corporateRelevanceRows" :key="`corporate-relevance-${index}`" :class="{ 'is-total-row': row.total }">
<td><span v-if="row.summary">汇总</span><template v-else><div v-if="row.category" class="result-category">{{ row.category }}</div><div v-for="item in row.results" :key="item.label" class="result-item"><span class="result-label">{{ item.label }}</span><span class="result-value">{{ item.value }}</span></div></template></td>
<td><span :class="row.total ? 'total-bp-value' : 'bp-value'">{{ row.bpLabel }}{{ row.bpValue }}</span></td>
<td><span v-if="row.summary">汇总</span><template v-else><div v-if="row.category" class="result-category">{{ row.category }}</div><div v-for="item in row.results" :key="item.label" class="result-item"><span class="result-label">{{ item.label }}</span><span v-if="item.showValue !== false" class="result-value">{{ item.value }}</span></div></template></td>
<td>
<span :class="row.total ? 'total-bp-value' : 'bp-value'">
<template v-if="row.bpLabel">{{ row.bpLabel }}</template>{{ row.bpValue }}
</span>
</td>
</tr>
</tbody>
</table>
@@ -275,15 +279,13 @@ export default {
},
corporateRelevanceRows() {
return [
this.groupedAnalysisRow([
this.resultItem('中间业务_企业_企业互联', this.corpOutput.midEntConnect),
this.resultItem('中间业务_企业_有效价值客户', this.corpOutput.midEntEffect),
this.resultItem('中间业务_企业_国际业务', this.corpOutput.midEntInter),
this.resultItem('中间业务_企业_承兑', this.corpOutput.midEntAccept),
this.resultItem('中间业务_企业_贴现', this.corpOutput.midEntDiscount),
this.resultItem('中间业务_企业_费代扣', this.corpOutput.midEntEleDdc),
this.resultItem('中间业务_企业_水费代扣', this.corpOutput.midEntWaterDdc)
], 'BP_中间业务', this.corpOutput.bpMid, false, '中间业务'),
this.middleBusinessRow('中间业务_企业_企业互联', this.corpOutput.midEntConnect),
this.middleBusinessRow('中间业务_企业_有效价值客户', this.corpOutput.midEntEffect),
this.middleBusinessRow('中间业务_企业_国际业务', this.corpOutput.midEntInter),
this.middleBusinessRow('中间业务_企业_承兑', this.corpOutput.midEntAccept),
this.middleBusinessRow('中间业务_企业_贴现', this.corpOutput.midEntDiscount),
this.middleBusinessRow('中间业务_企业_电费代扣', this.corpOutput.midEntEleDdc),
this.middleBusinessRow('中间业务_企业_费代扣', this.corpOutput.midEntWaterDdc),
this.groupedAnalysisRow([
this.resultItem('代发工资户数', this.corpOutput.payroll),
this.resultItem('存量贷款余额', this.corpOutput.invLoanAmount)
@@ -299,21 +301,27 @@ export default {
]
},
corporateRiskRows() {
return [
const rows = [
this.analysisRow('借款期限', this.corpOutput.loanTerm, 'BP_贷款期限', this.corpOutput.bpLoanTerm),
this.analysisRow('申请金额', this.corpOutput.applyAmt, 'BP_贷款额度', this.corpOutput.bpLoanAmount),
this.groupedAnalysisRow([
this.analysisRow('申请金额', this.corpOutput.applyAmt, 'BP_贷款额度', this.corpOutput.bpLoanAmount)
]
if (this.guarType === '抵押' || this.guarType === '质押') {
rows.push(this.groupedAnalysisRow([
this.resultItem('抵质押类型', this.corpOutput.collType),
this.resultItem('抵质押物三方所有', this.formatBoolean(this.corpOutput.collThirdParty))
], 'BP_抵押物', this.corpOutput.bpCollateral),
], 'BP_抵押物', this.corpOutput.bpCollateral))
}
rows.push(
this.groupedAnalysisRow([
this.resultItem('灰名单客户', this.formatBoolean(this.corpOutput.greyCust)),
this.resultItem('黑名单客户', this.formatBoolean(this.corpOutput.blackCust)),
this.resultItem('本金逾期', this.formatBoolean(this.corpOutput.prinOverdue)),
this.resultItem('利息逾期', this.corpOutput.interestOverdue)
this.resultItem('黑名单客户', this.formatBoolean(this.corpOutput.blackCust))
], 'BP_灰名单与逾期', this.corpOutput.bpGreyOverdue),
this.analysisRow('本金逾期', this.formatBoolean(this.corpOutput.prinOverdue), 'BP_本金逾期', this.corpOutput.bpPrinOverdue),
this.analysisRow('利息逾期', this.corpOutput.interestOverdue, 'BP_利息逾期', this.corpOutput.bpIinterestOverdue),
this.analysisRow('信用卡逾期', this.formatBoolean(this.corpOutput.cardOverdue), 'BP_信用卡逾期', this.corpOutput.bpCardOverdue),
this.totalRow('TOTAL_BP_风险度', this.corpOutput.totalBpRisk)
]
)
return rows
}
},
methods: {

View File

@@ -0,0 +1,5 @@
-- 2026-08-24 corporate model output overdue BP fields
ALTER TABLE `model_corp_output_fields`
ADD COLUMN `bp_prin_overdue` varchar(100) DEFAULT NULL COMMENT 'BP_本金逾期' AFTER `prin_overdue`,
ADD COLUMN `bp_iinterest_overdue` varchar(100) DEFAULT NULL COMMENT 'BP_利息逾期' AFTER `interest_overdue`,
ADD COLUMN `bp_card_overdue` varchar(100) DEFAULT NULL COMMENT 'BP_信用卡逾期' AFTER `card_overdue`;