<template>
	<view>
		<view class="menu">
			<view class="btn">
				<u-button type="success" @click="goScanBox">按计划装箱</u-button>
			</view>
			<view class="btn">
				<u-button @click="goScanSet">无计划装箱</u-button>
			</view>
		</view>


	</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				boxForm: {
					invType: '',
					org: '',
					workshop: '',
					packType: '',
				},
				invTypes: [],
				orgs: [],
				workshops: [],
				packTypes: [],

			}
		},
		mounted() {},
		onLoad(option) {
			// const Info = JSON.parse(decodeURIComponent(option.Info))
			// console.log(Info);
			uni.setStorageSync('box_invType', '');
		},
		methods: {
			goScanBox() {
				uni.setStorageSync('box_invType', 'AJHZX');
				this.$tab.navigateTo('/pages/index/scan-box')
			},
			goScanSet() {
				uni.setStorageSync('box_invType', 'ZXRGJC');
				this.$tab.navigateTo('/pages/index/scan-set')
			},

		}
	}
</script>


<style lang="scss" scoped>
	page {
		// background-image: linear-gradient(to bottom, #b9c4de, #ffffff);
	}

	.menu {
		display: flex;
		flex-wrap: wrap;
		padding-top: 20%;
		flex-direction: column;
		align-items: center;

		.btn {
			margin: 5%;
			width: 50%;
		}


	}
</style>