Преглед на файлове

fix(产前检查): 修复未生成记录计划时的条件判断逻辑

liujt преди 6 месеца
родител
ревизия
0295cd9614
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/views/produce/components/prenatalExamination/index.vue

+ 1 - 1
src/views/produce/components/prenatalExamination/index.vue

@@ -236,7 +236,7 @@
           // 计划规则 巡点检 设备保养
           this.$refs.planRulesDialogRef.open(item);
         } else if (item.itemType == 2) {
-          if(!item.planId && item.executeMethod == 1) {
+          if((!item.plans || item.plans.length == 0) && item.executeMethod == 1) {
             this.$message.error('未生成记录计划');
             return;
           }