From a98c01f3b2bb6ec62857d61fe1f9075703ec490f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=AE=8F=E6=96=8C?= <2164406372@qq.com> Date: Fri, 31 Oct 2025 17:39:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E5=8D=95=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E6=89=B9=E6=AC=A1=E4=B8=8D=E5=90=88?= =?UTF-8?q?=E6=A0=BC=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/qc/IQCResultEntry.vue | 26 ++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/views/modules/qc/IQCResultEntry.vue b/src/views/modules/qc/IQCResultEntry.vue index dcb8de7..eb6a822 100644 --- a/src/views/modules/qc/IQCResultEntry.vue +++ b/src/views/modules/qc/IQCResultEntry.vue @@ -225,10 +225,13 @@ + + + - + - + @@ -682,7 +685,7 @@ } else if (this.detailData.disposalMeasures === '挑选使用') { this.detailData.batchQualifiedQty = this.detailData.rollQty - this.detailData.notPassQty } - } else { + } else if (this.detailData.inspectionResult === '合格'){ this.detailData.batchQualifiedQty = this.detailData.rollQty } } @@ -1588,6 +1591,7 @@ sku:'', rollQty: '', samplingQty: '', + noBatchQualifiedQty: 0, unqualifiedQty: 0, unqualifiedQuantity: '', disposalMeasures: '', @@ -1609,7 +1613,7 @@ state: '', passQty: '', notPassQty: '', - batchQualifiedQty: '' + batchQualifiedQty: 0 }, detailInformationFlag: false, detailList: [], @@ -1831,7 +1835,17 @@ } qcPrint(this.IQCSelections) }, - + noBatchQualifiedQtyChange(){ + if (this.detailData.noBatchQualifiedQty > this.detailData.rollQty) { + // 恢复原值 + this.detailData.noBatchQualifiedQty = this.detailData.rollQty - this.detailData.batchQualifiedQty + this.$message.warning('批次不合格数量不能大于到货数量!') + return false + } + // 给合格数量赋值 + let newValue = this.detailData.rollQty - this.detailData.noBatchQualifiedQty + this.$set(this.detailData, 'batchQualifiedQty', newValue) + }, // 数据采集 dataAcquisition () { this.loadFlag = true @@ -2392,6 +2406,8 @@ this.detailData.notPassQty = row.notPassQty } this.detailData.batchQualifiedQty = row.batchQualifiedQty + // 给批次不合格数量赋值 + this.detailData.noBatchQualifiedQty = this.detailData.notPassQty this.getInspectionFormData() this.detailInformationFlag = true },