<template>
	<view class="groundtials-wrap">
		<view class="inner-item" v-for="(item,index) in datas" :key="index">
			<view class="inventory-item">
				<view class="shuo-item shuo-item-one">
					<view class="shuo-label">
						盘点单号:
					</view>
					<view class="shuo-cont">
						{{item.code}}
					</view>
				</view>
			</view>
			<view class="inventory-item">
				<view class="shuo-item shuo-item-one">
					<view class="shuo-label">
						任务名称:
					</view>
					<view class="shuo-cont">
						{{item.hispName}}
					</view>
				</view>
			</view>
			<view class="inventory-item">
				<view class="shuo-item shuo-item-one">
					<view class="shuo-label">
						目标仓库:
					</view>
					<view class="shuo-cont">
						{{item.mubiao}}
					</view>
				</view>
			</view>
			<view class="inventory-item">
				<view class="shuo-item shuo-item-one">
					<view class="shuo-label">
						盘点品种:
					</view>
					<view class="shuo-cont">
						{{item.snub}}
					</view>
				</view>
			</view>
			<view class="inventory-item">
				<view class="shuo-item">
					<view class="shuo-label">
						应盘总数:
					</view>
					<view class="shuo-await">
						{{item.yingp}}
					</view>
				</view>
				<view class="shuo-item">
					<view class="shuo-label">
						实盘总数:
					</view>
					<view class="shuo-ready">
						{{item.ship}}
					</view>
				</view>
			</view>
			<view class="inventory-item">
				<view class="shuo-item shuo-item-one">
					<view class="shuo-label">
						盘点金额:
					</view>
					<view class="shuo-cont">
						{{item.panjin}}
					</view>
				</view>
			</view>
			<view class="inventory-item">
				<view class="shuo-item shuo-item-one">
					<view class="shuo-label">
						盘点时间:
					</view>
					<view class="shuo-cont">
						{{item.daohuoTime}}
					</view>
				</view>
			</view>
			<view class="all-text">已盘点</view>
		</view>
		<view class="inventory-wrap">
			<view class="inner-item" v-for="(item,index) in listDatacont" :key="index">
				<view class="inventory-item">
					{{item.name}}
				</view>
				<view class="inventory-item">
					<view class="shuo-item">
						<view class="shuo-label">
							规格:
						</view>
						<view class="shuo-cont">
							{{item.guige}}
						</view>
					</view>
					<view class="shuo-item">
						<view class="shuo-label">
							型号:
						</view>
						<view class="shuo-cont">
							{{item.xinghao}}
						</view>
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-item">
						<view class="shuo-label">
							应在库:
						</view>
						<view class="shuo-await">
							{{item.yansliang}}
						</view>
					</view>
					<view class="shuo-item">
						<view class="shuo-label">
							实在库:
						</view>
						<view class="shuo-ready">
							{{item.yishangj}}
						</view>
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						盘盈:
					</view>
					<view class="shuo-cont">
						{{item.panying}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						生产厂家:
					</view>
					<view class="shuo-cont">
						{{item.hispName}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						上架货位:
					</view>
					<view class="shuo-cont">
						{{item.shangjhuwe}}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	import {
		listData
	} from './list.js';
	export default {
		data() {
			return {
				datas: [{
					code: "KMT20231126",
					hispName: "中心库2023年11悦盘点",
					mubiao: "中心仓库",
					snub: 200,
					yingp: 20213,
					ship: 20214,
					panjin: 13323.13,
					daohuoTime: "2023-11-26  14:05:08"
				}],
				listDatacont: []
			}
		},
		onLoad() {

		},
		mounted() {
			this.listDatacont = listData;
		},
		methods: {
			queryList(pageNo, pageSize) {
				this.$refs.paging.complete(this.data);
			},
		}

	}
</script>

<style lang="scss">
	.groundtials-wrap {
		width: 100%;
		height: 100%;
		padding: 20rpx;
		box-sizing: border-box;
		background-color: #F1F1F1;

		.inventory-wrap {
			width: 100%;
			border: 2rpx solid #BDBDBD;
			margin-top: 20rpx;
			border-radius: 20rpx;
		}

		.inner-item {
			width: 100%;
			height: 400rpx;
			border-bottom: 2rpx solid #BDBDBD;
			padding: 20rpx 20rpx 20rpx 50rpx;
			box-sizing: border-box;
			position: relative;
			background-color: #fff;
			border-radius: 20rpx;
			position: relative;

			.all-text {
				width: 150rpx;
				height: 40rpx;
				position: absolute;
				right: 10rpx;
				top: 25rpx;
				font-family: PingFangSC-regular;
				font-size: 28rpx;
				color: rgba(52, 124, 175, 0.6);
			}

			.inventory-item {
				width: 100%;
				height: 40rpx;
				color: rgba(16, 16, 16, 1);
				font-size: 28rpx;
				text-align: left;
				font-family: PingFangSC-semiBold;
				margin-top: 10rpx;
				display: flex;
				align-items: center;

				.shuo-label {
					color: rgba(16, 16, 16, 1);
					font-size: 28rpx;
					text-align: left;
					font-family: PingFangSC-regular;
					width: 120rpx;
				}

				.shuo-cont {
					color: rgba(16, 16, 16, 1);
					font-size: 28rpx;
					text-align: left;
					font-family: PingFangSC-regular;
					margin-left: 30rpx;
				}

				.shuo-item {
					width: 50%;
					height: 100%;
					line-height: 20rpx;
					display: flex;
					align-items: center;

					.shuo-label {
						color: rgba(16, 16, 16, 1);
						font-size: 28rpx;
						text-align: left;
						font-family: PingFangSC-regular;
						width: 130rpx;
					}

					.shuo-cont {
						color: rgba(16, 16, 16, 1);
						font-size: 28rpx;
						text-align: left;
						font-family: PingFangSC-regular;
						margin-left: 30rpx;
					}

					.shuo-await {
						color: rgba(255, 191, 107, 1);
						font-size: 28rpx;
						text-align: left;
						font-family: PingFangSC-regular;
						margin-left: 20rpx;
					}

					.shuo-ready {
						color: rgba(162, 239, 77, 1);
						font-size: 28rpx;
						text-align: left;
						font-family: PingFangSC-regular;
						margin-left: 20rpx;
					}
				}

				.shuo-item-one {
					width: 80%;

					.shuo-label {
						width: 120rpx;
					}
				}
			}
		}
	}
</style>