From 72b6b96dd8e1552d5f7d9b9e5a80db06e6d88ecf Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期一, 08 九月 2025 13:46:46 +0800
Subject: [PATCH] 扫码后文本框光标停留

---
 pages/qitachuku_v2/form.vue              |    1 +
 pages/zhijiediaobo/form.vue              |    6 ++++++
 pages/shengchanrukushengdan/form.vue     |    1 +
 pages/weiwailingliao/form.vue            |    1 +
 pages/qitaruku_v2/form.vue               |    1 +
 pages/caigouruku/form.vue                |    5 +++--
 pages/shengchanbuliao/form.vue           |    1 +
 pages/shengchanlingliaoshengdan/form.vue |    1 +
 8 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/pages/caigouruku/form.vue b/pages/caigouruku/form.vue
index 7e530d5..c855082 100644
--- a/pages/caigouruku/form.vue
+++ b/pages/caigouruku/form.vue
@@ -1141,14 +1141,15 @@
 										}
 										//渚涘簲鍟嗕笉鍙紪杈�
 										this.showHSupName = false
-										//鍏夋爣瀵瑰噯鐗╂枡
-										this.barCodeFocus = true;
+										
 									}
 								}
 								//鏄剧ず琛ㄤ綋鏄庣粏
 								this.DisBillEntryList()
 								//娓呯┖鏁伴噺
 								this.hform.HQty = ''
+								//鍏夋爣瀵瑰噯鏉$爜
+								this.refreshBarCodeState()
 							} else {
 								this.playSound(0)
 								this.refreshBarCodeState()
diff --git a/pages/qitachuku_v2/form.vue b/pages/qitachuku_v2/form.vue
index 1c8d312..e96fff4 100644
--- a/pages/qitachuku_v2/form.vue
+++ b/pages/qitachuku_v2/form.vue
@@ -1187,6 +1187,7 @@
                                 this.DisBillEntryList()
                                 //娓呯┖鏁伴噺
                                 this.hform.HQty = ''
+								this.refreshBarCodeState()
                             } else {
                                 this.playSound(0)
                                 this.refreshBarCodeState()
diff --git a/pages/qitaruku_v2/form.vue b/pages/qitaruku_v2/form.vue
index d6e5d8a..0390f3d 100644
--- a/pages/qitaruku_v2/form.vue
+++ b/pages/qitaruku_v2/form.vue
@@ -1212,6 +1212,7 @@
 								this.DisBillEntryList()
 								//娓呯┖鏁伴噺
 								this.hform.HQty = ''
+								this.refreshBarCodeState()
 							} else {
 								this.playSound(0)
 								this.refreshBarCodeState()
diff --git a/pages/shengchanbuliao/form.vue b/pages/shengchanbuliao/form.vue
index 13f377c..de5c490 100644
--- a/pages/shengchanbuliao/form.vue
+++ b/pages/shengchanbuliao/form.vue
@@ -1104,6 +1104,7 @@
                                 this.DisBillEntryList()
                                 //娓呯┖鏁伴噺
                                 this.hform.HQty = ''
+								this.refreshBarCodeState()
                             } else {
                                 this.playSound(0)
                                 this.refreshBarCodeState()
diff --git a/pages/shengchanlingliaoshengdan/form.vue b/pages/shengchanlingliaoshengdan/form.vue
index 36845b4..da836f2 100644
--- a/pages/shengchanlingliaoshengdan/form.vue
+++ b/pages/shengchanlingliaoshengdan/form.vue
@@ -1208,6 +1208,7 @@
 								this.DisBillEntryList()
 								//娓呯┖鏁伴噺
 								this.hform.HQty = ''
+								this.refreshBarCodeState()
 							} else {
 								this.playSound(0)
 								this.refreshBarCodeState()
diff --git a/pages/shengchanrukushengdan/form.vue b/pages/shengchanrukushengdan/form.vue
index a58dfd4..8d480cc 100644
--- a/pages/shengchanrukushengdan/form.vue
+++ b/pages/shengchanrukushengdan/form.vue
@@ -1168,6 +1168,7 @@
                                 this.DisBillEntryList()
                                 //娓呯┖鏁伴噺
                                 this.hform.HQty = ''
+								this.refreshBarCodeState()
                             } else {
                                 this.playSound(0)
                                 this.refreshBarCodeState()
diff --git a/pages/weiwailingliao/form.vue b/pages/weiwailingliao/form.vue
index 8c5bff5..83b556f 100644
--- a/pages/weiwailingliao/form.vue
+++ b/pages/weiwailingliao/form.vue
@@ -1151,6 +1151,7 @@
 								this.DisBillEntryList()
 								//娓呯┖鏁伴噺
 								this.hform.HQty = ''
+								this.refreshBarCodeState()
 							} else {
 								this.playSound(0)
 								this.refreshBarCodeState()
diff --git a/pages/zhijiediaobo/form.vue b/pages/zhijiediaobo/form.vue
index e8f7c73..41d2895 100644
--- a/pages/zhijiediaobo/form.vue
+++ b/pages/zhijiediaobo/form.vue
@@ -1592,6 +1592,12 @@
                                 this.DisBillEntryList()
                                 //娓呯┖鏁伴噺
                                 this.hform.HQty = ''
+								//鍏夋爣瀵瑰噯
+								this.barCodeFocus = false
+								this.$nextTick(() => {
+								    this.barCodeFocus = true
+								    this.hform.HBarCode = ""
+								})
                             } else {
                                 this.playSound(0)
                                 uni.showToast({

--
Gitblit v1.9.1