Просмотр исходного кода

修改首件两检自检喝专检的时候没有点击保存或提交的时候去校验必填项

695593266@qq.com 5 месяцев назад
Родитель
Сommit
30a5b3f55f

+ 5 - 1
src/views/produce/components/qualityInspection/components/selfInspectionReporting.vue

@@ -538,7 +538,11 @@
         }
 
         this.visible = true;
-        this.getData();
+        // this.getData();
+        this.$nextTick(async () => {
+          await this.getData();
+          this.$refs.form && this.$refs.form.clearValidate();
+        });
       },
 
       saveSelf(actionType) {