<!-- 入库单 -->
<template>
	<view class="container-wrap">
		<uni-nav-bar title="入库单详情" :status-bar="true" background-color="#3F92F9" color="#FFF">
			<view slot="left">
				<u-icon name="account-fill" color="#FFF" size="35"></u-icon>
				<span style="padding: 0 5rpx;color: #FFFFFF;">{{ userInfo.name }}</span>
			</view>
			<view slot="right" @tap="$utils.back()">
				<span style="color: #FFFFFF;">返回</span>
			</view>
		</uni-nav-bar>
		<view class="container">
			<view class="info">
				<view class="row flex-start">
					<view class="label">采购单号：</view>
					<view class="value">PO-210705133755-2</view>
				</view>
				<view class="row flex-start">
					<view class="label">入库单号：</view>
					<view class="value">SI-202107051338562167</view>
				</view>
				<view class="row flex-start">
					<view class="label">物料编码：</view>
					<view class="value">01.001.0002</view>
				</view>
				<view class="row flex-start">
					<view class="label">物料名称：</view>
					<view class="value">直喷110g针织-130cm</view>
				</view>
				<view class="row flex-start">
					<view class="label">申购数量：</view>
					<view class="value">1000 米</view>
				</view>
				<view class="row flex-start">
					<view class="label">待入库数量：</view>
					<view class="value">200 米</view>
				</view>
				<view class="row flex-start">
					<view class="label">仓库名称：</view>
					<view class="value">面料仓</view>
				</view>
				<view class="row flex-start">
					<view class="label">入库区域：</view>
					<view class="value">2#</view>
				</view>
				<view class="row flex-start">
					<view class="label">供应商：</view>
					<view class="value">某某某有限公司</view>
				</view>
			</view>
			<view class="title">
				入库记录
			</view>
			<view class="subtitle">
				已入库：800 米
			</view>
			<view class="history-list">
				<view class="item" v-for="(item, index) in 6" :key="index">
					<view class="row-title">
						入库数量：100 米
					</view>
					<view class="row flex-between">
						<view class="col">操作员：张三</view>
						<view class="col">2021-07-10 15:00:00</view>
					</view>
				</view>
			</view>
		</view>
		<view class="footer">
			<my-fixed-button :customClick="true" text="绑定标签" @click="bind"></my-fixed-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: {}
			};
		},
		methods: {
			getPageList() {
				console.log(123)
			},
			bind() {
				this.$utils.open(`/pages/warehousing/warehousing-bind?data=${this.$utils.object2Code(this.data)}`)
			}
		},
		onLoad(option) {
			this.data = this.$utils.code2Object(option.data)
			console.log(this.data)
		}
	}
</script>

<style lang="scss">
.container-wrap {
	overflow: hidden;
	.container {
		height: calc(100vh - 150rpx);
		overflow: auto;
		padding: 20rpx;
		padding-bottom: 100rpx;
		.info {
			padding: 20rpx 40rpx;
			width: 100%;
			.row {
				padding-bottom: 10rpx;
				&:last-child {
					padding-bottom: 0;
				}
				.label, .value {
					font-size: 32rpx;
				}
			}
		}
		.title {
			padding-top: 30rpx;
			font-size: 36rpx;
			font-weight: bold;
			text-align: center;
		}
		.subtitle {
			padding-bottom: 10rpx;
			text-align: center;
		}
		.history-list {
			padding: 20rpx 40rpx;
			background-color: #FFFFFF;
			.item {
				padding: 20rpx 0;
				border-bottom: 1px solid #666666;
				&:last-child {
					border-bottom: none;
				}
				.row-title {
					padding-bottom: 10rpx;
					font-size: 32rpx;
					color: #333333;
				}
				.row {
					.col {
						color: #7F7F7F;
					}
				}
			}
		}
	}
}
</style>
