From e8c62bd430b9697d3f954125b7ec9f61f18347a2 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 20 十月 2025 11:19:34 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/record/detailpage/index.vue |   46 +++++++++++++++++++++++++---------------------
 1 files changed, 25 insertions(+), 21 deletions(-)

diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index b5dc4e7..c5945bb 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -1721,24 +1721,28 @@
       }, 3000);
     },
     yuyingetdetail() {
-      this.tableDatatop.forEach((item, index) => {
-        item.scriptResult = item.scriptResult.join("&");
-        item.templatequestionnum = index + 1;
-        item.subId = this.id;
-        item.taskid = this.taskid;
-        item.asrtext = item.matchedtext;
-        if (!item.id) {
-          item.isoperation = 1;
-        }
-        item.patid = this.patid;
-        item.templateid = item.templateID;
-      });
-      let obj = {
-        serviceSubtaskDetailList: this.tableDatatop,
-        param1: this.taskid,
-        param2: this.patid,
-        subId: this.id,
-      };
+     const dataToSubmit = JSON.parse(JSON.stringify(this.tableDatatop));
+
+  dataToSubmit.forEach((item, index) => {
+    // 瀵规嫹璐濈殑鏁版嵁杩涜鎿嶄綔锛屼笉褰卞搷鍘熷鐨� scriptResult 鏁扮粍
+    item.scriptResult = item.scriptResult.join("&");
+    item.templatequestionnum = index + 1;
+    item.subId = this.id;
+    item.taskid = this.taskid;
+    item.asrtext = item.matchedtext;
+    if (!item.id) {
+      item.isoperation = 1;
+    }
+    item.patid = this.patid;
+    item.templateid = item.templateID;
+  });
+
+  let obj = {
+    serviceSubtaskDetailList: dataToSubmit, // 鎻愪氦澶勭悊鍚庣殑鍓湰
+    param1: this.taskid,
+    param2: this.patid,
+    subId: this.id,
+  };
 
       addPersonVoices(obj).then((res) => {
         if (res.code == 200) {
@@ -1812,11 +1816,11 @@
           this.form = res.rows[0].serviceSubtaskList.find(
             (item) => item.id == this.id
           );
-          console.log(this.form.serviceType, "serviceType");
+          console.log(this.form, "serviceType");
 
           this.logsheetlist = res.rows[0].serviceSubtaskList;
-          this.templateid = this.logsheetlist[0].templateid;
-          this.selectedTag = this.logsheetlist[0].excep;
+          this.templateid = this.form.templateid;
+          this.selectedTag = this.form.excep;
           const targetDate = new Date(this.form.longSendTime); // 鐩爣鏃ユ湡
           const now = new Date(); // 褰撳墠鏃堕棿
           if (now < targetDate && this.form.sendstate == 2) {

--
Gitblit v1.9.3