bpmax-cli 0.1.44-beta.13 → 0.1.44-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/bin.js +286 -47
  2. package/dist/bin.js.map +1 -1
  3. package/package.json +1 -1
  4. package/skills/bpmax-ai-taskbook/SKILL.md +125 -0
  5. package/skills/bpmax-approval-matrix/SKILL.md +80 -0
  6. package/skills/bpmax-cli/SKILL.md +3 -0
  7. package/skills/bpmax-dataset-template-editor/references/pre-process-script-example-catalog.md +8 -8
  8. package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +21 -0
  9. package/skills/bpmax-e2e-flow-test-operator/SKILL.md +4 -3
  10. package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale.json +4 -4
  11. package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_final_v2.json +4 -4
  12. package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_main.json +4 -4
  13. package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_region.json +4 -4
  14. package/skills/bpmax-e2e-flow-test-operator/references/filter-field-discovery.md +2 -2
  15. package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +3 -3
  16. package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +6 -4
  17. package/skills/bpmax-e2e-flow-test-operator/scripts/flow_test_profile.py +11 -11
  18. package/skills/bpmax-flow-template-editor/SKILL.md +1 -1
  19. package/skills/bpmax-flow-template-editor/references/lessons-from-price-plan-flow.md +3 -3
  20. package/skills/bpmax-flow-template-editor/references/matrix-flow-form-nav-collaboration.md +7 -4
  21. package/skills/bpmax-form-template-editor/SKILL.md +14 -9
  22. package/skills/bpmax-project/SKILL.md +4 -1
  23. package/skills/form-control-library/references/form-controls.md +37 -37
@@ -10,6 +10,7 @@ description: "用于在 BPMAX 的表单模板页面中创建或编辑表单。
10
10
  - 在 bpmax-cli npm 分发包中,真实远端写操作只能走 `bpmax-cli config form-template submit`;编辑态由 submit 执行 `PUT /form_template/:id`,新建态由 `mode=create` 的 submit 执行 `POST /form_template` 并发布。
11
11
  - 新建表单模板时,必须确认当前 profile 具备 `config.form_template.create`,且 `config adapters` 的 `form-template.write_endpoints` 包含 `POST /api/form_template` 与 `POST /api/form_template/publish`。缺任一项就停止,不得改用 raw API 或页面 fetch。
12
12
  - `bpmax-cli config form-template export/submit/verify` 和 `export_form_template.py --template-id` 必须硬阻断发布态模板 ID;若 `origin_template_id != 0`,只能改用该草稿 ID 后重试。
13
+ - UUID 不是远端表单模板 ID。只要看到 `481a...` 这类本地 UUID、`uuid'...'` 或本地配置镜像目录名,不得继续 build/submit;必须先从目标流程线上导出读取真实 `data.meta.form_template` 发布态数字 ID,再用 `bpmax-cli config form-template export --id <published_id>` 让 CLI 指出草稿 ID,最后只用草稿数字 ID 提交。
13
14
  - 旧来源脚本 `scripts/submit*.py` 只保留为结构参考,默认会硬失败;不得用它们直调 BPMAX API。
14
15
  - 不得用 `bpmax-cli api POST/PUT/DELETE /form_template*` 或其它 raw API 绕过 typed config submit。
15
16
 
@@ -27,9 +28,10 @@ description: "用于在 BPMAX 的表单模板页面中创建或编辑表单。
27
28
  - 只要需求涉及“修改现有表单模板”,在任何导出、构建 payload、提交之前,必须先确认目标模板 `id` 到底是草稿态还是发布态:
28
29
  - 先 `GET /api/form_template/:id`
29
30
  - `origin_template_id = 0`:该 `id` 是草稿态,也是唯一允许直接导出、直接编辑、直接发布的 `id`
30
- - `origin_template_id != 0`:该 `id` 是发布态,真正可编辑、可发布的草稿 `id` 是 `origin_template_id`
31
- - 发布态 `id` 只允许用于回读、验收、定位草稿,不允许直接导出、不允许直接 `PUT /api/form_template/:id`、不允许直接 `POST /api/form_template/publish`
32
- - 在 ID 身份未确认前,禁止把这个 `id` 当编辑页 ID 或提交目标 ID
31
+ - `origin_template_id != 0`:该 `id` 是发布态,真正可编辑、可发布的草稿 `id` 是 `origin_template_id`
32
+ - 发布态 `id` 只允许用于回读、验收、定位草稿,不允许直接导出、不允许直接 `PUT /api/form_template/:id`、不允许直接 `POST /api/form_template/publish`
33
+ - 本地 UUID 只用于配置镜像定位,不是可提交 ID;form-template、dataset、dataset-field、page-template 等配置 ID 都必须用平台返回的数字 ID
34
+ - 在 ID 身份未确认前,禁止把这个 `id` 当编辑页 ID 或提交目标 ID
33
35
  - 如果需求涉及控件选型、控件是否存在、某个 `field_type` 怎么配,必须联动 [$form-control-library](../form-control-library/SKILL.md)。
34
36
 
35
37
  ## Mem0 协议
@@ -617,8 +619,9 @@ export BPMAX_BASE_URL='https://<your-bpmax-host>'
617
619
  - `data_set_key`(若样例依赖数据集)
618
620
  - `query`
619
621
  - 参考样例路径:
620
- - 最小占位版:`think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'0/think_form_rule/field'all1qw4d2g4nm/form_rule.rule`
621
- - 自定义搜索版:`think_form_template/uuid'44822c53-7690-4ccf-a85d-8c45f229158f___is_del'0___origin_template_id'0/think_form_rule/field'dsd69tu0cntd/form_rule.rule`
622
+ - 最小占位版:`think_form_template/<local-mirror-template-dir>/think_form_rule/field'<field_id>'/form_rule.rule`
623
+ - 自定义搜索版:`think_form_template/<local-mirror-template-dir>/think_form_rule/field'<field_id>'/form_rule.rule`
624
+ - 这些本地路径只用于查结构,不得把目录中的 UUID 当成 submit/export/verify ID
622
625
 
623
626
  ### 5.2 `sub_form`(关联表单)专项约定
624
627
  - 只要需求涉及“关联表单”“子表单”“明细表”“按产品线逐行录入”“表格模式录入”,优先判定为 `field_type = "sub_form"`,并联动 [$form-control-library](../form-control-library/SKILL.md) 确认当前仓库已存在该控件。
@@ -714,8 +717,9 @@ export BPMAX_BASE_URL='https://<your-bpmax-host>'
714
717
  - 后端提交处理:`/Users/yanghanwen/Development/Cicada/bpmax-core/huanpingtong-server/src/utils/sequence.ts`
715
718
  - 后端序列持久化:`/Users/yanghanwen/Development/Cicada/bpmax-core/huanpingtong-server/src/model/sequence.ts`
716
719
  - 参考样例:
717
- - `think_form_template/uuid'46282952-da80-40fa-bf7c-1e7a27e7d4ee___is_del'0___origin_template_id'0/think_form_rule/field'Fhz3mny90d26alc/form_rule.rule`
718
- - `think_form_template/uuid'46282952-da80-40fa-bf7c-1e7a27e7d4ee___is_del'0___origin_template_id'0/think_form_rule/field'Fhz3mny90d26alc/form_rule.value`
720
+ - `think_form_template/<local-mirror-template-dir>/think_form_rule/field'<field_id>'/form_rule.rule`
721
+ - `think_form_template/<local-mirror-template-dir>/think_form_rule/field'<field_id>'/form_rule.value`
722
+ - 本地镜像目录名不可作为远端模板 ID
719
723
 
720
724
  ### 5.4 `raw`(只读数据字段)专项约定
721
725
  - 只要需求涉及“只读回显”“数据字段”“兼容字段”“隐藏传值字段”“公式结果展示”,优先考虑 `field_type = "raw"`,但要区分“给用户看的回显”和“给脚本/数据集用的内部值”。
@@ -758,8 +762,9 @@ export BPMAX_BASE_URL='https://<your-bpmax-host>'
758
762
  - 前端规则:`/Users/yanghanwen/Development/Cicada/bpmax-core/hpt-frontend/components/FormDesigner/config/rule/raw.js`
759
763
  - 前端运行:`/Users/yanghanwen/Development/Cicada/bpmax-core/hpt-frontend/components/FormDesigner/components/raw.vue`
760
764
  - 参考样例:
761
- - 条件显示回显:`think_form_template/uuid'2423cac5-6e26-42af-88bd-48140fe52c80___is_del'0___origin_template_id'0/think_form_rule/field'Ffa7ml07zs4uafc/form_rule.rule`
762
- - 隐藏兼容传值:`think_form_template/uuid'44822c53-7690-4ccf-a85d-8c45f229158f___is_del'0___origin_template_id'0/think_form_rule/field'F2rtucp0a3/form_rule.rule`
765
+ - 条件显示回显:`think_form_template/<local-mirror-template-dir>/think_form_rule/field'<field_id>'/form_rule.rule`
766
+ - 隐藏兼容传值:`think_form_template/<local-mirror-template-dir>/think_form_rule/field'<field_id>'/form_rule.rule`
767
+ - 样例路径只用于定位结构,不代表远端可提交 ID
763
768
 
764
769
  ### 6. 提交方式
765
770
  - 默认统一通过 typed CLI submit:
@@ -71,6 +71,8 @@ CLI 返回 `handoff: true` 时,回复用户前必须全部满足:
71
71
  - 用户自然语言创建流程单时禁止使用 `--no-interactive`
72
72
  - 只有用户明确要求自动化直提,且确认不是人工填单流程,才允许考虑 `--no-interactive`
73
73
  - 即使使用 `--no-interactive`,只要模板存在 `lambdaInit: true`、流水号/自动编号、复杂选择器、上传、富文本、关联表单/子表单等页面专属能力,CLI 也只生成创建页链接,不会调用创建接口
74
+ - 矩阵规则记录创建属于项目创建的一种高风险场景。`project create --json` 可能返回 handoff 链接;`--no-interactive` 直提不是稳定自动化路径,尤其当矩阵表单依赖页面初始化、用户选择器、枚举或复杂控件时。
75
+ - 批量准备矩阵规则前,先运行 `bpmax-cli matrix seed <matrix_flow_type> --rules @seed-rules.json --approver-field <owner_field> --format json`,让 CLI 检查 seed 中没有 UUID、审批人字段不为空,并输出后续安全的 `project create` 命令。
74
76
  - `--unsafe-direct-create` 只允许本地专家调试旧行为;OpenClaw/Agent/BBS 永远不要使用
75
77
  - 表单校验失败时修正字段 key/type/选项值,不要绕过校验重试
76
78
 
@@ -170,4 +172,5 @@ bpmax-cli step submit <step_id> --project-id <project_id> --action approve --lab
170
172
  - 本地参数校验失败:先修正 `--flow-id`、`--name` 或 JSON
171
173
  - 表单校验失败:按错误补齐必填字段、修正字段 key/type/选项值,不要绕过校验重试
172
174
  - 服务端校验失败:保留错误原文
173
- - 创建路径不满足业务变体:改走 `project create --json ...` 或原始 `api POST`
175
+ - 500 或服务端校验失败:查看 CLI 输出的 `local_form_validation`、`handoff_available`、`server_error_summary` 和 `next_action`;如果建议 handoff,就改用页面接管,不要追加 `--no-interactive` 硬冲。
176
+ - 创建路径不满足业务变体:优先改走 `project create --json ...` 的默认引导或 handoff;不得退回原始 `api POST`
@@ -19,32 +19,32 @@
19
19
 
20
20
  | field_type | 出现次数 | 典型标签 | 样例路径 |
21
21
  | --- | ---: | --- | --- |
22
- | `i_input` | 104 | SN、产品SN、关联SO订单 | `think_form_template/uuid'86715c22-7b5e-4711-bda7-580412d6982e___is_del'0___origin_template_id'0/think_form_rule/field'tl01qtfgax3mf/form_rule.value` |
23
- | `i_textarea` | 20 | 备注、退货原因、项目内容描述 | `think_form_template/uuid'4d9d7538-1b50-4fe7-affb-7ed8f15ff3da___is_del'0___origin_template_id'0/think_form_rule/field'Fmwpmn403mqvahc/form_rule.value` |
24
- | `i_input_number` | 16 | 数量、金额、项目预算 | `think_form_template/uuid'723e7696-b3c6-491b-bf86-a68850838b17___is_del'0___origin_template_id'!0/think_form_rule/field'k4a6ag2dbenp/form_rule.value` |
25
- | `input` | 10 | SN码、异常照片、扫描时间 | `think_form_template/uuid'8701de43-c035-4407-a8ce-dbc9a51d8474___is_del'0___origin_template_id'0/think_form_rule/field'pda_exception_sn/form_rule.value` |
26
- | `code_control` | 2 | 代码编辑器 | `think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'!0/think_form_rule/field'F679mn30d9lfawc/form_rule.value` |
27
- | `fc-editor` | 2 | 富文本组件 | `think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'!0/think_form_rule/field'vvc1qw4d0o8yp/form_rule.value` |
28
- | `i_markdown` | 2 | Markdown | `think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'!0/think_form_rule/field'Fgllmn30eyduazc/form_rule.value` |
29
- | `i_rate` | 2 | 评分 | `think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'!0/think_form_rule/field'F7zbmn30dylbaxc/form_rule.value` |
30
- | `sn_number` | 8 | 流水单号、门店编号 | `think_form_template/uuid'46282952-da80-40fa-bf7c-1e7a27e7d4ee___is_del'0___origin_template_id'0/think_form_rule/field'Fhz3mny90d26alc/form_rule.value` |
22
+ | `i_input` | 104 | SN、产品SN、关联SO订单 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'tl01qtfgax3mf/form_rule.value` |
23
+ | `i_textarea` | 20 | 备注、退货原因、项目内容描述 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fmwpmn403mqvahc/form_rule.value` |
24
+ | `i_input_number` | 16 | 数量、金额、项目预算 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'k4a6ag2dbenp/form_rule.value` |
25
+ | `input` | 10 | SN码、异常照片、扫描时间 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'pda_exception_sn/form_rule.value` |
26
+ | `code_control` | 2 | 代码编辑器 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'F679mn30d9lfawc/form_rule.value` |
27
+ | `fc-editor` | 2 | 富文本组件 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'vvc1qw4d0o8yp/form_rule.value` |
28
+ | `i_markdown` | 2 | Markdown | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fgllmn30eyduazc/form_rule.value` |
29
+ | `i_rate` | 2 | 评分 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'F7zbmn30dylbaxc/form_rule.value` |
30
+ | `sn_number` | 8 | 流水单号、门店编号 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fhz3mny90d26alc/form_rule.value` |
31
31
 
32
32
  ### 选择类
33
33
 
34
34
  | field_type | 出现次数 | 典型标签 | 样例路径 |
35
35
  | --- | ---: | --- | --- |
36
- | `i_select` | 30 | 国家、地区、产品线 | `think_form_template/uuid'723e7696-b3c6-491b-bf86-a68850838b17___is_del'0___origin_template_id'!0/think_form_rule/field'xss6ag2dah9q/form_rule.value` |
37
- | `group_select` | 28 | 门店、仓库、申请部门 | `think_form_template/uuid'86715c22-7b5e-4711-bda7-580412d6982e___is_del'0___origin_template_id'0/think_form_rule/field'5861qtfg9fs6d/form_rule.value` |
38
- | `radio` | 14 | 是否样机、是否一口价 | `think_form_template/uuid'7b3ca793-7b1d-489a-a6fe-2760e4563646___is_del'0___origin_template_id'0/think_form_rule/field'x4m1qqt8bxj73/form_rule.value` |
39
- | `user_select` | 14 | 申请人、负责人、项目经理 | `think_form_template/uuid'db6a7924-b999-477c-9076-5e5161ae72da___is_del'0___origin_template_id'0/think_form_rule/field'eye69vdud9mn/form_rule.value` |
40
- | `bp-cascader` | 4 | 级联选择器 | `think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'!0/think_form_rule/field'5qu1qw4cpok4o/form_rule.value` |
41
- | `project_selector_new` | 4 | 关联项目 | `think_form_template/uuid'34bdefbd-3c17-4ddd-8181-0eb742954a3e___is_del'0___origin_template_id'0/think_form_rule/field'e6c1q8bj9mbqk/form_rule.value` |
42
- | `checkbox` | 2 | 多选框 | `think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'!0/think_form_rule/field'nfy6aeu1p9wd/form_rule.value` |
43
- | `enum_select` | 2 | 枚举选择器 | `think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'!0/think_form_rule/field'q9s1qw4cytbe8/form_rule.value` |
44
- | `es_project_selector` | 8 | 产品层次、关联订单、项目选择器(ES) | `think_form_template/uuid'2423cac5-6e26-42af-88bd-48140fe52c80___is_del'0___origin_template_id'!0/think_form_rule/field'fyb69u27kudl/form_rule.value` |
45
- | `knowledge_form` | 2 | 知识库 | `think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'!0/think_form_rule/field'F46omn30ct8dauc/form_rule.value` |
46
- | `model_selector` | 2 | 模型选择器 | `think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'!0/think_form_rule/field'Fj4smn30cxi3avc/form_rule.value` |
47
- | `plugin_address_select` | 2 | 选择地址 | `think_form_template/uuid'db6a7924-b999-477c-9076-5e5161ae72da___is_del'0___origin_template_id'0/think_form_rule/field'5sy6a4vgqdpg/form_rule.value` |
36
+ | `i_select` | 30 | 国家、地区、产品线 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'xss6ag2dah9q/form_rule.value` |
37
+ | `group_select` | 28 | 门店、仓库、申请部门 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'5861qtfg9fs6d/form_rule.value` |
38
+ | `radio` | 14 | 是否样机、是否一口价 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'x4m1qqt8bxj73/form_rule.value` |
39
+ | `user_select` | 14 | 申请人、负责人、项目经理 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'eye69vdud9mn/form_rule.value` |
40
+ | `bp-cascader` | 4 | 级联选择器 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'5qu1qw4cpok4o/form_rule.value` |
41
+ | `project_selector_new` | 4 | 关联项目 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'e6c1q8bj9mbqk/form_rule.value` |
42
+ | `checkbox` | 2 | 多选框 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'nfy6aeu1p9wd/form_rule.value` |
43
+ | `enum_select` | 2 | 枚举选择器 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'q9s1qw4cytbe8/form_rule.value` |
44
+ | `es_project_selector` | 8 | 产品层次、关联订单、项目选择器(ES) | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'fyb69u27kudl/form_rule.value` |
45
+ | `knowledge_form` | 2 | 知识库 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'F46omn30ct8dauc/form_rule.value` |
46
+ | `model_selector` | 2 | 模型选择器 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fj4smn30cxi3avc/form_rule.value` |
47
+ | `plugin_address_select` | 2 | 选择地址 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'5sy6a4vgqdpg/form_rule.value` |
48
48
 
49
49
  `group_select` 不是简单的静态选择控件。它的 `filterConditions.parentGroups / models / modelFieldsData`、`hideUnmatchedTeams`、`excludeMatched` 在运行时的真实消费方式,以及 `/api/group/group_user` 是否真的按这些参数过滤,见 [group-select-runtime.md](./group-select-runtime.md)。
50
50
 
@@ -52,28 +52,28 @@
52
52
 
53
53
  | field_type | 出现次数 | 典型标签 | 样例路径 |
54
54
  | --- | ---: | --- | --- |
55
- | `bp-date-picker` | 18 | 发货日期、申请日期、立项时间 | `think_form_template/uuid'db6a7924-b999-477c-9076-5e5161ae72da___is_del'0___origin_template_id'0/think_form_rule/field'n161qtgpjd01j/form_rule.value` |
56
- | `bp-time-picker` | 2 | 时间选择器 | `think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'!0/think_form_rule/field'4ee1qw4cw4nzt/form_rule.value` |
57
- | `i_time_selector` | 2 | 时间步骤选择器 | `think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'!0/think_form_rule/field'hxk1qw4d6rx7z/form_rule.value` |
58
- | `i_address` | 2 | 地址 | `think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'!0/think_form_rule/field'xdo1qw4cy1eri/form_rule.value` |
55
+ | `bp-date-picker` | 18 | 发货日期、申请日期、立项时间 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'n161qtgpjd01j/form_rule.value` |
56
+ | `bp-time-picker` | 2 | 时间选择器 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'4ee1qw4cw4nzt/form_rule.value` |
57
+ | `i_time_selector` | 2 | 时间步骤选择器 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'hxk1qw4d6rx7z/form_rule.value` |
58
+ | `i_address` | 2 | 地址 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'xdo1qw4cy1eri/form_rule.value` |
59
59
 
60
60
  ### 上传与插件
61
61
 
62
62
  | field_type | 出现次数 | 典型标签 | 样例路径 |
63
63
  | --- | ---: | --- | --- |
64
- | `image_upload` | 18 | 上传照片、拍照、退货照片 | `think_form_template/uuid'86715c22-7b5e-4711-bda7-580412d6982e___is_del'0___origin_template_id'0/think_form_rule/field'r5j1qtfgc6sdk/form_rule.value` |
65
- | `bp-upload` | 12 | 发票上传、附件上传、文件上传 | `think_form_template/uuid'723e7696-b3c6-491b-bf86-a68850838b17___is_del'0___origin_template_id'!0/think_form_rule/field'9wp6ag2dbxqe/form_rule.value` |
66
- | `plugin-pda-scan-demo` | 2 | PDA扫码Demo | `think_form_template/uuid'05206203-b914-4595-be12-70cd98f32dfa___is_del'0___origin_template_id'0/think_form_rule/field'htk6ahnv58w0/form_rule.value` |
64
+ | `image_upload` | 18 | 上传照片、拍照、退货照片 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'r5j1qtfgc6sdk/form_rule.value` |
65
+ | `bp-upload` | 12 | 发票上传、附件上传、文件上传 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'9wp6ag2dbxqe/form_rule.value` |
66
+ | `plugin-pda-scan-demo` | 2 | PDA扫码Demo | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'htk6ahnv58w0/form_rule.value` |
67
67
 
68
68
  ## 展示与结构控件
69
69
 
70
70
  | field_type | 出现次数 | 典型用途 | 样例路径 |
71
71
  | --- | ---: | --- | --- |
72
- | `h_label` | 28 | 标题、段落标签 | `think_form_template/uuid'db6a7924-b999-477c-9076-5e5161ae72da___is_del'0___origin_template_id'0/think_form_rule/field'Ffngml5381vbafc/form_rule.value` |
73
- | `i_hr` | 8 | 分割线、分区标题 | `think_form_template/uuid'0cbab71b-bc6f-42fa-b5e2-614879ffbd73___is_del'0___origin_template_id'!0/think_form_rule/field'Fb4hmn3092ljatc/form_rule.value` |
74
- | `description` | 4 | 说明文案、描述块 | `think_form_template/uuid'2e709a11-a36d-4a47-b809-e1751576a5d5___is_del'0___origin_template_id'0/think_form_rule/field'Fwfcmn303rs0abc/form_rule.value` |
75
- | `raw` | 116 | 只读数据回显、公式结果 | `think_form_template/uuid'2423cac5-6e26-42af-88bd-48140fe52c80___is_del'0___origin_template_id'!0/think_form_rule/field'Ffa7ml07zs4uafc/form_rule.value` |
76
- | `sub_form` | 22 | 子表单容器、明细列表 | `think_form_template/uuid'05206203-b914-4595-be12-70cd98f32dfa___is_del'0___origin_template_id'0/think_form_rule/field'i1u6ahnv7jfx/form_rule.value` |
72
+ | `h_label` | 28 | 标题、段落标签 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Ffngml5381vbafc/form_rule.value` |
73
+ | `i_hr` | 8 | 分割线、分区标题 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fb4hmn3092ljatc/form_rule.value` |
74
+ | `description` | 4 | 说明文案、描述块 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fwfcmn303rs0abc/form_rule.value` |
75
+ | `raw` | 116 | 只读数据回显、公式结果 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Ffa7ml07zs4uafc/form_rule.value` |
76
+ | `sub_form` | 22 | 子表单容器、明细列表 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'i1u6ahnv7jfx/form_rule.value` |
77
77
 
78
78
  ## 使用建议
79
79
  - 如果用户问“有多少种表单控件”,默认回答:当前仓库实际落地 `33` 种 `field_type`。
@@ -146,8 +146,8 @@
146
146
  - 不要手动预填最终流水号;后端只在当前值为空时生成,已有值会被视为编辑态并跳过生成。
147
147
 
148
148
  真实样例:
149
- - `think_form_template/uuid'46282952-da80-40fa-bf7c-1e7a27e7d4ee___is_del'0___origin_template_id'0/think_form_rule/field'Fhz3mny90d26alc/form_rule.rule`
150
- - `think_form_template/uuid'46282952-da80-40fa-bf7c-1e7a27e7d4ee___is_del'0___origin_template_id'0/think_form_rule/field'Fhz3mny90d26alc/form_rule.value`
149
+ - `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fhz3mny90d26alc/form_rule.rule`
150
+ - `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fhz3mny90d26alc/form_rule.value`
151
151
 
152
152
  ### `raw`(只读数据字段)
153
153
 
@@ -195,5 +195,5 @@
195
195
  - `props.disabled` 对 `raw` 不是主要只读保障;只读来自控件本身。不要把 `raw` 当成可编辑输入框使用。
196
196
 
197
197
  真实样例:
198
- - 条件显示回显:`think_form_template/uuid'2423cac5-6e26-42af-88bd-48140fe52c80___is_del'0___origin_template_id'0/think_form_rule/field'Ffa7ml07zs4uafc/form_rule.rule`
199
- - 隐藏兼容传值:`think_form_template/uuid'44822c53-7690-4ccf-a85d-8c45f229158f___is_del'0___origin_template_id'0/think_form_rule/field'F2rtucp0a3/form_rule.rule`
198
+ - 条件显示回显:`think_form_template/<local-mirror-template-dir>/think_form_rule/field'Ffa7ml07zs4uafc/form_rule.rule`
199
+ - 隐藏兼容传值:`think_form_template/<local-mirror-template-dir>/think_form_rule/field'F2rtucp0a3/form_rule.rule`