> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/configure-subtypes.md).

# 配置子类型

当同一文档类型的发票需要不同的字段、不同的验证布局或专属处理脚本时，请使用文档子类型。先[创建子类型](/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/creating-a-new-sub-type.md)，然后打开 **Settings → Document Types**，选择文档类型，再打开 **Document Sub Types**。在子类型行中，打开 **Actions**（三个点）。菜单提供 **Fields**、**Layout Builder** 和 **Scripts**；其中还包含[复制、编辑和删除](/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/using-actions.md)。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-5c9602bb3ef7850571bb2edd4b66c0784eaffa85%2Fsubtype-actions-menu-en.png?alt=media" alt="文档子类型的操作菜单，显示 Fields、Layout Builder、Scripts、Copy、Edit 和 Delete"><figcaption><p>选择要配置的子类型部分。</p></figcaption></figure>

## 字段

选择 **Fields**，以决定用户在此子类型中看到和填写哪些信息。你可以在分组中创建字段，将现有字段设为必填、只读或隐藏，也可以调整识别选项。更改完成后，选择 **Save Settings**。有关操作步骤，请参阅[添加和编辑字段](/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/fields/adding-and-editing-fields.md)；有关列选项，请参阅[配置字段属性](/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/fields/configuring-field-properties-1.md)；如果字段需要使用查找数据，请参阅[主数据设置](/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/fields/master-data-settings.md)。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-0ee50c7a6d2fb296cc6d1d563494f397604fc8e7%2Fsubtype-fields-en.png?alt=media" alt="合成发票子类型的英文版字段设置，包含字段分组、属性列和 Save Settings"><figcaption><p>文档测试组织中的字段设置。未显示客户数据。</p></figcaption></figure>

## Layout Builder

选择 **Layout Builder**，以便在文档验证屏幕上排列分组和字段。左侧列出元素；右侧可上传示例文档以供预览。检查结果，布局就绪后选择 **Save**。[Layout Builder 指南](/chinese/guan-li-yu-she-zhi/setup/document-types/layout-builder.md)介绍了元素、文档预览以及如何保存布局。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-acd08484c6d3da10758015b732d55404b192fcc6%2Fsubtype-layout-en.png?alt=media" alt="合成发票子类型的英文版 Layout Builder，显示分组、预览上传和 Save"><figcaption><p>添加示例文档前的子类型布局。</p></figcaption></figure>

## 脚本

选择 **Scripts**，查看此子类型的脚本。如果列表为空，请选择 **Create Script** 或 **New** 以开始创建。搜索功能以及 **All**、**Active** 和 **Inactive** 筛选器可帮助查找现有脚本。按照[创建和编辑脚本](/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/script/creating-and-editing-scripts.md)中的说明创建脚本；在启用脚本进行处理之前，请先阅读[脚本激活与管理](/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/script/script-activation-and-management.md)。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-5caf76b7af793804c5e86ce03bfef125dc5c874f%2Fsubtype-scripts-en.png?alt=media" alt="合成发票子类型的英文版空脚本列表，带有 Create Script 和状态筛选器"><figcaption><p>文档测试子类型中尚未创建脚本。</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/configure-subtypes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
