完善导检单预览

This commit is contained in:
xianyi
2025-12-25 17:27:01 +08:00
parent b552ff4963
commit 44e3926e14
5 changed files with 230 additions and 16 deletions

View File

@@ -18,6 +18,8 @@ import type {
TongyishuGetResponse,
InputTongyishuSignSubmit,
TongyishuSignSubmitResponse,
InputDaojiandanInfo,
DaojiandanGetResponse,
InputDaojiandanSignSubmit,
DaojiandanSignSubmitResponse,
InputCustomerDetailEdit,
@@ -240,6 +242,18 @@ export const checkNativePaymentStatus = (
).then(res => res.data);
};
/**
* 获取体检导检单PDF
*/
export const getDaojiandanPdf = (
data: InputDaojiandanInfo
): Promise<DaojiandanGetResponse> => {
return request.post<DaojiandanGetResponse>(
`${MEDICAL_EXAM_BASE_PATH}/daojiandan-get`,
data
).then(res => res.data);
};
/**
* 提交体检签名生成导检单PDF
*/

View File

@@ -346,6 +346,31 @@ export interface OutputTongyishuSignInfo {
*/
export type TongyishuSignSubmitResponse = CommonActionResult<OutputTongyishuSignInfo>;
/**
* 获取体检导检单PDF入参
*/
export interface InputDaojiandanInfo {
/** 体检ID */
exam_id: number;
}
/**
* 获取体检导检单PDF出参
*/
export interface OutputDaojiandanInfo {
/** 导检单文件名称 */
pdf_name?: string | null;
/** 导检单PDF文件地址 */
pdf_url?: string | null;
/** 提示信息 */
message?: string | null;
}
/**
* 获取体检导检单PDF响应
*/
export type DaojiandanGetResponse = CommonActionResult<OutputDaojiandanInfo>;
/**
* 提交体检签名生成导检单PDF入参
*/