Pinvou/pinvou-agent / pinvou3-app/src-tauri/resources/common/bundle/dingtalk-skills/dws
dws
Unverified【何时用:仅当用户明确指向钉钉/DingTalk(钉钉文档、钉钉日程等)时使用;泛指做文档/表格/待办/审批默认走本地工具,不要误用钉钉】用 dws CLI 管理钉钉:AI表格/AI搜问(找人首选)/目标管理(Agoal)/组织大脑/日历/通讯录/群聊与机器人消息/待办/审批/智能合同/考勤/日志(日报周报)/DING消息/钉钉文档/云盘/Markdown文件/HTML文件/AI听记/邮箱/在线电子表格(axls)/知识库/白板/开放平台文档/个人IM与OA事件订阅。用户要求操作上述钉钉产品时使用。
references/products/oa/template/components/FormRelateField.md
View on GitHub# 关联表单 — `FormRelateField`
> 分类:关联表单控件
关联其他审批模板的表单数据。
## JSON Schema
| 字段 | 类型 | 必填 | 说明 |
|------|------|------|------|
| `componentName` | string | 是 | 固定值 `"FormRelateField"` |
| `props.id` | string | 是 | 唯一标识,格式 `FormRelateField_{随机字符串}` |
| `props.label` | string | 是 | 控件标题 |
| `props.title` | string | 否 | 标题 |
| `props.required` | boolean | 否 | 是否必填,默认 false |
| `props.multi` | number | 否 | 是否多选,`0` 单选,`1` 多选 |
| `props.quote` | number | 否 | 是否引用,`1` 引用 |
| `props.extract` | boolean | 否 | 是否提取字段 |
| `props.displayExtract` | boolean | 否 | 是否展示提取字段 |
| `props.securityMode` | number | 否 | 安全模式 |
| `props.procType` | string | 否 | 流程类型,`"inner"` 内部 |
| `props.dataSource` | object | 是 | 数据源配置 |
| `props.dataSource.type` | string | 是 | 固定值 `"form"` |
| `props.dataSource.target.formCode` | string | 是 | 关联审批模板 processCode |
| `props.fields` | array | 否 | 关联字段列表 |
## 关键说明
- `dataSource.target.formCode` 指定关联的审批模板 processCode
- `fields` 中每个字段的 `_extractId` 为提取映射 ID,`_oriId` 为原始表单中的字段 ID
## 示例
```json
{
"componentName": "FormRelateField",
"props": {
"id": "FormRelateField_K8W2ZATWKWG0",
"label": "用车申请",
"title": "",
"required": false,
"multi": 0,
"quote": 1,
"extract": false,
"displayExtract": true,
"securityMode": 0,
"procType": "inner",
"dataSource": {
"type": "form",
"params": { "filter": "" },
"target": {
"appUuid": "",
"bizType": "",
"formCode": "TODO_FORM_CODE",
"appType": 0
}
},
"fields": [
{
"componentName": "TextField",
"props": {
"id": "TextField-IH4UNLKF",
"label": "申请部门",
"placeholder": "请输入",
"_extractId": "TextField_1U73ZYBTWCGW0",
"_oriId": "TextField-IH4UNLKF"
}
}
]
}
}
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |