修改出厂检验报告模版

This commit is contained in:
yuxianghui
2025-06-20 11:47:59 +08:00
parent aadccce47e
commit 79f89f068b

View File

@@ -207,7 +207,7 @@
<!-- </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>
@@ -216,20 +216,18 @@
display: none;
}
/* 只在最后一页显示页脚 */
.footer:last-of-type {
display: block;
}
/* 确保分页时内容不会与页脚重叠 */
@media print {
.page {
page-break-after: always;
margin-bottom: 250px; /* 与页脚高度匹配 */
margin-bottom: 0; /* 移除之前的250px设置 */
}
.page:last-child {
page-break-after: auto;
}
.page:last-child .footer {
display: block;
}
}
</style>
</t>