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

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

const receiptjob = ref()
const title = ref('')
onShow(() => {
  if(receiptjob.value){
    receiptjob.value.refresh()
  }
})
onLoad((option) => {
  title.value = option.title
})
onPullDownRefresh(() => {
  if(receiptjob.value){
    receiptjob.value.refresh()
  }
})
onReachBottom(() => {
  if(receiptjob.value){
    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>
