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/followvisit/record/detailpage/index.vue |   67 +++++++++++++++++++++++++--------
 1 files changed, 50 insertions(+), 17 deletions(-)

diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index c34b48f..26a60fe 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -302,7 +302,7 @@
                               handleOptionChange(
                                 $event,
                                 index,
-                                item.svyLibTemplateTargetoptions,
+                                item.svyTaskTemplateTargetoptions,
                                 item
                               )
                             "
@@ -310,7 +310,7 @@
                             <el-radio
                               v-for="(
                                 items, indexs
-                              ) in item.svyLibTemplateTargetoptions"
+                              ) in item.svyTaskTemplateTargetoptions"
                               :class="items.isabnormal ? 'red-star' : ''"
                               :key="indexs"
                               :label="items.optioncontent"
@@ -363,7 +363,7 @@
                               @change="$forceUpdate()"
                               v-for="(
                                 items, indexs
-                              ) in item.svyLibTemplateTargetoptions"
+                              ) in item.svyTaskTemplateTargetoptions"
                               :key="indexs"
                               :label="items.optioncontent"
                             >
@@ -437,10 +437,11 @@
                           >
                             <el-radio
                               v-for="(items, index) in item.scriptResult"
-                              :key="items"
+                              :key="index"
                               :label="items"
+                              :class="items.isabnormal ? 'red-star' : ''"
                               @click.native.prevent="
-                                handleRadioToggle(item, items.optioncontent)
+                                handleRadioToggles(item, items)
                               "
                               >{{ items }}</el-radio
                             >
@@ -1031,7 +1032,7 @@
         width="60%"
       >
         <CallCenterLs
-          ref="callCenterModal"
+          ref="CallCenterLs"
           :initial-phone="currentPhoneNumber"
         />
       </el-dialog>
@@ -1152,6 +1153,9 @@
       isEndingCall: false,
       CaldialogVisible: false,
       currentCall: null, // 褰撳墠閫氳瘽瀵硅薄
+      // 璺敱鐩戝惉鐩稿叧
+      routeWatcher: null,
+      lastRoutePath: this.$route.path,
       input: "浠婂ぉ韬綋杩樹笉閿�",
       radio: "2",
       taskname: "",
@@ -1376,6 +1380,8 @@
       patid: null,
     };
   },
+
+
   computed: {
     callStatusText() {
       const statusMap = {
@@ -1532,7 +1538,7 @@
       console.log(date);
 
       if (!date) {
-        this.form.date1 = '';
+        this.form.date1 = "";
         this.$refs.zcform.clearValidate(["date1"]);
         return;
       }
@@ -1542,7 +1548,7 @@
 
       if (selectedDate < now) {
         this.$message.warning("闅忚鏃堕棿涓嶈兘鏃╀簬褰撳墠鏃ユ湡");
-        this.form.date1 = '';
+        this.form.date1 = "";
         this.$refs.zcform.validateField("date1"); // 瑙﹀彂楠岃瘉
       }
     },
@@ -1612,7 +1618,7 @@
             return;
           }
         }
-        var objs = item.svyLibTemplateTargetoptions.find(
+        var objs = item.svyTaskTemplateTargetoptions.find(
           (items) => items.optioncontent == item.scriptResult
         );
         if (obj) {
@@ -2046,10 +2052,10 @@
         .confirm('鏄惁鏌ョ湅浠诲姟涓�"' + row.taskName + '"鐨勬湇鍔¤鎯呮暟鎹紵')
         .then(() => {
           let type = "";
-      console.log(row, "rwo");
-        if (row.type == 1) {
-          type = 1;
-        }
+          console.log(row, "rwo");
+          if (row.type == 1) {
+            type = 1;
+          }
           this.taskid = row.taskid;
           this.id = row.id;
           this.patid = row.patid;
@@ -2076,7 +2082,7 @@
           (item) => item.optioncontent == a
         );
       } else {
-        var obj = this.tableDatatop[b].svyLibTemplateTargetoptions.find(
+        var obj = this.tableDatatop[b].svyTaskTemplateTargetoptions.find(
           (item) => item.optioncontent == a
         );
       }
@@ -2089,6 +2095,8 @@
     },
     // 鏂板鐨勫垏鎹㈤�変腑/鍙栨秷閫変腑鏂规硶
     handleRadioToggle(questionItem, optionValue) {
+      console.log(questionItem, optionValue, 999);
+
       // 濡傛灉鐐瑰嚮鐨勬槸褰撳墠宸查�変腑鐨勯�夐」锛屽垯鍙栨秷閫変腑
       if (questionItem.scriptResult === optionValue) {
         questionItem.scriptResult = ""; // 娓呯┖閫変腑鍊�
@@ -2104,8 +2112,28 @@
         // 鍚庣画鐨勮烦杞瓑澶嶆潅閫昏緫浼氬湪 handleOptionChange 涓甯告墽琛�
       }
     },
+    handleRadioToggles(questionItem, optionValue) {
+      if (!questionItem.matchedtext) {
+        questionItem.matchedtext == "";
+      }
+      // 濡傛灉鐐瑰嚮鐨勬槸褰撳墠宸查�変腑鐨勯�夐」锛屽垯鍙栨秷閫変腑
+      if (questionItem.matchedtext == optionValue) {
+        this.$set(questionItem, "matchedtext", "");
+        // 鍚屾椂閲嶇疆涓庨�夐」鐩稿叧鐨勭姸鎬�
+        questionItem.isabnormal = false;
+        questionItem.showAppendInput = false;
+        // 娉ㄦ剰锛氬彇娑堥�変腑鏃讹紝鎴戜滑閫氬父涓嶅笇鏈涜Е鍙戦鐩烦杞�昏緫锛屾墍浠ョ洿鎺ヨ繑鍥�
+        // 濡傛灉闇�瑕侊紝鍙互鍦ㄨ繖閲屾坊鍔犲彇娑堥�変腑鍚庣殑鐗瑰畾閫昏緫锛屼緥濡傞噸缃鐩簭鍒�
+      } else {
+        // 濡傛灉鐐瑰嚮鐨勬槸鏈�変腑鐨勯�夐」锛屽垯閫氳繃鏇存敼缁戝畾鍊兼潵瑙﹀彂鍘熷鐨� handleOptionChange 鏂规硶
+        // 杩欓噷鍙渶瑕佹敼鍙� v-model 缁戝畾鐨勫�硷紝change浜嬩欢浼氳嚜鍔ㄨЕ鍙�
+        this.$set(questionItem, "matchedtext", optionValue); // 鍚庣画鐨勮烦杞瓑澶嶆潅閫昏緫浼氬湪 handleOptionChange 涓甯告墽琛�
+      }
+    },
     // 鍦╩ethods閮ㄥ垎锛屼慨鏀筯andleOptionChange鏂规硶:
     handleOptionChange(selectedOption, questionIndex, options, a) {
+      console.log(selectedOption, questionIndex, options, a, "888");
+
       if (document.activeElement) {
         document.activeElement.blur();
       }
@@ -2198,7 +2226,7 @@
     },
     overdata() {
       this.tableDatatop.forEach((item, index) => {
-        var obj = item.svyLibTemplateTargetoptions.find(
+        var obj = item.svyTaskTemplateTargetoptions.find(
           (items) => items.optioncontent == item.scriptResult
         );
         if (obj) {
@@ -2333,6 +2361,11 @@
   // },
   beforeRouteLeave(to, from, next) {
     this.$refs.callButton.cleanupResources();
+    if (this.$refs.CallCenterLs) {
+      console.log(1);
+
+      this.$refs.CallCenterLs.handleSeatLogout();
+    }
     next(); // 纭繚璋冪敤 nex
   },
   // beforeRouteUpdate() {
@@ -2527,7 +2560,7 @@
 .CONTENT {
   padding: 10px;
   height: 100%;
-  min-height: 660px; /* 璁剧疆鏈�灏忛珮搴� */
+  min-height: 738px; /* 璁剧疆鏈�灏忛珮搴� */
 
   .title {
     font-size: 22px;
@@ -2542,7 +2575,7 @@
   padding: 30px;
   border: 1px solid #dcdfe6;
   box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);
-  max-height: 580px; /* 璁剧疆鏈�澶ч珮搴� */
+  max-height: 618px; /* 璁剧疆鏈�澶ч珮搴� */
   overflow-y: auto; /* 鍐呭瓒呰繃楂樺害鏃舵樉绀烘粴鍔ㄦ潯 */
 
   .topic-dev {

--
Gitblit v1.9.3