- 读 EHR 预支台账 → 按 ERP 付款申请单口径逐行建单,默认试算不写库 - 可选建单后自动提交、按套打样例生成 PDF 直连网络打印,打印完成钉钉提醒领取 - 含幂等查重与异常清单,业务口径与字段顺序按生产单核对 - 依赖 erpsdk / printkit / dingtalk_sdk(plugin.json requires.sdks 声明) - 需求单文档同步:开发/流程/评分/需求文档更新,新增交接文档
145 lines
4.0 KiB
JSON
145 lines
4.0 KiB
JSON
{
|
||
"schema_version": 1,
|
||
"id": "xq0012",
|
||
"name": "付款申请单自动发起",
|
||
"version": "0.1.0",
|
||
"description": "读 EHR 预支台账 → 按 ERP 付款申请单口径逐行建单(默认试算不写库),可选提交、自动套打打印;含幂等查重与异常清单;打印完成后钉钉提醒去领取",
|
||
"category": "人资",
|
||
"icon": "",
|
||
"platform": "",
|
||
"uses_month": false,
|
||
"ui": true,
|
||
"requires": {
|
||
"sdks": {
|
||
"erpsdk": {
|
||
"compat": "^0.1"
|
||
},
|
||
"printkit": {
|
||
"compat": "^0.1"
|
||
},
|
||
"dingtalk_sdk": {
|
||
"compat": "^0.1"
|
||
}
|
||
}
|
||
},
|
||
"capabilities": [
|
||
"xq0012"
|
||
],
|
||
"permissions": {
|
||
"platforms": []
|
||
},
|
||
"fields": {
|
||
"type": "object",
|
||
"properties": {
|
||
"ledger_dir": {
|
||
"type": "string",
|
||
"title": "台账目录",
|
||
"default": "D:\\资料\\人资\\预支",
|
||
"description": "预支台账 xlsx 所在目录;留空=默认目录,自动取最新一个"
|
||
},
|
||
"ledger_file": {
|
||
"type": "string",
|
||
"title": "台账文件(可选)",
|
||
"default": "",
|
||
"description": "指定具体 xlsx 路径;留空=按目录取最新"
|
||
},
|
||
"apply_date": {
|
||
"type": "string",
|
||
"title": "申请日期",
|
||
"default": "",
|
||
"description": "YYYY-MM-DD;留空=今天"
|
||
},
|
||
"pay_purpose": {
|
||
"type": "string",
|
||
"title": "付款用途",
|
||
"default": "个人借款",
|
||
"enum": [
|
||
"个人借款",
|
||
"工资预提",
|
||
"工资发放"
|
||
],
|
||
"description": "⚠️ 业务待确认:人工模板=个人借款,生产真实单=工资预提"
|
||
},
|
||
"apply_dept": {
|
||
"type": "string",
|
||
"title": "申请部门编码",
|
||
"default": "BM000477",
|
||
"description": "默认 BM000477 人力资源部(生产真实单口径)"
|
||
},
|
||
"expect_days": {
|
||
"type": "number",
|
||
"title": "期望付款日=申请日+N 天",
|
||
"default": 1
|
||
},
|
||
"erp_system": {
|
||
"type": "string",
|
||
"title": "ERP系统",
|
||
"default": "新版",
|
||
"enum": [
|
||
"新版",
|
||
"旧版"
|
||
]
|
||
},
|
||
"erp_username": {
|
||
"type": "string",
|
||
"title": "ERP登录账号",
|
||
"default": ""
|
||
},
|
||
"erp_password": {
|
||
"type": "string",
|
||
"title": "ERP登录密码",
|
||
"default": "",
|
||
"format": "password"
|
||
},
|
||
"dry_run": {
|
||
"type": "boolean",
|
||
"title": "试算模式(不写 ERP)",
|
||
"default": true,
|
||
"description": "开启后只组装+查重+输出结果,不建单;验证通过后再关"
|
||
},
|
||
"submit": {
|
||
"type": "boolean",
|
||
"title": "建单后自动提交",
|
||
"default": false,
|
||
"description": "关闭时只建草稿(A),由 HR 在 ERP 确认后手动提交"
|
||
},
|
||
"print_enabled": {
|
||
"type": "boolean",
|
||
"title": "建单后套打打印",
|
||
"default": false
|
||
},
|
||
"printer": {
|
||
"type": "string",
|
||
"title": "打印机",
|
||
"default": "人力资源部",
|
||
"enum": [
|
||
"人力资源部",
|
||
"网络信息部"
|
||
]
|
||
},
|
||
"copies": {
|
||
"type": "number",
|
||
"title": "打印份数",
|
||
"default": 1
|
||
},
|
||
"debug_mode": {
|
||
"type": "boolean",
|
||
"title": "调试日志",
|
||
"default": false
|
||
},
|
||
"dingtalk_enabled": {
|
||
"type": "boolean",
|
||
"title": "打印后钉钉提醒领取",
|
||
"default": true,
|
||
"description": "打印成功后用企业内部应用「工作通知」提醒接收人去领取签字"
|
||
},
|
||
"dingtalk_users": {
|
||
"type": "string",
|
||
"title": "钉钉接收人(姓名/工号)",
|
||
"default": "陈莲/37004121",
|
||
"description": "多个用「、」「,」「;」或换行分隔;重名必须带工号,如 陈莲/37001090;留空=不提醒"
|
||
}
|
||
},
|
||
"required": []
|
||
}
|
||
} |