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();