From 400d13ddc80a7560860939f65b318b2fa78f9004 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期日, 27 四月 2025 15:49:56 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/patient/outpatient.vue |   87 +++++++++++++++++++++++++++++++++++--------
 1 files changed, 71 insertions(+), 16 deletions(-)

diff --git a/src/views/patient/patient/outpatient.vue b/src/views/patient/patient/outpatient.vue
index 47e7136..d317a51 100644
--- a/src/views/patient/patient/outpatient.vue
+++ b/src/views/patient/patient/outpatient.vue
@@ -20,10 +20,10 @@
               @keyup.enter.native="handleQuery"
             />
           </el-form-item>
-          <el-form-item label="闂ㄨ瘖鍙�" prop="outhospno">
+          <el-form-item label="鐥呮鍙�" prop="outhospno">
             <el-input
               v-model="queryParams.outhospno"
-              placeholder="璇疯緭鍏ラ棬璇婂彿"
+              placeholder="璇疯緭鍏ョ梾妗堝彿"
               clearable
               style="width: 250px"
               @keyup.enter.native="handleQuery"
@@ -177,14 +177,14 @@
               <span>{{ formatTime(scope.row.admitdate) }}</span>
             </template>
           </el-table-column>
-          <el-table-column
+          <!-- <el-table-column
             label="鐥呮鍙�"
             align="center"
             key="patno"
             prop="patno"
-          />
+          /> -->
           <el-table-column
-            label="闂ㄨ瘖鍙�"
+            label="鐥呮鍙�"
             align="center"
             key="outhospno"
             prop="outhospno"
@@ -200,12 +200,7 @@
               <el-button
                 size="medium"
                 type="text"
-                @click="
-                  $router.push({
-                    path: '/patient/indexls/',
-                    query: { sfzh: scope.row.idcardno },
-                  })
-                "
+                @click="gettoken360(scope.row.idcardno,scope.row.drcode,scope.row.drname)"
                 ><span class="button-textsc">{{
                   scope.row.patname
                 }}</span></el-button
@@ -423,6 +418,8 @@
 import { getToken } from "@/utils/auth";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+import { query360PatInfo } from "@/api/AiCentre/index";
+
 import store from "@/store";
 
 export default {
@@ -494,6 +491,39 @@
           id: 1,
         },
       ],
+      postData: {
+        XiaoXiTou: {
+          FaSongFCSJC: "ZJHES",
+          FaSongJGID: localStorage.getItem("orgid"),
+          FaSongJGMC: localStorage.getItem("orgname"),
+          FaSongSJ: "2025-01-09聽17:29:36",
+          FaSongXTJC: "SUIFANGXT",
+          FaSongXTMC: "闅忚绯荤粺",
+          XiaoXiID: "5FA92AFB-9833-4608-87C7-F56A654AC171",
+          XiaoXiLX: "SC_LC_360STCX",
+          XiaoXiMC: "360聽瑙嗗浘鏌ヨ",
+          ZuHuID: localStorage.getItem("ZuHuID"),
+          ZuHuMC: localStorage.getItem("orgname"),
+        },
+        YeWuXX: {
+          BingRenXX: {
+            ZhengJianHM: "",
+            ZhengJianLXDM: "01",
+            ZhengJianLXMC: "灞呮皯韬唤璇�",
+            ZuZhiJGID: localStorage.getItem("orgid"),
+            ZuZhiJGMC: localStorage.getItem("orgname"),
+          },
+          YongHuXX: {
+            XiTongID: "SUIFANGXT",
+            XiTongMC: "闅忚绯荤粺",
+            YongHuID: "1400466972205912064",
+            YongHuXM: "JNRMYY",
+            ZuZhiJGID: localStorage.getItem("orgid"),
+            ZuZhiJGMC: localStorage.getItem("orgname"),
+            idp: "lyra",
+          },
+        },
+      },
       defaultProps: {
         children: "children",
         label: "label",
@@ -533,7 +563,7 @@
       queryParams: {
         pageNum: 1,
         pageSize: 10,
-        searchscope: 2,
+        searchscope: 3,
         scopetype: [],
         leaveldeptcodes: [],
         leavehospitaldistrictcodes: [],
@@ -619,8 +649,13 @@
         this.queryParams.leavehospitaldistrictcodes =
           store.getters.belongWards.map((obj) => obj.districtCode);
       }
-      this.queryParams.beginTime = this.dateRange[0];
-      this.queryParams.endTime = this.dateRange[1];
+      if (this.dateRange) {
+        this.queryParams.beginTime = this.dateRange[0];
+        this.queryParams.endTime = this.dateRange[1];
+      }else{
+        this.queryParams.beginTime = '';
+        this.queryParams.endTime = '';
+      }
       listPatouthosp(this.queryParams).then((response) => {
         this.userList = response.rows;
         this.total = response.total;
@@ -669,7 +704,23 @@
         this.loading = false;
       });
     },
+    //鎮h��360璺宠浆
+    gettoken360(sfzh,drcode,drname) {
+      this.postData.YeWuXX.BingRenXX.ZhengJianHM = sfzh;
+      if (this.postData.XiaoXiTou.ZuHuMC=='涓芥按甯備腑鍖婚櫌') {
+        this.postData.YeWuXX.YongHuXX.YongHuID = '1400398571877961728';
+        this.postData.YeWuXX.YongHuXX.YongHuXM = 'LSZYY';
+      }
 
+      query360PatInfo(this.postData).then((res) => {
+        if (res.data.url) {
+          window.open(res.data.url, "_blank");
+          // this.linkUrl = res.data.url;
+        } else {
+          this.$modal.msgWarning("360鏌ヨ鏃犵粨鏋�");
+        }
+      });
+    },
     // 绛涢�夎妭鐐�
     filterNode(value, data) {
       if (!value) return true;
@@ -709,10 +760,14 @@
     resetQuery() {
       this.dateRange = [];
       this.resetForm("queryForm");
-      (this.queryParams = {
+      this.queryParams = {
         pageNum: 1,
         pageSize: 10,
-      }),
+        searchscope: 3,
+        scopetype: [],
+        leaveldeptcodes: [],
+        leavehospitaldistrictcodes: [],
+      };
         this.handleQuery();
     },
     // 澶氶�夋閫変腑鏁版嵁

--
Gitblit v1.9.3