Explorar el Código

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

liujt hace 6 meses
padre
commit
0295cd9614
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
           }