From bbbc478129f72b26e2ec4a2e981ed8698a96880c Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 22 十月 2026 00:28:18 +0800
Subject: [PATCH] 当service_type=6时,需要根据传入的入院还是离院病区(病区)去后端查询

---
 src/views/system/ruleconfig/index.vue |   24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/src/views/system/ruleconfig/index.vue b/src/views/system/ruleconfig/index.vue
index 7554947..f832adf 100644
--- a/src/views/system/ruleconfig/index.vue
+++ b/src/views/system/ruleconfig/index.vue
@@ -334,11 +334,21 @@
       }
       return [];
     },
+     computedWardOptions() {
+      if (this.$store.getters.belongWards) {
+        return this.$store.getters.belongWards.map((dept) => ({
+          label: dept.districtName,
+          value: dept.districtCode,
+        }));
+      }
+      return [];
+    },
   },
   created() {
     this.getList();
     this.departmentOptions = this.computedDepartmentOptions;
-    this.fetchWardOptions();
+    this.wardOptions = this.computedWardOptions;
+    // this.fetchWardOptions();
   },
   methods: {
     // 鑾峰彇瑙勫垯鍒楄〃
@@ -375,12 +385,12 @@
       // });
 
       // 涓存椂鏁版嵁
-      this.wardOptions = [
-        { label: "蹇冭绠″唴绉戜竴鐥呭尯", value: "W001" },
-        { label: "蹇冭绠″唴绉戜簩鐥呭尯", value: "W002" },
-        { label: "鍛煎惛鍐呯鐥呭尯", value: "W003" },
-        { label: "绁炵粡鍐呯鐥呭尯", value: "W004" },
-      ];
+      // this.wardOptions = [
+      //   { label: "蹇冭绠″唴绉戜竴鐥呭尯", value: "W001" },
+      //   { label: "蹇冭绠″唴绉戜簩鐥呭尯", value: "W002" },
+      //   { label: "鍛煎惛鍐呯鐥呭尯", value: "W003" },
+      //   { label: "绁炵粡鍐呯鐥呭尯", value: "W004" },
+      // ];
     },
 
     // 绉戝鍙樺寲澶勭悊

--
Gitblit v1.9.3