Przeglądaj źródła

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

liujt 6 miesięcy temu
rodzic
commit
0295cd9614

+ 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;
           }