<template>
	<view class="groundtials-wrap">
		<view class="inventory-wrap">
			<view class="inner-item" v-for="(item,index) in listData" :key="index">
				<view class="inventory-item">
					<view class="shuo-name">
						{{item.name}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						规格:
					</view>
					<view class="shuo-cont">
						{{item.guige }}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						型号:
					</view>
					<view class="shuo-cont">
						{{item.xinghao }}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						生产批次:
					</view>
					<view class="shuo-cont">
						{{item.A}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						生产日期:
					</view>
					<view class="shuo-cont">
						{{item.D}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						有效日期:
					</view>
					<view class="shuo-cont">
						{{item.D}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						注册证号:
					</view>
					<view class="shuo-cont">
						{{item.C}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						耗材类别:
					</view>
					<view class="shuo-cont-Mcs">
						{{item.B}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						生产来源:
					</view>
					<view class="shuo-cont-Ly">
						{{item.A}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						生产企业:
					</view>
					<view class="shuo-cont">
						{{item.G}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						报关单:
					</view>
					<view class="shuo-cont-byd">
						{{item.F}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						是否集采:
					</view>
					<view class="shuo-cont">
						{{item.E}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						采集批次:
					</view>
					<view class="shuo-cont">
						{{item.D}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						管理方式:
					</view>
					<view class="shuo-cont">
						{{item.C}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						一物一码:
					</view>
					<view class="shuo-cont">
						{{item.yansliang}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						SN编码:
					</view>
					<view class="shuo-cont">
						{{item.yansliang}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						RFID编码:
					</view>
					<view class="shuo-cont">
						{{item.yansliang}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						上架货位:
					</view>
					<view class="shuo-cont">
						{{item.A}}
					</view>
				</view>
				<view class="inventory-item">
					<view class="shuo-label">
						状态:
					</view>
					<view class="shuo-cont-Ly">
						{{item.B}}
					</view>
				</view>
				<view class="all-text">{{item.zt}}</view>
			</view>
		</view>
	</view>
</template>
<script>
	import {
		listData,
		mentItem
	} from './list.js';
	import {
		mapState,
		mapMutations,
		mapActions
	} from 'vuex';
	export default {
		data() {
			return {
				datas: [{
					code: "KMT20231126",
					hispName: "国药山西长治有限公司",
					snub: 200,
					danjuTime: "2023-11-26  14:05:08",
					daohuoTime: "2023-11-26  14:05:08"
				}],
				textCode: "显示扫码结果",
				listDatacont: [],
				listData: listData,
				mentItem: mentItem,
			}
		},
		onLoad() {

		},
		computed: {
			// ...mapState(['mentItem','groundDetailsData'])
		},
		onBackPress(options) {
			uni.$emit('update', {
				msg: '页面更新'
			});
		},
		mounted() {
			this.listDatacont = listData;
			// this.getDetails();
		},
		methods: {
			// ...mapActions(['getDetails']),
			// queryList(pageNo, pageSize) {
			// 	this.$refs.paging.complete(this.data);
			// },
			//跳转上架详情	 
			// itemDetails(item) {
			// 	uni.navigateTo({
			// 		url: '/pages/groundeitalscont/groundetials',
			// 		success: function(res) {}
			// 	});
			// 	uni.setStorageSync('detailsCont', [item]);
			// },
			scanCode(code) {
				this.textCode = code;
			}
		}

	}
</script>

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


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

			.inner-item {
				width: 100%;
				height: 85%;
				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: 20rpx;
					bottom: 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-cont-Mcs {
						color: rgba(0, 170, 255, 1.0);
						font-size: 28rpx;
						text-align: left;
						font-family: PingFangSC-regular;
						margin-left: 30rpx;
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
					}

					.shuo-name {
						color: rgba(16, 16, 16, 1);
						font-size: 31rpx;
						text-align: left;
						font-family: PingFangSC-regular;
						width: 180rpx;
						font-weight: bold;
						margin-bottom: 25rpx;
					}

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

					.shuo-cont {
						color: rgba(180, 180, 180, 1.0);
						font-size: 28rpx;
						text-align: left;
						font-family: PingFangSC-regular;
						margin-left: 30rpx;
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
					}

					.shuo-cont-Ly {
						color: rgba(202, 202, 0, 1.0);
						font-size: 28rpx;
						text-align: left;
						font-family: PingFangSC-regular;
						margin-left: 30rpx;
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
					}

					.shuo-cont-byd {
						color: rgba(0, 170, 255, 1.0);
						font-size: 28rpx;
						text-align: left;
						font-family: PingFangSC-regular;
						margin-left: 30rpx;
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
					}

					.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;
							font-weight: normal;
							text-align: justify;
							text-align-last: justify;
						}

						.shuo-cont {
							color: rgba(16, 16, 16, 1);
							font-size: 28rpx;
							text-align: left;
							font-family: PingFangSC-regular;
							margin-left: 30rpx;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;

						}

						.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;
						}
					}
				}
			}
		}
	}

	uni-page-body {
		width: 100%;
		height: 100%;
	}
</style>