From c47ec7b37e7f68c49b40fc4b59098e79626e66de Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期日, 03 八月 2025 13:39:14 +0800
Subject: [PATCH] 首检巡检

---
 pages/QC/LLJ/detail.vue |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/pages/QC/LLJ/detail.vue b/pages/QC/LLJ/detail.vue
index 41783ec..0b40165 100644
--- a/pages/QC/LLJ/detail.vue
+++ b/pages/QC/LLJ/detail.vue
@@ -141,16 +141,22 @@
 								澶囨敞
 							</button>
 							<input v-if="(tableData.length < formData.checkQyt) && formData.fupAllow && formData.fdownAllow"
+								ref="numberInput"
+								:focus="isFocus"
 								@input="onNumberInput"
 								@confirm="onEnterSave"
+								@blur="isFocus = false"
 								v-model="formData.fcheckResu"
 								type="text"
 								class="result-input"
 								placeholder="璇疯緭鍏ユ楠岀粨鏋�..."
 								placeholder-class="placeholder" />
 							<input v-else
+								ref="textInput"
+								:focus="isFocus"
 								@input="search($event)"
 								@confirm="onEnterSave"
+								@blur="isFocus = false"
 								v-model="inputTxt"
 								type="text"
 								class="result-input"
@@ -182,7 +188,9 @@
 						 
 						<view class="input-wrapper" style="margin-top: 15px;">
 
-							<input v-if="(tableData.length < formData.checkQyt)" @input="search($event)"
+							<input v-if="(tableData.length < formData.checkQyt)" 
+								ref="textInput2"
+								@input="search($event)"
 								@confirm="onEnterSave"
 								v-model="inputTxt" type="text" class="result-input" placeholder="璇疯緭鍏ユ楠岀粨鏋�..."
 								placeholder-class="placeholder" />
@@ -294,6 +302,7 @@
 				showMeom:false,
 				meom: '',
 				autoSaveTimer: null, // 鑷姩淇濆瓨瀹氭椂鍣�
+				isFocus: false, // 鏂板锛屾帶鍒惰緭鍏ユ鑱氱劍
 			}
 		},
 		methods: {
@@ -556,6 +565,11 @@
 					this.$showMessage("淇濆瓨鎴愬姛");
 					this.refreshResult();
 					this.inputTxt = '';
+					// 浣跨敤 isFocus 鎺у埗鑱氱劍锛屽吋瀹瑰绔�
+					this.isFocus = false;
+					this.$nextTick(() => {
+						this.isFocus = true;
+					});
 				})
 
 			},

--
Gitblit v1.9.3