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

<script>
	import receiptJob from '@/pages/purchaseReceipt/job/receiptJob.vue'

	export default {
		name: 'purchaseReceiptTool',
		components: {
			receiptJob
		},
		data() {
			return {
				title:''
			};
		},
		onShow() {
			if(this.$refs.receiptjob!=undefined){
				this.$refs.receiptjob.refresh();
			}
		},
		onLoad(option) {
			this.title = option.title
		},

		onPullDownRefresh() {
			this.$refs.receiptjob.refresh();
		},
		
		onReachBottom() {
			this.$refs.receiptjob.onReach();
		},
		onNavigationBarButtonTap(e) {
			if (e.index === 0) {
				this.$refs.receiptjob.goHome();
				// this.$refs.receiptjob.refresh();
			} else if (e.index == 1) {
				this.$refs.receiptjob.openFilter();
			}
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">

</style>