Merge branch 'develop' of https://e.coding.net/jikimo-hn/jikimo_sfs/jikimo_sf into feature/commercially_launched
This commit is contained in:
@@ -3,31 +3,36 @@
|
||||
|
||||
<!-- 定义页眉模板 -->
|
||||
<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="header" style="position: relative; height: 180px; margin-bottom: 20px;">
|
||||
<!-- Logo -->
|
||||
<div style="position: absolute; top: 0; left: 0;">
|
||||
<img t-if="o.company_id.favicon" t-att-src="image_data_uri(o.company_id.favicon)" style="max-height: 70px;" alt="Logo"/>
|
||||
</div>
|
||||
|
||||
<!-- 标题 -->
|
||||
<div style="position: absolute; top: 80px; left: 0; right: 0; width: 100%;">
|
||||
<h2 style="margin: 0 auto; font-size: 33px; text-align: center; width: 200px;">出厂检验报告</h2>
|
||||
</div>
|
||||
|
||||
<!-- 二维码和报告编号 -->
|
||||
<div style="position: absolute; top: 0; right: 0; text-align: right;">
|
||||
<img t-att-src="'/report/barcode/QR/%s' % o.get_report_url()" style="width:100px;height:100px"/>
|
||||
<div style="font-size: 14px; margin-top: 5px;">
|
||||
报告编号:<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;">
|
||||
扫描二维码查看PDF报告
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
<h2>出厂检验报告</h2>
|
||||
</div>
|
||||
<div class="float-right" style="text-align: right;">
|
||||
<!-- 使用公开访问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-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>
|
||||
</template>
|
||||
|
||||
<!-- 定义页脚模板 -->
|
||||
<template id="report_quality_footer">
|
||||
<div class="footer">
|
||||
<div style="border-top: 2px solid black;"></div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<p>售后服务: <span t-field="o.company_id.phone"/></p>
|
||||
@@ -39,26 +44,20 @@
|
||||
<p>加工工厂: <span t-field="o.company_id.factory_name"/></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<div style="border-top: 2px solid black;"></div>
|
||||
<!-- <div class="text-center">
|
||||
<span>第<span class="page"/> 页/共 <span class="topage"/>页</span>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</template>
|
||||
<template id="report_quality_inspection">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="web.basic_layout">
|
||||
<!-- 调用自定义页眉 -->
|
||||
<t t-call="sf_quality.report_quality_header"/>
|
||||
<t t-call="sf_quality.report_quality_header"/>
|
||||
|
||||
|
||||
<div class="page">
|
||||
<!-- <div class="col-6">
|
||||
<div t-if="o.company_id.favicon" class="float-right">
|
||||
<img t-att-src="image_data_uri(o.company_id.favicon)" style="max-height: 45px;" alt="Logo"/>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- </div> -->
|
||||
|
||||
<table class="table table-sm o_main_table mt-4" style="border: 1px solid black;">
|
||||
<tr>
|
||||
@@ -120,11 +119,33 @@
|
||||
</div>
|
||||
<div class="row mt-4">
|
||||
<div class="col-12">
|
||||
<h5>检验结论:
|
||||
<span t-if="o.report_result == 'OK'" style="margin-left: 20px;">☑ 合格</span>
|
||||
<span t-else="" style="margin-left: 20px;">□ 合格</span>
|
||||
<span t-if="o.report_result == 'NG'" style="margin-left: 40px;">☑ 不合格</span>
|
||||
<span t-else="" style="margin-left: 40px;">□ 不合格</span>
|
||||
<h5 style="font-size: 18px;">检验结论:
|
||||
<span t-if="o.report_result == 'OK'" style="margin-left: 30px;">
|
||||
<svg width="20" height="20" style="vertical-align: -3px;">
|
||||
<rect x="1" y="1" width="18" height="18" fill="none" stroke="black" stroke-width="1.5"/>
|
||||
<path d="M4 10 L9 15 L16 6" stroke="black" stroke-width="2" fill="none"/>
|
||||
</svg>
|
||||
<span style="margin-left: 5px;">合格</span>
|
||||
</span>
|
||||
<span t-else="" style="margin-left: 30px;">
|
||||
<svg width="20" height="20" style="vertical-align: -3px;">
|
||||
<rect x="1" y="1" width="18" height="18" fill="none" stroke="black" stroke-width="1.5"/>
|
||||
</svg>
|
||||
<span style="margin-left: 5px;">合格</span>
|
||||
</span>
|
||||
<span t-if="o.report_result == 'NG'" style="margin-left: 50px;">
|
||||
<svg width="20" height="20" style="vertical-align: -3px;">
|
||||
<rect x="1" y="1" width="18" height="18" fill="none" stroke="black" stroke-width="1.5"/>
|
||||
<path d="M4 10 L9 15 L16 6" stroke="black" stroke-width="2" fill="none"/>
|
||||
</svg>
|
||||
<span style="margin-left: 5px;">不合格</span>
|
||||
</span>
|
||||
<span t-else="" style="margin-left: 50px;">
|
||||
<svg width="20" height="20" style="vertical-align: -3px;">
|
||||
<rect x="1" y="1" width="18" height="18" fill="none" stroke="black" stroke-width="1.5"/>
|
||||
</svg>
|
||||
<span style="margin-left: 5px;">不合格</span>
|
||||
</span>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
@@ -140,11 +161,11 @@
|
||||
|
||||
<!-- 添加合格标签 -->
|
||||
|
||||
<div class="row mt-5">
|
||||
<!-- <div class="row mt-5">
|
||||
<div class="col-12 text-center">
|
||||
<p>(以下空白)</p>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!-- 调用自定义页脚 -->
|
||||
<t t-call="sf_quality.report_quality_footer"/>
|
||||
|
||||
Reference in New Issue
Block a user