receipt.vue 1.68 KB
<template>
	<view class="container">
		<view class="u-f u-f-aic" v-for="(item,index) in titList" :key="index" @tap="goPage(item)">
			<view class="left">
				<view class="ico">
					<text class="iconfont icon-ruku"></text>
				</view>
			</view>
			<view class="common u-f1">
				<view class="u-f u-f-jcsb">
					<view class="label">
						{{item}}
					</view>
					<view>
						<uni-icons type="arrowright" size="18" color="gray"></uni-icons>
					</view>
				</view>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				titList: ['批量入库', '快速入库', '空托入库', '呼叫料盒', '补充入库']
			}
		},
		methods: {
			goPage(value) {
				if (value == '批量入库') {
					uni.navigateTo({
						url: './batch/batch'
					})
				} else if (value == '快速入库') {
					uni.navigateTo({
						url: '/pages/receipt/fast'
					})
				} else if (value == '空托入库') {
					uni.navigateTo({
						url: '/pages/receipt/empty'
					})
				} else if (value == '呼叫料盒') {
					uni.navigateTo({
						url: '/pages/receipt/call'
					})
				} else {
					uni.navigateTo({
						url: '/pages/receipt/add'
					})
				}

			},
		},
	}
</script>

<style lang="scss" scoped>
	.container {
		padding-left: $uni-spacing-row-base;
		background-color: $uni-bg-color;

		.left {
			width: 70rpx;
			text-align: center;

			.ico {
				width: 50rpx;
				height: 50rpx;
				line-height: 50rpx;
				background-color: $uni-color-primary;
				border-radius: 50%;
			}
		}

		.common {
			height: 90rpx;
			line-height: 90rpx;
			padding-right: 10px;
			border-bottom: 2rpx solid $uni-border-color;

			.label {
				font-size: $uni-font-size-lg;
			}
		}
	}
</style>