添加合格图章

This commit is contained in:
mgw
2025-03-13 17:55:13 +08:00
parent 2d4926f8b7
commit bd2ba3bb49
4 changed files with 10 additions and 5 deletions

View File

@@ -774,8 +774,8 @@ class QualityCheckMeasureLine(models.Model):
# 判定结果
measure_result = fields.Selection([
('OK', 'OK'),
('NG', 'NG')
('OK', '合格'),
('NG', '不合格')
], string='判定', default='OK')
remark = fields.Char('备注')

View File

@@ -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;

View File

@@ -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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB