修复项目名称显示问题
This commit is contained in:
@@ -10,6 +10,8 @@ import type {
|
|||||||
PhysicalExamCustomerListResponse,
|
PhysicalExamCustomerListResponse,
|
||||||
InputPhysicalExamProgressDetail,
|
InputPhysicalExamProgressDetail,
|
||||||
PhysicalExamProgressDetailResponse,
|
PhysicalExamProgressDetailResponse,
|
||||||
|
InputPhysicalExamProgress,
|
||||||
|
PhysicalExamProgressResponse,
|
||||||
InputCustomerDetail,
|
InputCustomerDetail,
|
||||||
CustomerDetailResponse,
|
CustomerDetailResponse,
|
||||||
InputMedicalExamCenterSignIn,
|
InputMedicalExamCenterSignIn,
|
||||||
@@ -142,6 +144,18 @@ export const getPhysicalExamProgressDetail = (
|
|||||||
).then(res => res.data);
|
).then(res => res.data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 体检进度
|
||||||
|
*/
|
||||||
|
export const getPhysicalExamProgress = (
|
||||||
|
data: InputPhysicalExamProgress
|
||||||
|
): Promise<PhysicalExamProgressResponse> => {
|
||||||
|
return request.post<PhysicalExamProgressResponse>(
|
||||||
|
`${MEDICAL_EXAM_BASE_PATH}/progress`,
|
||||||
|
data
|
||||||
|
).then(res => res.data);
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 客户详情
|
* 客户详情
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -223,6 +223,19 @@ export interface OutputPhysicalExamProgressDetail {
|
|||||||
*/
|
*/
|
||||||
export type PhysicalExamProgressDetailResponse = CommonActionResult<OutputPhysicalExamProgressDetail>;
|
export type PhysicalExamProgressDetailResponse = CommonActionResult<OutputPhysicalExamProgressDetail>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 体检进度入参
|
||||||
|
*/
|
||||||
|
export interface InputPhysicalExamProgress {
|
||||||
|
/** 体检ID */
|
||||||
|
physical_exam_id: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 体检进度接口返回
|
||||||
|
*/
|
||||||
|
export type PhysicalExamProgressResponse = CommonActionResult<PhysicalExamProgressItem[]>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 客户详情入参
|
* 客户详情入参
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react';
|
|||||||
|
|
||||||
import type { ExamClient, ExamModalTab } from '../../data/mockData';
|
import type { ExamClient, ExamModalTab } from '../../data/mockData';
|
||||||
import type { CustomerAppointmentInfo, CustomerExamAddItem, CustomerInfo, PhysicalExamProgressItem } from '../../api';
|
import type { CustomerAppointmentInfo, CustomerExamAddItem, CustomerInfo, PhysicalExamProgressItem } from '../../api';
|
||||||
import { getCustomerDetail, getPhysicalExamProgressDetail } from '../../api';
|
import { getCustomerDetail, getPhysicalExamProgress } from '../../api';
|
||||||
import { isExamActionDone } from '../../utils/examActions';
|
import { isExamActionDone } from '../../utils/examActions';
|
||||||
import { ExamDetailPanel } from './ExamDetailPanel';
|
import { ExamDetailPanel } from './ExamDetailPanel';
|
||||||
import { ExamAddonPanel } from './ExamAddonPanel';
|
import { ExamAddonPanel } from './ExamAddonPanel';
|
||||||
@@ -67,13 +67,13 @@ export const ExamModal = ({ client, tab, onTabChange, onClose }: ExamModalProps)
|
|||||||
setDetailLoading(true);
|
setDetailLoading(true);
|
||||||
Promise.all([
|
Promise.all([
|
||||||
getCustomerDetail({ physical_exam_id }),
|
getCustomerDetail({ physical_exam_id }),
|
||||||
getPhysicalExamProgressDetail({ physical_exam_id }),
|
getPhysicalExamProgress({ physical_exam_id }),
|
||||||
])
|
])
|
||||||
.then(([detailRes, progressRes]) => {
|
.then(([detailRes, progressRes]) => {
|
||||||
setCustomerInfo(detailRes.Data?.customerInfo ?? null);
|
setCustomerInfo(detailRes.Data?.customerInfo ?? null);
|
||||||
setAppointmentInfo(detailRes.Data?.appointmentInfo ?? null);
|
setAppointmentInfo(detailRes.Data?.appointmentInfo ?? null);
|
||||||
setAddItemInfoList(detailRes.Data?.addItemInfoList ?? null);
|
setAddItemInfoList(detailRes.Data?.addItemInfoList ?? null);
|
||||||
setProgressList(progressRes.Data?.examProgressesList ?? null);
|
setProgressList(progressRes.Data ?? null);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error('获取客户详情/进度失败', err);
|
console.error('获取客户详情/进度失败', err);
|
||||||
|
|||||||
Reference in New Issue
Block a user