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 |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/pages/sbgl/dqby.vue b/pages/sbgl/dqby.vue
index 4864485..d9c1f6d 100644
--- a/pages/sbgl/dqby.vue
+++ b/pages/sbgl/dqby.vue
@@ -3,7 +3,7 @@
 		<page-nav title="瀹氭湡淇濆吇"></page-nav>
 
 
-		<view v-if="purchorderArrAll.length>0">
+		<view v-if="purchorderArrAll.length>0" style="max-height: 75vh;overflow: auto;">
 			<!-- <view class="mainContent" :style="{maxHeight: '1340rpx',overflow: 'scroll',padding:0}"> -->
 
 			<!-- #ifdef H5 -->
@@ -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