From 4bdfc23ffd73fa8dc8a0cf4f6206e90d4a6917f7 Mon Sep 17 00:00:00 2001 From: xianyi Date: Mon, 5 Jan 2026 14:57:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E4=BD=93=E6=A3=80=E5=8A=A0=E9=A1=B9=E5=8D=95PDF=20=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/his.ts | 14 ++++++++++++++ src/api/types.ts | 25 +++++++++++++++++++++++++ 2 files changed, 39 insertions(+) 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; + /** * 提交体检加项单签名入参 */