完善已消耗时间

This commit is contained in:
xianyi
2025-12-26 10:01:50 +08:00
parent c46df45495
commit dd53918e18
2 changed files with 3 additions and 3 deletions
+2
View File
@@ -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;
}
/**
+1 -3
View File
@@ -329,9 +329,7 @@ export const ExamDetailPanel = ({
<div>
已消耗时长:
<span className='text-gray-900'>
{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)}
</span>
</div>
<div className='col-span-2'>