From d96a7562b2515584fac4dcb57fdbdcadc8f36fef Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期六, 03 八月 2024 17:48:23 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/tasklist/FollowupDetails/index.vue |  102 ++++++++++++++++++++++++++-------------------------
 1 files changed, 52 insertions(+), 50 deletions(-)

diff --git a/src/views/followvisit/tasklist/FollowupDetails/index.vue b/src/views/followvisit/tasklist/FollowupDetails/index.vue
index b480e12..f4b132f 100644
--- a/src/views/followvisit/tasklist/FollowupDetails/index.vue
+++ b/src/views/followvisit/tasklist/FollowupDetails/index.vue
@@ -138,7 +138,7 @@
                         placeholder="璇烽�夋嫨"
                       >
                         <el-option
-                          v-for="item in topicoptions"
+                          v-for="item in taskoptions"
                           :key="item.value"
                           :label="item.label"
                           :value="item.value"
@@ -181,11 +181,11 @@
                   <el-row :gutter="10" class="mb8">
                     <el-col :span="1.5">
                       <el-select
-                        v-model="topqueryParams.topic"
+                        v-model="tasktopic"
                         placeholder="璇烽�夋嫨鏂板绫诲瀷"
                       >
                         <el-option
-                          v-for="item in topicoptions"
+                          v-for="item in taskoptions"
                           :key="item.value"
                           :label="item.label"
                           :value="item.value"
@@ -199,23 +199,13 @@
                         plain
                         icon="el-icon-plus"
                         size="medium"
+                        :disabled="!tasktopic"
                         @click="handleAdd"
                         v-hasPermi="['system:user:add']"
                         >鏂板</el-button
                       >
                     </el-col>
-                    <el-col :span="1.5">
-                      <el-button
-                        type="success"
-                        plain
-                        icon="el-icon-edit"
-                        size="medium"
-                        :disabled="single"
-                        @click="handleUpdate"
-                        v-hasPermi="['system:user:edit']"
-                        >淇敼</el-button
-                      >
-                    </el-col>
+
                     <el-col :span="1.5">
                       <el-button
                         type="danger"
@@ -835,7 +825,7 @@
     </el-dialog>
     <!-- 娣诲姞鎮h�� -->
     <el-dialog
-      title="娣诲姞娲惧彂鎮h��"
+      title="閫夋嫨鎮h��"
       :visible.sync="dialogVisiblepatient"
       width="70%"
       :before-close="handleClosehz"
@@ -940,8 +930,8 @@
               <el-table-column
                 label="鎮h�呮潵婧�"
                 align="center"
-                key="source"
-                prop="source"
+                key="sourcefrom"
+                prop="sourcefrom"
               />
               <el-table-column
                 label="鎵嬫満鍙风爜"
@@ -1002,17 +992,6 @@
 </template>
 
 <script>
-import {
-  listsvr_prjtask,
-  getsvr_prjtask,
-  addsvr_prjtask,
-  updatesvr_prjtask,
-  delsvr_prjtask,
-  Addpatienttask,
-} from "@/api/smartorpor/svr_prjtask";
-import { listpat_archive } from "@/api/smartorpor/pat_archive";
-import { listsvr_prjtaskline } from "@/api/smartorpor/svr_prjtaskline";
-
 export default {
   data() {
     return {
@@ -1048,6 +1027,7 @@
       userList: null,
       patientuserList: null,
       sonuserList: null,
+      tasktopic: null, //鏂板绫诲瀷
       form: {
         name: "",
         region: "",
@@ -1080,6 +1060,24 @@
           label: "鍖椾含鐑ら腑",
         },
       ],
+      taskoptions: [
+        {
+          value: "1",
+          label: "閫氱煡",
+        },
+        {
+          value: "2",
+          label: "闅忚",
+        },
+        {
+          value: "3",
+          label: "闂嵎",
+        },
+        {
+          value: "4",
+          label: "瀹f暀",
+        },
+      ],
       quote: false,
     };
   },
@@ -1107,22 +1105,24 @@
     },
     // 瀛愪换鍔′竴绾у脊妗�
     handleAdd() {
-      listsvr_prjtaskline(this.deliverytopqueryParams).then((response) => {
-        console.log(response);
-        this.sonuserList = response.rows;
-        this.sontotal = response.total;
-        this.loading = false;
-      });
+      this.multiple = true;
+      // listsvr_prjtaskline(this.deliverytopqueryParams).then((response) => {
+      //   console.log(response);
+      //   this.sonuserList = response.rows;
+      //   this.sontotal = response.total;
+      //   this.loading = false;
+      // });
       this.dialogVisible = true;
     },
     // 瀛愪换鍔′簩绾у脊妗�
     handleAddpatient() {
-      listpat_archive(this.patientqueryParams).then((response) => {
-        console.log(response);
-        this.patientuserList = response.rows;
-        this.patienttotal = response.total;
-        this.loading = false;
-      });
+      console.log(this.multiple);
+      // listpat_archive(this.patientqueryParams).then((response) => {
+      //   console.log(response);
+      //   this.patientuserList = response.rows;
+      //   this.patienttotal = response.total;
+      //   this.loading = false;
+      // });
       this.dialogVisiblepatient = true;
     },
     handleUpdate() {},
@@ -1130,8 +1130,10 @@
     handleExport() {},
     // 澶氶�夋閫変腑鏁版嵁
     handleSelectionChange(selection) {
+      this.ids = null;
       this.ids = selection.map((item) => item.patid).join(",");
       // let result = this.ids.join(",");
+      this.multiple = !selection.length;
       console.log(this.ids);
     },
     getList() {},
@@ -1168,9 +1170,9 @@
       let objictpint = {};
       objictpint.patientes = this.ids;
       objictpint.pguid = 2;
-      Addpatienttask(objictpint).then((res) => {
-        console.log(res);
-      });
+      // Addpatienttask(objictpint).then((res) => {
+      //   console.log(res);
+      // });
       this.dialogVisiblepatient = false;
     },
 
@@ -1180,11 +1182,11 @@
       console.log(this.topqueryParams);
       // this.topqueryParams.pid = this.$route.query.id;
       // console.log(this.topqueryParams.pid);
-      listsvr_prjtask(this.topqueryParams).then((res) => {
-        this.userList = res.rows;
-        this.total = res.total;
-        console.log(this.userList);
-      });
+      // listsvr_prjtask(this.topqueryParams).then((res) => {
+      //   this.userList = res.rows;
+      //   this.total = res.total;
+      //   console.log(this.userList);
+      // });
     },
     /** 鏌ヨ鎮h�呭垪琛� */
   },
@@ -1203,7 +1205,7 @@
   //   margin-top: 20px;
   margin: 20px;
   margin-bottom: 0;
-  padding: 30px;
+  padding: 20px;
   background: #edf1f7;
   border: 1px solid #dcdfe6;
   -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),

--
Gitblit v1.9.3