添加合格图章
This commit is contained in:
@@ -774,8 +774,8 @@ class QualityCheckMeasureLine(models.Model):
|
|||||||
|
|
||||||
# 判定结果
|
# 判定结果
|
||||||
measure_result = fields.Selection([
|
measure_result = fields.Selection([
|
||||||
('OK', 'OK'),
|
('OK', '合格'),
|
||||||
('NG', 'NG')
|
('NG', '不合格')
|
||||||
], string='判定', default='OK')
|
], string='判定', default='OK')
|
||||||
|
|
||||||
remark = fields.Char('备注')
|
remark = fields.Char('备注')
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ patch(ListRenderer.prototype, 'custom_measure_line_tree_patch', {
|
|||||||
owl.onRendered(() => {
|
owl.onRendered(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const $dom = $(this.__owl__?.bdom?.el)
|
const $dom = $(this.__owl__?.bdom?.el)
|
||||||
if(!$dom || $dom.length) return
|
if(!$dom || !$dom.length) return
|
||||||
const $thead = $dom.find('thead').find('th');
|
const $thead = $dom.find('thead').find('th');
|
||||||
if(!this.props.list.records || this.props.list.records.length == 0) return
|
if(!this.props.list.records || this.props.list.records.length == 0) return
|
||||||
const $total_qty = this.props.list.records[0].data.column_nums;
|
const $total_qty = this.props.list.records[0].data.column_nums;
|
||||||
|
|||||||
@@ -77,6 +77,7 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h4 class="text-center mt-4">检验结果</h4>
|
<h4 class="text-center mt-4">检验结果</h4>
|
||||||
|
<div class="" style="position: relative;">
|
||||||
<table class="table table-sm mt-2" style="border: 1px solid black;">
|
<table class="table table-sm mt-2" style="border: 1px solid black;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -109,7 +110,9 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<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">
|
<div class="row mt-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<h5>检验结论:
|
<h5>检验结论:
|
||||||
@@ -130,6 +133,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 添加合格标签 -->
|
||||||
|
|
||||||
<div class="row mt-5">
|
<div class="row mt-5">
|
||||||
<div class="col-12 text-center">
|
<div class="col-12 text-center">
|
||||||
<p>(以下空白)</p>
|
<p>(以下空白)</p>
|
||||||
|
|||||||
BIN
sf_quality/static/img/pass.png
Normal file
BIN
sf_quality/static/img/pass.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
Reference in New Issue
Block a user