fix: 修复收入预算计算和添加存款计划明细功能

问题1:修复收入预算实际金额计算
- 在 BudgetRepository.cs 中修复 SelectedCategories.Split 逻辑
- 添加 StringSplitOptions.RemoveEmptyEntries 和 StringSplitOptions.TrimEntries 参数
- 添加单元测试验证修复

问题2:添加存款计划明细按钮和弹窗
- 在 BudgetCard.vue 中添加 'show-detail' emit
- 为存款计划卡片(category === 2)添加明细按钮
- 在 SavingsBudgetContent.vue 中实现明细弹窗
- 弹窗显示:收入预算、支出预算、计划存款公式、存款结果

问题3:统一卡片样式
- 修复 BudgetChartAnalysis.vue 的卡片样式
- 使用 16px 圆角、增强阴影和边框
This commit is contained in:
SunCheng
2026-02-14 12:58:26 +08:00
parent a7954f55ad
commit 6f725dbb13
4 changed files with 356 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
<!-- eslint-disable vue/no-v-html -->
<!-- eslint-disable vue/no-v-html -->
<template>
<!-- 普通预算卡片 -->
<div
@@ -115,6 +115,14 @@
title="查询关联账单"
@click.stop="handleQueryBills"
/>
<van-button
v-if="budget.category === 2"
icon="info-o"
size="small"
plain
title="计划存款明细"
@click.stop="$emit('show-detail', budget)"
/>
<template v-if="budget.category !== 2">
<van-button
icon="edit"
@@ -313,6 +321,14 @@
title="查询关联账单"
@click.stop="handleQueryBills"
/>
<van-button
v-if="budget.category === 2"
icon="info-o"
size="small"
plain
title="计划存款明细"
@click.stop="$emit('show-detail', budget)"
/>
<template v-if="budget.category !== 2">
<van-button
icon="edit"
@@ -432,7 +448,7 @@ const props = defineProps({
}
})
const emit = defineEmits(['click'])
const emit = defineEmits(['click', 'show-detail'])
const isExpanded = ref(props.budget.category === 2)
const showDescription = ref(false)