Files
37duAutomation/plugins/XQ0001-0100/XQ0009 门店上月请休假异常人员名单梳理/plugin.json
T
puddy 8a2cab71de fix(xq0009): 修复收银月份格式致技师整体漏判;新增钉钉群文件推送(1.0.15)
- xq0009 收银技师考勤月份归一(202610 被取成 0 月、202611 会错拉 1 月),统计月拉取失败改为中止,不再静默导出缺技师名单

- xq0009 新增「钉钉群名」字段:导出后把名单推到群(dingtalk_sdk.dws),执行前按群全称精确校验,识别不到直接报错并列出候选群

- xq0009 技师月末仍在休(HR 无请假单)时备注补「截至 X 仍在病假」;推送超时不再重试(避免重复发文件)

- dingtalk_sdk 0.1.2:兼容 dws 异步任务返回(outcome=pending 视为已受理并轮询 query-send-status),修复误判失败导致同一条消息重复发送

- 文档:SDK 发版直发正式(--prod),插件仍走测试通道→人工转正;xq0001 自测兼容门禁 runpy 直跑
2026-11-10 14:26:35 +08:00

95 lines
3.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"schema_version": 1,
"id": "xq0009",
"name": "门店上月请休假异常人员名单梳理",
"version": "1.0.15",
"description": "梳理上月请休假异常人员名单:花名册 + 考勤统计报表 + 请假记录(2026-09 起技师考勤联动收银系统),计算每人月末往前连续未出勤 ≥5 天并跨月追溯,确定请休假起止日期与天数(当前月返岗判定),导出 20 列 Excel 名单;可把名单文件推到指定钉钉群(依赖 dingtalk_sdk,群名执行前先校验)。",
"category": "人事考勤",
"icon": "",
"platform": "hr",
"uses_month": true,
"ui": true,
"capabilities": [
"xq0009"
],
"permissions": {
"platforms": [
"hr"
]
},
"requires": {
"sdks": {
"dingtalk_sdk": {
"compat": "^0.1"
}
}
},
"fields": {
"type": "object",
"properties": {
"ref_month": {
"type": "string",
"title": "统计月份",
"default": "",
"description": "留空=上月;格式 YYYY-MM(如 2026-08)"
},
"save_dir": {
"type": "string",
"title": "输出目录",
"default": "D:\\资料\\人资\\请休假异常",
"description": "名单 Excel 与花名册输出目录"
},
"roster_path": {
"type": "string",
"title": "花名册路径",
"default": "",
"description": "留空=输出目录/员工花名册.xlsx(插件自动导出,15 分钟内缓存复用)"
},
"cashier_login_mode": {
"type": "string",
"title": "收银登录方式",
"default": "自动",
"enum": [
"自动",
"仅接口登录",
"钉钉扫码登录"
],
"description": "自动=接口登录优先、失败回退浏览器自动登录;仅接口登录=不弹浏览器;钉钉扫码登录=弹浏览器生成二维码图片(发到钉钉群让有权限的同事扫码),扫码后用 auth_code 换 Token 落盘复用,不需要插件里的账号密码"
},
"cashier_username": {
"type": "string",
"title": "收银系统账号",
"default": "",
"description": "技师考勤数据源(2026-09 起技师考勤迁移到收银系统);留空时复用已缓存登录态,无登录态则降级仅用 HR(技师数据缺失)"
},
"cashier_password": {
"type": "string",
"title": "收银系统密码",
"default": "",
"format": "password",
"description": "填了账号需同时填密码;凭据错误会中止运行(避免静默导出缺技师数据的名单)"
},
"push_webhook": {
"type": "string",
"title": "钉钉群机器人 Webhook",
"default": "",
"description": "留空=不推送;填写后「钉钉扫码登录」时把二维码上传到钉钉媒体库,再以图片消息推到该群(自定义机器人不能直接发本地图片)"
},
"push_secret": {
"type": "string",
"title": "钉钉机器人加签密钥",
"default": "",
"format": "password",
"description": "机器人安全设置为「加签」时填写,未配置加签留空"
},
"push_group": {
"type": "string",
"title": "钉钉群名(推送名单)",
"default": "",
"description": "群全称,留空=不推送文件;执行开始先按群名精确校验,识别不到直接报错并列出候选群(不进入取数流程)。文件通过 dws 群聊消息发送(群机器人发不了本地文件)"
}
},
"required": []
}
}