调整专项核查详情展示并补充家庭资产负债测试数据
This commit is contained in:
@@ -24,32 +24,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="detail-block">
|
||||
<div class="block-header">
|
||||
<div>
|
||||
<div class="block-title">资产明细</div>
|
||||
<div class="block-subtitle">展示本人及配偶资产小计与明细列表</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="!assetDetail.missingSelfAssetInfo" class="detail-summary">
|
||||
<span>本人资产小计:{{ formatAmount(assetDetail.selfTotalAsset) }}</span>
|
||||
<span>配偶资产小计:{{ formatAmount(assetDetail.spouseTotalAsset) }}</span>
|
||||
</div>
|
||||
<el-table v-if="assetItems.length" :data="assetItems" size="mini" class="detail-table">
|
||||
<el-table-column prop="assetName" label="资产名称" min-width="140" />
|
||||
<el-table-column prop="assetMainType" label="资产大类" min-width="100" />
|
||||
<el-table-column prop="assetSubType" label="资产小类" min-width="120" />
|
||||
<el-table-column prop="holderName" label="持有人" min-width="100" />
|
||||
<el-table-column label="当前估值" min-width="120">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ formatAmount(scope.row.currentValue) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="valuationDate" label="估值日期" min-width="120" />
|
||||
</el-table>
|
||||
<el-empty v-else :image-size="64" description="暂无资产明细" />
|
||||
</section>
|
||||
|
||||
<section class="detail-block">
|
||||
<div class="block-header">
|
||||
<div>
|
||||
@@ -72,15 +46,51 @@
|
||||
<span>{{ formatAmount(scope.row.principalBalance) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="queryDate" label="查询日期" min-width="120" />
|
||||
<el-table-column label="查询日期" min-width="160">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ formatDetailDateTime(scope.row.queryDate) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-empty v-else :image-size="64" description="暂无负债明细" />
|
||||
</section>
|
||||
|
||||
<section class="detail-block">
|
||||
<div class="block-header">
|
||||
<div>
|
||||
<div class="block-title">资产明细</div>
|
||||
<div class="block-subtitle">展示本人及配偶资产小计与明细列表</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="!assetDetail.missingSelfAssetInfo" class="detail-summary">
|
||||
<span>本人资产小计:{{ formatAmount(assetDetail.selfTotalAsset) }}</span>
|
||||
<span>配偶资产小计:{{ formatAmount(assetDetail.spouseTotalAsset) }}</span>
|
||||
</div>
|
||||
<el-table v-if="assetItems.length" :data="assetItems" size="mini" class="detail-table">
|
||||
<el-table-column prop="assetName" label="资产名称" min-width="140" />
|
||||
<el-table-column prop="assetMainType" label="资产大类" min-width="100" />
|
||||
<el-table-column prop="assetSubType" label="资产小类" min-width="120" />
|
||||
<el-table-column prop="holderName" label="持有人" min-width="100" />
|
||||
<el-table-column label="当前估值" min-width="120">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ formatAmount(scope.row.currentValue) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="估值日期" min-width="160">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ formatDetailDateTime(scope.row.valuationDate) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-empty v-else :image-size="64" description="暂无资产明细" />
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { parseTime } from "@/utils/ruoyi";
|
||||
|
||||
export default {
|
||||
name: "FamilyAssetLiabilityDetail",
|
||||
props: {
|
||||
@@ -140,6 +150,17 @@ export default {
|
||||
maximumFractionDigits: 2,
|
||||
})} 元`;
|
||||
},
|
||||
formatDetailDateTime(value) {
|
||||
if (!value) {
|
||||
return "-";
|
||||
}
|
||||
const formatted = parseTime(value, "{y}-{m}-{d} {h}:{i}:{s}");
|
||||
if (!formatted) {
|
||||
return "-";
|
||||
}
|
||||
const hasTime = !formatted.endsWith(" 00:00:00");
|
||||
return parseTime(value, hasTime ? "{y}-{m}-{d} {h}:{i}:{s}" : "{y}-{m}-{d}") || "-";
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user