> ## Documentation Index
> Fetch the complete documentation index at: https://foliant-help.iforiti.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 什么是模板

> 模板可将您的订单生成发票、装箱单和拣货单等单据，用于打印、导出和 PDF 交付。

# 什么是模板

![模板页面](https://mintcdn.com/foliant-dev/nnNby4-r9e5xN6eK/templates/images/templates-page.png?fit=max\&auto=format\&n=nnNby4-r9e5xN6eK\&q=85\&s=7645362eb51040344234c97e98fb356a)

模板是 Foliant 将订单生成单据时使用的版式，例如收据或发票、装箱单、退货表、报价单、贷记单、拣货单等。Foliant 生成的每份单据都来自模板。您在订单页面打印、导出 PDF，以及客户通过 PDF 交付下载 PDF 时，使用的都是同一个模板。

您可以在 Foliant 的**模板**页面管理您的模板。

## 初始模板

选择套餐后，您会获得一组现成的模板，语言与您商店的语言一致：

| 模板 | 用途 | 默认预选用于 |
| - | - | - |
| **收据 / 发票** | 列明商品、税费、付款和总计的发票 | 订单和 POS 订单 |
| **装箱单** | 需要打包的商品和数量，不含价格 | — |
| **退货表** | 供客户标记退货商品和退货原因 | — |
| **草稿订单报价单** | 供客户在付款前查看的报价单 | 草稿订单 |
| **退款 / 贷记单** | 针对原订单记录退款 | — |
| **拣货单** | 汇总所选订单中的所有商品，在仓库走一趟即可拣完 | 订单列表中的**拣货单**按钮 |

您可以重命名、编辑、调整顺序或删除其中任何模板，也可以在套餐允许的范围内添加您自己的模板。

## 两类模板

每个模板有两种生成方式。您可以在模板设置的**生成方式**中选择。

* **每个订单一份单据**：发票、装箱单和退货表。每个选中的订单各生成一份单据。
* **所有选中订单共用一份单据**：清单、报表和拣货单。一份单据列出您选中的所有订单。能否使用此方式取决于您的套餐。请参阅[订单汇总和拣货单](https://foliant-help.iforiti.com/cn/templates/batch-templates-and-pick-lists.md)。

## 单据类型

模板的**单据类型**告诉 Foliant 这是什么单据：

* 在**设置 › 文档与打印**中开启单据编号后，**发票**、**贷记单**和**报价单**会获得连续编号。
* \*\*其他（不编号）\*\*用于其他所有单据，例如装箱单、退货表和拣货单。

详情请参阅[模板设置](https://foliant-help.iforiti.com/cn/templates/template-settings.md)。

## 模板的外观

您可以在模板编辑器中更改模板的外观。根据您的套餐和模板的创建方式，您可以：

* 使用**可视化**编辑器，排列现成的模块并设置样式，无需代码；
* 使用**代码**，通过 HTML、CSS 和 Liquid 编辑；
* 对于基于设计创建的模板，在设计编辑器中编辑。

编辑器的说明请参阅[模板编辑器](https://foliant-help.iforiti.com/cn/template-editor.md)。设计的说明请参阅[设计](https://foliant-help.iforiti.com/cn/designs.md)。

## 模板的使用场景

* **打印**：在订单页面，您预选的模板会自动勾选。请参阅[选择模板的预选位置](https://foliant-help.iforiti.com/cn/templates/pre-select-templates.md)。
* **导出**：PDF 导出由您的模板生成。请参阅[导出](https://foliant-help.iforiti.com/cn/exports.md)。
* **交付**：客户可以从订单页面和邮件中下载模板生成的 PDF。请参阅[PDF 交付](https://foliant-help.iforiti.com/cn/pdf-delivery.md)。

对于部分订单，您还可以用一个模板**替代**另一个模板，例如为批发客户使用单独的发票。请参阅[仅对部分订单使用模板](https://foliant-help.iforiti.com/cn/templates/who-gets-this-template.md)。

## 相关文章

* [模板页面](https://foliant-help.iforiti.com/cn/templates/templates-page.md)
* [创建模板](https://foliant-help.iforiti.com/cn/templates/create-a-template.md)
* [模板设置](https://foliant-help.iforiti.com/cn/templates/template-settings.md)
* [打开模板编辑器](https://foliant-help.iforiti.com/cn/template-editor/editor-overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.