<template>
	<div class="app-container qyzx-details">
		<div class="bottomlist">
			<ul class="bottomlist-content">
				<li class="bottomlist-list">
					<p class="list-titel">
						{{textList.projectName}}
					</p>

					<div class="list-content">
						<p class="list-content-text">
							<span>受让人：</span>
							<span v-if="textList.company">
								<router-link v-if="textList.company"  :to="textList.uipId?'/enterprise/' + encodeStr(textList.companyId) :'/company/' + encodeStr(textList.companyId) " tag="a" class="list-titel-a blue" v-html="textList.company"></router-link>
								<span v-else>--</span>
								
							</span>
							<span v-else class="blue">{{textList.company||"--"}}</span>
						</p>
						<p class="list-content-text">
							<span>成交金额：</span>
							<span v-if="textList.transactionPrice">{{textList.transactionPrice>0?textList.transactionPrice+'万元':'--'}}</span>
							<span v-else>--</span>
						</p>
						<p class="list-content-text">
							<span>总面积：</span>
							<span v-if="textList.acreage">{{textList.acreage}}平方米</span>
							<span v-else>--</span>
						</p>
						<p class="list-content-text">
							<span>合同签订：</span>
							<span>{{textList.contractSignTime||"--"}}</span>
						</p>
					</div>
					<div class="list-content">
						<p class="list-content-text">
							<span>土地用途：</span>
							<span>{{textList.landUse||"--"}}</span>
						</p>
						<p class="list-content-text">
							<span>供应方式：</span>
							<span>{{textList.supplyLandWay||"--"}}</span>
						</p>
					</div>

				</li>
			</ul>

		</div>

		<div class="content main3">
			<div class="common-title">项目保障</div>
			<div class="main3-box">
				<p>
					<label class="label">行政区</label>
					<span>
						   {{textList.province}}
						<template v-if="textList.city">
							-{{textList.city}}
						</template>
						<template v-if="textList.area">
							-{{textList.area}}
						</template>
					</span>
					<label class="label">电子监督号</label>
					<span>{{textList.electronicNumber||"--"}}</span>
				</p>
				<p>
					<label class="label">项目名称</label>
					<span class="span-one">{{textList.projectName||"--"}}</span>

				</p>
				<p>
					<label class="label">项目位置</label>
					<span class="span-one">{{textList.landAddr||"--"}}</span>

				</p>
				<p>
					<label class="label">面积（平方米）</label>
					<span>{{textList.acreage||"--"}}</span>
					<label class="label">土地来源</label>
					<span>{{textList.landSource||"--"}}</span>
				</p>
				<p>
					<label class="label">土地用途</label>
					<span>{{textList.landUse||"--"}}</span>
					<label class="label">供地方式</label>
					<span>{{textList.supplyLandWay||"--"}}</span>
				</p>
				<p>
					<label class="label">土地使用年限</label>
					<span>{{textList.landUseYear||"--"}}</span>
					<label class="label">行业分类</label>
					<span>{{textList.industry||"--"}}</span>
				</p>
				<p>
					<label class="label">土地级别</label>
					<span>{{textList.landLevel||"--"}}</span>
					<label class="label">成交价格（万元）</label>
					<span>{{textList.transactionPrice>0?textList.transactionPrice:'--'}}</span>
				</p>
				<p>
					<label class="label">土地使用权人</label>
					<span class="span-one">{{textList.landUseCompany||"--"}}</span>
				</p>
				<p>
					<label class="label">约定容积率</label>
					<span>{{textList.volumeRate||"--"}}</span>
					<label class="label">批准单位</label>
					<span>{{textList.authority||"--"}}</span>
				</p>
				<p>
					<label class="label">约定交地日起</label>
					<span>{{textList.conventionLandTime||"--"}}</span>
					<label class="label">合同签订日期</label>
					<span>{{textList.contractSignTime||"--"}}</span>
				</p>
				<p>
					<label class="label">约定开工时间</label>
					<span>{{textList.conventionBeginTime||"--"}}</span>
					<label class="label">约定竣工时间</label>
					<span>{{textList.conventionEndTime||"--"}}</span>
				</p>
				<p>
					<label class="label">实际开工时间</label>
					<span>{{textList.realBeginTime||"--"}}</span>
					<label class="label">实际峻工时间</label>
					<span>{{textList.realEndTime||"--"}}</span>
				</p>
			</div>
		</div>
		<div class="content main3">
			<div class="common-title">地块基本信息</div>
			<div class="main3-box">
				<p>
					<label class="label">地块名称</label>
					<span>{{textList.landName||"--"}}</span>
					<label class="label">建筑面积(平方米)</label>
					<span>{{textList.buildArea||"--"}}</span>
				</p>
				<p>
					<label class="label">容积率</label>
					<span>{{textList.volumeRate||"--"}}</span>
					<label class="label">绿化率</label>
					<span>{{textList.greeningRate||"--"}}</span>
				</p>
				<p>
					<label class="label">建筑密度</label>
					<span>{{textList.buildingDensity||"--"}}</span>
					<label class="label">建筑限高</label>
					<span>{{textList.buildingHeight||"--"}}</span>
				</p>
			</div>
		</div>
		<div class="content main3">
			<div class="common-title">土地交易信息</div>
			<div class="main3-box">
				<p>
					<label class="label">招拍挂起始时间</label>
					<span>{{textList.auctionBeginTime||"--"}}</span>
					<label class="label">招拍挂截止时间</label>
					<span>{{textList.auctionEndTime||"--"}}</span>
				</p>
				<p>
					<label class="label">报名起始时间</label>
					<span>{{textList.auctionBeginTime||"--"}}</span>
					<label class="label">报名截止日期</label>
					<span>{{textList.auctionEndTime||"--"}}</span>
				</p>
				<p>
					<label class="label">起始价（万元）</label>
					<span>{{textList.moneyBegin>0?textList.moneyBegin:'--'}}</span>
					<label class="label">竞买保证金（万元）</label>
					<span>{{textList.bondmoney>0?textList.bondmoney:'--'}}</span>
				</p>
				<p>
					<label class="label">加价幅度</label>
					<span>{{textList.addMoneyRange||"--"}}</span>
					<label class="label">投资强度</label>
					<span>{{textList.investmentIntensity||"--"}}</span>
				</p>
				<p>
					<label class="label">成交价（万元）</label>
					<span>{{textList.transactionPrice>0?textList.transactionPrice:'--'}}</span>
					<label class="label">受让人</label>
					<span>{{textList.company||"--"}}</span>
				</p>
				<p>
					<label class="label">成交公示日期</label>
					<span>{{textList.transactionPublicityTime||"--"}}</span>
					<label class="label">合同编号</label>
					<span>{{textList.contractNum||"--"}}</span>
				</p>
			</div>
		</div>

	</div>
</template>

<script>
	import api from '@/api/radar/radar.js';
	import {encodeStr} from "@/assets/js/common.js"
	export default {

		name: 'LandDetails',
		data() {
			return {
				id: '',
				encodeStr,
				textList: {}

			}
		},
		created() {
			this.id = this.$route.params.id;
			this.landDetail();
		},
		methods: {
			landDetail() {
				api.landDetail({
					id: this.id
				}).then(res => {
					// console.log(res);
					this.textList = res.data;
					console.log(this.textList);

				}).catch(error => {

				});
			},

		}
	}
</script>

<style lang="scss" scoped>
	.bottomlist {
		width: 100%;
		background-color: #FFFFFF;

		border-radius: 4px 4px 4px 4px;

		.bottomlist-title {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-top: 12px;
			padding: 16px;
			border-bottom: 1px solid #EFEFEF;

			.title-right {
				display: flex;
				align-items: center;

				p:first-child {
					font-size: 12px;
					font-weight: 400;
					color: #3D3D3D;
					margin-right: 10px;
				}

				p:last-child {
					display: flex;
					align-items: center;
					font-size: 14px;
					font-weight: 400;
					color: rgba(35, 35, 35, 0.8);
				}

				img {
					width: 18px;
					height: 18px;
				}
			}

		}

		.bottomlist-content {

			padding-bottom: 0px;
		}

		.bottomlist-list {
			padding: 16px;
			font-size: 14px;
			border-bottom: 1px solid #EFEFEF;
			padding-bottom: 14px;

			.list-titel {
				font-size: 16px;
				font-weight: 700;
				color: #3D3D3D;
				line-height: 19px;

				.list-titel-a {
					text-decoration: none;
					color: #3D3D3D;
				}

				a:hover,
				a:visited,
				a:link,
				a:active {
					color: #3D3D3D;
				}
			}

			.content-label {
				margin-top: 7px;

				.list-label {
					background: #F3F3FF;
					color: #8491E8;
					border-radius: 1px 1px 1px 1px;

					padding: 3px 7px;
					font-size: 12px;

				}
			}


			.list-content {
				margin-top: 3px;
				display: flex;
				justify-content: start;
				align-items: center;

				.list-content-text {
					margin-top: 7px;
					display: flex;
					justify-content: start;
					align-items: center;
					margin-right: 27px;
					font-size: 14px;

					span:first-child {
						font-weight: 400;
						color: rgba(35, 35, 35, 0.4);
						line-height: 15px
					}

					span:last-child {
						font-weight: 400;
						color: rgba(35, 35, 35, 0.8);
						line-height: 15px
					}

					.blue {
						color: #0081FF !important;
						cursor: pointer;

					}

				}


			}

			.list-addree {
				width: auto;
				background: #F3F4F5;
				display: inline-flex;
				margin-top: 7px;

				.list-content-text {
					margin-top: 0px;

					span {
						line-height: 30px !important;
					}
				}

				img {
					width: 14px;
					margin: 0 8px;

				}
			}


		}

		.bottomlist-list:hover {
			background: #F6F9FC;
			cursor: pointer;
		}

		.pagination {
			padding: 14px;

			.el-pagination {
				float: right;
			}
		}
	}

	.app-container {
		padding: 0;
	}

	.qyzx-details {
		.tab {
			font-size: 12px;
			color: #A1A1A1;

			span {
				color: #232323;
			}
		}

		.content {
			margin-top: 16px;
			background: #FFFFFF;
			padding: 16px;
			border-radius: 4px;
		}

		.common-title {
			margin-bottom: 8px;
		}

		.main1 {
			.title {
				color: #232323;
				font-size: 16px;
				line-height: 28px;
				font-weight: bold;
				margin-bottom: 8px;
				text-align: left;

				img {
					width: 28px;
					height: 28px;
					margin-bottom: -9px;
					margin-right: 17px;
				}
			}

			p {
				color: #3D3D3D;
				font-size: 14px;
				margin: 0;
			}
		}

		.main2 {
			.list {
				display: flex;
				margin: 16px 0;
			}

			.item {
				width: 24.5%;
				margin-right: 16px;
				height: 100px;
				display: flex;
				justify-content: space-between;
				border-radius: 8px;

				.item-left {
					margin-left: 16px;
					margin-top: 24px;

					h4 {
						color: #232323;
						font-size: 22px;
						line-height: 22px;
						font-weight: bold;
						margin: 0;

						span {
							font-weight: 400;
							margin-left: 4px;
							font-size: 18px;
						}
					}

					p {
						margin: 0;
						color: #3D3D3D;
						font-size: 14px;
						padding-top: 8px;
					}
				}

				.img {
					width: 56px;
					height: 56px;
					margin-top: 22px;
					margin-right: 12px;
				}
			}

			.color1 {
				background: rgba(246, 190, 59, 0.08);
				border: 1px solid rgba(246, 190, 59, 0.2);
			}

			.color2 {
				background: rgba(148, 216, 196, 0.102);
				border: 1px solid rgba(73, 187, 154, 0.1);
			}

			.color3 {
				background: rgba(57, 100, 199, 0.06);
				border: 1px solid rgba(57, 100, 199, 0.1);
			}

			.color4 {
				background: rgba(0, 129, 255, 0.04);
				border: 1px solid rgba(0, 129, 255, 0.1);
			}
		}

		.main3 {
			.main3-box {
				margin-top: 22px;
				border-top: 1px solid #E6E9F0;

				p {
					display: flex;
					align-items: center;
					margin: 0;
					border-left: 1px solid #E6E9F0;
					border-bottom: 1px solid #E6E9F0;

					.label {
						width: 10%;
						font-weight: 400;
						line-height: 40px;
						font-size: 12px;
						height: 40px;
						background: #F0F3FA;
						padding-left: 12px;
					}

					span {
						width: 40%;
						color: #000;
						height: 40px;
						line-height: 40px;
						padding-left: 12px;
						font-size: 12px;
					}

					.span-one {
						width: 90%;
					}

				}

			}
		}

		.main4 {
			.main4-box {
				margin-top: 22px;

				.label {
					width: 14%;
					background: #F0F3FA;
					border: 1px solid #E6E9F0;
					display: inline-block;
					height: 40px;
					line-height: 40px;
					font-size: 12px;
					color: rgba(35, 35, 35, 0.8);
					padding-left: 12px;
				}

				span {
					width: 19%;
					display: inline-block;
					height: 40px;
					line-height: 40px;
					border-top: 1px solid #E6E9F0;
					border-bottom: 1px solid #E6E9F0;
					padding-left: 12px;
					font-size: 12px;
				}

				span:last-child {
					width: 20%;
					border-right: 1px solid #E6E9F0;
				}
			}
		}

		.main5 {
			.table-item {
				margin-top: 22px;
			}
		}
	}
</style>