添加提交体检签名生成导检单PDF接口
This commit is contained in:
@@ -18,6 +18,8 @@ import type {
|
|||||||
TongyishuGetResponse,
|
TongyishuGetResponse,
|
||||||
InputTongyishuSignSubmit,
|
InputTongyishuSignSubmit,
|
||||||
TongyishuSignSubmitResponse,
|
TongyishuSignSubmitResponse,
|
||||||
|
InputDaojiandanSignSubmit,
|
||||||
|
DaojiandanSignSubmitResponse,
|
||||||
InputCustomerDetailEdit,
|
InputCustomerDetailEdit,
|
||||||
CustomerDetailEditResponse,
|
CustomerDetailEditResponse,
|
||||||
InputPhysicalExamAddItem,
|
InputPhysicalExamAddItem,
|
||||||
@@ -184,3 +186,23 @@ export const searchPhysicalExamAddItem = (
|
|||||||
).then(res => res.data);
|
).then(res => res.data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提交体检签名生成导检单PDF
|
||||||
|
*/
|
||||||
|
export const submitDaojiandanSign = (
|
||||||
|
data: InputDaojiandanSignSubmit
|
||||||
|
): Promise<DaojiandanSignSubmitResponse> => {
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append('sign_file', data.sign_file);
|
||||||
|
|
||||||
|
return request.post<DaojiandanSignSubmitResponse>(
|
||||||
|
`${MEDICAL_EXAM_BASE_PATH}/daojiandan-sign-submit?exam_id=${data.exam_id}`,
|
||||||
|
formData,
|
||||||
|
{
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'multipart/form-data',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
).then(res => res.data);
|
||||||
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -336,6 +336,33 @@ export interface OutputTongyishuSignInfo {
|
|||||||
*/
|
*/
|
||||||
export type TongyishuSignSubmitResponse = CommonActionResult<OutputTongyishuSignInfo>;
|
export type TongyishuSignSubmitResponse = CommonActionResult<OutputTongyishuSignInfo>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提交体检签名生成导检单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<OutputDaojiandanSignInfo>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 客户信息编辑入参
|
* 客户信息编辑入参
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user