修改出厂检验报告生成模版
This commit is contained in:
@@ -203,9 +203,35 @@
|
|||||||
|
|
||||||
<!-- 页脚固定在底部 -->
|
<!-- 页脚固定在底部 -->
|
||||||
<!-- <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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 只在最后一页显示页脚 */
|
||||||
|
.footer:last-of-type {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 确保分页时内容不会与页脚重叠 */
|
||||||
|
@media print {
|
||||||
|
.page {
|
||||||
|
page-break-after: always;
|
||||||
|
margin-bottom: 250px; /* 与页脚高度匹配 */
|
||||||
|
}
|
||||||
|
.page:last-child {
|
||||||
|
page-break-after: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
|
|||||||
Reference in New Issue
Block a user