优化资产估值万元展示
This commit is contained in:
@@ -41,13 +41,13 @@
|
||||
<section class="detail-block">
|
||||
<div class="block-header section-header">
|
||||
<div class="block-title">总资产</div>
|
||||
<div class="section-summary-value">{{ formatAmount(totalAsset) }}</div>
|
||||
<div class="section-summary-value">{{ formatWanAmount(totalAsset) }}</div>
|
||||
</div>
|
||||
<div v-if="assetGroups.length" class="summary-group-list">
|
||||
<div v-for="group in assetGroups" :key="group.key" class="summary-group-item">
|
||||
<div class="summary-group-main">
|
||||
<span class="summary-group-name">{{ group.label }}</span>
|
||||
<span class="summary-group-amount">{{ formatAmount(group.amount) }}</span>
|
||||
<span class="summary-group-amount">{{ formatWanAmount(group.amount) }}</span>
|
||||
</div>
|
||||
<div class="summary-group-meta">
|
||||
<span class="summary-group-share-label">占比</span>
|
||||
@@ -236,6 +236,16 @@ export default {
|
||||
maximumFractionDigits: 2,
|
||||
})}`;
|
||||
},
|
||||
formatWanAmount(value) {
|
||||
const amount = Number(value || 0);
|
||||
if (!Number.isFinite(amount)) {
|
||||
return "-";
|
||||
}
|
||||
return `${(amount / 10000).toLocaleString("zh-CN", {
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2,
|
||||
})} 万元`;
|
||||
},
|
||||
buildAmountGroups(items, amountField, resolveLabel, totalAmount) {
|
||||
const groupMap = items.reduce((result, item, index) => {
|
||||
const label = resolveLabel(item);
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="家庭总资产" min-width="140">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ formatAmount(scope.row.totalAsset) }}</span>
|
||||
<span>{{ formatWanAmount(scope.row.totalAsset) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="风险情况" min-width="120">
|
||||
@@ -146,6 +146,16 @@ export default {
|
||||
maximumFractionDigits: 2,
|
||||
})} 元`;
|
||||
},
|
||||
formatWanAmount(value) {
|
||||
const amount = Number(value || 0);
|
||||
if (!Number.isFinite(amount)) {
|
||||
return "-";
|
||||
}
|
||||
return `${(amount / 10000).toLocaleString("zh-CN", {
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2,
|
||||
})} 万元`;
|
||||
},
|
||||
async handleToggleDetail(row) {
|
||||
if (!row || !row.staffIdCard) {
|
||||
return;
|
||||
@@ -191,7 +201,7 @@ export default {
|
||||
}
|
||||
const detail = this.detailCache[row.staffIdCard] || {};
|
||||
const summary = detail.summary || {};
|
||||
const evidenceSummary = `${row.staffName}家庭资产负债核查:家庭总年收入${this.formatAmount(row.totalIncome)},家庭总负债${this.formatAmount(row.totalDebt)},家庭总资产${this.formatAmount(row.totalAsset)},风险情况${row.riskLevelName || "-" }。`;
|
||||
const evidenceSummary = `${row.staffName}家庭资产负债核查:家庭总年收入${this.formatAmount(row.totalIncome)},家庭总负债${this.formatAmount(row.totalDebt)},家庭总资产${this.formatWanAmount(row.totalAsset)},风险情况${row.riskLevelName || "-" }。`;
|
||||
this.$emit("evidence-confirm", {
|
||||
evidenceType: "ASSET",
|
||||
relatedPersonName: row.staffName || "关联人员",
|
||||
|
||||
Reference in New Issue
Block a user