From 8b4f6ed4b37bcd2c81dde62f42eacc1720e7c6eb Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 3 Jun 2026 15:07:12 +0800 Subject: [PATCH] =?UTF-8?q?2026-06-03=20IQC=E6=A3=80=E9=AA=8C=E5=8D=95?= =?UTF-8?q?=E4=B8=BA=E5=85=A8=E6=A3=80=E6=97=B6=EF=BC=8C=E2=80=9C=E9=80=81?= =?UTF-8?q?=E6=A3=80=E6=95=B0=E9=87=8F=E2=80=9D=E5=92=8C=E2=80=9C=E6=8A=BD?= =?UTF-8?q?=E6=A0=B7=E6=95=B0=E9=87=8F=E2=80=9D=E8=AE=BE=E7=BD=AE=E4=B8=BA?= =?UTF-8?q?disable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/qc/IQCResultEntry.vue | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/views/modules/qc/IQCResultEntry.vue b/src/views/modules/qc/IQCResultEntry.vue index 6c3413f..22d07f7 100644 --- a/src/views/modules/qc/IQCResultEntry.vue +++ b/src/views/modules/qc/IQCResultEntry.vue @@ -228,10 +228,10 @@ - + - + @@ -1867,6 +1867,8 @@ operatorName: '', responsiblePerson: '', responsiblePersonName: '', + inspectCode: '', + fullInspectionFlag: false, passQty: '', notPassQty: '' }, @@ -3138,6 +3140,8 @@ this.detailData.operatorName = row.operatorName this.detailData.responsiblePerson = row.responsiblePerson this.detailData.responsiblePersonName = row.responsiblePersonName + this.detailData.inspectCode = row.inspectCode + this.detailData.fullInspectionFlag = this.getFullInspectionFlag(row) if (row.state === '待检验') { this.detailData.passQty = row.samplingQty } else { @@ -3174,6 +3178,8 @@ this.detailData.operatorName = row.operatorName this.detailData.responsiblePerson = row.responsiblePerson this.detailData.responsiblePersonName = row.responsiblePersonName + this.detailData.inspectCode = row.inspectCode + this.detailData.fullInspectionFlag = this.getFullInspectionFlag(row) this.detailData.passQty = row.passQty this.detailData.notPassQty = row.notPassQty iqcDetailSearch(this.detailData).then(({data}) => { @@ -3603,6 +3609,18 @@ }) }, + // 检验方式为全检时,不允许修改送检数量和抽样数量 + getFullInspectionFlag (row) { + if (row.inspectCode !== '' && row.inspectCode != null) { + return row.inspectCode === '全检' + } + // 部分历史数据未返回检验方式时,使用数量一致性作为兜底判断 + if (row.rollCount === '' || row.rollCount == null || row.samplingQty === '' || row.samplingQty == null) { + return false + } + return Number(row.rollCount) === Number(row.samplingQty) + }, + // 收藏 OR 取消收藏 favoriteFunction () { let userFavorite = {