From 1e0af4d0987e09848ea07e1434ba9fd059c76d07 Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期一, 17 三月 2025 17:04:36 +0800
Subject: [PATCH] 1

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

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index 215c0e7..91ab6df 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -283,7 +283,7 @@
               
                     <template slot-scope="{ row, $index }">
                       <el-input  type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-${$index}`"
-                        @keyup.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)"
+                        @keydown.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)"
                         @blur="handleInputConfirm(row)" @input="vale"></el-input>
                     </template>
                   </el-table-column>
@@ -423,9 +423,9 @@
                     <!-- slot-scope="scope" -->
                     <template slot-scope="{ row, $index }">
                       <el-input  type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-${$index}`"
-                        @keyup.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)"
-                        @blur="handleInputConfirm(row)" @input="vale"></el-input>
-
+                      @keydown.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)"
+                        @blur="handleInputConfirm(row)" ></el-input>
+                        <!-- @input="vale" -->
                       <!-- <el-input type="textarea" autosize size="mini" v-model="scope.row.proResult" autocomplete="off"   :ref="`input-${scope.$index}-${scope.row.proResult}`"
                         placeholder="璇疯緭鍏ユ娴嬬粨鏋�" @keyup="
                           keyInputConfirm($event,scope.$index,'proResult')
@@ -983,10 +983,9 @@
   methods: {
     handleFocus(row) {
       this.autorule = [];
-
-      if (!row.resultType || row.resultType == 2) {
+      if (!row.resultType || row.resultType == 2 || !row.proResult ) {
         return;
-      } else {
+      } else  {
         this.curindex = row;
         this.$refs.bbb.title = "閫夋嫨妫�娴嬬粨鏋�";
         // this.$refs.bbb.proId = row.proId;
@@ -995,9 +994,7 @@
       }
     },
     handleChangesZt(params) {
-      console.log(params)
       this.curindex.proResult = params.map((item) => item.ruleStr).join(",");
-      console.log(this.curindex.proResult)
       this.handleInputConfirm(this.curindex, params);
     },
     tableRowClassName({ row }) {
@@ -1063,7 +1060,6 @@
       const proId = row.proId;
       resultList(tjNum, proId).then((res) => {
         this.jieguoList = res.data;
-        console.log(this.jieguoList, 998877);
 
         this.jyjc = this.jieguoList[0].jyjc;
         const ycbz = this.jieguoList[0].ycbz;
@@ -1213,7 +1209,6 @@
     },
 
     changDesc(item) {
-      console.log(item)
       if (item.exceptionDesc == true) {
         item.conclusion = "寮傚父"
       } else {
@@ -1282,6 +1277,7 @@
     keyInputConfirm(event, currentRowIndex) {
       // 闃绘榛樿鍥炶溅琛屼负锛屾瘮濡傛彁浜よ〃鍗�
       event.preventDefault();
+     event.stopPropagation()
       const nextRowIndex = currentRowIndex + 1; // 璁$畻涓嬩竴琛岀储寮�
 
       // 濡傛灉涓嬩竴琛屽瓨鍦紝鍒欒仛鐒﹁琛岀殑杈撳叆妗�
@@ -1293,14 +1289,13 @@
             // 澶勭悊 ref 鍙兘涓烘暟缁勭殑鎯呭喌锛堝鍔ㄦ�佹覆鏌擄級
             const target = Array.isArray(nextInput) ? nextInput[0] : nextInput;
             target.focus(); // 鑱氱劍杈撳叆妗�
-            target.select(); // 鍙�夛細閫変腑鏂囨湰
+            // target.select(); // 鍙�夛細閫変腑鏂囨湰
           }
         });
       }
 
     },
     handleInputConfirm(datas, params) {
-
       if (params && params.length === 0) {
         // 濡傛灉娌℃湁閫変腑浠讳綍椤圭洰锛屽彇娑堝紓甯稿閫夋鐨勯�変腑鐘舵��
         this.curindex.exceptionDesc = false;

--
Gitblit v1.8.0