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)}