From 1b0179bba53bcc75e8ae358a4a58e8c8fb33c043 Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期三, 09 九月 2026 18:00:09 +0800
Subject: [PATCH] 接入化成报表真实页面与充放电曲线
---
src/api/formationReports.ts | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/api/formationReports.ts b/src/api/formationReports.ts
index 8c4d0be..8a8e835 100644
--- a/src/api/formationReports.ts
+++ b/src/api/formationReports.ts
@@ -5,8 +5,8 @@
export interface FormationSelection { testId: number; testBatteryId: number }
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 FormationField { key: string; scope: 'detail' | 'cycle'; kind: 'battery' | 'metric' | 'manual' | 'calculated'; displayName: string; unit: string; fieldDefinitionId?: number | null }
+export interface FormationChargeStep { stepNo: number; name: string; stepType: string; endVoltage: number | null; capacity?: number | null; direction?: 'CHARGE' | 'DISCHARGE' | 'UNKNOWN' }
export interface FormationItem {
source: FormationCandidate
cycleNos: number[]
@@ -26,6 +26,7 @@
description: string; settings: FormationSettings; versionNo: number; operatorName: string; versionCreatedAt: number; changeSummary: string
units: Record<string, string>; displayUnits: Record<string, string>
curveMode?: 'actual-steps'
+ calculatedValues: Record<string, number | null>
}
export interface FormationTemplate { id: number; name: string; type: 'formation'; fields: FormationField[]; creator: string; updatedAt: number }
export interface CreateFormationReport { name: string; description: string; selections: FormationSelection[]; settings: FormationSettings }
--
Gitblit v1.7.1