feat(hr_sdk): 0.2.0 新增工资待办/账套/工资项/起调薪核对与提交接口

This commit is contained in:
2026-11-13 13:53:24 +08:00
parent 9bbb54a62b
commit 3866178089
9 changed files with 399 additions and 37 deletions
+2 -1
View File
@@ -19,7 +19,7 @@
## 接口
```python
from hr_sdk import HrClient, roster, ledger, org, workflow, attendance, shift, seal, attach, contract
from hr_sdk import HrClient, roster, ledger, org, workflow, attendance, shift, seal, attach, contract, wage
client = HrClient(ctx.get_session("hr"), log=ctx.log) # 借来的会话,SDK 不 close
@@ -42,6 +42,7 @@ today = shift.day_shift(shifts, "2026-11-09") # 当日完整排班名
names = shift.department_names(client, "金色印象XX店") # 该部门全部排班名
seal_rows = seal.rows(client, month="2026-10") # 封存原始记录
wage_rows = wage.rows(client, "2026-11-01", "2026-11-30") # 工资待办任务(日期缺省本月)
paths = attach.download(client, file_id, save_dir=out / "附件")
contract.export(client, "生效中", template="合同台账导出", output=out / "合同.xlsx")
```