From 1734a38a212673438c2a0d0d4fd945eb5f74c1aa Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期五, 12 一月 2024 11:28:24 +0800
Subject: [PATCH] abc

---
 src/views/eam/modules/maintenancePlan/EquipmentMaintenancePlanForm.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/views/eam/modules/maintenancePlan/EquipmentMaintenancePlanForm.vue b/src/views/eam/modules/maintenancePlan/EquipmentMaintenancePlanForm.vue
index 399bc98..d31736e 100644
--- a/src/views/eam/modules/maintenancePlan/EquipmentMaintenancePlanForm.vue
+++ b/src/views/eam/modules/maintenancePlan/EquipmentMaintenancePlanForm.vue
@@ -35,6 +35,7 @@
                 :triggerChange="true"
                 dictCode="maintenance_type"
                 v-model="model.type"
+                @change="(e)=>handleClearTable(e)"
               />
             </a-form-model-item>
           </a-col>
@@ -70,7 +71,7 @@
             <a-button
               type='primary'
               @click='standardSelect'
-              :disabled="formDisabled"
+              :disabled="formDisabled||model.type===null||model.type===undefined||model.type===''"
               icon="plus"
             >璁惧-淇濆吇鏍囧噯
             </a-button>
@@ -79,7 +80,8 @@
       </a-tab-pane>
     </a-tabs>
     <standard-select
-      @selectionRows='selectionRows'
+      @selectionEquipmentRows='selectionRows'
+      :maintenanceType="model.type"
       ref='standardSelectModel'
     ></standard-select>
   </a-spin>
@@ -374,6 +376,10 @@
         }
       })
     },
+
+    handleClearTable(e) {
+      this.equipmentMaintenancePlanDetailTable.dataSource = []
+    }
   }
 }
 </script>

--
Gitblit v1.9.3