diff --git a/Web/src/components/Budget/BudgetCard.vue b/Web/src/components/Budget/BudgetCard.vue index 2c61669..28faa58 100644 --- a/Web/src/components/Budget/BudgetCard.vue +++ b/Web/src/components/Budget/BudgetCard.vue @@ -7,13 +7,29 @@
无收入预算
"); + else + { + description.Append("| 名称 | 金额 | 折算 | 合计 |
|---|---|---|---|
| {item.Name} | {item.Limit:N0} | x{item.Factor:0.##} | {item.Total:N0} |
收入合计: {incomeLimitAtPeriod:N0}
"); + + description.Append("无支出预算
"); + else + { + description.Append("| 名称 | 金额 | 折算 | 合计 |
|---|---|---|---|
| {item.Name} | {item.Limit:N0} | x{item.Factor:0.##} | {item.Total:N0} |
支出合计: {expenseLimitAtPeriod:N0}
"); + + description.Append("计划存款 = 收入 {incomeLimitAtPeriod:N0} - 支出 {expenseLimitAtPeriod:N0}
"); + description.Append($"最终目标:{incomeLimitAtPeriod - expenseLimitAtPeriod:N0}
"); + var savingsCategories = await configService.GetConfigByKeyAsync