export type ReportStatus = "待模型团队阅读" | "编辑中" | "已发送业务团队"; export type ReportType = "监控报告" | "诊断报告"; export type MonitoringReport = { reportId: string; bank: string; modelName: string; modelId: string; version: string; monitorMonth: string; type: ReportType; status: ReportStatus; generatedAt: string; outputDate: string; unreadDays: number; synced: boolean; }; // 报告数据由后端报告接口提供。接口接入前保持为空,不使用本地样例。 export const REPORTS: MonitoringReport[] = []; export function latestReports(source: MonitoringReport[] = REPORTS): MonitoringReport[] { const latestMonth = source.reduce((latest, report) => report.monitorMonth > latest ? report.monitorMonth : latest, ""); return source.filter((report) => report.monitorMonth === latestMonth); } export function createReportForModel(modelId: string): MonitoringReport | null { void modelId; return null; }