添加提交签名接口
This commit is contained in:
@@ -16,6 +16,8 @@ import type {
|
||||
PhysicalExamSignInResponse,
|
||||
InputTongyishuInfo,
|
||||
TongyishuGetResponse,
|
||||
InputTongyishuSignSubmit,
|
||||
TongyishuSignSubmitResponse,
|
||||
} from './types';
|
||||
|
||||
/**
|
||||
@@ -126,3 +128,23 @@ export const getTongyishuPdf = (
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
/**
|
||||
* 提交体检知情同意书签名(上传签名图片)
|
||||
*/
|
||||
export const submitTongyishuSign = (
|
||||
data: InputTongyishuSignSubmit
|
||||
): Promise<TongyishuSignSubmitResponse> => {
|
||||
const formData = new FormData();
|
||||
formData.append('sign_file', data.sign_file);
|
||||
|
||||
return request.post<TongyishuSignSubmitResponse>(
|
||||
`${MEDICAL_EXAM_BASE_PATH}/tongyishu-sign-submit?exam_id=${data.exam_id}&combination_code=${data.combination_code}`,
|
||||
formData,
|
||||
{
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
}
|
||||
).then(res => res.data);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user