From 20043e072aee67f1162a5d490c063cadc2e1dcde Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期六, 09 五月 2026 14:21:41 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/zbAgain/index.vue |  171 ++++++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 120 insertions(+), 51 deletions(-)

diff --git a/src/views/followvisit/zbAgain/index.vue b/src/views/followvisit/zbAgain/index.vue
index cfd0d7a..9a9d5b4 100644
--- a/src/views/followvisit/zbAgain/index.vue
+++ b/src/views/followvisit/zbAgain/index.vue
@@ -108,10 +108,10 @@
             placeholder="璇疯緭鍏ユ偅鑰呭鍚�"
           ></el-input>
         </el-form-item>
-        <el-form-item label="鎮h�呰瘖鏂�" prop="leavediagname">
+        <el-form-item label="璇婃柇鍚嶇О" prop="leavediagname">
           <el-input
             v-model="topqueryParams.leavediagname"
-            placeholder="璇疯緭鍏ユ偅鑰呰瘖鏂�"
+            placeholder="璇疯緭鍏ヨ瘖鏂悕绉�"
           ></el-input>
         </el-form-item>
 
@@ -177,16 +177,15 @@
             </div>
           </div>
         </el-col>
-        <!-- <el-col :span="1.5">
+        <el-col :span="1.5">
           <el-button
             type="primary"
-            plain
-            icon="el-icon-plus"
+                        icon="el-icon-plus"
             size="medium"
             @click="handleAdd"
             >鏂板</el-button
           >
-        </el-col> -->
+        </el-col>
 
         <el-col :span="1.5">
           <div class="documentf">
@@ -246,7 +245,7 @@
           <div class="documentf">
             <div class="document">
               <el-button type="success" size="medium" @click="onthatday()"
-                >褰撴棩鏈嶅姟</el-button
+                >浠婃棩鏈嶅姟</el-button
               >
             </div>
           </div>
@@ -281,7 +280,12 @@
               size="medium"
               type="text"
               @click="
-                gettoken360(scope.row.sfzh, scope.row.drcode, scope.row.drname)
+                gettoken360(
+                    scope.row.sfzh,
+                    scope.row.drcode,
+                    scope.row.drname,
+                    scope.row.patid
+                  )
               "
               ><span class="button-textsc">{{
                 scope.row.sendname
@@ -326,9 +330,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>
@@ -383,11 +392,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
@@ -397,13 +406,7 @@
           key="drname"
           prop="drname"
         />
-        <el-table-column
-          label="闅忚浜哄憳"
-          align="center"
-          key="updateBy"
-          prop="updateBy"
-          width="120"
-        />
+
         <el-table-column
           label="鍑洪櫌澶╂暟"
           width="120"
@@ -450,10 +453,18 @@
         <!-- <el-table-column label="鎬у埆"width="100" align="center" key="sex" prop="sex" /> -->
         <!-- <el-table-column label="搴婂彿" align="center" key="badNo" prop="badNo" /> -->
         <el-table-column
-          label="绉戝"
+          label="棣栨闅忚绉戝"
           align="center"
           key="deptname"
           prop="deptname"
+          width="120"
+        >
+        </el-table-column>
+        <el-table-column
+          label="鏈绉戝"
+          align="center"
+          key="visitDeptName"
+          prop="visitDeptName"
           width="120"
         >
         </el-table-column>
@@ -475,7 +486,13 @@
           :show-overflow-tooltip="true"
         >
         </el-table-column>
-
+        <el-table-column
+          label="闅忚浜哄憳"
+          align="center"
+          key="updateBy"
+          prop="updateBy"
+          width="120"
+        />
         <el-table-column
           label="鍑洪櫌闅忚妯℃澘鍚嶇О"
           align="center"
@@ -817,6 +834,7 @@
   buidegetTasklist,
   addserviceSubtask,
   query360PatInfo,
+  query360PatInfonh
 } from "@/api/AiCentre/index";
 import { alterpatient, particularpatient } from "@/api/patient/homepage";
 import Treeselect from "@riophae/vue-treeselect";
@@ -910,7 +928,7 @@
         //   value: 0,
         // },
         {
-          name: "搴旈殢璁�",
+          name: "闇�闅忚",
           value: 0,
         },
         {
@@ -921,10 +939,10 @@
           name: "寰呴殢璁�",
           value: 0,
         },
-        {
-          name: "宸插彂閫�",
-          value: 0,
-        },
+        // {
+        //   name: "宸插彂閫�",
+        //   value: 0,
+        // },
 
         // {
         //   name: "琛ㄥ崟宸插彂閫�",
@@ -965,18 +983,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: 13,
         searchscope: 3,
         visitCount: 2,
         scopetype: [],
-        leaveldeptcodes: [],
+        visitDeptCodes: [],
+        leaveldeptcodes:[],
         leavehospitaldistrictcodes: [],
       },
       propss: { multiple: true },
@@ -1003,13 +1030,17 @@
           value: 4,
           label: "涓嶆墽琛�",
         },
-        {
+         {
           value: 5,
           label: "鍙戦�佸け璐�",
         },
         {
           value: 6,
           label: "宸插畬鎴�",
+        },
+         {
+          value: 7,
+          label: "瓒呮椂",
         },
       ],
       sextype: [
@@ -1058,8 +1089,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",
@@ -1112,6 +1143,9 @@
       // 榛樿鍏ㄩ儴
 
       if (this.topqueryParams.searchscope == 3) {
+        this.topqueryParams.visitDeptCodes = store.getters.belongDepts.map(
+          (obj) => obj.deptCode
+        );
         this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
           (obj) => obj.deptCode
         );
@@ -1128,11 +1162,16 @@
       this.loading = true;
       if (
         this.topqueryParams.leavehospitaldistrictcodes[0] &&
-        this.topqueryParams.leaveldeptcodes[0]
+        this.topqueryParams.visitDeptCodes[0]&&this.topqueryParams.leaveldeptcodes[0]
       ) {
         this.topqueryParams.deptOrDistrict = 2;
       } else {
         this.topqueryParams.deptOrDistrict = 1;
+      }
+
+      if (!this.followupAuthority()) {
+        this.$message.warning("鏈厤缃瀹�/鐥呭尯鐩稿叧鏉冮檺涓嶅彲鏌ヨ");
+        return Promise.reject(new Error("鏃犳潈闄愭煡璇�"));
       }
       getTaskservelist(this.topqueryParams).then((response) => {
         this.userList = response.rows[0].serviceSubtaskList;
@@ -1145,7 +1184,7 @@
           this.ycvalue = response.rows[0].yc;
           this.cardlist[2].value = response.rows[0].fssb;
           this.cardlist[3].value = response.rows[0].dsf;
-          this.cardlist[4].value = response.rows[0].yfs2;
+          // this.cardlist[4].value = response.rows[0].yfs2;
           this.yfsvalue = response.rows[0].yfs;
         }
         this.loading = false;
@@ -1175,8 +1214,8 @@
       });
     },
     affiliation() {
-      this.topqueryParams.drcode = store.getters.hisUserId;
-      this.topqueryParams.nurseId = store.getters.hisUserId;
+
+      this.topqueryParams.managementDoctorCode= store.getters.hisUserId;
       this.getList(1);
     },
     onthatday() {
@@ -1190,7 +1229,10 @@
     },
     buidegetTasklist(type) {
       if (this.topqueryParams.searchscope == 3) {
-        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
+        this.topqueryParams.visitDeptCodes = store.getters.belongDepts.map(
+          (obj) => obj.deptCode
+        );
+          this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
           (obj) => obj.deptCode
         );
         this.topqueryParams.leavehospitaldistrictcodes =
@@ -1208,6 +1250,7 @@
         leavehospitaldistrictcodes:
           this.topqueryParams.leavehospitaldistrictcodes,
         sendstates: [2, 3],
+        visitDeptCodes: this.topqueryParams.visitDeptCodes,
         leaveldeptcodes: this.topqueryParams.leaveldeptcodes,
       };
       buidegetTasklist(obj).then((response) => {
@@ -1221,7 +1264,7 @@
           this.ycvalue = response.rows[0].yc;
           this.cardlist[3].value = response.rows[0].fssb;
           this.cardlist[4].value = response.rows[0].dsf;
-          this.cardlist[5].value = response.rows[0].yfs2;
+          // this.cardlist[5].value = response.rows[0].yfs2;
           this.yfsvalue = response.rows[0].yfs;
         }
         this.loading = false;
@@ -1305,6 +1348,9 @@
     /** 鎼滅储鎸夐挳鎿嶄綔 */
     handleQuery(refresh) {
       if (this.topqueryParams.searchscope == 3) {
+        this.topqueryParams.visitDeptCodes = store.getters.belongDepts.map(
+          (obj) => obj.deptCode
+        );
         this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
           (obj) => obj.deptCode
         );
@@ -1324,13 +1370,16 @@
       let type = value[0];
       let code = value.slice(-1)[0];
       this.topqueryParams.leavehospitaldistrictcodes = [];
+      this.topqueryParams.visitDeptCodes = [];
       this.topqueryParams.leaveldeptcodes = [];
       if (type == 1) {
+        this.topqueryParams.visitDeptCodes.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.searchscope = 2;
       } else {
@@ -1350,7 +1399,8 @@
         searchscope: 3,
         visitCount: 2,
         scopetype: [],
-        leaveldeptcodes: [],
+        visitDeptCodes: [],
+        leaveldeptcodes:[],
         leavehospitaldistrictcodes: [],
       };
       this.handleQuery(1);
@@ -1392,12 +1442,28 @@
       });
     },
     //鎮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";
+    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;
+
       query360PatInfo(this.postData).then((res) => {
         if (res.data.url) {
           window.open(res.data.url, "_blank");
@@ -1510,11 +1576,9 @@
     Seedetails(row) {
       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: {
@@ -1545,7 +1609,8 @@
             '"鐨勬暟鎹」锛�'
         )
         .then(() => {
-          getTaskservelist({
+
+      getTaskservelist({
             patid: row.patid,
             taskid: row.taskid,
           }).then((res) => {
@@ -1607,7 +1672,7 @@
           this.zcform.remark =
             this.zcform.remark + "銆�" + this.getCurrentTime() + "銆�";
           let form = structuredClone(this.zcform);
-          form.longSendTime = this.formatTime(form.date1);
+          form.visitTime = this.formatTime(form.date1);
           form.finishtime = "";
           if (form.resource) {
             if (form.resource == 2) {
@@ -1739,10 +1804,12 @@
   }
 }
 ::v-deep.leftvlue .el-card__body {
-  background: #d0e9fd;
+  background: #F2F8FF;
+  color: #324A9B;
 }
 ::v-deep.leftvlue .el-card__body:hover {
-  background: #8dc8f8;
+  background: #3664D9;
+  color: #fff;
   cursor: pointer; /* 榧犳爣鎮诞鏃跺彉涓烘墜褰� */
 }
 ::v-deep.errleftvlue .el-card__body {
@@ -1787,7 +1854,9 @@
   border-radius: 1px;
   color: #ffffff;
 }
-
+.button-textxga {
+  color: #de7897;
+}
 ::v-deep.el-radio-group {
   span {
     font-size: 24px;

--
Gitblit v1.9.3