From dd53918e18630ce3da201b6d36621663e9559046 Mon Sep 17 00:00:00 2001 From: xianyi Date: Fri, 26 Dec 2025 10:01:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=B7=B2=E6=B6=88=E8=80=97?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/types.ts | 2 ++ src/components/exam/ExamDetailPanel.tsx | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/types.ts b/src/api/types.ts index e250c29..a094702 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -239,6 +239,8 @@ export interface CustomerAppointmentInfo { sign_in_time?: string | null; physical_exam_complete_time?: string | null; package_name?: string | null; + /** 已消耗时长 */ + time_spent?: string | null; } /** diff --git a/src/components/exam/ExamDetailPanel.tsx b/src/components/exam/ExamDetailPanel.tsx index fb78412..40192a3 100644 --- a/src/components/exam/ExamDetailPanel.tsx +++ b/src/components/exam/ExamDetailPanel.tsx @@ -329,9 +329,7 @@ export const ExamDetailPanel = ({
已消耗时长: - {appointmentInfo?.physical_exam_complete_time && appointmentInfo?.sign_in_time - ? `${appointmentInfo.physical_exam_complete_time} - ${appointmentInfo.sign_in_time}` - : client.elapsed} + {loading ? '' : (appointmentInfo?.time_spent || client.elapsed)}