From 22fd33c839969a5c14de0d994701876407385d7f Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期二, 06 一月 2026 14:00:00 +0800
Subject: [PATCH] 1.页面优化
---
pages/sbgl/dqby.vue | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/pages/sbgl/dqby.vue b/pages/sbgl/dqby.vue
index bf33af3..d9c1f6d 100644
--- a/pages/sbgl/dqby.vue
+++ b/pages/sbgl/dqby.vue
@@ -54,6 +54,9 @@
</div>
</view>
+
+ <scan-code></scan-code>
+
</view>
</template>
@@ -62,8 +65,19 @@
import {
EqpPermissions
} from '../../config/api.js';
+ import scanCode from '@/components/scan-code/scan-code.vue'
export default {
- onLoad(option) {},
+ components: {
+ scanCode
+ },
+ onLoad(option) {
+ const _this = this
+ uni.$off('scancodedate') // 姣忔杩涙潵鍏� 绉婚櫎鍏ㄥ眬鑷畾涔変簨浠剁洃鍚櫒
+ uni.$on('scancodedate', function(content) {
+ console.log("鎵弿鍒扮殑鍐呭涓�:", content)
+ _this.changeInputBoxValue(content)
+ })
+ },
onPullDownRefresh() {
setTimeout(() => {
@@ -101,6 +115,8 @@
uni.stopPullDownRefresh();
},
changeInputBoxValue(val) {
+ this.inputBoxValue = val
+
this.purchorderArr = this.purchorderArrAll.filter((p) => {
return p.code.indexOf(val) !== -1
})
--
Gitblit v1.9.3