小小儁爺
2026-01-06 22fd33c839969a5c14de0d994701876407385d7f
pages/sbgl/rcdj.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,8 @@
         </div>
      </view>
      <scan-code></scan-code>
   </view>
</template>
@@ -62,8 +64,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,7 +114,7 @@
            uni.stopPullDownRefresh();
         },
         changeInputBoxValue(val) {
            this.inputBoxValue = val
            this.purchorderArr = this.purchorderArrAll.filter((p) => {
               return p.code.indexOf(val) !== -1
            })