<template>
  <view class="page-wraper">
    <comMoveJob ref="receiptjob" businessTypeCode="HoldToOk"> </comMoveJob>
  </view>
</template>

<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'

const receiptjob = ref()
onShow(() => {
  nextTick(() => {
    if (receiptjob.value != undefined) {
      receiptjob.value.refresh()
    }
  })
})
onPullDownRefresh(() => {
  receiptjob.value.refresh()
})
onReachBottom(() => {
  receiptjob.value.onReach()
})
onNavigationBarButtonTap((e) => {
  if (e.index === 0) {
    receiptjob.value.goHome1()
    // this.$refs.receiptjob.refresh();
  } else if (e.index == 1) {
    receiptjob.value.openFilter()
  }
})
</script>

<style></style>
