fix: 预览按 draft-{id} 命名且重建全量同构 + C1 空台账改判数据待补 + 立项经费结余结论 + CLI 拆分 import-*/list-* + docx 占位黄底
This commit is contained in:
@@ -90,6 +90,8 @@
|
||||
"{{start}}",
|
||||
"--end",
|
||||
"{{end}}",
|
||||
"--approved-budget",
|
||||
"{{approvedBudget}}",
|
||||
"--expected-json",
|
||||
"{{expectedJson}}",
|
||||
"--excerpt",
|
||||
@@ -132,6 +134,11 @@
|
||||
"title": "执行期结束",
|
||||
"display_type": "date"
|
||||
},
|
||||
"approvedBudget": {
|
||||
"type": "number",
|
||||
"title": "立项经费(元)",
|
||||
"description": "用于决算结余与预算符合性结论。可选。"
|
||||
},
|
||||
"expectedJson": {
|
||||
"type": "string",
|
||||
"title": "预期指标 JSON",
|
||||
@@ -318,9 +325,9 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "import-data",
|
||||
"label": "批量导入数据",
|
||||
"description": "粘贴 JSON 批量导入项目/成果/决算。",
|
||||
"id": "import-projects",
|
||||
"label": "批量导入项目",
|
||||
"description": "粘贴结题项目 JSON 数组批量导入/更新(含预期指标)。",
|
||||
"placements": [
|
||||
"agent"
|
||||
],
|
||||
@@ -328,14 +335,10 @@
|
||||
"interaction": "form",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "import",
|
||||
"command": "import-projects",
|
||||
"args": [
|
||||
"--projects-json",
|
||||
"{{projectsJson}}",
|
||||
"--achievements-json",
|
||||
"{{achievementsJson}}",
|
||||
"--expenses-json",
|
||||
"{{expensesJson}}"
|
||||
"{{projectsJson}}"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
@@ -344,37 +347,91 @@
|
||||
"projectsJson": {
|
||||
"type": "string",
|
||||
"title": "项目 JSON",
|
||||
"display_type": "textarea"
|
||||
},
|
||||
"achievementsJson": {
|
||||
"type": "string",
|
||||
"title": "成果 JSON",
|
||||
"display_type": "textarea"
|
||||
},
|
||||
"expensesJson": {
|
||||
"type": "string",
|
||||
"title": "决算 JSON",
|
||||
"description": "结题项目对象数组。",
|
||||
"display_type": "textarea"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"projectsJson"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "list-data",
|
||||
"label": "查询台账",
|
||||
"description": "查询结题项目/成果/决算。",
|
||||
"id": "import-achievements",
|
||||
"label": "批量导入成果",
|
||||
"description": "粘贴成果清单 JSON 数组批量导入(按项目编号关联)。",
|
||||
"placements": [
|
||||
"agent"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"interaction": "form",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "import-achievements",
|
||||
"args": [
|
||||
"--achievements-json",
|
||||
"{{achievementsJson}}"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"achievementsJson": {
|
||||
"type": "string",
|
||||
"title": "成果 JSON",
|
||||
"description": "成果对象数组。",
|
||||
"display_type": "textarea"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"achievementsJson"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "import-expenses",
|
||||
"label": "批量导入决算",
|
||||
"description": "粘贴决算明细 JSON 数组批量导入(科目/金额/日期)。",
|
||||
"placements": [
|
||||
"agent"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"interaction": "form",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "import-expenses",
|
||||
"args": [
|
||||
"--expenses-json",
|
||||
"{{expensesJson}}"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"expensesJson": {
|
||||
"type": "string",
|
||||
"title": "决算 JSON",
|
||||
"description": "决算明细对象数组。",
|
||||
"display_type": "textarea"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"expensesJson"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "list-projects",
|
||||
"label": "查询结题项目",
|
||||
"description": "按状态查询结题项目台账。",
|
||||
"placements": [
|
||||
"agent"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "list",
|
||||
"command": "list-projects",
|
||||
"args": [
|
||||
"--kind",
|
||||
"{{kind}}",
|
||||
"--project-no",
|
||||
"{{projectNo}}",
|
||||
"--status",
|
||||
"{{status}}"
|
||||
]
|
||||
@@ -382,19 +439,6 @@
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"title": "类型",
|
||||
"enum": [
|
||||
"projects",
|
||||
"achievements",
|
||||
"expenses"
|
||||
]
|
||||
},
|
||||
"projectNo": {
|
||||
"type": "string",
|
||||
"title": "项目编号"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"title": "状态",
|
||||
@@ -407,6 +451,66 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "list-achievements",
|
||||
"label": "查询成果清单",
|
||||
"description": "按项目编号查询成果清单。",
|
||||
"placements": [
|
||||
"agent"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "list-achievements",
|
||||
"args": [
|
||||
"--project-no",
|
||||
"{{projectNo}}"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"projectNo": {
|
||||
"type": "string",
|
||||
"title": "项目编号",
|
||||
"description": "必填。"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"projectNo"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "list-expenses",
|
||||
"label": "查询决算明细",
|
||||
"description": "按项目编号查询决算明细。",
|
||||
"placements": [
|
||||
"agent"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "list-expenses",
|
||||
"args": [
|
||||
"--project-no",
|
||||
"{{projectNo}}"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"projectNo": {
|
||||
"type": "string",
|
||||
"title": "项目编号",
|
||||
"description": "必填。"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"projectNo"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "list-drafts",
|
||||
"label": "查询初稿记录",
|
||||
@@ -436,7 +540,7 @@
|
||||
{
|
||||
"id": "render-html",
|
||||
"label": "重建初稿预览",
|
||||
"description": "重建初稿 HTML 预览(缺省最近 10 份)。",
|
||||
"description": "重建初稿 HTML 预览(选中初稿记录行时重建该份,未选行重建最近 10 份)。",
|
||||
"placements": [
|
||||
"toolbar",
|
||||
"skill-detail",
|
||||
@@ -447,12 +551,29 @@
|
||||
"bind": {
|
||||
"tables": [
|
||||
"report_drafts"
|
||||
]
|
||||
],
|
||||
"inputMapping": {
|
||||
"id": "$row.$pk"
|
||||
}
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number",
|
||||
"title": "记录编号",
|
||||
"description": "重建该份初稿预览。未选择行时留空,重建最近 10 份。",
|
||||
"readOnly": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "render-html",
|
||||
"args": []
|
||||
"args": [
|
||||
"--report-id",
|
||||
"{{id}}"
|
||||
]
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user