From 007d3884ad259883d7a5db6714876e46525ae717 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 26 十一月 2024 14:49:38 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/discharge/index.vue |   29 +++++++++++++++++++----------
 1 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/src/views/followvisit/discharge/index.vue b/src/views/followvisit/discharge/index.vue
index 7ad5da9..7548036 100644
--- a/src/views/followvisit/discharge/index.vue
+++ b/src/views/followvisit/discharge/index.vue
@@ -366,7 +366,6 @@
           width="200"
         />
         <el-table-column
-
           label="浠诲姟鎵ц鏂瑰紡"
           align="center"
           key="preachform"
@@ -375,13 +374,10 @@
           :show-overflow-tooltip="true"
         >
           <template slot-scope="scope">
-            <span v-for="item in scope.row.preachform"
-              >{{ item }}銆�
-            </span>
+            <span v-for="item in scope.row.preachform">{{ item }}銆� </span>
           </template>
         </el-table-column>
         <el-table-column
-
           label="浠诲姟鍙戦�佹祦绋�"
           align="center"
           key="serviceSubtaskRecordList"
@@ -396,7 +392,6 @@
           </template>
         </el-table-column>
         <el-table-column
-
           label="浠诲姟缁撴灉璇存槑"
           width="120"
           align="center"
@@ -414,8 +409,8 @@
         </el-table-column>
         <el-table-column
           label="鎿嶄綔"
-
           align="center"
+          fixed="right"
           width="200"
           class-name="small-padding fixed-width"
         >
@@ -835,6 +830,7 @@
       this.loading = true;
       getTaskservelist(this.topqueryParams).then((response) => {
         this.userList = response.rows[0].serviceSubtaskList;
+        this.total = response.total;
         this.cardlist[0].value =
           Number(response.rows[0].wzx) + Number(response.rows[0].ysf);
         this.cardlist[1].value = response.rows[0].ysf;
@@ -843,11 +839,16 @@
         this.cardlist[4].value = response.rows[0].fssb;
         this.cardlist[5].value = response.rows[0].blq;
         this.cardlist[6].value = response.rows[0].yfs;
+        this.loading = false;
         this.userList.forEach((item) => {
+          const idArray = null;
           if (item.endtime) {
             item.endDay = this.daysBetween(item.endtime);
           }
-          const idArray = item.preachform.split(",");
+          if (item.endtime) {
+            idArray = item.preachform.split(",");
+          }
+
           item.preachform = idArray.map((value) => {
             // 鏌ユ壘id瀵瑰簲鐨勫璞�
             const item = this.checkboxlist.find((item) => item.value == value);
@@ -856,7 +857,6 @@
           });
         });
         this.total = response.total;
-        this.loading = false;
       });
     },
     // 鏌ョ湅闂ㄨ瘖闅忚璇︽儏
@@ -1083,9 +1083,18 @@
     },
     // 璺宠浆璇︽儏椤�
     Seedetails(row) {
+      let type = "";
+      if (row.preachform == 3) {
+        type = 1;
+      }
       this.$router.push({
         path: "/followvisit/record/detailpage/",
-        query: { taskid: row.taskid, patid: row.patid, id: row.id },
+        query: {
+          taskid: row.taskid,
+          patid: row.patid,
+          id: row.id,
+          Voicetype: type,
+        },
       });
     },
     // 渚挎嵎鎸夐挳

--
Gitblit v1.9.3