From f08b1336e425743ec1c3c3e6d3bf87c568ba2bc3 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 21 七月 2025 15:40:24 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/discharge/index.vue |   78 +++++++++++++++++++--------------------
 1 files changed, 38 insertions(+), 40 deletions(-)

diff --git a/src/views/followvisit/discharge/index.vue b/src/views/followvisit/discharge/index.vue
index 93b08e8..3953e03 100644
--- a/src/views/followvisit/discharge/index.vue
+++ b/src/views/followvisit/discharge/index.vue
@@ -17,7 +17,7 @@
                   font-weight: 600;
                 "
               >
-                {{ item.value ? item.value : 0 }}
+                {{ item.value ? item.value : 0 ? item.value : 0 }}
               </div>
             </div>
           </el-card>
@@ -342,7 +342,6 @@
           prop="suggest"
           width="120"
         >
-
           <template slot-scope="scope">
             <dict-tag
               :options="dict.type.sys_suggest"
@@ -784,7 +783,24 @@
       },
       value: [],
       list: [],
-
+      topicoptionssort: [
+        {
+          value: 0,
+          label: "鍑洪櫌鏃堕棿(姝e簭)",
+        },
+        {
+          value: 1,
+          label: "鍑洪櫌鏃堕棿(鍊掑簭)",
+        },
+        {
+          value: 2,
+          label: "鍙戦�佹椂闂�(姝e簭)",
+        },
+        {
+          value: 3,
+          label: "鍙戦�佹椂闂�(鍊掑簭)",
+        },
+      ],
       sourcetype: [
         {
           value: 1,
@@ -855,7 +871,7 @@
         pageNum: 1,
         pageSize: 10,
         serviceType: 2,
-        searchscope: 3,visitCount: 1,
+        visitCount: 1,
         scopetype: [],
         leaveldeptcodes: [],
         leavehospitaldistrictcodes: [],
@@ -990,31 +1006,18 @@
   methods: {
     /** 鏌ヨ闂ㄨ瘖闅忚鏈嶅姟鍒楄〃 */
     getList(refresh) {
-      // 榛樿鍏ㄩ儴
-
-      if (this.topqueryParams.searchscope == 3) {
-        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
-          (obj) => obj.deptCode
-        );
-        this.topqueryParams.leavehospitaldistrictcodes =
-          store.getters.belongWards.map((obj) => obj.districtCode);
-      }
       // 鎺ュ彈寮傚父璺宠浆
       if (this.errtype) {
         this.topqueryParams.leavehospitaldistrictcodes.push(
           this.leavehospitaldistrictcode
         );
-        console.log(this.topqueryParams.leavehospitaldistrictcodes, "11");
       }
       this.loading = true;
-      if (
-        this.topqueryParams.leavehospitaldistrictcodes[0] &&
-        this.topqueryParams.leaveldeptcodes[0]
-      ) {
-        this.topqueryParams.deptOrDistrict = 2;
-      } else {
-        this.topqueryParams.deptOrDistrict = 1;
-      }
+      if (!this.topqueryParams.leavehospitaldistrictcodes)
+        this.topqueryParams.leavehospitaldistrictcodes = [];
+      if (!this.topqueryParams.leaveldeptcodes)
+        this.topqueryParams.leaveldeptcodes = [];
+
       getTaskservelist(this.topqueryParams).then((response) => {
         this.userList = response.rows[0].serviceSubtaskList;
         this.total = response.total;
@@ -1070,13 +1073,11 @@
       return now.toISOString().slice(0, 10); // 鎴彇鍓�10涓瓧绗︼紝鍗� YYYY-MM-DD
     },
     buidegetTasklist(type) {
-      if (this.topqueryParams.searchscope == 3) {
-        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
-          (obj) => obj.deptCode
-        );
-        this.topqueryParams.leavehospitaldistrictcodes =
-          store.getters.belongWards.map((obj) => obj.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.topqueryParams.leavehospitaldistrictcodes.push(
@@ -1185,18 +1186,19 @@
     },
     /** 鎼滅储鎸夐挳鎿嶄綔 */
     handleQuery(refresh) {
-      if (this.topqueryParams.searchscope == 3) {
-        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
-          (obj) => obj.deptCode
-        );
-        this.topqueryParams.leavehospitaldistrictcodes =
-          store.getters.belongWards.map((obj) => obj.districtCode);
-      }
+      this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
+        (obj) => obj.deptCode
+      );
+      this.topqueryParams.leavehospitaldistrictcodes =
+        store.getters.belongWards.map((obj) => obj.districtCode);
       this.topqueryParams.pageNum = 1;
+
       this.topqueryParams.startOutHospTime = this.dateRange[0];
       this.topqueryParams.endOutHospTime = this.dateRange[1];
       this.topqueryParams.startSendDateTime = this.dateRangefs[0];
       this.topqueryParams.endSendDateTime = this.dateRangefs[1];
+      console.log(221);
+
       this.getList(refresh);
     },
     // 鎮h�呰寖鍥村鐞�
@@ -1208,13 +1210,10 @@
       if (type == 1) {
         this.topqueryParams.leaveldeptcodes.push(code);
         this.topqueryParams.leavehospitaldistrictcodes = [];
-        this.topqueryParams.searchscope = 1;
       } else if (type == 2) {
         this.topqueryParams.leavehospitaldistrictcodes.push(code);
         this.topqueryParams.leaveldeptcodes = [];
-        this.topqueryParams.searchscope = 2;
       } else {
-        this.topqueryParams.searchscope = 3;
       }
     },
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
@@ -1227,7 +1226,6 @@
         sendstate: 2,
         sort: 2, //0 鍑洪櫌鏃堕棿(姝e簭)    1 鍑洪櫌鏃堕棿(鍊掑簭)   2 鍙戦�佹椂闂�(姝e簭)    3 鍙戦�佹椂闂�(鍊掑簭)
         serviceType: 2,
-        searchscope: 2,
       };
       this.handleQuery(1);
     },

--
Gitblit v1.9.3