<template>
	<view class="pages">

		<view class="top">
			<text class="top-title">{{info.pro_name!=''?info.pro_name:"--"}}</text>
			<view class="top-con">
				<view class="top-con-blue"></view>
				<text class="top-con-text">公司名称：</text>
				<text class="top-con-text2">{{info.custer_name!=''?info.custer_name:"--"}}</text>
			</view>
			<view class="top-con">
				<view class="top-con-blue"></view>
				<text class="top-con-text">仓库名称：</text>
				<text class="top-con-text2">{{info.store_house_name!=''?info.store_house_name:"--"}}</text>
			</view>
			<view class="top-con">
				<view class="top-con-blue"></view>
				<text class="top-con-text">核算价值：</text>
				<text class="top-con-text3">¥ {{info.calculated_value!=''?info.calculated_value:"--"}}</text>
			</view>
		</view>

		<view class="bom">

			<view class="bom-item">

				<view class="bom-item-lay">

					<text class="bom-item-lay-text1">{{info.pro_model!=''?info.pro_model:"--"}}</text>
					<text class="bom-item-lay-text2">商品规格</text>

				</view>

				<view class="bom-item-lay">

					<text class="bom-item-lay-text1">{{info.confirmed_price!=''?info.confirmed_price:"--"}}</text>
					<text class="bom-item-lay-text2">单价(元)</text>

				</view>


			</view>

			<view class="bom-item">

				<view class="bom-item-lay">

					<text class="bom-item-lay-text1">{{info.num!=''?info.num:"--"}}</text>
					<text class="bom-item-lay-text2">数量</text>

				</view>

				<view class="bom-item-lay">

					<text class="bom-item-lay-text1">{{info.pro_unit!=''?info.pro_unit:"--"}}</text>
					<text class="bom-item-lay-text2">单位</text>

				</view>


			</view>


			<view class="bom-item">

				<view class="bom-item-lay">

					<text class="bom-item-lay-text1">{{info.confirmed_price!=''?info.confirmed_price:"--"}}</text>
					<text class="bom-item-lay-text2">质权人确认的单价(元)</text>

				</view>

				<view class="bom-item-lay">

					<text class="bom-item-lay-text1">{{info.location_id!=''?info.location_id:"--"}}</text>
					<text class="bom-item-lay-text2">货位号</text>

				</view>


			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

				info: {}

			}
		},
		onLoad(options) {
			console.log('options', options)
			var data = JSON.parse(options.info)

			this.info = data
			console.log('info', this.info)
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.pages {
		width: 100%;
		height: 100%;
		background: #fff;
		display: flex;
		flex-direction: column;

		.top {
			padding: 25px;

			.top-title {
				font-size: 18px;
				padding-bottom: 10px;
				color: #000;
				font-weight: 1000;
				font-family: sans-serif;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-line-clamp: 1;
				-webkit-box-orient: vertical;
			}

			.top-con {
				margin-top: 12px;
				display: flex;
				flex-direction: row;
				align-items: center;

				.top-con-blue {
					background: #007AFF;
					width: 8px;
					height: 8px;
					border-radius: 50%;

				}

				.top-con-text {
					margin-left: 5px;
					font-size: 16px;
					color: #949494;
				}

				.top-con-text2 {
					font-size: 16px;
					color: #434343;
				}

				.top-con-text3 {
					font-size: 22px;
					color: #F98F54;
				}
			}
		}

		.bom {
			margin-left: 20px;
			margin-right: 20px;
			border-top: 1px solid #eee;
			display: flex;
			flex-direction: column;

			.bom-item {
				display: flex;
				flex-direction: row;
				align-items: center;
				justify-content: center;

				.bom-item-lay {
					flex: 1;
					margin-top: 20px;
					display: flex;
					flex-direction: column;
					justify-content: center;

					.bom-item-lay-text1 {
						font-weight: 1000;
						font-family: sans-serif;
						text-align: center;
						font-size: 18px;
						color: #434343;
					}

					.bom-item-lay-text2 {
						margin-top: 5px;
						text-align: center;
						font-size: 15px;
						color: #949494;
					}
				}
			}


		}



	}
</style>