From f9902f7a3b79d22bde9f199263ac36de26816470 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 08 五月 2026 14:46:10 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/OutpatientAgain/index.vue |  134 ++++++++++++++++++++++++++++----------------
 1 files changed, 86 insertions(+), 48 deletions(-)

diff --git a/src/views/followvisit/OutpatientAgain/index.vue b/src/views/followvisit/OutpatientAgain/index.vue
index fc7ef5f..11a0942 100644
--- a/src/views/followvisit/OutpatientAgain/index.vue
+++ b/src/views/followvisit/OutpatientAgain/index.vue
@@ -79,7 +79,7 @@
           ></el-input>
         </el-form-item>
 
-        <el-form-item label="闂ㄨ瘖鏃堕棿">
+        <el-form-item label="鏈嶅姟鏃堕棿">
           <el-date-picker
             v-model="dateRange"
             style="width: 240px"
@@ -180,7 +180,7 @@
         <el-col :span="1.5">
           <el-button
             type="primary"
-                        icon="el-icon-plus"
+            icon="el-icon-plus"
             size="medium"
             @click="handleAdd"
             >鏂板</el-button
@@ -280,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
@@ -325,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>
@@ -382,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
@@ -398,7 +408,7 @@
         />
 
         <!-- <el-table-column
-          label="闂ㄨ瘖澶╂暟"
+          label="鏈嶅姟澶╂暟"
           width="120"
           align="center"
           key="endDay"
@@ -485,7 +495,7 @@
         />
 
         <el-table-column
-          label="闂ㄨ瘖闅忚妯℃澘鍚嶇О"
+          label="鏈嶅姟闅忚妯℃澘鍚嶇О"
           align="center"
           key="templatename"
           prop="templatename"
@@ -644,7 +654,7 @@
             </el-form-item>
           </el-col>
         </el-row>
-<el-row >
+        <el-row>
           <el-col :span="8">
             <el-form-item label="杩囨护鍖荤敓" width="100" prop="filterDrname">
               <el-input
@@ -795,7 +805,7 @@
         <!-- <el-form-item label="鍗冲埢鍙戦��">
           <el-switch v-model="zcform.delivery"></el-switch>
         </el-form-item> -->
-        <el-form-item label="闂ㄨ瘖鏃堕棿">
+        <el-form-item label="鏈嶅姟鏃堕棿">
           <el-input
             style="width: 400px"
             disabled
@@ -835,6 +845,7 @@
   buidegetTasklist,
   addserviceSubtask,
   query360PatInfo,
+  query360PatInfonh
 } from "@/api/AiCentre/index";
 import { alterpatient, particularpatient } from "@/api/patient/homepage";
 import Treeselect from "@riophae/vue-treeselect";
@@ -919,7 +930,7 @@
       loading: false,
       cardlist: [
         {
-          name: "闂ㄨ瘖鏈嶅姟鎬婚噺",
+          name: "鏈嶅姟璺熻釜鎬婚噺",
           value: 0,
         },
         // {
@@ -968,11 +979,11 @@
       topicoptionssort: [
         {
           value: 0,
-          label: "闂ㄨ瘖鏃堕棿(姝e簭)",
+          label: "鏈嶅姟鏃堕棿(姝e簭)",
         },
         {
           value: 1,
-          label: "闂ㄨ瘖鏃堕棿(鍊掑簭)",
+          label: "鏈嶅姟鏃堕棿(鍊掑簭)",
         },
         {
           value: 2,
@@ -996,13 +1007,13 @@
         pageNum: 1,
         pageSize: 10,
         sendstate: 2,
-        sort: localStorage.getItem("orgname") == "涓芥按甯備腑鍖婚櫌" ? 8 : 2, //0 闂ㄨ瘖鏃堕棿(姝e簭)    1 闂ㄨ瘖鏃堕棿(鍊掑簭)   2 鍙戦�佹椂闂�(姝e簭)    3 鍙戦�佹椂闂�(鍊掑簭)  7搴旈殢璁挎棩鏈�(鍊掑簭) 搴旈殢璁挎棩鏈�(姝e簭)
+        sort: localStorage.getItem("orgname") == "涓芥按甯備腑鍖婚櫌" ? 8 : 2, //0 鏈嶅姟鏃堕棿(姝e簭)    1 鏈嶅姟鏃堕棿(鍊掑簭)   2 鍙戦�佹椂闂�(姝e簭)    3 鍙戦�佹椂闂�(鍊掑簭)  7搴旈殢璁挎棩鏈�(鍊掑簭) 搴旈殢璁挎棩鏈�(姝e簭)
         serviceType: 3,
         searchscope: 3,
         visitCount: 2,
         scopetype: [],
         visitDeptCodes: [],
-        leaveldeptcodes:[],
+        // leaveldeptcodes:[],
         leavehospitaldistrictcodes: [],
       },
       propss: { multiple: true },
@@ -1029,13 +1040,17 @@
           value: 4,
           label: "涓嶆墽琛�",
         },
-        {
+         {
           value: 5,
           label: "鍙戦�佸け璐�",
         },
         {
           value: 6,
           label: "宸插畬鎴�",
+        },
+         {
+          value: 7,
+          label: "瓒呮椂",
         },
       ],
       sextype: [
@@ -1141,9 +1156,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);
       }
@@ -1157,11 +1172,16 @@
       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;
+      }
+
+      if (!this.followupAuthority()) {
+        this.$message.warning("鏈厤缃瀹�/鐥呭尯鐩稿叧鏉冮檺涓嶅彲鏌ヨ");
+        return Promise.reject(new Error("鏃犳潈闄愭煡璇�"));
       }
       getTaskservelist(this.topqueryParams).then((response) => {
         this.userList = response.rows[0].serviceSubtaskList;
@@ -1204,7 +1224,7 @@
       });
     },
     affiliation() {
-      this.topqueryParams.managementDoctorCode= store.getters.hisUserId;
+      this.topqueryParams.managementDoctorCode = store.getters.hisUserId;
 
       this.getList(1);
     },
@@ -1222,9 +1242,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);
       }
@@ -1241,7 +1261,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;
@@ -1283,7 +1303,7 @@
         this.total = response.total;
       });
     },
-    // 鏌ョ湅闂ㄨ瘖闅忚璇︽儏
+    // 鏌ョ湅鏈嶅姟闅忚璇︽儏
     Referencequestion(row) {
       this.previewVisible = true;
     },
@@ -1341,9 +1361,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);
       }
@@ -1361,16 +1381,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;
@@ -1384,13 +1404,13 @@
         pageNum: 1,
         pageSize: 10,
         sendstate: 2,
-        sort: 2, //0 闂ㄨ瘖鏃堕棿(姝e簭)    1 闂ㄨ瘖鏃堕棿(鍊掑簭)   2 鍙戦�佹椂闂�(姝e簭)    3 鍙戦�佹椂闂�(鍊掑簭)
+        sort: 2, //0 鏈嶅姟鏃堕棿(姝e簭)    1 鏈嶅姟鏃堕棿(鍊掑簭)   2 鍙戦�佹椂闂�(姝e簭)    3 鍙戦�佹椂闂�(鍊掑簭)
         serviceType: 3,
         searchscope: 3,
         visitCount: 2,
         scopetype: [],
         visitDeptCodes: [],
-        leaveldeptcodes:[],
+        // leaveldeptcodes:[],
         leavehospitaldistrictcodes: [],
       };
       this.handleQuery(1);
@@ -1432,8 +1452,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.url) {
+            window.open(res.url, "_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;
 
@@ -1478,7 +1515,7 @@
             .then((response) => {
               console.log(response);
             })
-              .then(() => {
+            .then(() => {
               this.getList(1);
               this.$modal.msgSuccess("鎮h�呰繃婊ゆ垚鍔�");
             });
@@ -1547,11 +1584,11 @@
     },
     // 璺宠浆璇︽儏椤�
     Seedetails(row) {
-    let type = "";
+      let type = "";
       console.log(row, "rwo");
-        if (row.type == 1) {
-          type = 1;
-        }
+      if (row.type == 1) {
+        type = 1;
+      }
       this.$router.push({
         path: "/followvisit/record/detailpage/",
         query: {
@@ -1582,7 +1619,8 @@
             '"鐨勬暟鎹」锛�'
         )
         .then(() => {
-          getTaskservelist({
+
+      getTaskservelist({
             patid: row.patid,
             taskid: row.taskid,
           }).then((res) => {
@@ -1645,7 +1683,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) {
@@ -1777,11 +1815,11 @@
   }
 }
 ::v-deep.leftvlue .el-card__body {
-  background: #F2F8FF;
-  color: #324A9B;
+  background: #f2f8ff;
+  color: #324a9b;
 }
 ::v-deep.leftvlue .el-card__body:hover {
-  background: #3664D9;
+  background: #3664d9;
   color: #fff;
   cursor: pointer; /* 榧犳爣鎮诞鏃跺彉涓烘墜褰� */
 }

--
Gitblit v1.9.3