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 = {