diff --git a/src/api/his.ts b/src/api/his.ts index 14408d4..89ffc47 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -22,6 +22,8 @@ import type { DaojiandanGetResponse, InputDaojiandanSignSubmit, DaojiandanSignSubmitResponse, + InputAddItemBillInfo, + AddItemBillGetResponse, InputAddItemBillSignSubmit, AddItemBillSignSubmitResponse, InputDaojiandanPrintStatus, @@ -306,6 +308,18 @@ export const submitDaojiandanSign = ( ).then(res => res.data); }; +/** + * 获取体检加项单PDF + */ +export const getAddItemBillPdf = ( + data: InputAddItemBillInfo +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/add-item-bill-get`, + data + ).then(res => res.data); +}; + /** * 提交体检加项单签名生成PDF */ diff --git a/src/api/types.ts b/src/api/types.ts index 7cb852b..441e44a 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -400,6 +400,31 @@ export interface OutputDaojiandanSignInfo { */ export type DaojiandanSignSubmitResponse = CommonActionResult; +/** + * 获取体检加项单PDF入参 + */ +export interface InputAddItemBillInfo { + /** 体检ID */ + exam_id: number; +} + +/** + * 获取体检加项单PDF出参 + */ +export interface OutputAddItemBillInfo { + /** 加项单文件名称 */ + pdf_name?: string | null; + /** PDF文件地址 */ + pdf_url?: string | null; + /** 消息内容 */ + message?: string | null; +} + +/** + * 获取体检加项单PDF响应 + */ +export type AddItemBillGetResponse = CommonActionResult; + /** * 提交体检加项单签名入参 */