feat(bill): 支持未提交草稿查询与 flowId 直读

- bill list --state=draft/草稿 改走 flows/my 草稿列表,修复草稿不在
  invoice/search 台账索引中导致 --state=draft 返回空的问题
- 新增 --template/--title/--staff/--page 过滤与分页;服务端 RQL 结合
  客户端兜底匹配,模板版本化 ID 自动剥离哈希
- bill get 新增 flowId 直读通道,工作流/他人创建的草稿无需 flows/my 可见
- 补充域层与 CLI 单测、bill 文档、Skill 与 OpenAPI 参数说明

Fixes #153

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
giteaandClaude committed 2026-11-18 16:06:34 +08:00
1 parent baec8be6d3
commit 4b4a7049a0
12 files changed
+716 -36

No files matched your search

+38 -1
View File
@@ -662,11 +662,48 @@
"name": "state",
"in": "query",
"required": false,
"description": "按审批/支付状态过滤(paid 已支付, approving 审批中, draft 草稿)",
"description": "按审批/支付状态过滤(paid 已支付, approving 审批中)。传 draft/草稿 时改用 「我发起」的 flows/my 草稿列表,因为草稿尚未进入台账索引。",
"schema": {
"type": "string"
}
},
{
"name": "template",
"in": "query",
"required": false,
"description": "草稿模式下按模板(表单规格)ID 过滤;版本化 ID 会剥离末尾哈希",
"schema": {
"type": "string"
}
},
{
"name": "title",
"in": "query",
"required": false,
"description": "草稿模式下按标题关键字过滤",
"schema": {
"type": "string"
}
},
{
"name": "staff",
"in": "query",
"required": false,
"description": "草稿模式下按提交人(员工 ID、工号或唯一姓名)过滤",
"schema": {
"type": "string"
}
},
{
"name": "page",
"in": "query",
"required": false,
"description": "页码,与 count 配合分页(从 1 开始)",
"schema": {
"type": "integer",
"default": 1
}
},
{
"name": "count",
"in": "query",