<template>
	<view class="">
		<tjDeliver :isDeliverAll="false" :itemList="itemList"></tjDeliver>
	</view>
</template>

<script>
	import tjDeliver from '@/pages/store/tjDeliver.vue'
	import {
		goHome,
	} from '@/common/basic.js';
	export default {
		name: 'deliverMany',
		components: {
			tjDeliver
		},
		data() {
			return {
				itemList: []
			};
		},
		props: {},
		mounted: function() {},
		onLoad() {
			this.getItemList();
		},
		onBackPress(e) {
			goHome();
			return true;
		},	
		
		//返回首页
		onNavigationBarButtonTap(e) {
			if (e.index === 0) {
				goHome();
			}else if(e.index === 1){
				window.location.reload();
			}
		},
		methods: {
			getItemList() {
				this.itemList = [{
						"number": "123",
						"jobStatus":1,
						"BeginContainer": "P-20220703-254L-0004",
						"EndContainer": "P-20220703-254L-0006",
						"creationTime": '2022-07-25 01:00:00'
					},
					{
						"number": "456",
						"jobStatus":2,
						"BeginContainer": "P-20220703-254L-0004",
						"EndContainer": "P-20220703-254L-0006",
						"creationTime": '2022-07-25 01:00:00'
					}
				]
			},
		}
	};
</script>

<style scoped lang="scss">

</style>
