feat: 添加 /api/review-stats 端点和仪表盘实时数据集成

This commit is contained in:
clz
2026-01-10 21:18:38 +08:00
parent 06f6c847d8
commit 6374f55aa1
5 changed files with 668 additions and 18 deletions

View File

@@ -318,3 +318,14 @@ export async function createManualBills(bills: ManualBillInput[]): Promise<Creat
return response.json();
}
// 获取待复核数据统计
export async function fetchReviewStats(): Promise<ReviewResponse> {
const response = await fetch(`${API_BASE}/api/review-stats`);
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return response.json();
}