<template>
	<view class="home-container">
		<u--text text="生产投料" size="36" bold></u--text>
		<u-grid :border="true" @click="gridCheck" col="4">
			<u-grid-item v-if="item.type === 1" v-for="(item,index) in gridItemList" :key="index" :name="item.url">
				<u-icon :customStyle="{paddingTop:20+'rpx'}" :name="item.icon" :size="128"></u-icon>
				<text class="grid-text">{{item.name}}</text>
			</u-grid-item>
		</u-grid>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 页面按钮参数
				gridItemList: [
					{
						name: '生产投料(RM)',
						icon: 'grid-fill',
						url: '/pages/agv/agv-in/agv-in',
						type: 1,
						index: 1
					},
				]
			}
		},
		methods: {
			gridCheck(url) {
				if (url === '') {
					return;
				}
				uni.navigateTo({
					url
				});
			},
		}
	}
</script>


<style scoped>
	@import url('materialManagement.css');
</style>