From ba57b519a005cd816f1a178f2c062426cff13f7c Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 15 七月 2025 11:09:07 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/follow/index.vue |   87 ++++++++++++++++++++++++++++++++++++-------
 1 files changed, 73 insertions(+), 14 deletions(-)

diff --git a/src/views/patient/follow/index.vue b/src/views/patient/follow/index.vue
index 50d9526..7cbabad 100644
--- a/src/views/patient/follow/index.vue
+++ b/src/views/patient/follow/index.vue
@@ -246,20 +246,34 @@
                 @keyup.enter.native="handleQuery"
               />
             </el-form-item>
-            <el-form-item label="鎮h�呰寖鍥�" prop="tagId">
-                <el-select
-                  v-model="filtrqueryParams.searchscope"
-                  placeholder="璇烽�夋嫨鎮h�呰寖鍥�"
+            <el-form-item label="浠诲姟绫诲瀷">
+              <el-select
+                v-model="filtrqueryParams.allhosp"
+                placeholder="璇烽�夋嫨鏂板绫诲瀷"
+              >
+                <el-option
+                  v-for="item in taskoptions"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value"
                 >
-                  <el-option
-                    v-for="item in source"
-                    :key="item.value"
-                    :label="item.label"
-                    :value="item.value"
-                  >
-                  </el-option>
-                </el-select>
-              </el-form-item>
+                </el-option>
+              </el-select>
+            </el-form-item>
+            <el-form-item label="鎮h�呰寖鍥�" prop="tagId">
+              <el-select
+                v-model="filtrqueryParams.searchscope"
+                placeholder="璇烽�夋嫨鎮h�呰寖鍥�"
+              >
+                <el-option
+                  v-for="item in source"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.value"
+                >
+                </el-option>
+              </el-select>
+            </el-form-item>
 
             <el-form-item>
               <el-button
@@ -521,6 +535,20 @@
         { papersname: "涓浗娓境灞呮皯韬唤璇�" },
         { papersname: "涓浗鍙版咕灞呮皯韬唤璇�" },
       ],
+      source: [
+        {
+          value: 0,
+          label: "鍏ㄩ儴鎮h��",
+        },
+        {
+          value: 1,
+          label: "绉戝鎮h��",
+        },
+        {
+          value: 2,
+          label: "鐥呭尯鎮h��",
+        },
+      ],
       // 琛ㄥ崟鍙傛暟
       form: {
         name: "",
@@ -537,6 +565,7 @@
         pageNum: 1,
         pageSize: 10,
         allhosp: 0,
+        searchscope:0,
       },
       //瀵煎叆杩涘害
       dractive: 1,
@@ -569,6 +598,24 @@
         {
           value: 2,
           label: "鐥呭尯鎮h��",
+        },
+      ],
+      taskoptions: [
+        {
+          value: "4",
+          label: "鍑洪櫌鐥呬汉",
+        },
+        {
+          value: "1",
+          label: "鍦ㄩ櫌鐥呬汉",
+        },
+        {
+          value: "2",
+          label: "闂ㄨ瘖鐥呬汉",
+        },
+        {
+          value: 0,
+          label: "鍏ㄩ儴",
         },
       ],
       whether: [
@@ -691,7 +738,19 @@
     distribute() {
       this.distributeVisible = true;
       this.filtrloading = true;
-
+      if (this.filtrqueryParams.searchscope == 1) {
+        this.filtrqueryParams.deptcodes = store.getters.belongDepts.map(
+          (obj) => obj.deptCode
+        );
+        this.filtrqueryParams.hospitaldistrictcodes = [];
+      } else if (this.filtrqueryParams.searchscope == 2) {
+        this.filtrqueryParams.hospitaldistrictcodes =
+          store.getters.belongWards.map((obj) => obj.districtCode);
+        this.filtrqueryParams.deptcodes = [];
+      } else {
+        this.filtrqueryParams.deptcodes = [];
+        this.filtrqueryParams.hospitaldistrictcodes = [];
+      }
       messagelistpatient(this.filtrqueryParams).then((response) => {
         this.filtruserList = response.rows;
         this.filtrtotal = response.total;

--
Gitblit v1.9.3