基于 skill-template 脚手架开发,包含: - payroll_config(费率配置,可编辑)+ payslip_snapshots(解析历史,只读)2 张业务表 - 全国默认 + 北上广 4 套费率(社保/公积金/个税起征点/7 级税率表) - 5 个业务 Action:calculate-payslip-simple / calculate-payslip-full / explain-term / view-config / edit-config - 个税累计预扣法计算,支持多月历史累加 - 20 个薪资名词库(社保/公积金/个税/全勤/加班费等) - 完整市场文档(README/TUTORIAL/DEMO/CHANGELOG) - 296 测试全部通过
39 lines
1012 B
JSON
39 lines
1012 B
JSON
{
|
||
"id": "process-selected",
|
||
"label": "处理勾选",
|
||
"description": "对勾选行执行业务处理。示例:声明 labelColumn,让确认弹层「已选择」摘要显示可读名称。",
|
||
"placements": ["toolbar", "batch"],
|
||
"executionProfile": "async",
|
||
"interaction": "confirm",
|
||
"confirmation": {
|
||
"message": "将按技能业务规则处理勾选记录(具体是否跳过某些状态由 CLI 决定)。"
|
||
},
|
||
"bind": {
|
||
"tables": ["business_items"],
|
||
"inputMapping": {
|
||
"ids": "$selection.ids"
|
||
},
|
||
"labelColumn": "display_name"
|
||
},
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"required": ["ids"],
|
||
"properties": {
|
||
"ids": {
|
||
"type": "string",
|
||
"title": "编号列表",
|
||
"description": "逗号分隔主键;宿主会预填勾选行",
|
||
"readOnly": true
|
||
}
|
||
}
|
||
},
|
||
"entrypoint": {
|
||
"type": "cli",
|
||
"command": "process",
|
||
"args": ["--ids", "{{ids}}"]
|
||
},
|
||
"hostEffects": {
|
||
"onSuccess": ["reloadTable"]
|
||
}
|
||
}
|