Accept Merge Request #1950: (feature/制造功能优化 -> develop)

Merge Request: 调整报告样式

Created By: @马广威
Accepted By: @马广威
URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1950?initial=true
This commit is contained in:
马广威
2025-03-21 18:26:18 +08:00
committed by Coding

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;">
<img src="/sf_quality/static/img/logo.png" style="max-height: 70px;" alt="Logo"/>
<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="text-center" >
<h2 style="line-height: 133px;">出厂检验报告</h2>
<div class="text-center">
<h2>出厂检验报告</h2>
</div>
<div style="padding-top: 20px;">
<div class="float-right" style="text-align: right;">
<!-- 使用公开访问URL的二维码 -->
<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-if="o.report_number_id" t-field="o.report_number_id"/> <span t-else="">ceshi</span>
</div>
<!-- 添加扫码提示 -->
<div style="font-size: 12px;">
<strong>扫描二维码查看PDF报告</strong>
</div>
<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-if="o.report_number_id" t-field="o.report_number_id"/> <span t-else="">ceshi</span>
</div>
<!-- 添加扫码提示 -->
<div style="font-size: 12px; margin-top: 5px;">
<strong>扫描二维码查看PDF报告</strong>
</div>
</div>
</div>
</div>
</template>
@@ -29,15 +29,19 @@
<template id="report_quality_footer">
<div class="footer">
<div class="row">
<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 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>
</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">
@@ -111,7 +115,7 @@
</tr>
</tbody>
</table>
<img src="/sf_quality/static/img/pass.png" style="width: 150px; height: 150px;position: absolute; bottom: 20px; right: 23%;"/>
<img src="/sf_quality/static/img/pass.png" style="width: 200px; height: 200px;position: absolute; bottom: 20px; right: 20%;"/>
</div>
<div class="row mt-4">
@@ -138,7 +142,7 @@
<div class="row mt-5">
<div class="col-12 text-center">
<p></p>
<p>(以下空白)</p>
</div>
</div>