Files
EmailBill/openspec/changes/archive/2026-02-17-fix-budget-and-ui-bugs/proposal.md
SunCheng c49f66757e
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Waiting to run
Docker Build & Deploy / Deploy to Production (push) Has been cancelled
Docker Build & Deploy / Cleanup Dangling Images (push) Has been cancelled
Docker Build & Deploy / WeChat Notification (push) Has been cancelled
1
2026-02-18 21:16:45 +08:00

43 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## Why
修复预算统计模块的6个影响用户体验的bug其中包括2个高优先级数据丢失问题预算明细弹窗显示"暂无数据"、燃尽图显示为直线和4个UI/交互问题路由跳转失败、删除功能无响应、控制台警告、金额不一致。这些bug影响了核心预算跟踪功能的可用性和准确性。
## What Changes
- 修复后端 Application 层 DTO 映射缺失,补充 `Description``Trend` 字段到 API 响应
- 修复前端路由配置,确保底部导航栏"统计"按钮跳转到正确路由
- 修复日历页面账单删除功能的事件绑定
- 修复 Vant 组件 `van-datetime-picker` 的全局注册问题
- 分析并修复预算卡片金额与关联账单列表金额不一致问题
- 添加后端和前端单元测试覆盖修复的场景
## Capabilities
### New Capabilities
<!-- 无新功能,仅修复现有功能 -->
### Modified Capabilities
- `budget-stats`: 修复预算统计API响应缺失 `Description``Trend` 字段,确保前端能正确展示明细弹窗和燃尽图
- `bill-management`: 修复账单删除功能的事件处理逻辑
- `navigation`: 修复前端路由配置和底部导航栏跳转
## Impact
**后端文件**:
- `Application/Dto/BudgetDto.cs` - 修改 `BudgetStatsDetail` 添加字段
- `Application/BudgetApplication.cs` - 修改 DTO 映射逻辑
- `WebApi.Test/` - 添加新的测试用例覆盖修复场景
**前端文件**:
- `Web/src/router/index.js` - 修复路由配置
- `Web/src/components/Budget/BudgetChartAnalysis.vue` - 验证数据正确使用
- `Web/src/components/Budget/BudgetCard.vue` - 分析账单金额不一致问题
- `Web/src/main.ts` 或全局组件注册文件 - 修复 Vant 组件注册
- 日历页面账单详情组件 - 修复删除按钮事件绑定
**API影响**:
- GET `/api/budget/stats/{category}` 响应结构变更(新增字段,向后兼容)
**依赖**:
- 无外部依赖变更