SunCheng
|
4cc205fc25
|
feat(budget): 实现存款明细计算核心逻辑
- 添加 BudgetItemCalculator 辅助类,实现明细项计算规则
- 收入:实际>0取实际,否则取预算
- 支出:取MAX(预算, 实际)
- 硬性支出未发生:按天数折算
- 归档数据:直接使用实际值
- 实现月度和年度存款核心公式
- 月度:收入预算 + 本月年度收入 - 支出预算 - 本月年度支出
- 年度:归档已实收 + 未来收入预算 - 归档已实支 - 未来支出预算
- 定义存款明细数据结构
- SavingsDetail: 包含收入/支出明细列表和汇总
- BudgetDetailItem: 预算明细项(含计算用金额、计算说明等)
- SavingsCalculationSummary: 计算汇总信息
- 新增单元测试
- BudgetItemCalculatorTest: 11个测试覆盖所有计算规则
- BudgetSavingsCalculationTest: 6个测试验证核心公式
测试结果:所有测试通过 (366 passed, 0 failed)
|
2026-02-20 16:26:04 +08:00 |
|
SunCheng
|
9921cd5fdf
|
chore: migrate remaining ECharts components to Chart.js
- Migrated 4 components from ECharts to Chart.js:
* MonthlyExpenseCard.vue (折线图)
* DailyTrendChart.vue (双系列折线图)
* ExpenseCategoryCard.vue (环形图)
* BudgetChartAnalysis.vue (仪表盘 + 多种图表)
- Removed all ECharts imports and environment variable switches
- Unified all charts to use BaseChart.vue component
- Build verified: pnpm build success ✓
- No echarts imports remaining ✓
Refs: openspec/changes/migrate-remaining-echarts-to-chartjs
|
2026-02-16 21:55:38 +08:00 |
|
SunCheng
|
a88556c784
|
fix
|
2026-02-15 10:10:28 +08:00 |
|
SunCheng
|
a7954f55ad
|
feat: remove V1 calendar/budget/stats modules
- 删除 V1 前端页面 (CalendarView, BudgetView, statisticsV1)
- 移除 V1 路由配置 (/calendar, /budget, /)
- 清理路由守卫中的 V1 版本切换逻辑
- 移除设置页面中的版本切换功能
- 更新底部导航和登录重定向到 V2 路由
- 移除 App.vue 中 V1 页面的缓存配置
- 删除后端 TransactionRecordController.GetDailyStatisticsAsync (Obsolete)
- 删除 TransactionStatisticsController.GetBalanceStatisticsAsync
- 保留 V2 仍在使用的共享 API (GetUncoveredCategories, GetArchiveSummary, GetDailyStatistics)
- 保留 V2 使用的全局事件监听机制
- 所有测试通过 (210/210)
Breaking Change: V1 API 端点和路由将不可用
|
2026-02-14 00:01:44 +08:00 |
|
SunCheng
|
51172e8c5a
|
fix
Docker Build & Deploy / Build Docker Image (push) Successful in 4m27s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
|
2026-02-11 13:00:01 +08:00 |
|
SunCheng
|
d052ae5197
|
fix
|
2026-02-10 17:49:19 +08:00 |
|