diff --git a/src/api/his.ts b/src/api/his.ts index 7b70e09..d664df6 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -20,6 +20,8 @@ import type { TongyishuSignSubmitResponse, InputCustomerDetailEdit, CustomerDetailEditResponse, + InputPhysicalExamAddItem, + PhysicalExamAddItemListResponse, } from './types'; /** @@ -170,3 +172,15 @@ export const editCustomerDetail = ( ).then(res => res.data); }; +/** + * 搜索体检加项 + */ +export const searchPhysicalExamAddItem = ( + data: InputPhysicalExamAddItem +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/add-item-list`, + data + ).then(res => res.data); +}; + diff --git a/src/api/types.ts b/src/api/types.ts index b98ba9a..998df03 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -358,3 +358,34 @@ export interface OutputCustomerDetailEdit { */ export type CustomerDetailEditResponse = CommonActionResult; +/** + * 体检加项列表信息入参 + */ +export interface InputPhysicalExamAddItem { + /** 项目名称(必填,空字符串表示获取全部) */ + item_name: string; +} + +/** + * 体检加项列表信息出参 + */ +export interface OutputPhysicalExamAddItem { + /** 项目ID */ + item_id?: number | null; + /** 项目名称 */ + item_name?: string | null; + /** 实收金额 */ + actual_received_amount?: number | null; + /** 原价 */ + original_price?: number | null; + /** 折扣率(含折扣单位,如8.0折) */ + discount_rate?: string | null; + /** 次数 */ + times?: number | null; +} + +/** + * 体检加项列表信息响应 + */ +export type PhysicalExamAddItemListResponse = CommonActionResult; +