From 44d24a2155bb22930a0d0d02ccacebd8d0871fa2 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 25 二月 2025 15:42:21 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/record/detailpage/index.vue |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index acd20aa..7d2254e 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -480,10 +480,12 @@
         if (res.code === 200) {
           this.tableDatatop = res.data.scriptResult.script;
           this.tableDatatop.forEach((item) => {
-            if (item.scriptResult && item.scriptType != 2) {
+            console.log(item.scriptResultId,'scriptResultId');
+
+            if (item.scriptResultId && item.scriptType != 2) {
               item.isoption = 3;
-              item.scriptResult = JSON.parse(item.scriptResult);
-            } else if (item.scriptResult && item.scriptType == 2) {
+              item.scriptResult = item.scriptResult;
+            } else if (item.scriptResultId && item.scriptType == 2) {
               item.scriptResult = item.scriptResult.split("&");
               item.isoption = 3;
             }
@@ -556,9 +558,10 @@
         var objs = item.svyLibTemplateTargetoptions.find(
           (items) => items.optioncontent == item.scriptResult
         );
-
-        if (objs.isabnormal) {
-          excep = 1;
+        if (obj) {
+          if (objs.isabnormal) {
+            excep = 1;
+          }
         }
 
         let obj = {
@@ -572,8 +575,9 @@
         if (item.scriptType == 2 && item.scriptResult[0]) {
           obj.asrtext = item.scriptResult.join("&");
         } else if (item.scriptType != 2 && item.scriptResult) {
-          obj.asrtext = JSON.stringify(item.scriptResult);
+          obj.asrtext = item.scriptResult;
         }
+console.log(item,'item90');
 
         if (item.isoption == 3) {
           serviceSubtaskDetailedit(obj).then((res) => {

--
Gitblit v1.9.3