介绍

详情

配置步骤

1. 选中模块数据,点击【新建报表】;

2. 弹出页面中填写名称、编码,点击【确定】按钮添加报表;

注意:1、名称不允许录入非法字符: \ / * ? : "<> |等;
2、编码由大写字母、下划线、数字组成,且为大写字母,一般由产品名首字母缩写_模块名首字母缩写构成,长度大于1,且不能重复

3. 【引入数据源】,选择数据源,点击【确认】按钮;

4. 配置富文本编辑器报表模板

注意: 模板的组件公式要更换自己的数据源字段

<h1 style="font-size: 32px; font-weight: bold; padding: 0px 4px 0px 0px; text-align: center; margin: 0px 0px 20px; width: 100%;">普通报表</h1>
<table style="border-collapse: collapse; width: 762px; margin-left: auto; margin-right: auto;" border="1px" align="center" data-sort="sortDisabled">
<tbody>
<tr class="firstRow">
<td style="padding-top: 4px; padding-right: 4px; padding-bottom: 4px; word-break: break-all; font-weight: bold; background-color: #f2f2f2; border-color: #cecece; width: 66.4375px; height: 40px; text-align: center; vertical-align: middle;" align="center" valign="middle" width="48" height="40" data-fill="0">NO.</td>
<td style="padding: 4px; word-break: break-all; font-weight: bold; background-color: #f2f2f2; border-color: #cecece; width: 252px;" align="center" valign="middle" width="204" height="40" data-fill="0">项目名称</td>
<td style="padding: 4px; word-break: break-all; font-weight: bold; background-color: #f2f2f2; border-color: #cecece; width: 121.188px;" align="center" valign="middle" width="94" height="40" data-fill="0">负责人</td>
<td style="padding: 4px; word-break: break-all; font-weight: bold; background-color: #f2f2f2; border-color: #cecece; width: 127.875px;" align="center" valign="middle" width="114" height="40" data-fill="0">项目阶段</td>
<td style="padding: 4px; word-break: break-all; font-weight: bold; background-color: #f2f2f2; border-color: #cecece; width: 148.5px;" align="center" valign="middle" width="97" height="40" data-fill="0">费用金额(元)</td>
</tr>
<tr>
<td style="padding: 4px; border-color: #cecece; font-weight: normal; word-break: break-all; width: 66.4375px;" align="center" valign="middle" width="48" height="36" data-fill="0"><button contenteditable="false" type="reportBtn" data-filename="空字段" data-text="序号" data-datasourcename="" data-code="e1GCDmuPXowEhwmdWNX" data-fontsize="" data-fontfamily="" data-fontweight="" data-color="" data-defaultvalue="" data-formula="" data-to="NUM" data-group="" data-groupfield="" data-groupfieldtpl="" data-groupsummary="">序号</button></td>
<td style="padding: 4px; border-color: #cecece; font-weight: normal; word-break: break-all; width: 252px;" align="left" valign="middle" width="200" height="36" data-fill="0"><button contenteditable="false" type="reportBtn" data-text="项目名称" data-code="mzmMpEAN1T699rVcu9A" data-formula="BBSJY.项目名称" data-filename="项目名称" data-datasourcename="报表数据源" data-fontsize="" data-fontfamily="" data-fontweight="" data-color="" data-defaultvalue="" data-to="DATA" data-group="" data-groupfield="" data-groupfieldtpl="" data-groupsummary="">项目名称</button></td>
<td style="padding: 4px; border-color: #cecece; font-weight: normal; width: 121.188px;" align="center" valign="middle" width="92" height="36" data-fill="0"><button contenteditable="false" type="reportBtn" data-text="负责人" data-code="rOTRLcFUumLNJlTKIfX" data-formula="BBSJY.负责人" data-filename="负责人" data-datasourcename="报表数据源">负责人</button></td>
<td style="padding: 4px; border-color: #cecece; font-weight: normal; width: 127.875px;" align="center" valign="middle" width="109" height="36" data-fill="0"><button contenteditable="false" type="reportBtn" data-text="项目类型_NAME" data-code="Mi5RWTNsbuPevl6NMqP" data-formula="BBSJY.项目类型_NAME" data-filename="项目类型_NAME" data-datasourcename="报表数据源">项目类型_NAME</button></td>
<td style="padding: 4px; border-color: #cecece; font-weight: normal; width: 148.5px;" align="center" valign="middle" width="97" height="36" data-fill="0"><button contenteditable="false" type="reportBtn" data-text="项目金额" data-code="E4r7dd9RG3FlKYMQICY" data-formula="BBSJY.项目金额" data-filename="项目金额" data-datasourcename="报表数据源">项目金额</button></td>
</tr>
<tr>
<td style="padding: 4px; font-weight: normal; border-color: #cecece; width: 66.4375px;" align="center" valign="middle" height="36" data-fill="0">&nbsp;</td>
<td style="padding: 4px; font-weight: normal; border-color: #cecece; width: 252px;" align="center" valign="middle" height="36" data-fill="0">&nbsp;</td>
<td style="padding: 4px; font-weight: normal; border-color: #cecece; width: 121.188px;" align="center" valign="middle" height="36" data-fill="0">&nbsp;</td>
<td style="padding: 4px; font-weight: normal; border-color: #cecece; word-break: break-all; width: 127.875px;" align="center" valign="middle" height="36" data-fill="0"><span style="color: #0070c0;">合计</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td>
<td style="padding: 4px; font-weight: normal; border-color: #cecece; width: 148.5px;" align="center" valign="middle" height="36" data-fill="0"><button contenteditable="false" type="reportBtn" data-text="项目金额" data-code="wJi1yQdwu0LRnEhGmG8" data-formula="sum(BBSJY.项目金额)" data-filename="项目金额" data-datasourcename="报表数据源" data-fontsize="" data-fontfamily="" data-fontweight="" data-color="" data-defaultvalue="" data-to="" data-group="" data-groupfield="" data-groupfieldtpl="" data-groupsummary="">项目金额</button></td>
</tr>
<tr>
<td style="padding: 1px; word-break: break-all; border-right-color: #ffffff; border-bottom-color: #ffffff; border-left-color: #ffffff; width: 716px;" colspan="5" align="center" valign="middle" width="" height="" data-fill="0">&nbsp;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>

5.点击【保存】按钮,进行数据保存

6.点击预览按钮就是配置出来的效果

关键字

  • 报表引擎
  • 创建普通报表
最后编辑: 庞峰  文档更新时间: 2024-11-08 17:00   作者:庞峰