From 3833cab31234550a7dda43804439834dd0aee803 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Sun, 20 Sep 2026 15:39:55 +0800 Subject: [PATCH] =?UTF-8?q?2026-09-20=20iqc=E4=BB=BB=E5=8A=A1=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=88=80=E6=A8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/qc/IQCResultEntry.vue | 78 ++++++++++++++++-------- src/views/modules/qc/qcPartAttribute.vue | 46 ++++++++++---- 2 files changed, 85 insertions(+), 39 deletions(-) diff --git a/src/views/modules/qc/IQCResultEntry.vue b/src/views/modules/qc/IQCResultEntry.vue index 386cac8..18ed5fa 100644 --- a/src/views/modules/qc/IQCResultEntry.vue +++ b/src/views/modules/qc/IQCResultEntry.vue @@ -79,10 +79,8 @@ --> - - - - + + @@ -792,6 +790,17 @@ + +
已确认单据信息无误,确定审核该 {{ IQCSelections.length }} 条记录
+ + 是否触发QMS的上机检验任务单 + + + 取消 + 确定 + +
+ @@ -855,6 +864,10 @@ end = this.tableData.length } return this.tableData.slice(start,end) + }, + needTriggerMachineInspectOption () { + const types = this.appearanceInspectTypes || [] + return (this.IQCSelections || []).some(r => types.indexOf(r.submissionType) !== -1) } }, watch: { @@ -912,7 +925,12 @@ isQualifiedChinese: '', submitList: [], updateBy: this.$store.state.user.name, + triggerMachineInspect: false, }, + submitConfirmFlag: false, + triggerMachineInspect: false, + iqcSubmissionTypeOptions: ['材料进货检验', '刀模进货检验-外观', '刀模进货检验-上机', '刀模维修检验-外观', '刀模维修检验-上机'], + appearanceInspectTypes: ['刀模进货检验-外观', '刀模维修检验-外观'], tagNo:'', searchData: { site: '', @@ -1319,7 +1337,7 @@ sortLv: 0, status: true, fixed: '', - columnWidth: 100, + columnWidth: 160, }, { userId: this.$store.state.user.name, @@ -3072,28 +3090,34 @@ // }) // return false // } - this.$confirm(`已确认单据信息无误,确定审核该 ` + this.IQCSelections.length + ` 条记录`, '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - this.submitData.submitList = this.IQCSelections - saveIQCSubmitResult(this.submitData).then(({data}) => { - if (data && data.code === 0) { - this.getDataList() - this.IQCSelections = [] - this.$message({ - message: '操作成功', - type: 'success', - duration: 1500, - onClose: () => {} - }) - } else { - this.$alert(data.msg, '错误', { - confirmButtonText: '确定' - }) - } - }) + this.triggerMachineInspect = false + this.submitConfirmFlag = true + }, + + confirmSubmitResult () { + this.submitConfirmFlag = false + this.doSaveIQCSubmitResult() + }, + + doSaveIQCSubmitResult () { + this.submitData.submitList = this.IQCSelections + this.submitData.triggerMachineInspect = this.needTriggerMachineInspectOption ? this.triggerMachineInspect : false + saveIQCSubmitResult(this.submitData).then(({data}) => { + if (data && data.code === 0) { + this.getDataList() + this.IQCSelections = [] + this.triggerMachineInspect = false + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {} + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } }) }, diff --git a/src/views/modules/qc/qcPartAttribute.vue b/src/views/modules/qc/qcPartAttribute.vue index 32ad081..59bf7e6 100644 --- a/src/views/modules/qc/qcPartAttribute.vue +++ b/src/views/modules/qc/qcPartAttribute.vue @@ -280,23 +280,23 @@ prop="ipqcInspectionMethod" header-align="center" align="center" - min-width="140" - label="IPQC检验方式"> + min-width="180" + label="检验方式"> this.isIPQCInspectionType(r) && !r.ipqcInspectionMethod) - if (missingIpqc) { - this.$message.warning('检验类型为IPQC时,“IPQC检验方式”为必填!') + const missingMethod = (this.detailList || []).find(r => this.isInspectionMethodApplicable(r) && !r.ipqcInspectionMethod) + if (missingMethod) { + this.$message.warning('检验类型为IPQC或IQC时,“检验方式”为必填!') return } for (let i = 0; i < this.detailList.length; i++) {