<template>
	<view class="">
		<product-receipt-job :title="title" ref="productreceiptjob" type='scrap'></product-receipt-job>
	</view>
</template>

<script>
	import productReceiptJob from '@/pages/productReceipt/job/productReceiptJob.vue'

	export default {
		name: 'semiProductReceiptJob',
		components: {
			productReceiptJob
		},
		data() {
			return {
				title:''
			};
		},
		onLoad(option){
			this.title = option.title
		},
		onShow(){
			this.$nextTick(()=>{
				this.$refs.productreceiptjob.refresh()
			})
		},
		onReachBottom() {
			this.$refs.productreceiptjob.onReach();
		},
		onPullDownRefresh() {
			this.$refs.productreceiptjob.refresh();
		},
		onNavigationBarButtonTap(e) {
			if (e.index === 0) {
				this.$refs.productreceiptjob.toHome();
			} else if (e.index == 1) {
				this.$refs.productreceiptjob.openFilter();
			}
		},

		methods: {

		}
	}
</script>

<style scoped lang="scss">

</style>