feat: 更新财务系统功能和界面优化

- 优化财务仪表板数据展示
- 增强账户管理功能
- 改进预算和分类管理
- 完善报表和统计分析
- 优化交易管理界面
- 更新Workspace工作区

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
woshiqp465
2025-10-05 15:10:06 +08:00
parent a1dc8de7e5
commit 1def26f74f
35 changed files with 4449 additions and 3000 deletions

View File

@@ -1,4 +1,10 @@
import { MOCK_ACCOUNTS, MOCK_BUDGETS, MOCK_CATEGORIES, MOCK_CURRENCIES, MOCK_EXCHANGE_RATES } from './mock-data';
import {
MOCK_ACCOUNTS,
MOCK_BUDGETS,
MOCK_CATEGORIES,
MOCK_CURRENCIES,
MOCK_EXCHANGE_RATES,
} from './mock-data';
export function listAccounts() {
return MOCK_ACCOUNTS;
@@ -31,7 +37,7 @@ export function createCategoryRecord(category: any) {
}
export function updateCategoryRecord(id: number, category: any) {
const index = MOCK_CATEGORIES.findIndex(c => c.id === id);
const index = MOCK_CATEGORIES.findIndex((c) => c.id === id);
if (index !== -1) {
MOCK_CATEGORIES[index] = { ...MOCK_CATEGORIES[index], ...category };
return MOCK_CATEGORIES[index];
@@ -40,7 +46,7 @@ export function updateCategoryRecord(id: number, category: any) {
}
export function deleteCategoryRecord(id: number) {
const index = MOCK_CATEGORIES.findIndex(c => c.id === id);
const index = MOCK_CATEGORIES.findIndex((c) => c.id === id);
if (index !== -1) {
MOCK_CATEGORIES.splice(index, 1);
return true;