- 延时加班按小时计,推送里去掉「加班天数」,改展示加班起止时段; 休息日/法定假日仍按天计,展示逻辑不变 - 插件版(report/overtime_report.py)与影刀版(overtime_approval.py)同步
69 lines
2.2 KiB
JSON
69 lines
2.2 KiB
JSON
{
|
|
"schema_version": 1,
|
|
"id": "xq0004",
|
|
"name": "EHR系统加班流程审核",
|
|
"version": "1.2.1",
|
|
"description": "自动审核 EHR 加班待办:拉取待办与加班表单,按加班类型(延时/法定假日/休息日)校验加班日期、时长、排班与打卡区间及弹性到岗兑换;校验通过自动提交审批,并生成审批报告与钉钉群推送。",
|
|
"category": "人事考勤",
|
|
"icon": "",
|
|
"platform": "hr",
|
|
"uses_month": false,
|
|
"ui": true,
|
|
"capabilities": [
|
|
"xq0004"
|
|
],
|
|
"permissions": {
|
|
"platforms": [
|
|
"hr"
|
|
]
|
|
},
|
|
"fields": {
|
|
"type": "object",
|
|
"properties": {
|
|
"save_dir": {
|
|
"type": "string",
|
|
"title": "输出目录",
|
|
"default": "D:\\资料\\人资\\加班流程审批",
|
|
"description": "加班审批报告存放目录"
|
|
},
|
|
"approve_enabled": {
|
|
"type": "boolean",
|
|
"title": "自动提交审批",
|
|
"default": true,
|
|
"description": "开启后,校验结论为「通过」的单据会在流程详情页自动点击同意;关闭则只校验不提交"
|
|
},
|
|
"push_enabled": {
|
|
"type": "boolean",
|
|
"title": "钉钉群推送",
|
|
"default": true,
|
|
"description": "开启后把汇总与需人工处理明细推送到钉钉群机器人"
|
|
},
|
|
"push_env": {
|
|
"type": "string",
|
|
"title": "推送环境",
|
|
"default": "dev",
|
|
"description": "dev=内置测试群,prod=内置生产群;填写自定义 Webhook 时以自定义为准"
|
|
},
|
|
"dingtalk_webhook": {
|
|
"type": "string",
|
|
"title": "钉钉 Webhook",
|
|
"default": "",
|
|
"description": "留空使用内置默认机器人;需要发到其他群时填写完整 webhook 地址"
|
|
},
|
|
"dingtalk_secret": {
|
|
"type": "string",
|
|
"title": "钉钉加签密钥",
|
|
"default": "",
|
|
"description": "机器人启用加签安全设置时填写,留空表示不加签"
|
|
},
|
|
"debug_mode": {
|
|
"type": "boolean",
|
|
"title": "调试日志",
|
|
"default": false,
|
|
"description": "开启后输出接口返回等调试信息"
|
|
}
|
|
},
|
|
"required": []
|
|
}
|
|
}
|