From 5ffc0a149787fa086a99b5c9b2e11e5327029c5f Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 18 九月 2025 09:38:56 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/discharge/index.vue |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/src/views/followvisit/discharge/index.vue b/src/views/followvisit/discharge/index.vue
index 25d03b6..f6c83ed 100644
--- a/src/views/followvisit/discharge/index.vue
+++ b/src/views/followvisit/discharge/index.vue
@@ -991,6 +991,11 @@
         value: dept.districtCode,
       };
     });
+    this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
+      (obj) => obj.deptCode
+    );
+    this.topqueryParams.leavehospitaldistrictcodes =
+      store.getters.belongWards.map((obj) => obj.districtCode);
     if (this.errtype) {
       this.toleadExport(2);
     } else {
@@ -1017,14 +1022,6 @@
         this.topqueryParams.leavehospitaldistrictcodes = [];
       if (!this.topqueryParams.leaveldeptcodes)
         this.topqueryParams.leaveldeptcodes = [];
-      if (
-        this.topqueryParams.leavehospitaldistrictcodes[0] &&
-        this.topqueryParams.leaveldeptcodes[0]
-      ) {
-        this.topqueryParams.deptOrDistrict = 2;
-      } else {
-        this.topqueryParams.deptOrDistrict = 1;
-      }
 
       getTaskservelist(this.topqueryParams).then((response) => {
         this.userList = response.rows[0].serviceSubtaskList;
@@ -1067,8 +1064,7 @@
       });
     },
     affiliation() {
-      this.topqueryParams.drcode = store.getters.hisUserId;
-      this.topqueryParams.nurseId = store.getters.hisUserId;
+      this.topqueryParams.managementDoctorCode = store.getters.hisUserId;
       this.getList(1);
     },
     onthatday() {

--
Gitblit v1.9.3