添加合格图章
This commit is contained in:
@@ -774,8 +774,8 @@ class QualityCheckMeasureLine(models.Model):
|
||||
|
||||
# 判定结果
|
||||
measure_result = fields.Selection([
|
||||
('OK', 'OK'),
|
||||
('NG', 'NG')
|
||||
('OK', '合格'),
|
||||
('NG', '不合格')
|
||||
], string='判定', default='OK')
|
||||
|
||||
remark = fields.Char('备注')
|
||||
|
||||
@@ -27,7 +27,7 @@ patch(ListRenderer.prototype, 'custom_measure_line_tree_patch', {
|
||||
owl.onRendered(() => {
|
||||
setTimeout(() => {
|
||||
const $dom = $(this.__owl__?.bdom?.el)
|
||||
if(!$dom || $dom.length) return
|
||||
if(!$dom || !$dom.length) return
|
||||
const $thead = $dom.find('thead').find('th');
|
||||
if(!this.props.list.records || this.props.list.records.length == 0) return
|
||||
const $total_qty = this.props.list.records[0].data.column_nums;
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
</table>
|
||||
|
||||
<h4 class="text-center mt-4">检验结果</h4>
|
||||
<div class="" style="position: relative;">
|
||||
<table class="table table-sm mt-2" style="border: 1px solid black;">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -109,7 +110,9 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</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="col-12">
|
||||
<h5>检验结论:
|
||||
@@ -129,7 +132,9 @@
|
||||
<p><strong>质检员: </strong> <span t-field="o.quality_manager"/></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 添加合格标签 -->
|
||||
|
||||
<div class="row mt-5">
|
||||
<div class="col-12 text-center">
|
||||
<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