From 8d4db7b7b8243341ef3e5e9aaf14c31314b65886 Mon Sep 17 00:00:00 2001 From: shaoyong Date: Mon, 20 May 2024 10:30:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=A5=E6=96=99=E6=A3=80=E9=AA=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quality/qcIncome/checkProjectType.vue | 109 +++++++++++++++++- src/views/quality/qcIncome/index.vue | 8 +- 2 files changed, 108 insertions(+), 9 deletions(-) diff --git a/src/views/quality/qcIncome/checkProjectType.vue b/src/views/quality/qcIncome/checkProjectType.vue index fe9960c..7b762ef 100644 --- a/src/views/quality/qcIncome/checkProjectType.vue +++ b/src/views/quality/qcIncome/checkProjectType.vue @@ -7,8 +7,60 @@ width="1400px" > - + + + + + + 合格 + 不合格 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -49,7 +101,7 @@ >不良数量 - + + + + { + // 拼接数据 + const finalData = {...this.form,...data} + commitCheckResult(finalData).then(response => { this.$modal.msgSuccess("检测完成"); this.$emit('saveCheck'); this.showFlag = false; @@ -300,6 +397,7 @@ export default { //取消 cancelForm() { this.showFlag = false; + this.reset(); }, // 数据状态修改/Y合格N不合格 @@ -421,7 +519,8 @@ export default { this.$refs.defectForm.resetFields(); // 重置 defectForm.defectItems 为初始状态或清空 noOkQuality this.defectForm.defectItems.forEach(item => (item.noOkQuality = 0)); - } + }, + } }; diff --git a/src/views/quality/qcIncome/index.vue b/src/views/quality/qcIncome/index.vue index 9fee865..581fcc4 100644 --- a/src/views/quality/qcIncome/index.vue +++ b/src/views/quality/qcIncome/index.vue @@ -713,9 +713,9 @@ export default { //检验项目弹窗 handleCheckProject(row){ - if(row.checkStatus != '0'){ - this.$modal.msgSuccess("已经完成检验"); - return + if(row.checkStatus != '0'){ + this.$modal.msgSuccess("已经完成检验"); + return } this.$refs.itemSelectProject.showFlag = true; @@ -728,7 +728,7 @@ export default { }, //提交检测结果 saveCheck(){ - this.getList(); + this.getList(); }, handleDefectType() { const defectType = "material";