feat(plugin): 新增 XQ0006 周考勤异常处理、XQ0083 调动流程生效确认;其余插件累积改动

XQ0001 排班异常识别 / XQ0002 雇主险增减操作 / XQ0012 ERP 付款申请 / XQ0013 社保费用申报 / XQ0042 抖音平台核对 / XQ0084 银行卡更新:逻辑与界面 bundle 更新(含各自版本号变更)
This commit is contained in:
2026-11-18 18:55:59 +08:00
parent 6d214aa4cb
commit 4941e8b6c0
113 changed files with 13544 additions and 606 deletions
@@ -11,7 +11,7 @@
from __future__ import annotations
import os
from typing import List, Optional, Tuple
from typing import Dict, List, Optional, Tuple
import pandas as pd
@@ -118,6 +118,20 @@ def lookup_dept4_by_code(frame: pd.DataFrame, code: str) -> str:
return to_text(hit.iloc[0][config.COL_DEPT4])
def dept1_map(frame: pd.DataFrame) -> Dict[str, str]:
"""工号 → 一级部门(花名册无「一级部门」列时返回空 dict)。"""
if config.COL_DEPT1 not in frame.columns:
return {}
return {to_text(code): to_text(dept1) for code, dept1
in zip(frame[config.COL_CODE], frame[config.COL_DEPT1])}
def dept1_excluded(dept1: str) -> bool:
"""一级部门命中剔除关键字(如「后勤」)→ True。"""
text = clean(dept1)
return any(keyword in text for keyword in config.EXCLUDE_DEPT1_KEYWORDS)
def match_fixed_route(row: dict):
"""命中固定路由返回 ``((工号, 姓名), 范围描述)``,未命中返回 ``None``。"""
seq = to_text(row.get("现职位序列"))