From 574b449a39019a59dc90ecc19dda9f63d3aa9636 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 18 十一月 2026 15:35:47 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/patient/hospital.vue |   97 ++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 81 insertions(+), 16 deletions(-)

diff --git a/src/views/patient/patient/hospital.vue b/src/views/patient/patient/hospital.vue
index bde9c2b..798372a 100644
--- a/src/views/patient/patient/hospital.vue
+++ b/src/views/patient/patient/hospital.vue
@@ -47,7 +47,7 @@
           </el-form-item>
           <el-form-item label="绉戝鍚嶇О" prop="inhospno">
             <el-input
-              v-model="queryParams.deptname"
+              v-model="queryParams.leaveldeptname"
               placeholder="璇疯緭鍏ョ瀹ゅ悕绉�"
               clearable
               style="width: 250px"
@@ -60,6 +60,8 @@
               v-model="queryParams.scopetype"
               placeholder="榛樿鍏ㄩ儴绉戝"
               :options="sourcetype"
+              filterable
+              clearable
               :props="{ expandTrigger: 'hover' }"
               @change="handleChange"
             ></el-cascader>
@@ -74,6 +76,17 @@
               start-placeholder="寮�濮嬫棩鏈�"
               end-placeholder="缁撴潫鏃ユ湡"
             ></el-date-picker>
+          </el-form-item>
+          <el-form-item label="搴婂彿鎺掑簭" prop="bedSort">
+            <el-select
+              v-model="queryParams.bedSort"
+              placeholder="涓嶆寜搴婂彿鎺掑簭"
+              style="width: 160px"
+            >
+              <el-option label="涓嶆寜搴婂彿鎺掑簭" :value="null"></el-option>
+              <el-option label="鎸夊簥鍙锋搴�" :value="1"></el-option>
+              <el-option label="鎸夊簥鍙峰�掑簭" :value="2"></el-option>
+            </el-select>
           </el-form-item>
 
           <el-row>
@@ -115,7 +128,7 @@
               size="medium"
               :disabled="single"
               @click="handleUpdate"
-              v-hasPermi="['system:user:edit']"
+
               >淇敼</el-button
             >
           </el-col> -->
@@ -202,7 +215,8 @@
                   gettoken360(
                     scope.row.idcardno,
                     scope.row.drcode,
-                    scope.row.drname
+                    scope.row.drname,
+                    scope.row.patid
                   )
                 "
                 ><span class="button-textsc">{{
@@ -261,8 +275,8 @@
           <el-table-column
             label="绉戝"
             align="center"
-            key="deptname"
-            prop="deptname"
+            key="leaveldeptname"
+            prop="leaveldeptname"
             width="120"
           />
           <el-table-column
@@ -401,7 +415,11 @@
                 width="120"
                 align="center"
               />
-              <el-table-column prop="deptname" label="绉戝" align="center" />
+              <el-table-column
+                prop="leaveldeptname"
+                label="绉戝"
+                align="center"
+              />
               <el-table-column
                 prop="leavehospitaldistrictname"
                 label="鐥呭尯"
@@ -428,7 +446,7 @@
             <el-table
               :data="taskList"
               border
-               height="680"
+              height="680"
               style="width: 100%"
               size="small"
               @current-change="handleTaskSelectionChange"
@@ -482,6 +500,13 @@
                 </div>
               </template>
             </el-table>
+            <pagination
+              v-show="taskTotal > 0"
+              :total="taskTotal"
+              :page.sync="taskQueryParams.pageNum"
+              :limit.sync="taskQueryParams.pageSize"
+              @pagination="loadTaskList"
+            />
           </div>
         </el-col>
       </el-row>
@@ -612,7 +637,12 @@
 import Treeselect from "@riophae/vue-treeselect";
 import { listDept } from "@/api/system/dept";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
-import { query360PatInfo, getTasklist, addSubtask } from "@/api/AiCentre/index";
+import {
+  query360PatInfo,
+  query360PatInfonh,
+  getTasklist,
+  addSubtask,
+} from "@/api/AiCentre/index";
 
 import store from "@/store";
 
@@ -653,6 +683,11 @@
       taskList: [], // 浠诲姟鍒楄〃
       selectedTask: null, // 閫変腑鐨勪换鍔�
       batchLoading: false, // 鎵归噺鎻愪氦鍔犺浇鐘舵��
+      taskQueryParams: {
+        pageNum: 1,
+        pageSize: 20,
+      },
+      taskTotal: 0,
       // 鏃ユ湡鑼冨洿
       dateRange: [],
       source: [
@@ -782,6 +817,7 @@
         pageNum: 1,
         pageSize: 10,
         cry: 1,
+        bedSort: null,
         searchscope: 3,
         scopetype: [],
         leaveldeptcodes: [],
@@ -838,8 +874,25 @@
       });
     },
     //鎮h��360璺宠浆
-    gettoken360(sfzh, drcode, drname) {
-      // this.$modal.msgWarning('360鍔熻兘鏆傛湭寮�閫�');
+    gettoken360(sfzh, drcode, drname, id) {
+      const orgname = localStorage.getItem("orgname");
+      if (orgname == "鍗楀崕澶у闄勫睘绗竴鍖婚櫌") {
+        query360PatInfonh(id).then((res) => {
+          if (res.data) {
+            window.open(res.data, "_blank");
+          } else {
+            this.$modal.msgWarning("360鏌ヨ鏃犵粨鏋�");
+          }
+        });
+        return;
+      } else if (
+        orgname == "绗竴浜烘皯鍖婚櫌婀栨花闄㈠尯" ||
+        orgname == "绗竴浜烘皯鍖婚櫌鍚村北闄㈠尯"
+      ) {
+        let url = `http://192.200.81.189:9100/blj/view?BINGRENID=${id}&YONGHUID=DBA`;
+        window.open(url, "_blank");
+        return;
+      }
 
       this.postData.YeWuXX.BingRenXX.ZhengJianHM = sfzh;
 
@@ -879,8 +932,9 @@
       // 鏄剧ず寮圭獥
       this.batchTaskVisible = true;
 
-      // 鑾峰彇浠诲姟鍒楄〃
-      this.loadTaskList(deptcode);
+      // 閲嶇疆浠诲姟鍒嗛〉骞惰幏鍙栦换鍔″垪琛�
+      this.taskQueryParams.pageNum = 1;
+      this.loadTaskList();
     },
     /** 琛ㄦ牸琛屾牱寮� */
     tableRowClassName({ row, rowIndex }) {
@@ -900,17 +954,23 @@
       }
     },
     /** 鍔犺浇浠诲姟鍒楄〃 */
-    loadTaskList(deptcode) {
+    loadTaskList() {
       this.batchLoading = true;
       let topqueryParams = {
-        pageNum: 1,
-        pageSize: 100, // 璁剧疆杈冨ぇ鐨勫垎椤佃幏鍙栨洿澶氫换鍔�
+        pageNum: this.taskQueryParams.pageNum,
+        pageSize: this.taskQueryParams.pageSize,
         type: 2, // 鏍规嵁瀹為檯鎯呭喌璋冩暣
       };
-
+      topqueryParams.deptcodes = store.getters.belongDepts.map(
+        (obj) => obj.deptCode
+      );
+      topqueryParams.hospitaldistrictcodes = store.getters.belongWards.map(
+        (obj) => obj.districtCode
+      );
       getTasklist(topqueryParams)
         .then((response) => {
           this.taskList = response.rows;
+          this.taskTotal = response.total;
           this.batchLoading = false;
 
           if (this.taskList.length === 0) {
@@ -954,6 +1014,7 @@
             libtemplateid: this.selectedTask.libtemplateid,
             sendstate: 2,
             continueFlag: 2,
+            hospType: 2, // 鎮h�呯被鍨嬶細2=鍑洪櫌
             ...patient,
             sendname: patient.patname,
             starttime: patient.starttime ? patient.starttime + " 00:00:00" : "",
@@ -995,6 +1056,9 @@
         }
 
         this.batchTaskVisible = false;
+        this.$router.push({
+          path: "/followvisit/Continue",
+        });
         this.getList(); // 鍒锋柊鎮h�呭垪琛�
       } catch (error) {
         this.$modal.msgError("鎵归噺娣诲姞浠诲姟杩囩▼涓嚭閿欙細" + error.message);
@@ -1110,6 +1174,7 @@
         pageNum: 1,
         pageSize: 10,
         cry: 1,
+        bedSort: null,
         searchscope: 3,
         scopetype: [],
         leaveldeptcodes: [],

--
Gitblit v1.9.3