From 233668a22e6a283aa9ccffaa0afcc7d31a3414a2 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期四, 26 六月 2025 16:48:52 +0800
Subject: [PATCH] 1

---
 src/views/reservation/reservations/index.vue |   46 +++++++++++++++++++---------------------------
 1 files changed, 19 insertions(+), 27 deletions(-)

diff --git a/src/views/reservation/reservations/index.vue b/src/views/reservation/reservations/index.vue
index 371047c..76e2459 100644
--- a/src/views/reservation/reservations/index.vue
+++ b/src/views/reservation/reservations/index.vue
@@ -2033,6 +2033,7 @@
       webSocket: null,
       defaultKeys: [],
       deptList: [],
+      groupingList: [],
       value1: "",
       pacName: "",
       hides: false,
@@ -2429,7 +2430,8 @@
       this.open1 = true;
       this.title = "娣诲姞浣撴鍗曚綅淇℃伅缁存姢";
     },
-    idFn1(value) {
+     idFn1(value) {
+      console.log(value)
       if (value) {
         this.form.dictCompId = value;
         this.CompanyList.forEach((item) => {
@@ -2438,7 +2440,21 @@
             this.queryParams.company = item.cnName;
           }
         });
+        Deptlist(value).then((response) => {
+          this.deptList = response.data;
+        });
       }
+    },
+      idFn2(value) {
+      let data = {
+        deptId: value,
+        dwId: this.form.dictCompId,
+      };
+      getDwAndDwDept(data).then((response) => {
+        // 閮ㄩ棬鍚嶇О
+        this.groupingList = response.data;
+
+      });
     },
     dateChangebirthday2(val) {
       this.startTime = val;
@@ -2489,32 +2505,8 @@
         });
       }
     },
-    idFn1(value) {
-      console.log(value)
-      if (value) {
-        this.form.dictCompId = value;
-        this.CompanyList.forEach((item) => {
-          if (item.drugManufacturerId == this.form.dictCompId) {
-            this.form.compName = item.cnName;
-            this.queryParams.company = item.cnName;
-          }
-        });
-        Deptlist(value).then((response) => {
-          this.deptList = response.data;
-        });
-      }
-    },
-    idFn2(value) {
-      let data = {
-        deptId: value,
-        dwId: this.form.dictCompId,
-      };
-      getDwAndDwDept(data).then((response) => {
-        // 閮ㄩ棬鍚嶇О
-        this.groupingList = response.data;
-
-      });
-    },
+   
+  
     // 琛ㄥ崟閲嶇疆
     reset() {
       this.form = {

--
Gitblit v1.8.0