From 76421db0904da4cebfccef6d8f751a6f85e0910f Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Tue, 18 Jun 2024 17:25:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E8=B0=83=E6=95=B44?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/qcIncome/checkProjectType.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/quality/qcIncome/checkProjectType.vue b/src/views/quality/qcIncome/checkProjectType.vue index 4afc2812..e1ffbc30 100644 --- a/src/views/quality/qcIncome/checkProjectType.vue +++ b/src/views/quality/qcIncome/checkProjectType.vue @@ -260,7 +260,9 @@ export default { dynamicValidateForm: { domains: [{ value: '' - }] + }], + sampleAql:null, + checkLevel:null }, // 是否显示弹出层 valueOpen: false, @@ -428,6 +430,8 @@ export default { // 使用nextTick解决循环引用问题 handleResetForm() { this.dynamicValidateForm.domains = [{ value: ''}]; + this.dynamicValidateForm.sampleAql = null; + this.dynamicValidateForm.checkLevel = null; }, //动态测量值 @@ -445,7 +449,6 @@ export default { if(row.checkLevel != null ){ this.dynamicValidateForm.checkLevel = row.checkLevel; } - const actualValue = row.actualValue; if(actualValue !== null && actualValue !== '') { this.dynamicValidateForm.domains = []; @@ -493,10 +496,11 @@ export default { let values = this.dynamicValidateForm.domains; var actualValues = values.map(item => item.value); if(this.typeCode=='material' || this.typeCode =='product'){//只有来料和成品有自动判定 + debugger //自动判定开始(仅使用范围形) getAutoJudge(this.quality, - this.checkLevel, - this.sampleAql, + this.dynamicValidateForm.checkLevel, + this.dynamicValidateForm.sampleAql, actualValues, _this.downDiff, _this.upperDiff @@ -523,6 +527,8 @@ export default { commitActualValueFun(recordId, actualValues,autoStatus,checkLevel,sampleAql,sampleCode,sampleQuality){ commitActualValue(recordId, actualValues,autoStatus,checkLevel,sampleAql,sampleCode,sampleQuality).then(response => { this.dynamicValidateForm.domains = [{ value: ''}]; + this.dynamicValidateForm.checkLevel = null; + this.dynamicValidateForm.sampleAql = null; this.$modal.msgSuccess("提交成功"); this.valueOpen = false; this.getList();