添加接口

- 体检客户列表
- 体检进度详情
- 客户详情
This commit is contained in:
xianyi
2025-12-10 17:28:15 +08:00
parent f4d5c085ee
commit 0efc4c186e
5 changed files with 428 additions and 71 deletions

View File

@@ -6,16 +6,16 @@ import type {
RevenueStatisticsResponse,
InputTodayExamProgress,
TodayExamProgressResponse,
InputPhysicalExamCustomerList,
PhysicalExamCustomerListResponse,
InputPhysicalExamProgressDetail,
PhysicalExamProgressDetailResponse,
InputCustomerDetail,
CustomerDetailResponse,
} from './types';
/**
* 自助机HIS接口
* 基础路径: /api/his-web/self-service-machine/
*/
const HIS_BASE_PATH = '/api/his-web/self-service-machine';
/**
* 体检中心HIS接口
* 基础路径: /api/his-web/medical-exam-center-app/
*/
const MEDICAL_EXAM_BASE_PATH = '/api/his-web/medical-exam-center-app';
@@ -62,3 +62,39 @@ export const getTodayExamProgress = (
).then(res => res.data);
};
/**
* 体检客户列表
*/
export const getPhysicalExamCustomerList = (
data: InputPhysicalExamCustomerList
): Promise<PhysicalExamCustomerListResponse> => {
return request.post<PhysicalExamCustomerListResponse>(
`${MEDICAL_EXAM_BASE_PATH}/customer-list`,
data
).then(res => res.data);
};
/**
* 体检进度详情
*/
export const getPhysicalExamProgressDetail = (
data: InputPhysicalExamProgressDetail
): Promise<PhysicalExamProgressDetailResponse> => {
return request.post<PhysicalExamProgressDetailResponse>(
`${MEDICAL_EXAM_BASE_PATH}/progress`,
data
).then(res => res.data);
};
/**
* 客户详情
*/
export const getCustomerDetail = (
data: InputCustomerDetail
): Promise<CustomerDetailResponse> => {
return request.post<CustomerDetailResponse>(
`${MEDICAL_EXAM_BASE_PATH}/customer-detail`,
data
).then(res => res.data);
};