修复项目名称显示问题

This commit is contained in:
xianyi
2026-01-12 10:44:13 +08:00
parent c2e0f0f382
commit 9e341eb4eb
3 changed files with 30 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react';
import type { ExamClient, ExamModalTab } from '../../data/mockData';
import type { CustomerAppointmentInfo, CustomerExamAddItem, CustomerInfo, PhysicalExamProgressItem } from '../../api';
import { getCustomerDetail, getPhysicalExamProgressDetail } from '../../api';
import { getCustomerDetail, getPhysicalExamProgress } from '../../api';
import { isExamActionDone } from '../../utils/examActions';
import { ExamDetailPanel } from './ExamDetailPanel';
import { ExamAddonPanel } from './ExamAddonPanel';
@@ -67,13 +67,13 @@ export const ExamModal = ({ client, tab, onTabChange, onClose }: ExamModalProps)
setDetailLoading(true);
Promise.all([
getCustomerDetail({ physical_exam_id }),
getPhysicalExamProgressDetail({ physical_exam_id }),
getPhysicalExamProgress({ physical_exam_id }),
])
.then(([detailRes, progressRes]) => {
setCustomerInfo(detailRes.Data?.customerInfo ?? null);
setAppointmentInfo(detailRes.Data?.appointmentInfo ?? null);
setAddItemInfoList(detailRes.Data?.addItemInfoList ?? null);
setProgressList(progressRes.Data?.examProgressesList ?? null);
setProgressList(progressRes.Data ?? null);
})
.catch((err) => {
console.error('获取客户详情/进度失败', err);