From 626147efdf2f4ad7fee73adc13567216d9dd7d46 Mon Sep 17 00:00:00 2001 From: xianyi Date: Tue, 16 Dec 2025 09:39:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8F=90=E4=BA=A4=E4=BD=93?= =?UTF-8?q?=E6=A3=80=E7=AD=BE=E5=90=8D=E7=94=9F=E6=88=90=E5=AF=BC=E6=A3=80?= =?UTF-8?q?=E5=8D=95PDF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/his.ts | 22 ++++++++++++++++++++++ src/api/types.ts | 27 +++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/src/api/his.ts b/src/api/his.ts index d664df6..5c54e71 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -18,6 +18,8 @@ import type { TongyishuGetResponse, InputTongyishuSignSubmit, TongyishuSignSubmitResponse, + InputDaojiandanSignSubmit, + DaojiandanSignSubmitResponse, InputCustomerDetailEdit, CustomerDetailEditResponse, InputPhysicalExamAddItem, @@ -184,3 +186,23 @@ export const searchPhysicalExamAddItem = ( ).then(res => res.data); }; +/** + * 提交体检签名生成导检单PDF + */ +export const submitDaojiandanSign = ( + data: InputDaojiandanSignSubmit +): Promise => { + const formData = new FormData(); + formData.append('sign_file', data.sign_file); + + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/daojiandan-sign-submit?exam_id=${data.exam_id}`, + formData, + { + headers: { + 'Content-Type': 'multipart/form-data', + }, + } + ).then(res => res.data); +}; + diff --git a/src/api/types.ts b/src/api/types.ts index 998df03..945b7b6 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -336,6 +336,33 @@ export interface OutputTongyishuSignInfo { */ export type TongyishuSignSubmitResponse = CommonActionResult; +/** + * 提交体检签名生成导检单PDF入参 + */ +export interface InputDaojiandanSignSubmit { + /** 体检ID */ + exam_id: number; + /** 签名图片文件 */ + sign_file: File | Blob; +} + +/** + * 提交体检签名生成导检单PDF出参 + */ +export interface OutputDaojiandanSignInfo { + /** 导检单文件名称 */ + pdf_name?: string | null; + /** PDF文件地址 */ + pdf_url?: string | null; + /** 消息内容 */ + message?: string | null; +} + +/** + * 提交体检签名生成导检单PDF响应 + */ +export type DaojiandanSignSubmitResponse = CommonActionResult; + /** * 客户信息编辑入参 */