feat: 新增离职电子签流程审批功能,重构请假OCR业务逻辑

1.  新增离职电子签全流程校验:包括附件下载、PDF解析、表单与文书核验
2.  重构通用OCR模块,剥离业务逻辑到单独的请假附件检测模块
3.  新增PyMuPDF依赖用于PDF文本与扫描件OCR解析
4.  新增附件清单查询接口与离职附件检测工具类
This commit is contained in:
2026-08-31 11:55:25 +08:00
parent 2b0ddcdd32
commit 2daa1cd5a0
17 changed files with 1454 additions and 771 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ from app.service.hrbp.oa.common.oa_api import download_attachment
from app.service.hrbp.common.hr_session import build_hr_session, HRSessionExpiredError
from app.service.hrbp.ehr.common.hr_api.attendance import fetch_cur_user_info
from app.service.hrbp.ehr.common.hr_api.shift import fetch_all_shift
from app.utils.ocr import (
from app.service.hrbp.oa.leave.attachment_check import (
check_leave_attachment,
check_leave_attachment_detail,
marriage_within_one_year,