From e48af621e9c9a6fd97cdcff2cafa515347d05995 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期一, 04 八月 2025 15:19:13 +0800
Subject: [PATCH] :“体检项目、常规检查

---
 src/views/doctor/check/index.vue |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index e26b2b1..41723b2 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -909,6 +909,7 @@
       hzReplyLogsList: [],
       hasdeptList: [],
       radio: "",
+      lastClickedTab: null,
       nums: "",
       proParentList: [],
       tjNumber: "",
@@ -1821,6 +1822,9 @@
     },
 
     handleTabClick(tab, event) {
+      if(this.lastClickedTab ==null){
+        this.lastClickedTab = tab
+      }
       this.Parent.forEach((item) => {
         if (tab.name == item.proId) this.Parentcheck = item;
       });
@@ -1858,11 +1862,13 @@
           for (var i = 0; i < this.proParentList.sons.length; i++) {
             //鍒ゆ柇鏂版暟缁勬槸鍚︽湁杩欎釜鍏冪礌鍊硷紝娌℃湁鐨勮瘽锛屽氨鎶奱rr[i]缁檖ush鍒版柊鏁扮粍newArr涓�
             if (this.proParentList.sons[i].proResult == "" || this.proParentList.sons[i].proResult == null) {
+                this.radio =  this.lastClickedTab.name               
               this.$modal.msgError("璇峰~鍐欒祫鏂�");
               this.minedis = true
               return
             } else if (this.proParentList.sons[i].proResult.includes(" ")) {
               this.$modal.msgError("璇锋煡鐪嬫槸鍚︽湁绌烘牸");
+               this.radio =  this.lastClickedTab.name
               this.minedis = true
               return
             } else {
@@ -1896,6 +1902,7 @@
             this.proName = this.Parentcheck.proName;
             this.nums = tab.name;
             this.proId = tab.name;
+              this.lastClickedTab = tab
             this.getParentIdsss();
             this.getbzlist();
           }
@@ -1906,6 +1913,7 @@
           this.proName = this.Parentcheck.proName;
           this.nums = tab.name;
           this.proId = tab.name;
+           this.lastClickedTab = tab
           this.getParentIdsss();
           this.getbzlist();
         });

--
Gitblit v1.8.0