From 0c7cc21d8a51e164dd2fe4ce73ab566b3a9081a9 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 26 三月 2026 10:25:05 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/again/index.vue |   96 +++++++++++++++++++++++++++---------------------
 1 files changed, 54 insertions(+), 42 deletions(-)

diff --git a/src/views/followvisit/again/index.vue b/src/views/followvisit/again/index.vue
index ea74251..b045ccf 100644
--- a/src/views/followvisit/again/index.vue
+++ b/src/views/followvisit/again/index.vue
@@ -245,7 +245,7 @@
           <div class="documentf">
             <div class="document">
               <el-button type="success" size="medium" @click="onthatday()"
-                >褰撴棩鏈嶅姟</el-button
+                >浠婃棩鏈嶅姟</el-button
               >
             </div>
           </div>
@@ -325,9 +325,14 @@
                   >鍙戦�佸け璐�</el-tag
                 >
               </div>
-              <div v-if="scope.row.sendstate == 6">
+            <div v-if="scope.row.sendstate == 6">
                 <el-tag type="success" :disable-transitions="false"
                   >宸插畬鎴�</el-tag
+                >
+              </div>
+              <div v-if="scope.row.sendstate == 7">
+                <el-tag type="danger" :disable-transitions="false"
+                  >瓒呮椂</el-tag
                 >
               </div>
             </el-tooltip>
@@ -382,11 +387,11 @@
           label="搴旈殢璁挎棩鏈�"
           width="200"
           align="center"
-          key="longSendTime"
-          prop="longSendTime"
+          key="visitTime"
+          prop="visitTime"
         >
           <template slot-scope="scope">
-            <span>{{ formatTime(scope.row.longSendTime) }}</span>
+            <span>{{ formatTime(scope.row.visitTime) }}</span>
           </template></el-table-column
         >
         <el-table-column
@@ -396,13 +401,7 @@
           key="drname"
           prop="drname"
         />
-        <el-table-column
-          label="闅忚浜哄憳"
-          align="center"
-          key="updateBy"
-          prop="updateBy"
-          width="120"
-        />
+
         <el-table-column
           label="鍑洪櫌澶╂暟"
           width="120"
@@ -482,6 +481,13 @@
           :show-overflow-tooltip="true"
         >
         </el-table-column>
+        <el-table-column
+          label="闅忚浜哄憳"
+          align="center"
+          key="updateBy"
+          prop="updateBy"
+          width="120"
+        />
 
         <el-table-column
           label="鍑洪櫌闅忚妯℃澘鍚嶇О"
@@ -982,19 +988,27 @@
           value: 3,
           label: "鍙戦�佹椂闂�(鍊掑簭)",
         },
+        {
+          value: 7,
+          label: "搴旈殢璁挎棩鏈�(姝e簭)",
+        },
+        {
+          value: 8,
+          label: "搴旈殢璁挎棩鏈�(鍊掑簭)",
+        },
       ],
       // 鏌ヨ鍙傛暟
       topqueryParams: {
         pageNum: 1,
         pageSize: 10,
         sendstate: 2,
-        sort: 2, //0 鍑洪櫌鏃堕棿(姝e簭)    1 鍑洪櫌鏃堕棿(鍊掑簭)   2 鍙戦�佹椂闂�(姝e簭)    3 鍙戦�佹椂闂�(鍊掑簭)
+        sort: localStorage.getItem("orgname") == "涓芥按甯備腑鍖婚櫌" ? 8 : 2, //0 鍑洪櫌鏃堕棿(姝e簭)    1 鍑洪櫌鏃堕棿(鍊掑簭)   2 鍙戦�佹椂闂�(姝e簭)    3 鍙戦�佹椂闂�(鍊掑簭)  7搴旈殢璁挎棩鏈�(鍊掑簭) 搴旈殢璁挎棩鏈�(姝e簭)
         serviceType: 2,
         searchscope: 3,
         visitCount: 2,
         scopetype: [],
         visitDeptCodes: [],
-        leaveldeptcodes:[],
+        // leaveldeptcodes:[],
         leavehospitaldistrictcodes: [],
       },
       propss: { multiple: true },
@@ -1021,13 +1035,17 @@
           value: 4,
           label: "涓嶆墽琛�",
         },
-        {
+         {
           value: 5,
           label: "鍙戦�佸け璐�",
         },
         {
           value: 6,
           label: "宸插畬鎴�",
+        },
+         {
+          value: 7,
+          label: "瓒呮椂",
         },
       ],
       sextype: [
@@ -1076,8 +1094,8 @@
           YongHuXX: {
             XiTongID: "SUIFANGXT",
             XiTongMC: "闅忚绯荤粺",
-            YongHuID: "1400466972205912064",
-            YongHuXM: "JNRMYY",
+            YongHuID: localStorage.getItem("YongHuID"),
+            YongHuXM: localStorage.getItem("YongHuXM"),
             ZuZhiJGID: localStorage.getItem("orgid"),
             ZuZhiJGMC: localStorage.getItem("orgname"),
             idp: "lyra",
@@ -1133,9 +1151,9 @@
         this.topqueryParams.visitDeptCodes = store.getters.belongDepts.map(
           (obj) => obj.deptCode
         );
-        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
-          (obj) => obj.deptCode
-        );
+        // this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
+        //   (obj) => obj.deptCode
+        // );
         this.topqueryParams.leavehospitaldistrictcodes =
           store.getters.belongWards.map((obj) => obj.districtCode);
       }
@@ -1149,9 +1167,9 @@
       this.loading = true;
       if (
         this.topqueryParams.leavehospitaldistrictcodes[0] &&
-        this.topqueryParams.visitDeptCodes[0]&&this.topqueryParams.leaveldeptcodes[0]
+        this.topqueryParams.visitDeptCodes[0]
       ) {
-        this.topqueryParams.deptOrDistrict = 2;
+        this.topqueryParams.deptOrDistrict = 4;
       } else {
         this.topqueryParams.deptOrDistrict = 1;
       }
@@ -1196,7 +1214,6 @@
       });
     },
     affiliation() {
-
       this.topqueryParams.managementDoctorCode= store.getters.hisUserId;
 
       this.getList(1);
@@ -1215,9 +1232,9 @@
         this.topqueryParams.visitDeptCodes = store.getters.belongDepts.map(
           (obj) => obj.deptCode
         );
-          this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
-          (obj) => obj.deptCode
-        );
+        //   this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
+        //   (obj) => obj.deptCode
+        // );
         this.topqueryParams.leavehospitaldistrictcodes =
           store.getters.belongWards.map((obj) => obj.districtCode);
       }
@@ -1234,7 +1251,7 @@
           this.topqueryParams.leavehospitaldistrictcodes,
         sendstates: [2, 3],
         visitDeptCodes: this.topqueryParams.visitDeptCodes,
-        leaveldeptcodes: this.topqueryParams.leaveldeptcodes,
+        // leaveldeptcodes: this.topqueryParams.leaveldeptcodes,
       };
       buidegetTasklist(obj).then((response) => {
         this.userList = response.rows[0].serviceSubtaskList;
@@ -1334,9 +1351,9 @@
         this.topqueryParams.visitDeptCodes = store.getters.belongDepts.map(
           (obj) => obj.deptCode
         );
-        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
-          (obj) => obj.deptCode
-        );
+        // this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
+        //   (obj) => obj.deptCode
+        // );
         this.topqueryParams.leavehospitaldistrictcodes =
           store.getters.belongWards.map((obj) => obj.districtCode);
       }
@@ -1354,16 +1371,16 @@
       let code = value.slice(-1)[0];
       this.topqueryParams.leavehospitaldistrictcodes = [];
       this.topqueryParams.visitDeptCodes = [];
-      this.topqueryParams.leaveldeptcodes = [];
+      // this.topqueryParams.leaveldeptcodes = [];
       if (type == 1) {
         this.topqueryParams.visitDeptCodes.push(code);
-        this.topqueryParams.leaveldeptcodes.push(code);
+        // this.topqueryParams.leaveldeptcodes.push(code);
         this.topqueryParams.leavehospitaldistrictcodes = [];
         this.topqueryParams.searchscope = 1;
       } else if (type == 2) {
         this.topqueryParams.leavehospitaldistrictcodes.push(code);
         this.topqueryParams.visitDeptCodes = [];
-        this.topqueryParams.leaveldeptcodes = [];
+        // this.topqueryParams.leaveldeptcodes = [];
         this.topqueryParams.searchscope = 2;
       } else {
         this.topqueryParams.searchscope = 3;
@@ -1383,7 +1400,7 @@
         visitCount: 2,
         scopetype: [],
         visitDeptCodes: [],
-        leaveldeptcodes:[],
+        // leaveldeptcodes:[],
         leavehospitaldistrictcodes: [],
       };
       this.handleQuery(1);
@@ -1429,10 +1446,7 @@
       // // this.$modal.msgWarning('360鍔熻兘鏆傛湭寮�閫�');
 
       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");
@@ -1543,13 +1557,11 @@
     },
     // 璺宠浆璇︽儏椤�
     Seedetails(row) {
-      let type = "";
+    let type = "";
       console.log(row, "rwo");
-      if (row.preachformson) {
-        if (row.preachformson.includes("3")) {
+        if (row.type == 1) {
           type = 1;
         }
-      }
       this.$router.push({
         path: "/followvisit/record/detailpage/",
         query: {

--
Gitblit v1.9.3