添加体检用餐登记列表接口

This commit is contained in:
xianyi
2025-12-16 10:09:09 +08:00
parent 8a98b732ef
commit 9c6a0c5d81
2 changed files with 59 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ import type {
CustomerDetailEditResponse,
InputPhysicalExamAddItem,
PhysicalExamAddItemListResponse,
InputPhysicalExamDiningLog,
PhysicalExamDiningLogResponse,
} from './types';
/**
@@ -206,3 +208,15 @@ export const submitDaojiandanSign = (
).then(res => res.data);
};
/**
* 体检用餐登记列表
*/
export const getPhysicalExamDiningList = (
data: InputPhysicalExamDiningLog
): Promise<PhysicalExamDiningLogResponse> => {
return request.post<PhysicalExamDiningLogResponse>(
`${MEDICAL_EXAM_BASE_PATH}/dining-list`,
data
).then(res => res.data);
};

View File

@@ -416,3 +416,48 @@ export interface OutputPhysicalExamAddItem {
*/
export type PhysicalExamAddItemListResponse = CommonActionResult<OutputPhysicalExamAddItem[]>;
/**
* 体检用餐登记列表入参
*/
export interface InputPhysicalExamDiningLog {
/** 用餐类型1-全部 2-已用餐 3-未用餐) */
dining_type: number;
}
/**
* 体检用餐登记列表项
*/
export interface PoPhysicalExamDiningLog {
/** 客户姓名 */
customer_name?: string | null;
/** 体检ID */
physical_exam_id?: number | null;
/** 体检编号 */
exam_no?: string | null;
/** 体检状态 */
physical_exam_status?: number | null;
/** 体检状态名称 */
physical_exam_status_name?: string | null;
/** 是否用餐1-已用餐 0-未用餐) */
is_dining?: number | null;
}
/**
* 体检用餐登记列表出参
*/
export interface OutputPhysicalExamDiningLog {
/** 今日体检人数 */
today_exam_count?: number | null;
/** 已用餐人数 */
dined_count?: number | null;
/** 未用餐人数 */
not_dined_count?: number | null;
/** 用餐登记列表 */
DiningList?: PoPhysicalExamDiningLog[] | null;
}
/**
* 体检用餐登记列表响应
*/
export type PhysicalExamDiningLogResponse = CommonActionResult<OutputPhysicalExamDiningLog>;