From feb5a669dced68415bc7e32f237f77bf9842fe8b Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 03 六月 2026 17:42:18 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/outpatient/index.vue |  275 ++++++++++++++++++++----------------------------------
 1 files changed, 103 insertions(+), 172 deletions(-)

diff --git a/src/views/followvisit/outpatient/index.vue b/src/views/followvisit/outpatient/index.vue
index fdb6fa4..5638b93 100644
--- a/src/views/followvisit/outpatient/index.vue
+++ b/src/views/followvisit/outpatient/index.vue
@@ -26,7 +26,7 @@
           <div class="ysfleftvlue">
             <el-card shadow="hover">
               <div style="padding: 8px">
-                <span>宸插彂閫佹湭棰嗗彇</span>
+                <span>琛ㄥ崟宸插彂閫�</span>
                 <div
                   style="
                     text-align: center;
@@ -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"
@@ -108,8 +108,8 @@
           ></el-cascader>
         </el-form-item>
 
-        <el-form-item label="浠诲姟鐘舵��" prop="status">
-          <el-select v-model="topqueryParams.sendstate" placeholder="璇烽�夋嫨">
+        <el-form-item label="鏈嶅姟鐘舵��" prop="status">
+          <el-select v-model="topqueryParams.sendstateView" placeholder="璇烽�夋嫨">
             <el-option
               v-for="item in topicoptions"
               :key="item.value"
@@ -138,8 +138,7 @@
         <el-col :span="1.5">
           <el-button
             type="primary"
-            plain
-            icon="el-icon-plus"
+                        icon="el-icon-plus"
             size="medium"
             @click="handleAdd"
             >鏂板</el-button
@@ -154,7 +153,6 @@
                 icon="el-icon-upload2"
                 size="medium"
                 @click="handleExport"
-                v-hasPermi="['system:user:export']"
                 >瀵煎嚭</el-button
               >
             </div>
@@ -192,7 +190,7 @@
       <el-table
         v-loading="loading"
         :data="userList"
-        height="806"
+        height="808"
         :row-class-name="tableRowClassName"
         @selection-change="handleSelectionChange"
       >
@@ -218,7 +216,10 @@
               size="medium"
               type="text"
               @click="
-                gettoken360(scope.row.sfzh)
+                  $router.push({
+                    path: '/patient/indexls/',
+                    query: { sfzh: scope.row.idcardno },
+                  })
               "
               ><span class="button-textsc">{{
                 scope.row.sendname
@@ -227,39 +228,45 @@
           </template>
         </el-table-column>
         <el-table-column
-          label="浠诲姟鐘舵��"
+          label="闅忚鐘舵��"
           align="center"
-          key="sendstate"
-          prop="sendstate"
+          key="sendstateView"
+          prop="sendstateView"
           width="120"
         >
           <template slot-scope="scope">
-            <div v-if="scope.row.sendstate == 1">
-              <el-tag type="primary" :disable-transitions="false"
-                >琚鍙�</el-tag
-              >
-            </div>
-            <div v-if="scope.row.sendstate == 2">
-              <el-tag type="primary" :disable-transitions="false"
-                >寰呭彂閫�</el-tag
-              >
-            </div>
-            <div v-if="scope.row.sendstate == 3">
-              <el-tag type="success" :disable-transitions="false"
-                >宸插彂閫佹湭棰嗗彇</el-tag
-              >
-            </div>
-            <div v-if="scope.row.sendstate == 4">
-              <el-tag type="info" :disable-transitions="false">涓嶆墽琛�</el-tag>
-            </div>
-            <div v-if="scope.row.sendstate == 5">
-              <el-tag type="danger" :disable-transitions="false"
-                >鍙戦�佸け璐�</el-tag
-              >
-            </div>
-            <div v-if="scope.row.sendstate == 6">
-              <el-tag type="danger" :disable-transitions="false">宸插畬鎴�</el-tag>
-            </div>
+            <el-tooltip
+              class="item"
+              effect="dark"
+              :content="scope.row.remark"
+              placement="top-start"
+            >
+              <div v-if="scope.row.sendstateView == 1">
+                <el-tag type="primary" :disable-transitions="false"
+                  >寰呴殢璁�</el-tag
+                >
+              </div>
+              <div v-if="scope.row.sendstateView == 2">
+                <el-tag type="primary" :disable-transitions="false"
+                  >闅忚涓�</el-tag
+                >
+              </div>
+              <div v-if="scope.row.sendstateView == 3">
+                <el-tag type="warning" :disable-transitions="false"
+                  >鏈畬鎴�</el-tag
+                >
+              </div>
+              <div v-if="scope.row.sendstateView == 4">
+                <el-tag type="success" :disable-transitions="false"
+                  >宸插畬鎴�</el-tag
+                >
+              </div>
+              <div v-if="scope.row.sendstateView == 5">
+                <el-tag type="danger" :disable-transitions="false"
+                  >鏃犻渶闅忚</el-tag
+                >
+              </div>
+            </el-tooltip>
           </template>
         </el-table-column>
         <!-- <el-table-column
@@ -292,7 +299,7 @@
           width="120"
         />
         <el-table-column
-          label="闅忚鏃堕棿"
+          label="闅忚瀹屾垚鏃堕棿"
           sortable
           align="center"
           prop="finishtime"
@@ -303,7 +310,7 @@
           </template>
         </el-table-column>
         <el-table-column
-          label="褰卞儚缁撴灉"
+          label="闅忚缁撴灉"
           width="200"
           align="center"
           key="remark"
@@ -319,7 +326,7 @@
           </template>
         </el-table-column>
         <el-table-column
-          label="褰卞儚鏃ユ湡"
+          label="妫�鏌ユ棩鏈�"
           width="200"
           align="center"
           key="endtime"
@@ -333,15 +340,15 @@
           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
-          label="褰卞儚澶╂暟"
+          label="宸叉鏌ュぉ鏁�"
           width="120"
           align="center"
           key="endDay"
@@ -420,7 +427,7 @@
         </el-table-column> -->
 
         <!-- <el-table-column
-          label="褰卞儚闅忚妯℃澘鍚嶇О"
+          label="闂ㄨ瘖闅忚妯℃澘鍚嶇О"
           align="center"
           key="templatename"
           prop="templatename"
@@ -507,7 +514,7 @@
         @pagination="getList"
       />
     </el-row>
-    <!-- 娣诲姞鎴栦慨鏀瑰奖鍍忛殢璁垮璇濇 -->
+    <!-- 娣诲姞鎴栦慨鏀归棬璇婇殢璁垮璇濇 -->
     <el-dialog
       :title="title"
       :visible.sync="addalteropen"
@@ -550,7 +557,7 @@
         </el-row>
         <el-row :gutter="20">
           <el-col :span="24">
-            <el-form-item label="褰卞儚闅忚瑕佹眰">
+            <el-form-item label="闂ㄨ瘖闅忚瑕佹眰">
               <el-input type="textarea" v-model="form.desc"></el-input>
             </el-form-item>
           </el-col>
@@ -649,7 +656,7 @@
   resetUserPwd,
   changeUserStatus,
 } from "@/api/system/user";
-import { getTaskservelist,query360PatInfo } from "@/api/AiCentre/index";
+import { getTaskservelist } from "@/api/AiCentre/index";
 import Treeselect from "@riophae/vue-treeselect";
 import store from "@/store";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@@ -675,7 +682,7 @@
       // 鐢ㄦ埛琛ㄦ牸鏁版嵁
       userList: null,
       // 寮瑰嚭灞傛爣棰�
-      title: "鏂板褰卞儚闅忚",
+      title: "鏂板闂ㄨ瘖闅忚",
       // 鏄惁鏄剧ず淇敼銆佹坊鍔犲脊鍑哄眰
       addalteropen: false,
       // 淇敼鍙戦�佹椂闂村璇濇
@@ -697,51 +704,19 @@
       yfsvalue: "",
       inputValue: "",
       preachform: "",
-      previewVisible: false, //褰卞儚闅忚棰勮寮规
+      previewVisible: false, //闂ㄨ瘖闅忚棰勮寮规
       radio: "",
       radios: [],
-      previewtype: 2, //棰勮褰卞儚闅忚绫诲瀷
+      previewtype: 2, //棰勮闂ㄨ瘖闅忚绫诲瀷
       total: 0, // 鎬绘潯鏁�
-      ImportQuantity: 999, //瀵煎奖鍍忛殢璁挎暟閲�
-      //棰勮褰卞儚闅忚淇℃伅
+      ImportQuantity: 999, //瀵奸棬璇婇殢璁挎暟閲�
+      //棰勮闂ㄨ瘖闅忚淇℃伅
       previewvalue: {
         username: "杩欎釜鍖荤敓瀵逛綘鎬庝箞鏍�",
       },
       value: [],
       list: [],
-      postData: {
-        XiaoXiTou: {
-          FaSongFCSJC: "ZJHES",
-          FaSongJGID: "47255004333112711A1001",
-          FaSongJGMC: "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�",
-          FaSongSJ: "2025-01-09聽17:29:36",
-          FaSongXTJC: "SUIFANGXT",
-          FaSongXTMC: "闅忚绯荤粺",
-          XiaoXiID: "5FA92AFB-9833-4608-87C7-F56A654AC171",
-          XiaoXiLX: "SC_LC_360STCX",
-          XiaoXiMC: "360聽瑙嗗浘鏌ヨ",
-          ZuHuID: "1400361376454545408",
-          ZuHuMC: "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�",
-        },
-        YeWuXX: {
-          BingRenXX: {
-            ZhengJianHM: '',
-            ZhengJianLXDM: "01",
-            ZhengJianLXMC: "灞呮皯韬唤璇�",
-            ZuZhiJGID: "47255004333112711A1001",
-            ZuZhiJGMC: "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�",
-          },
-          YongHuXX: {
-            XiTongID: "SUIFANGXT",
-            XiTongMC: "闅忚绯荤粺",
-            YongHuID: "1400466972205912064",
-            YongHuXM: "JNRMYY",
-            ZuZhiJGID: "47255004333112711A1001",
-            ZuZhiJGMC: "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�",
-            idp: "lyra",
-          },
-        },
-      },
+
       sourcetype: [
         {
           value: 1,
@@ -761,7 +736,7 @@
       loading: false,
       cardlist: [
         {
-          name: "褰卞儚鎶ュ憡鎬婚噺",
+          name: "闂ㄨ瘖鏈嶅姟鎬婚噺",
           value: 0,
         },
         // {
@@ -769,7 +744,7 @@
         //   value: 0,
         // },
         {
-          name: "搴旈殢璁�",
+          name: "闇�闅忚",
           value: 0,
         },
 
@@ -791,7 +766,7 @@
         },
 
         // {
-        //   name: "宸插彂閫佹湭棰嗗彇",
+        //   name: "琛ㄥ崟宸插彂閫�",
         //   value: 0,
         // },
       ],
@@ -809,40 +784,38 @@
       topqueryParams: {
         pageNum: 1,
         pageSize: 10,
-        serviceType: 3,
-        searchscope: 3,
+        serviceType: 11,
         sendstate:2,
         scopetype: [],
-        leaveldeptcodes: [],
-        leavehospitaldistrictcodes: [],
+
       },
       propss: { multiple: true },
       options: [],
 
-      topicoptions: [
+     topicoptions: [
         {
-          value: 1,
-          label: "琛ㄥ崟宸查鍙�",
+          value: null,
+          label: "鍏ㄩ儴",
         },
         {
-          value: 2,
+          value: 1,
           label: "寰呴殢璁�",
         },
         {
+          value: 2,
+          label: "闅忚涓�",
+        },
+        {
           value: 3,
-          label: "琛ㄥ崟宸插彂閫�",
+          label: "鏈畬鎴�",
         },
         {
           value: 4,
-          label: "涓嶆墽琛�",
+          label: "宸插畬鎴�",
         },
         {
           value: 5,
-          label: "鍙戦�佸け璐�",
-        },
-        {
-          value: 6,
-          label: "宸插畬鎴�",
+          label: "鏃犻渶闅忚",
         },
       ],
       topicoptionsyj: [
@@ -895,30 +868,20 @@
     this.getList(1);
   },
   methods: {
-    /** 鏌ヨ褰卞儚闅忚鏈嶅姟鍒楄〃 */
+    /** 鏌ヨ闂ㄨ瘖闅忚鏈嶅姟鍒楄〃 */
     getList(refresh) {
       // 榛樿鍏ㄩ儴
-      if (this.topqueryParams.searchscope == 3) {
-        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
-          (obj) => obj.deptCode
-        );
-        this.topqueryParams.leavehospitaldistrictcodes =
-          store.getters.belongWards.map((obj) => obj.districtCode);
-      }
-      // 鎺ュ彈寮傚父璺宠浆
-      if (this.errtype) {
-        this.topqueryParams.leavehospitaldistrictcodes.push(
-          this.leavehospitaldistrictcode
-        );
-        console.log(this.topqueryParams.leavehospitaldistrictcodes, "11");
-      }
-      this.loading = true;
-      if (this.topqueryParams.leavehospitaldistrictcodes[0]&&this.topqueryParams.leaveldeptcodes[0]) {
-        this.topqueryParams.deptOrDistrict=2;
-      }else{
-        this.topqueryParams.deptOrDistrict=1;
-      }
 
+      // 鎺ュ彈寮傚父璺宠浆
+
+      this.loading = true;
+
+
+
+      if (!this.followupAuthority()) {
+        this.$message.warning("鏈厤缃瀹�/鐥呭尯鐩稿叧鏉冮檺涓嶅彲鏌ヨ");
+        return Promise.reject(new Error("鏃犳潈闄愭煡璇�"));
+      }
       getTaskservelist(this.topqueryParams).then((response) => {
         this.userList = response.rows[0].serviceSubtaskList;
         this.total = response.total;
@@ -929,7 +892,7 @@
           // this.cardlist[2].value = response.rows[0].ysf;
           this.ycvalue = response.rows[0].yc;
           // this.cardlist[3].value = response.rows[0].fssb;
-          // this.cardlist[4].value = response.rows[0].dfs;
+          // this.cardlist[4].value = response.rows[0].dsf;
           // this.cardlist[5].value = response.rows[0].yfs2;
           this.yfsvalue = response.rows[0].yfs;
         }
@@ -959,7 +922,7 @@
         this.total = response.total;
       });
     },
-    // 鏌ョ湅褰卞儚闅忚璇︽儏
+    // 鏌ョ湅闂ㄨ瘖闅忚璇︽儏
     Referencequestion(row) {
       this.previewVisible = true;
     },
@@ -977,7 +940,7 @@
         this.options = [];
       }
     },
-    // 褰卞儚闅忚鐘舵�佷慨鏀�
+    // 闂ㄨ瘖闅忚鐘舵�佷慨鏀�
     handleStatusChange(row) {
       let text = row.status === "0" ? "鍚敤" : "鍋滅敤";
       this.$modal
@@ -991,19 +954,6 @@
         .catch(function () {
           row.status = row.status === "0" ? "1" : "0";
         });
-    },
-     //鎮h��360璺宠浆s
-     gettoken360(sfzh) {
-      this.postData.YeWuXX.BingRenXX.ZhengJianHM=sfzh
-      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鏌ヨ鏃犵粨鏋�");
-        }
-      });
-
     },
     // 鍙栨秷鎸夐挳
     cancel() {
@@ -1030,13 +980,7 @@
     },
     /** 鎼滅储鎸夐挳鎿嶄綔 */
     handleQuery(refresh) {
-      if (this.topqueryParams.searchscope == 3) {
-        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
-          (obj) => obj.deptCode
-        );
-        this.topqueryParams.leavehospitaldistrictcodes =
-          store.getters.belongWards.map((obj) => obj.districtCode);
-      }
+
       this.topqueryParams.pageNum = 1;
       this.topqueryParams.startOutHospTime = this.dateRange[0];
       this.topqueryParams.endOutHospTime = this.dateRange[1];
@@ -1047,20 +991,9 @@
     handleChange(value) {
       let type = value[0];
       let code = value.slice(-1)[0];
-      this.topqueryParams.leavehospitaldistrictcodes = [];
-      this.topqueryParams.leaveldeptcodes = [];
 
-      if (type == 1) {
-        this.topqueryParams.leaveldeptcodes.push(code);
-        this.topqueryParams.leavehospitaldistrictcodes = [];
-        this.topqueryParams.searchscope = 1;
-      } else if (type == 2) {
-        this.topqueryParams.leavehospitaldistrictcodes.push(code);
-        this.topqueryParams.leaveldeptcodes = [];
-        this.topqueryParams.searchscope = 2;
-      } else {
-        this.topqueryParams.searchscope = 3;
-      }
+
+
     },
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
     resetQuery() {
@@ -1068,9 +1001,8 @@
       this.topqueryParams = {
         pageNum: 1,
         pageSize: 10,
+        serviceType: 11,
         sendstate:2,
-        serviceType: 3,
-        searchscope: 2,
       };
       this.handleQuery(1);
     },
@@ -1106,7 +1038,7 @@
         path: "/followvisit/QuestionnaireTask",
         query: {
           type: 2,
-          serviceType: 3,
+          serviceType: 11,
         },
       });
     },
@@ -1209,12 +1141,9 @@
     Seedetails(row) {
       let type = "";
       console.log(row, "rwo");
-      if (row.preachformson) {
-        if (row.preachformson.includes("3")) {
+        if (row.type == 1) {
           type = 1;
-          console.log(type, "rwo");
         }
-      }
       this.$router.push({
         path: "/followvisit/record/detailpage/",
         query: {
@@ -1240,7 +1169,7 @@
       this.topqueryParams.pageNum = null;
       this.topqueryParams.pageSize = null;
       this.download(
-        "smartor/serviceSubtask/export",
+        "smartor/serviceSubtask/patItemExport",
         {
           ...this.topqueryParams,
         },
@@ -1351,10 +1280,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 {

--
Gitblit v1.9.3