修改模板样式

This commit is contained in:
hyyy
2025-03-18 13:42:42 +08:00
parent fde508c563
commit 25ba61607f
2 changed files with 22 additions and 26 deletions

View File

@@ -4,23 +4,23 @@
<!-- 定义页眉模板 -->
<template id="report_quality_header">
<div class="header">
<div class="pdf-viewer-toolbar" style="display:flex;justify-content:space-between;align-items:center;">
<img t-if="o.company_id.favicon" t-att-src="image_data_uri(o.company_id.favicon)" style="max-height: 70px;" alt="Logo"/>
<div class="pdf-viewer-toolbar" style="display:flex;justify-content:space-between;">
<img src="/sf_quality/static/img/logo.png" style="max-height: 70px;" alt="Logo"/>
<div class="text-center">
<h2>出厂检验报告</h2>
<div class="text-center" >
<h2 style="line-height: 133px;">出厂检验报告</h2>
</div>
<div class="float-right" style="text-align: right;">
<div style="padding-top: 20px;">
<!-- 使用公开访问URL的二维码 -->
<img t-att-src="'/report/barcode/QR/%s' % o.get_report_url()" style="width:80px;height:80px"/>
<div style="font-size: 20px;">
<strong>报告编号: </strong><span t-field="o.name"/>
<img t-att-src="'/report/barcode/QR/%s?width=100&amp;height=100' % o.get_report_url()" style="width:80px;height:80px"/>
<div style="font-size: 14px;">
<strong>报告编号: </strong><span t-field="o.name"/>
</div>
<!-- 添加扫码提示 -->
<div style="font-size: 12px;">
<strong>扫描二维码查看PDF报告</strong>
</div>
</div>
<!-- 添加扫码提示 -->
<div style="font-size: 12px; margin-top: 5px;">
<strong>扫描二维码查看PDF报告</strong>
</div>
</div>
</div>
</div>
</template>
@@ -29,19 +29,15 @@
<template id="report_quality_footer">
<div class="footer">
<div class="row">
<div class="col-6">
<p>售后服务: <span t-field="o.company_id.phone"/></p>
<p>公司名称: <span t-field="o.company_id.name"/></p>
<p>公司网址: <span t-field="o.company_id.website"/></p>
<p>公司邮箱: <span t-field="o.company_id.email"/></p>
</div>
<div class="col-6">
<p>加工工厂: <span t-field="o.company_id.factory_name"/></p>
</div>
<p style="float: left;width: 50%;margin-bottom: 10px;">售后服务: <span t-field="o.company_id.phone"/></p>
<p style="float: left;width: 50%;margin-bottom: 10px;">公司名称: <span t-field="o.company_id.name"/></p>
<p style="float: left;width: 50%;margin-bottom: 10px;">公司网址: <span t-field="o.company_id.website"/></p>
<p style="float: left;width: 50%;margin-bottom: 10px;">公司邮箱: <span t-field="o.company_id.email"/></p>
<p style="float: left;width: 50%;margin-bottom: 10px;">加工工厂: <span t-field="o.company_id.factory_name"/></p>
</div>
<div class="text-center">
<!-- <div class="text-center">
<span>第<span class="page"/> 页/共 <span class="topage"/>页</span>
</div>
</div> -->
</div>
</template>
<template id="report_quality_inspection">
@@ -115,7 +111,7 @@
</tr>
</tbody>
</table>
<img src="/sf_quality/static/img/pass.png" style="width: 200px; height: 200px;position: absolute; bottom: 20px; right: 20%;"/>
<img src="/sf_quality/static/img/pass.png" style="width: 150px; height: 150px;position: absolute; bottom: 20px; right: 23%;"/>
</div>
<div class="row mt-4">
@@ -142,7 +138,7 @@
<div class="row mt-5">
<div class="col-12 text-center">
<p>(以下空白)</p>
<p></p>
</div>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB