diff --git a/src/api/his.ts b/src/api/his.ts index 5c54e71..ba4fe52 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -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 => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/dining-list`, + data + ).then(res => res.data); +}; + diff --git a/src/api/types.ts b/src/api/types.ts index 945b7b6..cebe6e4 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -416,3 +416,48 @@ export interface OutputPhysicalExamAddItem { */ export type PhysicalExamAddItemListResponse = CommonActionResult; +/** + * 体检用餐登记列表入参 + */ +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; +