From f419eefc754bf8a4a59035ef51b907d31c99cced Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期二, 08 九月 2026 17:11:52 +0800
Subject: [PATCH] 同步化成来源详情表单修复基线

---
 src/api/formationReports.ts |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/api/formationReports.ts b/src/api/formationReports.ts
index ed0c7c2..01a0966 100644
--- a/src/api/formationReports.ts
+++ b/src/api/formationReports.ts
@@ -1,9 +1,9 @@
 import { request, type ApiResponse } from './request'
-import type { PersistedTestRecord } from './tests'
+import type { PersistedTestRecord, TestConsoleDetail } from './tests'
 import type { ReportMetricKey } from '@/utils/reportMeasurementChart'
 
 export interface FormationSelection { testId: number; testBatteryId: number }
-export interface FormationCandidate { selection: FormationSelection; name: string; type: string; groupId: number; batteryGroup: string; batteryNo: string }
+export interface FormationCandidate { selection: FormationSelection; name: string; type: string; groupId: number; batteryGroup: string; batteryNo: string; consoleDetail?: TestConsoleDetail | null }
 export interface FormationField { key: string; scope: 'detail' | 'cycle'; kind: 'battery' | 'metric' | 'manual'; displayName: string; unit: string; fieldDefinitionId?: number | null }
 export interface FormationChargeStep { stepNo: number; name: string; stepType: string; endVoltage: number | null; direction?: 'CHARGE' | 'DISCHARGE' | 'UNKNOWN' }
 export interface FormationItem {
@@ -18,7 +18,7 @@
 }
 export interface FormationMatrix { items: FormationItem[]; cycleNos: number[] }
 export interface FormationStepSelection { charge: number[]; discharge: number[] }
-export interface FormationSettings { fields: FormationField[]; values: Record<string, string>; chargeStepSelections: Record<string, number>; metrics?: ReportMetricKey[]; seriesColors?: Record<string, string>; manualChargeSteps?: Record<string, number[]>; curveStepSelections?: Record<string, FormationStepSelection>; hiddenSeriesKeys?: string[]; activeCycle?: number | null }
+export interface FormationSettings { fields: FormationField[]; values: Record<string, string>; chargeStepSelections: Record<string, number>; metrics?: ReportMetricKey[]; seriesColors?: Record<string, string>; manualChargeSteps?: Record<string, number[]>; curveStepSelections?: Record<string, FormationStepSelection>; hiddenSeriesKeys?: string[]; activeCycle?: number | null; sourceDetailOverrides?: Record<string, { experimentName?: string; fieldValues?: Record<string, string> }> }
 export interface FormationSummary { id: number; name: string; creator: string; createdAt: number; testName?: string; batteryGroup?: string }
 export interface FormationVersion { versionNo: number; operatorName: string; createdAt: number; changeSummary: string }
 export interface SavedFormationReport extends FormationSummary, FormationMatrix {

--
Gitblit v1.7.1