修复项目名称显示问题
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user