小小儁爺
2026-01-05 dbae85a492c7cee07f1115757615df910583ad8a
pages/scgl/scbg.vue
@@ -42,9 +42,9 @@
      <!-- @change="collapseChange" -->
      <u-collapse style="max-height: 65vh;overflow: auto;">
      <u-collapse style="max-height: 62vh;overflow: auto;">
         <!-- :value='parseFloat(item.ordergoodqty)+"/"+parseFloat(item.orderqty)' -->
         <scroll-view scroll-y :style="{height: 590 + 'px'}" @scrolltolower="loadMore">
         <!--    <scroll-view scroll-y :style="{height: 590 + 'px'}" @scrolltolower="loadMore"> -->
            <u-collapse-item style="position: relative;" :title="item.ordercode" :name='item.ordercode'
               v-if='item.children.length!==0' :value='parseFloat(item.ordergoodqty)+"/"+parseFloat(item.orderqty)'
               :label="item.children.length===0?'未派发':''" :disabled='item.children.length===0'
@@ -124,7 +124,7 @@
            </u-collapse-item>
         </scroll-view>
         <!-- </scroll-view> -->
      </u-collapse>
@@ -218,6 +218,10 @@
      <view @click="scan2">
         <drag-ball :x='300' :y="600"></drag-ball>
      </view>
      <scan-code></scan-code>
   </view>
</template>
@@ -226,13 +230,18 @@
   import {
      ProductOrderSearch
   } from '../../config/api.js';
   import scanCode from '@/components/scan-code/scan-code.vue'
   export default {
      components: {
         scanCode
      },
      onLoad(option) {
         const _this = this
         uni.$off('scancodedate') // 每次进来先 移除全局自定义事件监听器
         uni.$on('scancodedate', function(content) {
            console.log("扫描到的内容为:", content)
            _this.getCheckScanDeviceQrCodeData(content)
            // _this.getCheckScanDeviceQrCodeData(content)
         })
@@ -317,7 +326,7 @@
         let that = this
         uni.startPullDownRefresh({
            success() {
               that.getProductOrderSearch()
               that.getProductOrderSearch(that.currentpage)
               uni.showToast({
                  title: "下拉刷新",
                  icon: 'none'
@@ -368,7 +377,7 @@
         // 页数改变时  分页触发
         pageChange(e) {
            this.currentpage = e.current
            this.getProductOrderSearch(e.current)
         },