feat(sdk): hr_sdk 0.2.3 / printkit 0.1.1(预支台账与流程详细数据导出、打印机部门名解析)

hr_sdk: ledger.export_advance_pay 增强;workflow 新增 list_supervised/task_ids/form_info/export_detail(全部流程详细数据 38 列,含收款银行/账号)。
printkit: registry 支持按部门名(humanresource/it)解析打印机,供 XQ0012 选机。
This commit is contained in:
2026-11-16 17:14:13 +08:00
parent db6fda77c9
commit a3320926de
14 changed files with 487 additions and 28 deletions
+9
View File
@@ -28,10 +28,19 @@ path = roster.export_one(client, "离职", leave_start="2026-10-01",
leave_end="2026-11-09", output=out / "离职.xlsx")
path = ledger.export_transfer(client, output=out / "调动台账.xlsx") # 默认近 30 天
path = ledger.export_pre_entry(client, output=out / "预入职台账.xlsx")
path = ledger.export_advance_pay(client, month="202611", # 留空=当月
output=out / "预支报酬台账_202611.xlsx")
rows = org.rows(client) # 原始记录
docs = workflow.list_docs(client, subject="请假") # 待办单据
form = workflow.form_data(client, docs[0]["businessKey"], docs[0]["formId"])
flows = workflow.list_supervised(client, title="预支", # 流程监控 → 全部流程(已办结)
begin_date="2026-10-01", end_date="2026-10-31")
tids = workflow.task_ids(client, flows[0]["processId"]) # 流程 → taskId(导出必需)
workflow.export_detail(client, task_ids=tids[0], # 全部流程详细数据(38 列,WS 异步导出)
table="bpm_cq37du_test_00027",
wfwork_form_id=flows[0]["formId"],
output_path=out / "全部流程详细数据.xls")
days = attendance.daily(client, staff_id, "2026-10-01", "2026-10-31")
leaves = attendance.leaves(client, staff_id, "2026-10-01", "2026-10-31")
punches = attendance.punches(client, staff_id, "2026-10-01", "2026-10-31")