From 4413b4649c337dd65e27c7a4be0d5ca1294477ab Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 04 六月 2025 14:32:36 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/record/index.vue |  139 +++++++++++++++++++++++++++++-----------------
 1 files changed, 87 insertions(+), 52 deletions(-)

diff --git a/src/views/followvisit/record/index.vue b/src/views/followvisit/record/index.vue
index bdf3aca..1063d26 100644
--- a/src/views/followvisit/record/index.vue
+++ b/src/views/followvisit/record/index.vue
@@ -120,16 +120,16 @@
           </el-select>
         </el-form-item>
         <el-form-item label="鎺掑簭鏂瑰紡" prop="status">
-     <el-select v-model="topqueryParams.sort" placeholder="璇烽�夋嫨">
-      <el-option
-       v-for="item in topicoptionssort"
-       :key="item.value"
-       :label="item.label"
-       :value="item.value"
-      >
-      </el-option>
-     </el-select>
-    </el-form-item>
+          <el-select v-model="topqueryParams.sort" placeholder="璇烽�夋嫨">
+            <el-option
+              v-for="item in topicoptionssort"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+            >
+            </el-option>
+          </el-select>
+        </el-form-item>
 
         <el-form-item>
           <el-button
@@ -165,7 +165,6 @@
                 icon="el-icon-upload2"
                 size="medium"
                 @click="handleExport"
-                v-hasPermi="['system:user:export']"
                 >瀵煎嚭</el-button
               >
             </div>
@@ -212,11 +211,19 @@
             </div>
           </div>
         </el-col>
+        <el-col :span="1.5">
+          <div class="documentf">
+            <div class="document">
+              <el-button type="success" size="medium" @click="onthatday()"
+                >褰撴棩鏈嶅姟</el-button
+              >
+            </div>
+          </div>
+        </el-col>
       </el-row>
       <el-table
         v-loading="loading"
         :data="userList"
-        height="806"
         :row-class-name="tableRowClassName"
         @selection-change="handleSelectionChange"
       >
@@ -242,7 +249,7 @@
               size="medium"
               type="text"
               @click="
-                gettoken360(scope.row.sfzh)
+                gettoken360(scope.row.sfzh, scope.row.drcode, scope.row.drname)
               "
               ><span class="button-textsc">{{
                 scope.row.sendname
@@ -509,7 +516,7 @@
                 ></el-button
               >
             </el-tooltip> -->
-            <el-tooltip
+            <!-- <el-tooltip
               v-if="scope.row.sendstate == 1 || scope.row.sendstate == 2"
               class="item"
               effect="dark"
@@ -525,7 +532,7 @@
                   ><i class="el-icon-remove-outline"></i>鏆傚仠鏈嶅姟</span
                 ></el-button
               >
-            </el-tooltip>
+            </el-tooltip> -->
             <el-button size="medium" type="text" @click="Seedetails(scope.row)"
               ><span class="button-zx"
                 ><i class="el-icon-s-order"></i>鏌ョ湅璇︽儏</span
@@ -729,7 +736,11 @@
   resetUserPwd,
   changeUserStatus,
 } from "@/api/system/user";
-import { getTaskservelist, buidegetTasklist,query360PatInfo } from "@/api/AiCentre/index";
+import {
+  getTaskservelist,
+  buidegetTasklist,
+  query360PatInfo,
+} from "@/api/AiCentre/index";
 import Treeselect from "@riophae/vue-treeselect";
 import store from "@/store";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@@ -788,7 +799,7 @@
         },
         YeWuXX: {
           BingRenXX: {
-            ZhengJianHM: '',
+            ZhengJianHM: "",
             ZhengJianLXDM: "01",
             ZhengJianLXMC: "灞呮皯韬唤璇�",
             ZuZhiJGID: localStorage.getItem("orgid"),
@@ -894,8 +905,8 @@
         pageSize: 10,
         serviceType: 13,
         searchscope: 3,
-        sendstate:2,
-        sort:2,
+        sendstate: 2,
+        sort: 2,
         scopetype: [],
         leaveldeptcodes: [],
         leavehospitaldistrictcodes: [],
@@ -904,6 +915,10 @@
       options: [],
 
       topicoptions: [
+        {
+          value: null,
+          label: "鍏ㄩ儴",
+        },
         {
           value: 1,
           label: "琛ㄥ崟宸查鍙�",
@@ -939,24 +954,24 @@
           label: "姝e父",
         },
       ],
-      topicoptionssort:[
-    {
-     value: 0,
-     label: "鍑洪櫌鏃堕棿(姝e簭)",
-    },
-    {
-     value: 1,
-     label: "鍑洪櫌鏃堕棿(鍊掑簭)",
-    },
-    {
-     value: 2,
-     label: "鍙戦�佹椂闂�(姝e簭)",
-    },
-    {
-     value: 3,
-     label: "鍙戦�佹椂闂�(鍊掑簭)",
-    },
-   ],
+      topicoptionssort: [
+        {
+          value: 0,
+          label: "鍑洪櫌鏃堕棿(姝e簭)",
+        },
+        {
+          value: 1,
+          label: "鍑洪櫌鏃堕棿(鍊掑簭)",
+        },
+        {
+          value: 2,
+          label: "鍙戦�佹椂闂�(姝e簭)",
+        },
+        {
+          value: 3,
+          label: "鍙戦�佹椂闂�(鍊掑簭)",
+        },
+      ],
       errtype: "",
       leavehospitaldistrictcode: "",
       serviceState: [],
@@ -1015,10 +1030,13 @@
         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;
+      if (
+        this.topqueryParams.leavehospitaldistrictcodes[0] &&
+        this.topqueryParams.leaveldeptcodes[0]
+      ) {
+        this.topqueryParams.deptOrDistrict = 2;
+      } else {
+        this.topqueryParams.deptOrDistrict = 1;
       }
       getTaskservelist(this.topqueryParams).then((response) => {
         this.userList = response.rows[0].serviceSubtaskList;
@@ -1030,7 +1048,7 @@
           this.cardlist[1].value = response.rows[0].ysf;
           this.ycvalue = response.rows[0].yc;
           this.cardlist[2].value = response.rows[0].fssb;
-          this.cardlist[3].value = response.rows[0].dfs;
+          this.cardlist[3].value = response.rows[0].dsf;
           this.cardlist[4].value = response.rows[0].yfs2;
           this.yfsvalue = response.rows[0].yfs;
         }
@@ -1060,18 +1078,21 @@
         this.total = response.total;
       });
     },
-     //鎮h��360璺宠浆
-     gettoken360(sfzh) {
-      this.postData.YeWuXX.BingRenXX.ZhengJianHM=sfzh
+    //鎮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');
+          window.open(res.data.url, "_blank");
           // this.linkUrl = res.data.url;
-        }else{
+        } else {
           this.$modal.msgWarning("360鏌ヨ鏃犵粨鏋�");
         }
       });
-
     },
     buidegetTasklist(type) {
       if (this.topqueryParams.searchscope == 3) {
@@ -1105,7 +1126,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;
         }
@@ -1232,9 +1253,12 @@
         pageNum: 1,
         pageSize: 10,
         serviceType: 13,
-        sort:2,
+        sort: 2,
         searchscope: 2,
-        sendstate:2,
+        sendstate: 2,
+        scopetype: [],
+        leaveldeptcodes: [],
+        leavehospitaldistrictcodes: [],
       };
       this.handleQuery(1);
     },
@@ -1254,6 +1278,15 @@
       this.$nextTick((_) => {
         this.$refs.saveTagInput.$refs.input.focus();
       });
+    },
+    onthatday() {
+      this.topqueryParams.startSendDateTime = this.getCurrentDate();
+      this.topqueryParams.endSendDateTime = this.getCurrentDate();
+      this.getList(1);
+    },
+    getCurrentDate() {
+      const now = new Date();
+      return now.toISOString().slice(0, 10); // 鎴彇鍓�10涓瓧绗︼紝鍗� YYYY-MM-DD
     },
     //鑾峰彇澶卞幓鐒︾偣瑙﹀彂
     handleInputConfirm() {
@@ -1386,6 +1419,7 @@
           patid: row.patid,
           id: row.id,
           Voicetype: type,
+          again: 1,
         },
       });
     },
@@ -1439,7 +1473,8 @@
       this.topqueryParams.pageNum = null;
       this.topqueryParams.pageSize = null;
       this.download(
-        "smartor/serviceSubtask/export",
+        // "smartor/serviceSubtask/export",
+        "smartor/serviceSubtask/patItemExport",
         {
           ...this.topqueryParams,
         },

--
Gitblit v1.9.3