diff --git a/src/api/his.ts b/src/api/his.ts index 77c211a..4a42c5d 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -28,6 +28,8 @@ import type { AddItemBillSignSubmitResponse, InputDaojiandanPrintStatus, DaojiandanPrintStatusResponse, + InputTijianPdfFileInfo, + TijianPdfFileGetResponse, InputCustomerDetailEdit, CustomerDetailEditResponse, InputPhysicalExamAddItem, @@ -524,3 +526,15 @@ export const saveReportSendAddress = ( ).then(res => res.data); }; +/** + * 获取客户体检同意书PDF(导检单、知情同意书、加项单) + */ +export const getTijianPdfFile = ( + data: InputTijianPdfFileInfo +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/pdf-file-get`, + data + ).then(res => res.data); +}; + diff --git a/src/api/types.ts b/src/api/types.ts index a7cc849..a4b5414 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -1180,3 +1180,44 @@ export interface OutputExpressContact { */ export type ReportSendAddressSaveResponse = CommonActionResult; +/** + * 获取客户体检同意书PDF(导检单、知情同意书、加项单)入参 + */ +export interface InputTijianPdfFileInfo { + /** 体检ID */ + exam_id: number; +} + +/** + * 获取客户体检同意书PDF(导检单、知情同意书、加项单)出参 + */ +export interface OutputTijianPdfFileInfo { + /** pdf类型(1-导检单 2-知情同意书 3-加项单) */ + pdf_type?: number | null; + /** pdf类型名称 */ + pdf_type_name?: string | null; + /** PDF文件组合代码 */ + combination_code?: number | null; + /** PDF文件名称 */ + pdf_name?: string | null; + /** 原始PDF文件地址 */ + pdf_url?: string | null; + /** 签名图片地址 */ + sign_pic_url?: string | null; + /** 签名后的PDF文件地址 */ + sign_pdf_url?: string | null; + /** 是否签名标识(1-已签名 0-未签名) */ + is_sign?: number | null; + /** 签名标识名称 */ + is_sign_name?: string | null; + /** 是否支付(1-未支付 2-已支付) */ + is_pay?: number | null; + /** 是否支付名称 */ + is_pay_name?: string | null; +} + +/** + * 获取客户体检同意书PDF(导检单、知情同意书、加项单)响应 + */ +export type TijianPdfFileGetResponse = CommonActionResult; +