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

fix(产前检查): 判断记录规则和事件驱动下提醒

liujt 6 месяцев назад
Родитель
Сommit
1490255eb7
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      src/views/produce/components/prenatalExamination/index.vue

+ 6 - 2
src/views/produce/components/prenatalExamination/index.vue

@@ -230,12 +230,16 @@
         this.dialogVisible = false;
       },
       openMaintenancePlan(item) {
-        console.log('item', item);
-
+        console.log('item~~~', item);
+        // itemType 事项类型
         if (item.itemType == 1) {
           // 计划规则 巡点检 设备保养
           this.$refs.planRulesDialogRef.open(item);
         } else if (item.itemType == 2) {
+          if(!item.planId && item.executeMethod == 1) {
+            this.$message.error('未生成记录计划');
+            return;
+          }
           this.$refs.releaseRulesDialogRef.open(
             item,
             this.workOrderInfo,