From d90b45d7e9e38e34c044b772006004f2a4cb8b8e Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 26 六月 2026 13:51:50 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/record/detailpage/index.vue |   89 +++++++++++++++++++++++++++++---------------
 1 files changed, 58 insertions(+), 31 deletions(-)

diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index 6bc4606..ed5040e 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -362,7 +362,14 @@
                   ><i class="el-icon-notebook-1"></i> 闂嵎闅忚缁撴灉</span
                 >
                 <div class="CONTENT">
-                  <div class="title">{{ taskname ? taskname : "闂嵎" }}</div>
+                  <div class="title">
+                    {{ taskname ? taskname : "闂嵎" }}
+                    <span style="margin-left: 50px">
+                      <el-button type="primary" round @click="smsSubTask">
+                        闂嵎鐭俊鎺ㄩ��
+                      </el-button>
+                    </span>
+                  </div>
 
                   <div class="preview-left" v-if="!Voicetype">
                     <div
@@ -1253,6 +1260,7 @@
   updateTemplate,
   query360PatInfonh,
   sendMsg,
+  smsSubTask,
   getconfigKey,
 } from "@/api/AiCentre/index";
 import {
@@ -2143,6 +2151,25 @@
     handleTemplateClear() {
       console.log("娓呴櫎浜嗘ā鏉块�夋嫨");
     },
+    smsSubTask() {
+      this.$modal
+        .confirm("鏄惁鍚戞偅鑰呴�氳繃鐭俊鎺ㄩ�佹枃浠跺唴瀹癸紵")
+        .then(() => {
+          console.log(11, this.id);
+
+          smsSubTask(this.id).then((res) => {
+            console.log(11);
+
+            if (res.code) {
+              this.$modal.msgSuccess("鏂囦欢宸查�氳繃鐭俊鎺ㄩ�佺粰鎮h��");
+            } else {
+            }
+          });
+        })
+        .catch((err) => {
+          console.log(err);
+        });
+    },
     handleConfirmReplace() {
       // 閬嶅巻鎵�鏈夐鐩紙tableDatatop锛�
       this.tableDatatop.forEach((item) => {
@@ -2468,7 +2495,7 @@
       });
     },
     alterpatient(sendstate) {
-      this.Editsingletasksonyic(this.serviceStates)
+      this.Editsingletasksonyic(this.serviceStates);
       // alterpatient(this.userform).then((res) => {
       //   if (res.code == 200) {
       //     this.$modal.msgSuccess("鍩虹淇℃伅淇濆瓨鎴愬姛");
@@ -2867,38 +2894,38 @@
   //   console.log(11);
   // },
   beforeRouteLeave(to, from, next) {
-  const callButton = this.$refs.callButton;
+    const callButton = this.$refs.callButton;
 
-  // 濡傛灉瀛樺湪鍛煎彨缁勪欢涓旀鍦ㄩ�氳瘽涓�
-  if (callButton && callButton.isCalling) {
-    this.$confirm('褰撳墠姝e湪閫氳瘽涓紝纭畾瑕佺寮�姝ら〉闈㈠悧锛�', '鎻愮ず', {
-      confirmButtonText: '鎸傛柇骞剁寮�',
-      cancelButtonText: '缁х画閫氳瘽',
-      type: 'warning'
-    })
-      .then(() => {
-        // 鐢ㄦ埛纭绂诲紑锛屼富鍔ㄦ寕鏂苟娓呯悊
-        callButton.cleanupResources();
-        if (this.$refs.CallCenterLs) {
-          this.$refs.CallCenterLs.handleSeatLogout();
-        }
-        next();
+    // 濡傛灉瀛樺湪鍛煎彨缁勪欢涓旀鍦ㄩ�氳瘽涓�
+    if (callButton && callButton.isCalling) {
+      this.$confirm("褰撳墠姝e湪閫氳瘽涓紝纭畾瑕佺寮�姝ら〉闈㈠悧锛�", "鎻愮ず", {
+        confirmButtonText: "鎸傛柇骞剁寮�",
+        cancelButtonText: "缁х画閫氳瘽",
+        type: "warning",
       })
-      .catch(() => {
-        // 鐢ㄦ埛鍙栨秷锛岄樆姝㈣矾鐢辫烦杞�
-        next(false);
-      });
-  } else {
-    // 鏈�氳瘽鎴栧懠鍙粍浠朵笉瀛樺湪锛屾甯告竻鐞�
-    if (callButton) {
-      callButton.cleanupResources();
+        .then(() => {
+          // 鐢ㄦ埛纭绂诲紑锛屼富鍔ㄦ寕鏂苟娓呯悊
+          callButton.cleanupResources();
+          if (this.$refs.CallCenterLs) {
+            this.$refs.CallCenterLs.handleSeatLogout();
+          }
+          next();
+        })
+        .catch(() => {
+          // 鐢ㄦ埛鍙栨秷锛岄樆姝㈣矾鐢辫烦杞�
+          next(false);
+        });
+    } else {
+      // 鏈�氳瘽鎴栧懠鍙粍浠朵笉瀛樺湪锛屾甯告竻鐞�
+      if (callButton) {
+        callButton.cleanupResources();
+      }
+      if (this.$refs.CallCenterLs) {
+        this.$refs.CallCenterLs.handleSeatLogout();
+      }
+      next();
     }
-    if (this.$refs.CallCenterLs) {
-      this.$refs.CallCenterLs.handleSeatLogout();
-    }
-    next();
-  }
-}
+  },
   // beforeRouteUpdate() {
   //   console.log(33);
   // },

--
Gitblit v1.9.3