<template>
  <view class="">
    <receipt-job scanTitle="箱标签/ASN单号" :isShowAsn="false" :isShowJob="false" ref="receiptjob" operation="receipt"></receipt-job>
  </view>
</template>

<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import receiptJob from '@/pages/purchaseReceipt/job/receiptJob.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.goHome()
    // this.$refs.receiptjob.refresh();
  } else if (e.index == 1) {
    receiptjob.value.openFilter()
  }
})
</script>

<style scoped lang="scss"></style>
