优化出厂检验报告模版
This commit is contained in:
@@ -203,33 +203,9 @@
|
|||||||
|
|
||||||
<!-- 页脚固定在底部 -->
|
<!-- 页脚固定在底部 -->
|
||||||
<!-- <div style="position: absolute; bottom: 0; left: 0; right: 0;"> -->
|
<!-- <div style="position: absolute; bottom: 0; left: 0; right: 0;"> -->
|
||||||
<!-- <t t-call="sf_quality.report_quality_footer"/>-->
|
<t t-call="sf_quality.report_quality_footer"/>
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
<div style="position: absolute; bottom: 0; left: 0; right: 0;" class="footer">
|
|
||||||
<t t-call="sf_quality.report_quality_footer"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
|
||||||
/* 隐藏所有页面的页脚 */
|
|
||||||
.footer {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 确保分页时内容不会与页脚重叠 */
|
|
||||||
@media print {
|
|
||||||
.page {
|
|
||||||
page-break-after: always;
|
|
||||||
margin-bottom: 0; /* 移除之前的250px设置 */
|
|
||||||
}
|
|
||||||
.page:last-child {
|
|
||||||
page-break-after: auto;
|
|
||||||
}
|
|
||||||
.page:last-child .footer {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
@@ -354,8 +330,13 @@
|
|||||||
|
|
||||||
<!-- 页脚固定在底部 -->
|
<!-- 页脚固定在底部 -->
|
||||||
<!-- <div style="position: absolute; bottom: 0; left: 0; right: 0;"> -->
|
<!-- <div style="position: absolute; bottom: 0; left: 0; right: 0;"> -->
|
||||||
<t t-call="sf_quality.html_report_quality_footer"/>
|
<!-- <t t-call="sf_quality.html_report_quality_footer"/>-->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
|
<t t-if="o._index == len(docs) - 1">
|
||||||
|
<div style="position: absolute; bottom: 0; left: 0; right: 0;">
|
||||||
|
<t t-call="sf_quality.report_quality_footer"/>
|
||||||
|
</div>
|
||||||
|
</t>
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
|
|||||||
Reference in New Issue
Block a user