添加合格图章

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;