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/wxsq.vue | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/pages/sbgl/wxsq.vue b/pages/sbgl/wxsq.vue
index 374ec54..d973d37 100644
--- a/pages/sbgl/wxsq.vue
+++ b/pages/sbgl/wxsq.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,20 @@
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 +116,8 @@
uni.stopPullDownRefresh();
},
changeInputBoxValue(val) {
+ this.inputBoxValue = val
+
this.purchorderArr = this.purchorderArrAll.filter((p) => {
return p.code.indexOf(val) !== -1
})
--
Gitblit v1.9.3