From f3f72565dcacbb464ed70515ed3526237fe36da1 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 30 六月 2025 15:29:31 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/follow/index.vue |   99 +++++++++++++++++++++++++++++--------------------
 1 files changed, 58 insertions(+), 41 deletions(-)

diff --git a/src/views/patient/follow/index.vue b/src/views/patient/follow/index.vue
index d59e1d8..06f2765 100644
--- a/src/views/patient/follow/index.vue
+++ b/src/views/patient/follow/index.vue
@@ -11,7 +11,7 @@
           v-show="showSearch"
           label-width="98px"
         >
-          <el-form-item label="濮撳悕" prop="name">
+          <el-form-item label="鎮h�呭鍚�" width="100" prop="name">
             <el-input
               v-model="queryParams.name"
               placeholder="璇疯緭鍏ュ鍚�"
@@ -20,26 +20,32 @@
               @keyup.enter.native="handleQuery"
             />
           </el-form-item>
+          <el-form-item label="杩囨护鍖荤敓" width="100" prop="filterDrname">
+            <el-input
+              v-model="queryParams.filterDrname"
+              placeholder="璇疯緭鍏ュ尰鐢熷鍚�"
+              clearable
+              style="width: 200px"
+              @keyup.enter.native="handleQuery"
+            />
+          </el-form-item>
 
-          <el-form-item label="鎮h�呰寖鍥�" prop="tagId">
+          <!-- <el-form-item label="鎮h�呰寖鍥�" prop="tagId">
             <el-select
-              v-model="queryParams.Patientid"
-              multiple
+              v-model="queryParams.searchscope"
               placeholder="璇烽�夋嫨"
             >
               <el-option
                 v-for="item in Patientrange"
-                :key="item.id"
-                :label="item.name"
-                :value="item.id"
+                :key="item.value"
+                :label="item.label"
+                :value="item.value"
               >
               </el-option>
             </el-select>
-          </el-form-item>
-
+          </el-form-item> -->
 
           <el-row>
-
             <el-form-item>
               <el-button
                 type="primary"
@@ -58,7 +64,6 @@
           </el-row>
         </el-form>
 
-
         <el-table
           v-loading="loading"
           :data="userList"
@@ -74,11 +79,18 @@
           <el-table-column
             fixed
             label="濮撳悕"
+            width="100"
             align="center"
             key="name"
             prop="name"
           />
-          <el-table-column label="鎬у埆" align="center" key="sex" prop="sex">
+          <el-table-column
+            label="鎬у埆"
+            width="100"
+            align="center"
+            key="sex"
+            prop="sex"
+          >
             <template slot-scope="scope">
               <span>{{ scope.row.sex == 1 ? "鐢�" : "濂�" }}</span>
             </template>
@@ -127,6 +139,12 @@
             prop="placeOfResidence"
             width="180"
             :show-overflow-tooltip="true"
+          />
+          <el-table-column
+            label="杩囨护鍖荤敓"
+            align="center"
+            key="filterDrname"
+            prop="filterDrname"
           />
           <el-table-column
             label="鎮h�呮爣绛�"
@@ -181,10 +199,9 @@
                 @click="
                   $router.push({
                     path: '/patient/patient/profile/',
-                    query: { id: scope.row.patid },
+                    query: { id: scope.row.id },
                   })
                 "
-                v-hasPermi="['system:user:edit']"
                 ><span class="button-textsc"
                   ><i class="el-icon-zoom-in"></i>鏌ョ湅</span
                 ></el-button
@@ -193,7 +210,6 @@
                 size="medium"
                 type="text"
                 @click="handleDelete(scope.row)"
-                v-hasPermi="['system:user:edit']"
                 ><span class="button-textxga"
                   ><i class="el-icon-edit"></i>鍙栨秷杩囨护</span
                 ></el-button
@@ -211,8 +227,6 @@
         />
       </el-col>
     </el-row>
-
-
   </div>
 </template>
 
@@ -220,7 +234,7 @@
 import { delUser } from "@/api/system/user";
 
 import {
-  messagelistpatient,
+  patarchivelist,
   alterpatient,
   addfiltration,
   particularpatient,
@@ -294,17 +308,17 @@
       propss: { multiple: true },
       optionstag: [], //鏍囩鍒楄〃
       Patientrange: [
-        // {
-        //   name: "闂ㄨ瘖",
-        //   id: 1,
-        // },
         {
-          name: "浣忛櫌",
-          id: 2,
+          value: 0,
+          label: "鎵�灞炴偅鑰�",
         },
         {
-          name: "浣撴",
-          id: 3,
+          value: 1,
+          label: "绉戝鎮h��",
+        },
+        {
+          value: 2,
+          label: "鐥呭尯鎮h��",
         },
       ],
       whether: [
@@ -368,7 +382,7 @@
     /** 鏌ヨ鎮h�呭垪琛� */
     getList() {
       this.loading = true;
-      messagelistpatient(this.queryParams).then((response) => {
+      patarchivelist(this.queryParams).then((response) => {
         console.log(response);
         this.userList = response.rows;
         this.total = response.total;
@@ -436,10 +450,13 @@
     },
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
     resetQuery() {
-      this.dateRange = [];
-      this.resetForm("queryForm");
-      this.$refs.tree.setCurrentKey(null);
-      this.handleQuery();
+      (this.queryParams = {
+        pageNum: 1,
+        pageSize: 10,
+        allhosp: "1",
+        notrequiredFlag: 1,
+      }),
+        this.handleQuery();
     },
     // 澶氶�夋閫変腑鏁版嵁
     handleSelectionChange(selection) {
@@ -486,16 +503,16 @@
       const userIds = row.id || this.ids;
       this.$modal
         .confirm('鏄惁纭鍙栨秷鐢ㄦ埛缂栧彿涓�"' + userIds + '"鐨勬暟鎹」杩囨护锛�')
-        .then( ()=> {
-          row.notrequiredFlag=0
+        .then(() => {
+          row.notrequiredFlag = 0;
           alterpatient(row)
-          .then((response) => {
-            console.log(response);
-          })
-          .then(() => {
-            this.getList();
-            this.$modal.msgSuccess("淇敼鎴愬姛");
-          });
+            .then((response) => {
+              console.log(response);
+            })
+            .then(() => {
+              this.getList();
+              this.$modal.msgSuccess("淇敼鎴愬姛");
+            });
         })
 
         .catch(() => {});
@@ -518,7 +535,7 @@
     /** 涓嬭浇妯℃澘鎿嶄綔 */
     importTemplate() {
       this.download(
-        "system/user/importTemplate",
+        "smartor/import/getImportPatTemplate",
         {},
         `user_template_${new Date().getTime()}.xlsx`
       );

--
Gitblit v1.9.3