From 6d7cd13eecd3a6f176d310986b4750b0c407e3a1 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 21 五月 2025 14:40:43 +0800
Subject: [PATCH] 测试完成

---
 src/views/outsideChainwt.vue |  201 +++++++++++++++++++++++++++-----------------------
 1 files changed, 109 insertions(+), 92 deletions(-)

diff --git a/src/views/outsideChainwt.vue b/src/views/outsideChainwt.vue
index 56d0f30..a8da2c1 100644
--- a/src/views/outsideChainwt.vue
+++ b/src/views/outsideChainwt.vue
@@ -8,7 +8,7 @@
             {{
               kcb
                 ? kcb
-                : "浜茬埍鐨勬偅鑰�-瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�"
+                : "浜茬埍鐨勬偅鑰�-瀹跺睘锛屾垜浠槸"+localStorage.getItem("orgname")+"鐨勫尰鎶や汉鍛橈紝涓轰簡鏇村ソ鍦颁簡瑙f偍鐨勫悍澶嶆儏鍐碉紝璇锋偍鎶戒竴鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�"
             }}
             <!-- 浜茬埍鐨勬偅鑰�/瀹跺睘鎮ㄥソ锛屼负浜嗘洿濂界殑浜嗚В鎮ㄥ嚭闄㈠悗鐨勫悍澶嶆儏鍐碉紝缁欐偍閫傚綋鍙婃椂鐨勫仴搴锋寚瀵硷紝璇锋偍鎶戒竴鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤鍑洪櫌闅忚闂嵎璋冩煡銆� -->
           </div>
@@ -36,7 +36,11 @@
                 <el-radio
                   border
                   v-for="(items, index) in item.svyLibTemplateTargetoptions"
-                  :class="items.isabnormal ? 'red-star' : ''"
+                  :class="
+                    items.isabnormal && item.scriptResult == items.optioncontent
+                      ? 'red-star'
+                      : ''
+                  "
                   :key="index"
                   :label="items.optioncontent"
                   >{{ items.optioncontent }}</el-radio
@@ -65,7 +69,6 @@
                   border
                   @change="$forceUpdate()"
                   v-for="(items, indexs) in item.svyLibTemplateTargetoptions"
-                  :class="items.isabnormal ? 'red-star' : ''"
                   :key="indexs"
                   :label="items.optioncontent"
                 >
@@ -73,6 +76,7 @@
                 </el-checkbox>
               </el-checkbox-group>
             </div>
+            <!-- :class="items.isabnormal ? 'red-star' : ''" -->
             <div v-show="item.prompt && item.scriptResult[0]">
               <el-alert :title="item.prompt" type="warning"> </el-alert>
             </div>
@@ -155,92 +159,93 @@
       taskid: 355,
       patid: 265823,
       kcb: "",
+      excep:'',
       questionList: [
-        {
-          scriptType: 1,
-          scriptContent: "鎮ㄧ殑骞撮緞鑼冨洿鏄紵",
-          scriptResult: null,
-          svyLibTemplateTargetoptions: [
-            { optioncontent: "18-25", value: "18-25", isabnormal: true },
-            { optioncontent: "26-35", value: "26-35" },
-            { optioncontent: "36-45", value: "36-45" },
-            { optioncontent: "46-55", value: "46-55" },
-            { optioncontent: "56+", value: "56+" },
-          ],
-          required: true,
-        },
-        {
-          scriptType: 1,
-          scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
-          scriptResult: null,
-          svyLibTemplateTargetoptions: [
-            { optioncontent: "瀛︾敓", value: "student" },
-            { optioncontent: "鏁欏笀", value: "teacher" },
-            { optioncontent: "宸ョ▼甯�", value: "engineer" },
-            { optioncontent: "鍖荤敓", value: "doctor" },
-            { optioncontent: "鍏朵粬", value: "other" },
-          ],
-          required: false,
-        },
-        {
-          scriptType: 2,
-          scriptContent: "鎮ㄦ劅鍏磋叮鐨勬椿鍔ㄦ湁鍝簺锛�",
-          scriptResult: [],
-          svyLibTemplateTargetoptions: [
-            { optioncontent: "鏃呮父", value: "travel", isabnormal: true },
-            { optioncontent: "闃呰", value: "reading", isabnormal: true },
-            { optioncontent: "杩愬姩", value: "sports", isabnormal: true },
-            { optioncontent: "闊充箰", value: "music" },
-            { optioncontent: "鐢靛奖", value: "movies" },
-          ],
-          required: false,
-        },
-        {
-          scriptType: 1,
-          scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
-          scriptResult: null,
-          svyLibTemplateTargetoptions: [
-            { optioncontent: "瀛︾敓", value: "student" },
-            { optioncontent: "鏁欏笀", value: "teacher" },
-            { optioncontent: "宸ョ▼甯�", value: "engineer" },
-            { optioncontent: "鍖荤敓", value: "doctor" },
-            { optioncontent: "鍏朵粬", value: "other" },
-          ],
-          required: false,
-        },
-        {
-          scriptType: 1,
-          scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
-          scriptResult: null,
-          svyLibTemplateTargetoptions: [
-            { optioncontent: "瀛︾敓", value: "student" },
-            { optioncontent: "鏁欏笀", value: "teacher" },
-            { optioncontent: "宸ョ▼甯�", value: "engineer", isabnormal: true },
-            { optioncontent: "鍖荤敓", value: "doctor" },
-            { optioncontent: "鍏朵粬", value: "other" },
-          ],
-          required: false,
-        },
-        {
-          scriptType: 1,
-          scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
-          scriptResult: null,
-          svyLibTemplateTargetoptions: [
-            { optioncontent: "瀛︾敓", value: "student" },
-            { optioncontent: "鏁欏笀", value: "teacher" },
-            { optioncontent: "宸ョ▼甯�", value: "engineer" },
-            { optioncontent: "鍖荤敓", value: "doctor" },
-            { optioncontent: "鍏朵粬", value: "other" },
-          ],
-          required: false,
-        },
-        {
-          scriptType: 4,
-          scriptContent: "鎮ㄧ殑濮撳悕鏄粈涔堬紵",
-          scriptResult: "name",
-          required: true,
-          scriptResult: null,
-        },
+        // {
+        //   scriptType: 1,
+        //   scriptContent: "鎮ㄧ殑骞撮緞鑼冨洿鏄紵",
+        //   scriptResult: null,
+        //   svyLibTemplateTargetoptions: [
+        //     { optioncontent: "18-25", value: "18-25", isabnormal: true },
+        //     { optioncontent: "26-35", value: "26-35" },
+        //     { optioncontent: "36-45", value: "36-45" },
+        //     { optioncontent: "46-55", value: "46-55" },
+        //     { optioncontent: "56+", value: "56+" },
+        //   ],
+        //   required: true,
+        // },
+        // {
+        //   scriptType: 1,
+        //   scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
+        //   scriptResult: null,
+        //   svyLibTemplateTargetoptions: [
+        //     { optioncontent: "瀛︾敓", value: "student" },
+        //     { optioncontent: "鏁欏笀", value: "teacher" },
+        //     { optioncontent: "宸ョ▼甯�", value: "engineer" },
+        //     { optioncontent: "鍖荤敓", value: "doctor" },
+        //     { optioncontent: "鍏朵粬", value: "other" },
+        //   ],
+        //   required: false,
+        // },
+        // {
+        //   scriptType: 2,
+        //   scriptContent: "鎮ㄦ劅鍏磋叮鐨勬椿鍔ㄦ湁鍝簺锛�",
+        //   scriptResult: [],
+        //   svyLibTemplateTargetoptions: [
+        //     { optioncontent: "鏃呮父", value: "travel", isabnormal: true },
+        //     { optioncontent: "闃呰", value: "reading", isabnormal: true },
+        //     { optioncontent: "杩愬姩", value: "sports", isabnormal: true },
+        //     { optioncontent: "闊充箰", value: "music" },
+        //     { optioncontent: "鐢靛奖", value: "movies" },
+        //   ],
+        //   required: false,
+        // },
+        // {
+        //   scriptType: 1,
+        //   scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
+        //   scriptResult: null,
+        //   svyLibTemplateTargetoptions: [
+        //     { optioncontent: "瀛︾敓", value: "student" },
+        //     { optioncontent: "鏁欏笀", value: "teacher" },
+        //     { optioncontent: "宸ョ▼甯�", value: "engineer" },
+        //     { optioncontent: "鍖荤敓", value: "doctor" },
+        //     { optioncontent: "鍏朵粬", value: "other" },
+        //   ],
+        //   required: false,
+        // },
+        // {
+        //   scriptType: 1,
+        //   scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
+        //   scriptResult: null,
+        //   svyLibTemplateTargetoptions: [
+        //     { optioncontent: "瀛︾敓", value: "student" },
+        //     { optioncontent: "鏁欏笀", value: "teacher" },
+        //     { optioncontent: "宸ョ▼甯�", value: "engineer", isabnormal: true },
+        //     { optioncontent: "鍖荤敓", value: "doctor" },
+        //     { optioncontent: "鍏朵粬", value: "other" },
+        //   ],
+        //   required: false,
+        // },
+        // {
+        //   scriptType: 1,
+        //   scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
+        //   scriptResult: null,
+        //   svyLibTemplateTargetoptions: [
+        //     { optioncontent: "瀛︾敓", value: "student" },
+        //     { optioncontent: "鏁欏笀", value: "teacher" },
+        //     { optioncontent: "宸ョ▼甯�", value: "engineer" },
+        //     { optioncontent: "鍖荤敓", value: "doctor" },
+        //     { optioncontent: "鍏朵粬", value: "other" },
+        //   ],
+        //   required: false,
+        // },
+        // {
+        //   scriptType: 4,
+        //   scriptContent: "鎮ㄧ殑濮撳悕鏄粈涔堬紵",
+        //   scriptResult: "name",
+        //   required: true,
+        //   scriptResult: null,
+        // },
       ],
       jsy: null,
       dialogVisible: false,
@@ -343,6 +348,7 @@
       let form = {
         param1: this.taskid,
         param2: this.patid,
+        excep:this.excep,
         serviceSubtaskDetailList: [],
       };
       const arr = structuredClone(this.questionList);
@@ -372,6 +378,20 @@
         svyLibTemplateScriptVOS: [],
       };
       const arr = structuredClone(this.questionList);
+      console.log(arr,'srr')
+      arr.forEach((item, index) => {
+        var obj = item.svyLibTemplateTargetoptions.find(
+          (items) => items.optioncontent == item.scriptResult
+        );
+        if (obj) {
+          if (obj.isabnormal) {
+            console.log(obj.isabnormal);
+            form.excep = 1;
+            this.excep=1;
+          }
+        }
+      });
+
       arr.forEach((item) => {
         if (item.scriptType == 2 && item.scriptResult[0]) {
           item.scriptResult = item.scriptResult.join("&");
@@ -478,10 +498,7 @@
     }
   }
 }
-.red-star {
-  position: relative;
-  padding-right: 15px;
-}
+
 .red-star {
   ::v-deep.el-radio__label {
     position: relative;

--
Gitblit v1.9.3