You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<template>
|
|
|
|
<view class="">
|
|
|
|
<product-receipt-job ref="productreceiptjobRef" type="scrap"></product-receipt-job>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { ref, getCurrentInstance, nextTick } from 'vue'
|
|
|
|
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
|
|
|
|
import productReceiptJob from '@/pages/productReceipt/job/productReceiptJob.vue'
|
|
|
|
|
|
|
|
const productreceiptjobRef = ref()
|
|
|
|
onShow(() => {
|
|
|
|
nextTick(() => {
|
|
|
|
if (productreceiptjobRef.value != undefined) {
|
|
|
|
productreceiptjobRef.value.refresh()
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
onPullDownRefresh(() => {
|
|
|
|
productreceiptjobRef.value.refresh()
|
|
|
|
})
|
|
|
|
onReachBottom(() => {
|
|
|
|
productreceiptjobRef.value.onReach()
|
|
|
|
})
|
|
|
|
onNavigationBarButtonTap((e) => {
|
|
|
|
if (e.index === 0) {
|
|
|
|
productreceiptjobRef.value.toHome()
|
|
|
|
} else if (e.index == 1) {
|
|
|
|
productreceiptjobRef.value.openFilter()
|
|
|
|
}
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss"></style>
|