From d93ed5c5aadcf3d49f824339c26ebfac911be06d Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 07 十一月 2025 14:39:38 +0800
Subject: [PATCH] 测试完成

---
 src/views/outsideChainwtnew.vue |   29 ++++++++++++++++++++---------
 1 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/src/views/outsideChainwtnew.vue b/src/views/outsideChainwtnew.vue
index a7d75c6..b4aeab6 100644
--- a/src/views/outsideChainwtnew.vue
+++ b/src/views/outsideChainwtnew.vue
@@ -382,6 +382,7 @@
         param1: this.taskid,
         param2: this.patid,
         excep: this.excep,
+        isabnormal: this.excep,
         serviceSubtaskDetailList: [],
       };
       const arr = structuredClone(this.questionList);
@@ -413,16 +414,26 @@
       const arr = structuredClone(this.questionList);
       console.log(arr, "srr");
       arr.forEach((item, index) => {
-        var obj = item.svyTaskTemplateTargetoptions.find(
-          (items) => items.optioncontent == item.scriptResult
-        );
-        console.log(obj, "obj");
+        if (item.scriptType == 1 && item.scriptResult) {
+          var obj = item.svyTaskTemplateTargetoptions.find(
+            (items) => items.optioncontent == item.scriptResult
+          );
+          console.log(item);
 
-        if (obj) {
-          if (obj.isabnormal) {
-            console.log(obj.isabnormal);
-            form.excep = 1;
-            this.excep = 1;
+          console.log(obj, "obj");
+          if (obj.sendTaskid) {
+            item.sendTaskname = obj.sendTaskname;
+            item.sendTaskid = obj.sendTaskid;
+            console.log(String(obj.sendTaskid).split(","));
+            item.sendTaskids = String(obj.sendTaskid).split(",");
+
+          }
+          if (obj) {
+            if (obj.isabnormal) {
+              console.log(obj.isabnormal);
+              form.excep = obj.isabnormal;
+              this.excep = obj.isabnormal;
+            }
           }
         }
       });

--
Gitblit v1.9.3