diff --git a/ruoyi-ui/src/views/loanPricing/workflow/components/ModelOutputDisplay.vue b/ruoyi-ui/src/views/loanPricing/workflow/components/ModelOutputDisplay.vue index fa247e7..65de76d 100644 --- a/ruoyi-ui/src/views/loanPricing/workflow/components/ModelOutputDisplay.vue +++ b/ruoyi-ui/src/views/loanPricing/workflow/components/ModelOutputDisplay.vue @@ -7,14 +7,16 @@ @@ -217,11 +184,14 @@ export default { ] }, retailContributionRows() { - return [this.groupedAnalysisRow([ - this.resultItem('存款年日均', this.retailOutput.balanceAvg), - this.resultItem('贷款年日均', this.retailOutput.loanAvg), - this.resultItem('派生率', this.formatRate(this.retailOutput.derivationRate)) - ], 'TOTAL_BP_贡献度', this.retailOutput.totalBpContribution, true)] + return [ + this.groupedAnalysisRow([ + this.resultItem('存款年日均', this.retailOutput.balanceAvg), + this.resultItem('贷款年日均', this.retailOutput.loanAvg), + this.resultItem('派生率', this.formatRate(this.retailOutput.derivationRate)) + ]), + this.totalRow('TOTAL_BP_贡献度', this.retailOutput.totalBpContribution) + ] }, retailRelevanceRows() { return [ @@ -271,11 +241,14 @@ export default { ] }, corporateContributionRows() { - return [this.groupedAnalysisRow([ - this.resultItem('存款年日均', this.corpOutput.balanceAvg), - this.resultItem('贷款年日均', this.corpOutput.loanAvg), - this.resultItem('派生率', this.formatRate(this.corpOutput.derivationRate)) - ], 'TOTAL_BP_贡献度', this.corpOutput.totalBpContribution, true)] + return [ + this.groupedAnalysisRow([ + this.resultItem('存款年日均', this.corpOutput.balanceAvg), + this.resultItem('贷款年日均', this.corpOutput.loanAvg), + this.resultItem('派生率', this.formatRate(this.corpOutput.derivationRate)) + ]), + this.totalRow('TOTAL_BP_贡献度', this.corpOutput.totalBpContribution) + ] }, corporateRelevanceRows() { return [ @@ -287,23 +260,21 @@ export default { this.resultItem('中间业务_企业_贴现', this.formatBoolean(this.corpOutput.midEntDiscount)), this.resultItem('中间业务_企业_电费代扣', this.formatBoolean(this.corpOutput.midEntEleDdc)), this.resultItem('中间业务_企业_水费代扣', this.formatBoolean(this.corpOutput.midEntWaterDdc)) - ], 'BP_中间业务', this.corpOutput.bpMid), + ], 'BP_中间业务', this.corpOutput.bpMid, false, '中间业务'), this.groupedAnalysisRow([ this.resultItem('代发工资户数', this.corpOutput.payroll), this.resultItem('存量贷款余额', this.corpOutput.invLoanAmount) - ], 'BP_代发工资', this.corpOutput.bpPayroll), + ], 'BP_代发工资', this.corpOutput.bpPayroll, false, '代发工资'), + this.groupedAnalysisRow([ + this.resultItem('净身企业', this.formatBoolean(this.corpOutput.isCleanEnt)), + this.resultItem('开立基本结算账户', this.formatBoolean(this.corpOutput.hasSettleAcct)), + this.resultItem('绿色贷款', this.formatBoolean(this.corpOutput.isGreenLoan)), + this.resultItem('科技型企业', this.formatBoolean(this.corpOutput.isTechEnt)), + this.resultItem('贸易和建筑业企业', this.formatBoolean(this.corpOutput.isTradeBuildEnt)) + ], 'BP_企业客户类别', this.corpOutput.bpEntType, false, '客户类型'), this.totalRow('TOTAL_BP_关联度', this.corpOutput.totalBpRelevance) ] }, - corporateTypeRows() { - return [this.groupedAnalysisRow([ - this.resultItem('净身企业', this.formatBoolean(this.corpOutput.isCleanEnt)), - this.resultItem('开立基本结算账户', this.formatBoolean(this.corpOutput.hasSettleAcct)), - this.resultItem('绿色贷款', this.formatBoolean(this.corpOutput.isGreenLoan)), - this.resultItem('科技型企业', this.formatBoolean(this.corpOutput.isTechEnt)), - this.resultItem('贸易和建筑业企业', this.formatBoolean(this.corpOutput.isTradeBuildEnt)) - ], 'BP_企业客户类别', this.corpOutput.bpEntType)] - }, corporateRiskRows() { return [ this.analysisRow('借款期限', this.corpOutput.loanTerm, 'BP_贷款期限', this.corpOutput.bpLoanTerm), @@ -326,8 +297,8 @@ export default { resultItem(label, value) { return {label, value: this.formatOutputValue(value)} }, - groupedAnalysisRow(results, bpLabel, bpValue, total = false) { - return {results, bpLabel, bpValue: this.formatOutputValue(bpValue), total} + groupedAnalysisRow(results, bpLabel, bpValue, total = false, category = null) { + return {results, bpLabel, bpValue: this.formatOutputValue(bpValue), total, category} }, analysisRow(resultLabel, resultValue, bpLabel, bpValue) { return this.groupedAnalysisRow([this.resultItem(resultLabel, resultValue)], bpLabel, bpValue) @@ -445,6 +416,12 @@ export default { border-top: 1px dashed #ebeef5; } + .result-category { + margin-bottom: 8px; + color: #303133; + font-weight: 600; + } + .result-label { min-width: 0; color: #606266;