<template>
	<div class="SignAcontract">
		<div class="SignAcontract-content" v-if="itemtype!='打印房票'">
			<div class="SignAcontract-content-right">
				<div class="button-background" @click="control(0)"><el-button :disabled='PlacementMode==1'>上一步</el-button></div>
				<el-steps :active="index" align-center style="width: calc(100% - 212px);">
				  <el-step title="打印申请书" ></el-step>
				  <el-step title="上传申请书" ></el-step>
				  <el-step title="完成" ></el-step>
				</el-steps>
				<div class="button-background" @click="control(1)"><el-button>下一步</el-button></div>
			</div>
			<div class="SignAcontract-content-lent">
				<div class="SignAcontract-content-lent-data" v-if="index==1">
					<div class="button-background">
						<el-button @click="RoomC()">打印</el-button>
						<el-button @click="query=true">参数</el-button>
					</div>
					<div class="contractA" id="RoomC">
						<div class="contractA-title" style="color: #000;">
						房票转让申请书（集体）
						</div>
						<div class="contractA-name">
							<div style="text-indent: 0;">
								慈溪市房屋征收所：
							</div>
							<div>
								本人 <span>{{Roomdata.householderName}}</span> ，已知悉慈溪市房票相关政策，愿意将房票编号： <span>{{Roomdata.roomTicketNum}}</span> 的房票转让给 <span>{{assigneeName}}</span> 。转让双方及房票信息如下：
							</div>
							<div>
								转让人（房票使用人）：<span>{{Roomdata.endUser}}</span> ，身份证号码：<span>{{Roomdata.endUserIdCard}}</span> ；
							</div>
							<div>
								受让人： <span>{{assigneeName}}</span> ，身份证号码： <span>{{assigneeIdCard}}</span> ；
							</div>
							<div>
								房票信息：房票编号： <span>{{Roomdata.roomTicketNum}}</span> ，使用期限：自{{Roomdata.roomTicketStartDate}}至{{Roomdata.roomTicketEndDate}} ，房票金额： <span>{{Roomdata.roomTicketAmount}}</span> 元。
							</div>
							<div>
								自即日起，该房票及房票购房补贴归受让人所有。受让人清楚、明白并严格遵守慈溪市房票的相关规定。
							</div>
							<div>
								特此申请。
							</div>
						</div>
						<div class="contractA-bottom">
							<div class="contractA-bottom-a">
								<div>
									<p>转让人（签章）： </p>
									<p>联系电话：   </p>
									<p>年    月    日 </p>
								</div>
								<div>
									<p>受让人（签章）：</p>
									<p>联系电话：   </p>
									<p>年    月    日 </p>
								</div>
							</div>
							<div class="contractA-bottom-b" style="text-align: inherit;font-size: 16px;">
								注：转让人或受让人为未成年人或其他限制民事行为、无民事行为能力的人，有其法定（指定）监护人签章。
							</div>
						</div>
					</div>
				</div>
				<div class="Upload" v-if="index==2">
					<div class="Upload-butom">
						
						<!-- <div class="Upload-butom-tow">
								<h3>补偿款领款日期：</h3>
								<el-date-picker value-format="yyyy-MM-dd" type="date" placeholder="选择日期" 
								v-model="payDate" style="width: 250px;"></el-date-picker>
						</div> -->
						<div class="Upload-butom-ont" v-for="(item,index) in fileListindex" :key="index">
							<div class="tc-middle-add">
								<h3>转让申请书：</h3>
							</div>
							<div class="tc-middle-name">
								<ul>
									<li v-for="itemid in item.tree" @click="nodeClic(itemid)">
										<i class="el-icon-error" @click.stop="deleteFile(itemid)"></i>
										<img v-if="itemid.name.split('.').pop().toLowerCase()=='pdf'" src="../../../../assets/file-pdf.png" alt="">
										<img v-else-if="itemid.name.split('.').pop().toLowerCase()=='png'||itemid.name.split('.').pop().toLowerCase()=='jpg'"
										  src="../../../../assets/file-img.png" alt="">
										<img v-else-if="itemid.name.split('.').pop().toLowerCase()=='text'" src="../../../../assets/file-excel.png" alt="">
										<img v-else src="../../../../assets/file-other.png">
										<div><Tooltip :text="itemid.name"></Tooltip></div>
									</li>
									<el-upload action='' :auto-upload="false" :headers="tokenData" :on-change="handleChang" :show-file-list="false">
									  <li @click="selectFile()">
									  	<div class="add">
									  		<div class="add-top">
									  			<span class="el-icon-plus"></span>
									  		</div>
									  		<div class="add-buttom">
									  			添加文件
									  		</div>
									  	</div>
									  </li>
									</el-upload>
								</ul>
							</div>
						</div>
						<div class="Upload-butom-ont">
							<div class="tc-middle-add">
								<h4>情况说明：</h4>
							</div>
							<div class="tc-middle-name">
								<div class="form" style="padding: 0;">
									<el-form>
										<el-form-item label="情况说明" label-width="130px" style="width: 100%;">
											<el-input v-model='Reremar' type="textarea" :rows="4" placeholder="请输入情况说明"
												style="width: 100%;"></el-input>
										</el-form-item>
									</el-form>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- =========房票========= -->
		<div class="SignAcontract-ont" v-if="itemtype=='打印房票'">
			<div class="button-background"><el-button @click="RoomA()">打印</el-button></div>
			<div id="RoomA" class="Room">
				<ul class="room-data" style="margin: 0;padding: 0 2%;">
					<li>
						<div class="title">
							<div class="title-top">
								<h3>存根联</h3>
								<p style="margin: 0;">房票编号：{{Roomdata.roomTicketNum}}</p>
							</div>
							<div class="title-name">
								慈溪市征收集体所有土地住宅房屋<br>
								拆迁调产安置购房证明书
							</div>
						</div>
						<div class="dataname">
							<div class="dataname-neck">
								<p>拆迁人（签章）：<span>慈溪市房屋征收所</span></p>
								<p>项目名称：<span>{{Roomdata.projectName}}</span></p>
								<p>被拆迁人<span>{{Roomdata.householderName}}</span></p>
								<p>身份证号码：<span>{{Roomdata.householderIdCard}}</span></p>
							</div>
							<table width="100%" height="530px" border='0' cellspacing='0'>
								<colgroup>
									<col span="1" style="width:5%" v-for="i in 20" :key="i">
									</col>
								</colgroup>
								<tr align='center'>
									<td height="5%" rowspan="1" colspan="3">房票使用人</td>
									<td rowspan="1" colspan="7">{{Roomdata.endUser}} </td>
									<td rowspan="1" colspan="4">身份证号码</td>
									<td rowspan="1" colspan="6">{{Roomdata.endUserIdCard}} </td>
								</tr>
								<tr align='center'>
									<td height="5%" rowspan="1" colspan="3">住址</td>
									<td rowspan="1" colspan="9">{{Roomdata.endUserAddr}} </td>
									<td rowspan="1" colspan="3">联系电话</td>
									<td rowspan="1" colspan="5">{{Roomdata.endUserPhone}}</td>
								</tr>
								<tr align='center'>
									<td rowspan="4" colspan="2">被拆迁房屋概况</td>
									<td height="5%" rowspan="1" colspan="3">原房屋坐落</td>
									<td rowspan="1" colspan="15">{{Roomdata.oldHouseAddr}}</td>
								</tr>
								<tr align='center'>
									<td rowspan="2" colspan="3">建筑面积</td>
									<td rowspan="2" colspan="5">{{Roomdata.oldHouseBuiltUpArea}}</td>
									<td height="5%" rowspan="1" colspan="4">土地面积</td>
									<td rowspan="1" colspan="6">{{Roomdata.oldHouseLandArea}}</td>
								</tr>
								<tr align='center'>
									<td height="5%" rowspan="1" colspan="4">可安置面积</td>
									<td rowspan="1" colspan="6">{{Roomdata.oldHouseResettlementArea}}</td>
								</tr>
								<tr align='center'>
									<td height="5%" rowspan="1" colspan="3">协议编号</td>
									<td rowspan="1" colspan="5">{{Roomdata.agreementNo}}</td>
									<td rowspan="1" colspan="4">签约时间</td>
									<td rowspan="1" colspan="6">{{Roomdata.agreementSigningTime}}</td>
								</tr>
								<tr align='center'>
									<td rowspan="3" colspan="2">货币和房票</td>
									<td rowspan="1" colspan="3">货币补偿和房票安置金额</td>
									<td align='left' rowspan="1" colspan="9">大写：{{transformation(Roomdata.roomTicketAmount)}}</td>
									<td align='left' rowspan="1" colspan="6">￥：{{Roomdata.roomTicketAmount}}元</td>
								</tr>
								<tr align='center'>
									<td rowspan="2" colspan="3">房票使用截止时间</td>
									<td height="5%" align='left' rowspan="1" colspan="15">自{{Roomdata.roomTicketStartDate}}至{{Roomdata.roomTicketEndDate}}</td>
								</tr>
								<tr align='center'>
									<td height="5%" rowspan="1" colspan="15"> .</td>
								</tr>
								<tr>
									<td rowspan="1" colspan="20">
										<div class="table-top">
											<p>
												同意上述内容，已按规定领取房票消费联和回执联，将严格按房票相关政策结算房票金额及购房补贴。
											</p>
											<div class="table-top-right">
												<p>房票使用人签字：</p>
												<div> 年    月    日</div>
											</div>
										</div>
									</td>
								</tr>
								<tr>
									<td rowspan="1" colspan="20">
										<div class="table-buttom-right">
											<ul>
												<li>经办人：</li>
												<li>审核人：</li>
												<li>审批人：</li>
											</ul>
											<div> 年    月    日</div>
										</div>
									</td>
								</tr>
							</table>
						</div>
						<div class="remarks">
							<div>
								注意事项：
							</div>
							<div>
								（一）房票持有人购买本市行政区域内新建商品住宅房屋（不含原杭州湾新区和崇寿镇）的给予购房补贴，购买二手住宅房屋的不再给予购房补贴。
							</div>
							<div>
								（二）房票初始持有人在房票载明的使用截止时间前购买新建商品住宅房屋的，全额享受购房补贴；在房票使用延长期限内购买新建商品住宅房屋的，减半享受购房补贴。
							</div>
							<div>
								（三）房票允许转让，但必须同时符合以下条件：
							</div>
								<p>1.房票只允许转让一次，受让所得的房票仅限于购买本市行政区域内（不含原杭州湾新区和崇寿镇）新建商品住宅房屋，购房补贴全额由受让人享受；</p>
								<p>2.房票须实名转让，由转让人和受让人共同向房屋征收部门提出书面申请并办理房票转让登记，且受让人购房须在办理房票转让登记之后；</p>
								<p>3.房票转让及受让人购房须在房票开具之日起6个月内完成。受让人未在房票开具之日起6个月内购房的，不享受购房补贴。这里的“购房”是指取得备案的商品房买卖合同。</p>
								<p>4.单张房票须全额转让，不得部分转让。</p>
							<div>
								（四）房票使用人凭已备案的商品房买卖合同（已办理商品房不动产权证的凭不动产权证）、购房发票、房票回执联、本人身份证等相关材料，领取购房补贴。凭已备案的商品房买卖合同领取购房补贴的，以商品房买卖合同记载的商品房购房总金额为基准；凭商品房不动产权证领取购房补贴的，以购房发票总金额为基准。
							</div>
							<div>
								（五）房票使用人购买一手商品住宅房屋的，须与房地产开发企业、慈溪市房屋征收所签订三方协议。领取购房补贴后与房地产开发企业解除商品房买卖合同的，须全额退还已领取的购房补贴。
							</div>
							<div>
								（六）商品房申领购房补贴后，其配套车位（车库）、储藏间再来申领购房补贴的，不再受理。
							</div>
						</div>
					</li>
					<li>
						<div class="title">
							<div class="title-top">
								<h3>消费联</h3>
								<p style="margin: 0;">房票编号：{{Roomdata.roomTicketNum}}</p>
							</div>
							<div class="title-name">
								慈溪市征收集体所有土地住宅房屋<br>
								拆迁调产安置购房结算单
							</div>
						</div>
						<div class="dataname">
							<div class="dataname-neck">
								<p>拆迁人（签章）：<span>慈溪市房屋征收所</span></p>
								<p>项目名称：<span>{{Roomdata.projectName}}</span></p>
								<p>被拆迁人：<span>{{Roomdata.householderName}}</span></p>
								<p>身份证号码：<span>{{Roomdata.householderIdCard}}</span></p>
							</div>
							<table width="100%" height="480px" border='0' cellspacing='0'>
								<colgroup>
									<col span="1" style="width:5%" v-for="i in 20" :key="i">
									</col>
								</colgroup>
								<tr align='center'>
									<td height="8%" rowspan="1" colspan="3">房票使用人</td>
									<td rowspan="1" colspan="7">{{Roomdata.endUser}} </td>
									<td rowspan="1" colspan="4">身份证号码</td>
									<td rowspan="1" colspan="6">{{Roomdata.endUserIdCard}} </td>
								</tr>
								<tr align='center'>
									<td height="8%" rowspan="1" colspan="3">住址</td>
									<td rowspan="1" colspan="9">{{Roomdata.endUserAddr}} </td>
									<td rowspan="1" colspan="3">联系电话</td>
									<td rowspan="1" colspan="5">{{Roomdata.endUserPhone}} </td>
								</tr>
								<tr align='center'>
									<td height="10%" rowspan="1" colspan="3">货币补偿和房票安置金额</td>
									<td align='left' rowspan="1" colspan="13">大写：{{transformation(Roomdata.roomTicketAmount)}} </td>
									<td align='left' rowspan="1" colspan="4">￥：{{Roomdata.roomTicketAmount}}元</td>
								</tr>
								<tr align='center'>
									<td height="8%" rowspan="1" colspan="3">房票使用截止时间</td>
									<td align='left' rowspan="1" colspan="17">自{{Roomdata.roomTicketStartDate}}至{{Roomdata.roomTicketEndDate}}</td>
								</tr>
								<tr>
									<td rowspan="2" colspan="1" align='center'>结算记录</td>
									<td rowspan="2" colspan="2" align='center'>支付确认</td>
									<td rowspan="1" colspan="17">
										<div class="table-top">
											<p>
												本人确认领取上述货币补偿和房票安置金额，其中部分用于购买安置用房
											</p>
											<div class="table-top-right" style="margin-top: 5rem;">
												<p>房票使用人签字：</p>
												<div> 年    月    日</div>
											</div>
										</div>
									</td>
								</tr>
								<tr>
									<td rowspan="1" colspan="17">
										<div class="table-buttom-right" style="margin: 0;">
											<p>
												支付单位签章
											</p>
											<ul style="margin-top: 5rem;">
												<li>经办人：</li>
												<li>审批人：</li>
											</ul>
											<div> 年    月    日</div>
										</div>
									</td>
								</tr>
							</table>
						</div>
						<div class="remarks" style="margin-top: 3rem;">
							<div>
								注意事项：
							</div>
							<div>
								（一）房票持有人购买本市行政区域内新建商品住宅房屋（不含原杭州湾新区和崇寿镇）的给予购房补贴，购买二手住宅房屋的不再给予购房补贴。
							</div>
							<div>
								（二）房票初始持有人在房票载明的使用截止时间前购买新建商品住宅房屋的，全额享受购房补贴；在房票使用延长期限内购买新建商品住宅房屋的，减半享受购房补贴。
							</div>
							<div>
								（三）房票允许转让，但必须同时符合以下条件：
							</div>
								<p>1.房票只允许转让一次，受让所得的房票仅限于购买本市行政区域内（不含原杭州湾新区和崇寿镇）新建商品住宅房屋，购房补贴全额由受让人享受；</p>
								<p>2.房票须实名转让，由转让人和受让人共同向房屋征收部门提出书面申请并办理房票转让登记，且受让人购房须在办理房票转让登记之后；</p>
								<p>3.房票转让及受让人购房须在房票开具之日起6个月内完成。受让人未在房票开具之日起6个月内购房的，不享受购房补贴。这里的“购房”是指取得备案的商品房买卖合同。</p>
								<p>4.单张房票须全额转让，不得部分转让。</p>
							<div>
								（四）房票使用人凭已备案的商品房买卖合同（已办理商品房不动产权证的凭不动产权证）、购房发票、房票回执联、本人身份证等相关材料，领取购房补贴。凭已备案的商品房买卖合同领取购房补贴的，以商品房买卖合同记载的商品房购房总金额为基准；凭商品房不动产权证领取购房补贴的，以购房发票总金额为基准。
							</div>
							<div>
								（五）房票使用人购买一手商品住宅房屋的，须与房地产开发企业、慈溪市房屋征收所签订三方协议。领取购房补贴后与房地产开发企业解除商品房买卖合同的，须全额退还已领取的购房补贴。
							</div>
							<div>
								（六）商品房申领购房补贴后，其配套车位（车库）、储藏间再来申领购房补贴的，不再受理。
							</div>
						</div>
					</li>
					<li>
						<div class="title">
							<div class="title-top">
								<h3>回执联</h3>
								<p style="margin: 0;">房票编号：{{Roomdata.roomTicketNum}}</p>
							</div>
							<div class="title-name">
								慈溪市征收集体所有土地住宅房屋<br>
								拆迁调产安置购房回执 
							</div>
						</div>
						<div class="dataname">
							<div class="dataname-neck">
								<p>拆迁人（签章）：<span>慈溪市房屋征收所</span></p>
								<p>项目名称：<span>{{Roomdata.projectName}}</span></p>
								<p>被拆迁人<span>{{Roomdata.householderName}}</span></p>
								<p>身份证号码：<span>{{Roomdata.householderIdCard}}</span></p>
							</div>
							<table width="100%" height="450px" border='0' cellspacing='0'>
								<colgroup>
									<col span="1" style="width:5%" v-for="i in 20" :key="i">
									</col>
								</colgroup>
								<tr align='center'>
									<td height="5%" rowspan="1" colspan="4">房票使用人</td>
									<td rowspan="1" colspan="6"> {{Roomdata.endUser}}</td>
									<td rowspan="1" colspan="4">身份证号码</td>
									<td rowspan="1" colspan="6"> {{Roomdata.endUserIdCard}}</td>
								</tr>
								<tr align='center'>
									<td rowspan="4" colspan="1">被拆迁房屋概况</td>
									<td height="5%" rowspan="1" colspan="4">原房屋坐落</td>
									<td rowspan="1" colspan="15"> {{Roomdata.oldHouseAddr}}</td>
								</tr>
								<tr align='center'>
									<td rowspan="2" colspan="4">建筑面积</td>
									<td rowspan="2" colspan="5"> {{Roomdata.oldHouseBuiltUpArea}}</td>
									<td height="5%" rowspan="1" colspan="4">土地面积</td>
									<td rowspan="1" colspan="6"> {{Roomdata.oldHouseLandArea}}</td>
								</tr>
								<tr align='center'>
									<td height="5%" rowspan="1" colspan="4">可安置面积</td>
									<td rowspan="1" colspan="6"> {{Roomdata.oldHouseResettlementArea}}</td>
								</tr>
								<tr align='center'>
									<td height="5%" rowspan="1" colspan="4">协议编号</td>
									<td rowspan="1" colspan="5"> {{Roomdata.agreementNo}}</td>
									<td height="5%" rowspan="1" colspan="4">签约时间</td>
									<td rowspan="1" colspan="6"> {{Roomdata.agreementSigningTime}}</td>
								</tr>
								<tr align='center'>
									<td height="5%" rowspan="1" colspan="5">货币补偿和房票安置金额</td>
									<td align='left' rowspan="1" colspan="9"> 大写：{{transformation(Roomdata.roomTicketAmount)}}</td>
									<td align='left' rowspan="1" colspan="6">￥：{{Roomdata.roomTicketAmount}}元</td>
								</tr>
								<tr align='center'>
									<td rowspan="2" colspan="5">房票使用截止时间</td>
									<td height="5%" align='left' rowspan="1" colspan="15">自{{Roomdata.roomTicketStartDate}}至{{Roomdata.roomTicketEndDate}}</td>
								</tr>
								<tr align='center'>
									<td height="5%" align='left' rowspan="1" colspan="15"> </td>
								</tr>
								<tr align='center'>
									<td rowspan="3" colspan="1">交易记录</td>
									<td height="5%" rowspan="1" colspan="4">购房金额</td>
									<td align='left' rowspan="1" colspan="9"> 大写：</td>
									<td align='left' rowspan="1" colspan="6">￥：</td>
								</tr>
								<tr align='center'>
									<td height="5%" rowspan="1" colspan="4">所购房屋信息</td>
									<td align='left' rowspan="1" colspan="15"> </td>
								</tr>
								<tr align='center'>
									<td height="5%" rowspan="1" colspan="4">房票金额</td>
									<td align='left' rowspan="1" colspan="9"> 大写：</td>
									<td align='left' rowspan="1" colspan="6">￥：</td>
								</tr>
								<tr>
									<td rowspan="1" colspan="9">
										<div class="table-top">
											<div class="table-top-right" style="width: 100%;margin-left:0;margin-top: 0;">
												<p style="margin-bottom: 6.5rem;">房票使用人签字：</p>
												<div style="margin-left: 0%;"> 年    月    日</div>
											</div>
										</div>
									</td>
									<td rowspan="1" colspan="11">
										<div class="table-buttom-right" style="margin: 0;">
											<p>
												售卖方（签章）：
											</p> 
											<ul style="margin-top: 4.5rem;display: block;width: 35%;">
												<li style="width: 100%;text-align: end;margin-bottom: 0.5rem;">经办人：</li>
												<li style="width: 100%;text-align: end;">审批人：</li>
											</ul>
											<div style="width: 55%;margin-left: 40%;"> 年    月    日</div>
										</div>
									</td>
								</tr>
							</table>
							<div class="dataname-neck">
								<p>受让人：<span></span></p>
								<p>身份证号码：<span></span></p>
								<p>转让日期:<span></span></p>
							</div>
						</div>
						<div class="remarks">
							<div>
								注意事项：
							</div>
							<div>
								（一）房票持有人购买本市行政区域内新建商品住宅房屋（不含原杭州湾新区和崇寿镇）的给予购房补贴，购买二手住宅房屋的不再给予购房补贴。
							</div>
							<div>
								（二）房票初始持有人在房票载明的使用截止时间前购买新建商品住宅房屋的，全额享受购房补贴；在房票使用延长期限内购买新建商品住宅房屋的，减半享受购房补贴。
							</div>
							<div>
								（三）房票允许转让，但必须同时符合以下条件：
							</div>
								<p>1.房票只允许转让一次，受让所得的房票仅限于购买本市行政区域内（不含原杭州湾新区和崇寿镇）新建商品住宅房屋，购房补贴全额由受让人享受；</p>
								<p>2.房票须实名转让，由转让人和受让人共同向房屋征收部门提出书面申请并办理房票转让登记，且受让人购房须在办理房票转让登记之后；</p>
								<p>3.房票转让及受让人购房须在房票开具之日起6个月内完成。受让人未在房票开具之日起6个月内购房的，不享受购房补贴。这里的“购房”是指取得备案的商品房买卖合同。</p>
								<p>4.单张房票须全额转让，不得部分转让。</p>
							<div>
								（四）房票使用人凭已备案的商品房买卖合同（已办理商品房不动产权证的凭不动产权证）、购房发票、房票回执联、本人身份证等相关材料，领取购房补贴。凭已备案的商品房买卖合同领取购房补贴的，以商品房买卖合同记载的商品房购房总金额为基准；凭商品房不动产权证领取购房补贴的，以购房发票总金额为基准。
							</div>
							<div>
								（五）房票使用人购买一手商品住宅房屋的，须与房地产开发企业、慈溪市房屋征收所签订三方协议。领取购房补贴后与房地产开发企业解除商品房买卖合同的，须全额退还已领取的购房补贴。
							</div>
							<div>
								（六）商品房申领购房补贴后，其配套车位（车库）、储藏间再来申领购房补贴的，不再受理。
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
		<!-- 转让房票参数 -->
		<div class="tk">
			<el-dialog title="更多筛选" :visible.sync="query" width="500px" :modal-append-to-body="false">
				<div class="form">
					<el-form>
						<el-form-item label="受让人" label-width="130px" style="width: 100%;">
							<el-input v-model="assigneeName" placeholder="请输入受让人姓名" clearable></el-input>
						</el-form-item>
						<el-form-item label="身份证" label-width="130px" style="width: 100%;">
							<el-input v-model="assigneeIdCard" placeholder="请输入受让人身份证" clearable></el-input>
						</el-form-item>
						<el-form-item label="转让日期" label-width="130px" style="width: 100%;">
							<el-date-picker value-format="yyyy-MM-dd" type="date" placeholder="选择日期"
							v-model="assigneeDate" style="width: 100%;"></el-date-picker>
						</el-form-item>
					</el-form>
				</div>
				<span slot="footer" class="dialog-footer">
					<el-button type="primary" @click="postupdateRoomTicket()">确 定</el-button>
					<el-button @click="query = false">取 消</el-button>
				</span>
			</el-dialog>
		</div>
	</div>
</template>

<script>
	import Tooltip from '../../../assembly/tooltip.vue'
	export default {
		name: "survey",
		//===========户信息=======项目信息============房票信息=====类型
		props: ['Roomdata','itemtype'],
		components:{
			Tooltip
		},
		data() {
			return {
				index:1,
				PlacementMode:0,
				
				uuid:'',
				payDate:'',
				fileListindex:[],
				defaultOpen: require("../../../../assets/file-plus.png"),
				defaultClose: require("../../../../assets/file-reduce.png"),
				Reremar:'',
				tokenData: {
					token: window.sessionStorage.getItem('token')
				},
				datahousehold:{},
				
				query:false,
				assigneeName:'',
				assigneeIdCard:'',
				assigneeDate:'',
			}
		},
		computed: {},
		mounted() {
			if(this.itemtype=='打印房票'){
				this.RoomA()
			}else if(this.itemtype=='转让'){
				this.assigneeName=this.Roomdata.assigneeName,
				this.assigneeIdCard=this.Roomdata.assigneeIdCard,
				this.assigneeDate=this.Roomdata.assigneeDate
				if(this.Roomdata.updateLock=='上传资料'){
					this.index=2
					// this.getUid()
					this.getgetexaminefile()
				}else{
					this.index=1
				}
			}
			
		},
		methods: {
			//保存
			postupdateRoomTicket(){
				var type=false
				var data=[]
				if(!this.assigneeName){
					type=true
					data.push('受让人')
				} 
				if(!this.assigneeIdCard){
					type=true
					data.push('身份证')
				}
				if(!this.assigneeDate){
					type=true
					data.push('转让日期')
				}
				if(type==true){
					this.$message.error("请填写【"+data+"】!");
					return
					}
				var data={
					id:this.Roomdata.id,
					assigneeName:this.assigneeName,
					assigneeIdCard:this.assigneeIdCard,
					assigneeDate:this.assigneeDate,
					updateLock:'变更申请',
				}
					this.$http.post('api/auth/roomticket/updateState',data).then((res) => {
						if (res.status == 200 && res.data.code == 0) {
							this.query = false
						} else {
							this.$message.error("失败!");
						}
					})
			},
			//打印房房票
			RoomA(){
					this.$nextTick(function() {
						//判断iframe是否存在，不存在则创建iframe
						var iframe = document.getElementById("print-iframe");
						var el = document.getElementById("RoomA");
						iframe = document.createElement('IFRAME');
						var doc = null;
						iframe.setAttribute("id", "print-iframe");
						iframe.setAttribute('style', 'position:absolute;width:0px;height:0px;left:-500px;top:-500px;');
						document.body.appendChild(iframe);
						doc = iframe.contentWindow.document;
						//这里可以自定义样式
						doc.write(
							'<style media="print">@page {size: auto;margin: 0mm;}.Room{padding: 0 2%;width: 100%;height: 100%;font-size: 15px;box-sizing: border-box;}td{border-bottom: 1px solid #000;border-right: 1px solid #000;}span {word-break: break-all;border-bottom: 1px solid #000;min-width: 50px;display: inline-block;line-height: 18px;text-align: center;text-indent: 0em;}.room-data{width: 100%;height: 100%;display: flex;}.room-data li{list-style: none; width: 31.8%;height: 100%;border-right: 2px #000 dashed;padding: 2.5% 1% 1% 1%;box-sizing: border-box;}.room-data li:last-child{border-right: none;}.title{width: 100%;align-items: center;}.title .title-top{width: 100%;display: flex;align-items: baseline;justify-content: space-between;margin: 0;}.title-top h3{font-size: 16px;font-weight: 700;width: 45%;text-align: right;line-height: 1rem;margin: 0}.title-top p{font-size: 12px;width: 45%;text-align: left;margin: 0}.title-name{text-align: center;font-size: 20px;color: #000;font-weight: 500;margin-bottom: 2rem;}table{font-size: 12px;border-top: 1PX solid #000;border-left: 1PX solid #000;}.table-top p{text-indent: 2em;}.table-top-right{width: 40%;margin-top: 3rem;margin-left: 50%;}.table-top-right p{text-align: inherit;margin-bottom: 1rem;}.table-top-right div{text-align: end;letter-spacing: 3mm;}.table-buttom-right{width: 100%;margin-top: 6rem;}.table-buttom-right ul{display: flex;width: 80%;}.table-buttom-right ul li{list-style: none;width: 33.33%;margin: 0;border: none;}.table-buttom-right p{text-indent: 2em;} .table-buttom-right div{text-align: end;letter-spacing: 3mm;width: 40%;margin-left: 50%;}.dataname-neck{width: 100%;font-size: 14px;line-height: 1.5rem;}.dataname-neck p{margin: 0;width: 100%;}.remarks{font-size: 12px;color: #000;font-weight: 600;width: 159%;transform: scale(0.63) translate(-29.5%,-29.5%);}.remarks p{text-indent: 2em;margin:0;}</style>'
						); //解决出现页眉页脚和路径的问题
						doc.write('<div>' + el.innerHTML + '</div>');
						doc.close();
						iframe.contentWindow.focus();
						setTimeout(function() {
							iframe.contentWindow.print();
						}, 50) //解决第一次样式不生效的问题
						if (navigator.userAgent.indexOf("MSIE") > 0) {
							document.body.removeChild(iframe);
						}
						this.$emit('detaoperate')
						this.addprintt()
					})
			},
			control(row){
					var Positive =0
					var Staging=this.index
					if(row){
						Staging++
						Positive =0
					}else{
						Staging--
						Positive =1
					}
					if(Staging<=1){
						this.index=1
						this.addagreement(0,Positive)
					}else if(Staging==2){
						this.addagreement(1,Positive)
						// this.getUid()
						this.getgetexaminefile()
					}else if(Staging>=3){
						var zt=false
						this.fileListindex.forEach((item)=>{
							if(item.tree.length==0){zt=true}
						})
						if(zt){
							this.$message.error('请上传【转让申请书】')
							return
						}
						this.addagreement(2,Positive)
						this.$emit('detaoperate');
						this.index=2
					}
			},
			addprintt(row){
				this.$http.get('api/auth/roomticket/print?id='+this.Roomdata.id,null).then((res) => {
					if (res.status == 200 && res.data.code == 0) {
						// this.agreementControl = false
						// this.$message.success('成功!');
					} else {
						this.$message.error("失败!");
					}
				})
			},
			//转让房票
			addagreement(row,type){
				var datl=['变更申请','上传资料','已变更']
				var data={
					id:this.Roomdata.id,
					assigneeName:this.assigneeName,
					assigneeIdCard:this.assigneeIdCard,
					assigneeDate:this.assigneeDate,
					updateLock:datl[row]
				}
				this.$http.post('api/auth/roomticket/updateState',data).then((res) => {
					if (res.status == 200 && res.data.code == 0) {
						if(type){if(this.index!=1){this.index--}}else{this.index++}
						this.$message.success('成功!');
					} else {
						this.$message.error("失败!");
					}
				})
			},
			// 数字转大写（不带单位）
			  transformation(n){
			    if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
			        return "";  //判断数据是否大于0
			    }
			    var unit = "千百拾亿千百拾万千百拾元角分", str = "";
			    n += "00";  
			    var indexpoint = n.indexOf('.');  // 如果是小数，截取小数点前面的位数
			    if (indexpoint >= 0){
			        n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数，截取需要使用的unit单位
			    }
			    unit = unit.substr(unit.length - n.length);  // 若为整数，截取需要使用的unit单位
			    for (var i=0; i < n.length; i++){
			        str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
			    }
			    return str.replace(/零(千|百|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整"); // 替换掉数字里面的零字符，得到结果
			  },
			  // // 获取uuid
			  // getUid(){
			  //     var s = [];
			  //     var hexDigits = "0123456789abcdef";
			  //     for (var i = 0; i < 30; i++) {
			  //     s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
			  //     }
			  //     s[14] = "4";
			  //     s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
			  //     var uuid = s.join("");
			  //     this.uuid = uuid;
			  //     return uuid;
			  // },
			  // 上传文件按钮
			  selectFile() {
			    this.selectFileName = '3、审批后资料/6、房票发放凭证'+'/房票转让申请书/'+this.Roomdata.roomTicketNum;
			  },
			  // 上传文件
			  handleChang(file) {
			    let that = this;
			    let formData = new FormData();
			    formData.append('file', file.raw);
			    formData.append('type', 2);
			    formData.append('id', this.Roomdata.householdId);
			    formData.append('destfolder', this.selectFileName);
			    that.$http.post('api/auth/file/upload', formData).then((res) => {
			      if (res.status == 200 && res.data.code == 0) {
			        that.$message.success("上传文件成功!");
			        this.getgetexaminefile();
			      } else {
			        that.$message.error("上传文件失败!");
			      }
			    });
			  },
			  //获取文件
			  getgetexaminefile(){
			  	  this.$http.get('api/auth/file/fileList?type=' + 2 + '&id=' + this.Roomdata.householdId, null).then((res) => {
			  	    if (res.status == 200 && res.data.code == 0) {
			  			this.fileListindex = res.data.list
			  			var data=[
			  				{name:'房票转让申请书',empty:false,type: "folder",url:'房票转让申请书',tree:[]},
			  			]
			  			if(this.fileListindex){
			  				this.fileListindex.forEach((item,index)=>{
			  					if(item.empty==false){
									if(item.name=='3、审批后资料'){
										item.tree.forEach((nale,ixde)=>{
											if(nale.name=='6、房票发放凭证'){
												if(nale.tree!=null&&nale.tree.length!=0){
													nale.tree.forEach((nana,ixde)=>{
														if(nana.name=='房票转让申请书'){
															console.log(nale)
															if(nale.tree!=null&&nale.tree.length!=0){
																nana.tree.forEach((nass)=>{
																	if(nass.tree&&nass.tree.length!=0){
																		if(nass.name==this.Roomdata.roomTicketNum){
																			data[0]=nass
																		}
																	}
																})
															}
														}
													})
												}
											}
										})
									}
			  					}
			  				})
			  			}
			  			this.fileListindex=data
			  		} else {
			  	      this.$message.error("查找文件列表失败!");
			  	    }
			  	});
			  },
			  //删除文件
			  deleteFile(item) {
			  	var data = new FormData;
			  	data.append("delFileUri", item.url);
			  	data.append("id", this.Roomdata.householdId);
			  	data.append("type", 2);
			  	this.$confirm('确定要删除该文件吗？').then(_ => {
			  		this.$http.post('api/auth/file/removeFile', data).then((res) => {
			  			if (res.status == 200 && res.data.code == 0) {
			  				this.$message.success('删除该文件成功!');
			  				this.getgetexaminefile();
			  			} else {
			  				this.$message.error('删除该文件失败!');
			  			}
			  		})
			  	})
			  },
			  nodeClic(val) {
			    this.dataurl=''
			    var data = new FormData;
			    data.append("downloadFileUri", val.url);
			    data.append("id",this.Roomdata.householdId);
			    data.append("type",2);
			    this.$http.post('api/auth/file/download', data, {responseType: 'blob'}).then((res) => {
			      if (res.headers['content-type'] == "application/octet-stream;charset=utf-8"||res.headers['content-type'] == "application/octet-stream;charset=UTF-8") {
			        //此处有个坑。这里用content保存文件流，最初是content=res，
			        //检查了下才发现，后端对文件流做了一层封装，所以将content指向res.data即可
			        //另外，流的转储属于浅拷贝，所以此处的content转储仅仅是便于理解，并没有实际作用=_=
			        const content = res.data
			        const type = {
			          xml: 'text/xml',
			          zip: 'application/zip',
			          doc: 'application/msword',
			          bin: 'application/octet-stream',
			          exe: 'application/octet-stream',
			          so: 'application/octet-stream',
			          dll: 'application/octet-stream',
			          pdf: 'application/pdf',
			          ai: 'application/postscript',
			          xls: 'application/vnd.ms-excel',
			          ppt: 'application/vnd.ms-powerpoint',
			          dir: 'application/x-director',
			          js: 'application/x-javascript',
			          swf: 'application/x-shockwave-flash',
			          xhtml: 'application/xhtml+xml',
			          xht: 'application/xhtml+xml',
			          mid: 'audio/midi',
			          midi: 'audio/midi',
			          mp3: 'audio/mpeg',
			          rm: 'audio/x-pn-realaudio',
			          rpm: 'audio/x-pn-realaudio-plugin',
			          wav: 'audio/x-wav',
			          bmp: 'image/bmp',
			          gif: 'image/gif',
			          jpeg: 'image/jpeg',
			          jpg: 'image/jpeg',
			          png: 'image/png',
			          css: 'text/css',
			          html: 'text/html',
			          htm: 'text/html',
			          txt: 'text/plain',
			          xsl: 'text/xml',
			          mpeg: 'video/mpeg',
			          mpg: 'video/mpeg',
			          avi: 'video/x-msvideo',
			          movie: 'video/x-sgi-movie',
			          xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
			        }
			        const blob = new Blob([content], { // 关键代码
			          type: type[val.url.split('.').pop().toLowerCase()]
			        }) //构造一个blob对象来处理数据
			        this.dataurl = window.URL.createObjectURL(blob)
			  	  this.Examine=true
			      }
			    });
			  },
			RoomC(){
					this.$nextTick(function() {
						//判断iframe是否存在，不存在则创建iframe
						var iframe = document.getElementById("print-iframe");
						var el = document.getElementById("RoomC");
						iframe = document.createElement('IFRAME');
						var doc = null;
						iframe.setAttribute("id", "print-iframe");
						iframe.setAttribute('style', 'position:absolute;width:0px;height:0px;left:-500px;top:-500px;');
						document.body.appendChild(iframe);
						doc = iframe.contentWindow.document;
						//这里可以自定义样式
						doc.write(
							'<style media="print">@page {size: auto;margin: 30mm;}.contractA{width: 100%;height: 100%;color: #000000;}span {word-break: break-all;border-bottom: 1px solid #000;min-width: 50px;display: inline-block;line-height: 3rem;text-align: center;text-indent: 0em;margin:0;line-height: 1.5rem}.contractA-title{width: 100%;text-align: center;font-size: 20px;font-weight: bolder;margin-bottom: 5mm;}.contractA-name{text-indent: 2em;line-height: 2rem;font-size: 18px;}.contractA-bottom{font-size: 18px;margin-top: 7mm;}.contractA-bottom-a{display: flex;}.contractA-bottom-a div{width: 50%;text-align: center;}.contractA-bottom-b{text-align: center;margin-bottom: 7mm;}.contractA-bottom-c{text-align: right;letter-spacing: 3rem;}</style>'
						); //解决出现页眉页脚和路径的问题
						doc.write('<div>' + el.innerHTML + '</div>');
						doc.close();
						iframe.contentWindow.focus();
						setTimeout(function() {
							iframe.contentWindow.print();
						}, 50) //解决第一次样式不生效的问题
						if (navigator.userAgent.indexOf("MSIE") > 0) {
							document.body.removeChild(iframe);
						}
					})
			},
		}
	}
</script>

<style scoped lang="less">
	.Room{
		width: 100%;
		height: 100%;
		padding: 0 2%;
		font-size: 15px;
		box-sizing: border-box;
		span {
			word-break: break-all;
			border-bottom: 1px solid #000;
			min-width: 50px;
			display: inline-block;
			line-height: 18px;
			text-align: center;
			text-indent: 0em;
		}
		.room-data{
			width: 100%;
			height: 100%;
			display: flex;
			li{
				width: 33.33%;
				height: 100%;
				border-right: 2px #000 dashed;
				padding: 1%;
				box-sizing: border-box;
				&:last-child{
					border-right: none;
				}
				.title{
					width: 100%;
					align-items: center;
					.title-top{
						width: 100%;
						display: flex;
						align-items: baseline;
						justify-content: space-between;
						h3{
							font-size: 16px;
							font-weight: 600;
							width: 45%;
							text-align: right;
							line-height: 1rem;
						}
						p{
							font-size: 12px;
							width: 45%;
							text-align: left;
						}
					}
					.title-name{
						text-align: center;
						font-size: 20px;
						color: #000;
						font-weight: 500;
						margin-bottom: 2rem;
					}
				}
				.dataname{
					td{
						border-bottom: 1px solid #000;
						border-right: 1px solid #000;
					}
					table{
						font-size: 12px;
						border-top: 1PX solid #000;
						border-left: 1PX solid #000;
					}
					.table-top{
						p{
							text-indent: 2em;
						}
						.table-top-right{
							width: 40%;
							margin-top: 3rem;
							margin-left: 50%;
							p{
								text-align: inherit;
								margin-bottom: 1rem;
							}
							div{
								text-align: end;
								letter-spacing: 5mm;
							}
						}
					}
						.table-buttom-right{
							width: 100%;
							margin-top: 6rem;
							p{
								text-indent: 2em;
							}
							ul{
								display: flex;
								width: 80%;
								li{
									width: 33.33%;
									margin: 0;
									border: none;
								}
							}
							div{
								text-align: end;
								letter-spacing: 5mm;
								width: 40%;
								margin-left: 50%;
							}
						}
					.dataname-neck{
						width: 100%;
						font-size: 14px;
						line-height: 1.5rem;
						p{
							margin: 0;
							width: 100%;
						}
					}
				}
				.remarks{
					font-size:12px;
					color: #000;
					font-weight: 600;
					width: 159%;
					// translate: -20% -20%;
					transform: scale(0.63) translate(-29.5%,-29.5%);
					p{
						text-indent: 2em;
					}
				}
			}
		}
	}
	.button-background .el-button{
		border-radius: 5px;
	}
	.SignAcontract{
		position: absolute;
		top: 0;
		right: 0;
		width: 100%;
		height: 100%;
		.indexbutton{
			position: absolute;
			top: 0;
			right: 0;
			width: 100%;
			height: 100%;
			background-color: #00000050;
			ul{
				position: fixed;
				z-index: 11;
				top: 40%;
				left: 25%;
				width: 50%;
				display: flex;
				justify-content: space-evenly;
				li{
					width: 100px;
					height: 150px;
					// background-image: linear-gradient(-225deg, #7DE2FC 0%, #B9B6E5 100%);
					background-image: linear-gradient(15deg, #13547a 0%, #80d0c7 100%);
					border-radius: 20px;
					line-height: 150px;
					color: #fff;
					font-size: 18px;
					text-align: center;
					cursor: pointer;
					&:nth-child(2){
						// background-image: linear-gradient(-225deg, #CBBACC 0%, #2580B3 100%);
						background-image: linear-gradient(to left, #BDBBBE 0%, #9D9EA3 100%), radial-gradient(88% 271%, rgba(255, 255, 255, 0.25) 0%, rgba(254, 254, 254, 0.25) 1%, rgba(0, 0, 0, 0.25) 100%), radial-gradient(50% 100%, rgba(255, 255, 255, 0.30) 0%, rgba(0, 0, 0, 0.30) 100%); background-blend-mode: normal, lighten, soft-light;
					}
					&:nth-child(3){
						// background-image: linear-gradient(-225deg, #B7F8DB 0%, #50A7C2 100%);
						background-image: linear-gradient(to top, #505285 0%, #585e92 12%, #65689f 25%, #7474b0 37%, #7e7ebb 50%, #8389c7 62%, #9795d4 75%, #a2a1dc 87%, #b5aee4 100%);
					}
				}
			}
		}
		.SignAcontract-content{
			position: fixed;
			top: 20%;
			right: 25%;
			z-index: 11;
			display: flex;
			justify-content: space-between;
			flex-wrap: wrap;
			width: 50%;
			height: 60%;
			.SignAcontract-content-right{
				border-radius: 5px;
				width: 100%;
				height: 100px;
				background-color: #fff;
				display: flex;
				justify-content: space-between;
				padding: 20px;
				box-sizing: border-box;
				/deep/.is-finish{
					color: #439dc1;
					border-color: #439dc1;
				}
				/deep/.is-process{
					color: #c0c4cc;
					border-color: #c0c4cc;
				}
				/deep/.el-step{
					// &:nth-child(1){
					// 	flex-basis: 25% !important;
					// 	.el-step__line{
					// 		right: -100%;
					// 	}
					// }
					// &:nth-child(2){
					// 	flex-basis: 50% !important;
					// 	.el-step__line{
					// 		right: -25%;
					// 	}
					// }
					// &:nth-child(3){
					// 	flex-basis: 25% !important;
					// }
				}
			}
			.SignAcontract-content-lent{
				width: 100%;
				height: calc(100% - 125px);
				background-color: #fff;
				border-radius: 5px;
				padding: 20px;
				box-sizing: border-box;
				overflow: auto;
				& {
					scrollbar-width: thin;
					scrollbar-color: #c1c1c1 #eee;
				}
				&::-webkit-scrollbar {
					width: 6px;
					background-color: #eee;
				}
				&::-webkit-scrollbar-thumb {
					background-color: #c1c1c1;
					&:hover {
						background-color: #a8a8a8;
					}
					&:active {
						background-color: #787878;
					}
				}
				.Upload{
					width: 100%;
					height: 100%;
					.Upload-top{
						height: 38px;
						display: flex;
						justify-content: space-between;
						.button-background {
								margin-right: 10px;
							}
					}
					.Upload-butom{
						width: 100%;
						height: 100%;
						// height: calc(100% - 38px);
						.Upload-butom-tow{
							width: 100%;
							height: 40px;
							display: flex;
							h3{
								font-size: 18px;
								color: #439dc1;
								line-height: 40px;
								&::before{
									content: "*";
									color: #f56c6c;
									margin-right: 5px;
								}
							}
						}
						.Upload-butom-ont{
							width: 100%;
							height: calc(50% -20px);
							.tc-middle-add {
								display: flex;
								h3{
									font-size: 18px;
									color: #439dc1;
									margin: 15px 0;
									&::before{
										content: "*";
										color: #f56c6c;
										margin-right: 5px;
									}
								}
								h4{
									font-size: 18px;
									color: #439dc1;
									margin: 15px 0;
								}
							}
							.tc-middle-empty{
								width: 100%;
								img{
									margin: 0 auto;
									display: block;
								}
							}
							.tc-middle-name{
								width: 100%;
								ul{
									width: 100%;
									display: flex;
									li{
										width: 100px;
										height: 110px;
										cursor: pointer;
										margin: 0 10px;
										position: relative;
										border: 1px solid #dedede;
										border-radius: 10px;
										padding: 10px;
										box-sizing: border-box;
										&:hover{
											i{
												display: block;
											}
										}
										i{
											position: absolute;
											top: -9px;
											right: -9px;
											color: #FF4500;
											font-size: 25px;
											display: none;
										}
										img{
											width: 55px;
											margin: 0 auto;
											display: block;
										}
										div{
											width: 100%;
											display: block;
											text-align: center;
											color: #5e5e5e;
											margin: 2px;
											margin-top: 8px;
											overflow: hidden;
											text-overflow: ellipsis;
											word-break: break-all;
											font-size: 14px;
											display: inline-block;
											display: -webkit-box !important;
											-webkit-line-clamp: 1;
											-webkit-box-orient: vertical;
											span {
											  display: initial;
											  white-space: break-spaces;
											}
										}
										.add{
											width: 100%;
											height: 100%;
											.add-top{
												margin: 0 auto;
												width: 80%;
												height: 60%;
												border: 2px dotted #c6c6c6;
												border-radius: 5px;
												position: relative;
												span{
													display: inline;
													position: absolute;
													top: calc(50% - 15px);
													left:  calc(50% - 15px);
													font-size: 30px;
													color: #bbb;
												}
											}
											.add-buttom{
												color: #5e5e5e;
											}
										}
									}
								}
							}
						}
					}
				}
				.SignAcontract-content-lent-data{
					width: 100%;
					height: 1000px;
					span {
						word-break: break-all;
						border-bottom: 1px solid #000;
						min-width: 50px;
						display: inline-block;
						line-height: 18px;
						text-align: center;
						text-indent: 0em;
					}
					td{
						border-bottom: 1px solid #000;
						border-right: 1px solid #000;
					}
					.contractA {
						width: 100%;
						height: calc(100% - 40px);
						padding: 3%;
						font-size: 15px;
						box-sizing: border-box;
						.contractA-title {
							width: 100%;
							text-align: center;
							font-size: 20px;
							font-weight: bolder;
							margin-bottom: 1%;
						}
					
						.contractA-name {
							text-indent: 2em;
							line-height: 2em;
							font-size: 18px;
						}
					
						.contractA-bottom {
							margin-top: 2rem;
							font-size: 18px;
							.contractA-bottom-a {
								display: flex;
								line-height: 2rem;
								div {
									width: 50%;
									text-align: center;
								}
							}
					
							.contractA-bottom-b {
								text-align: center;
								line-height: 2rem;
								margin-bottom: 2rem;
							}
					
							.contractA-bottom-c {
								text-align: right;
								letter-spacing: 2rem;
							}
						}
					}
				}
				.toexamine{
					height: 500px;
				}
			}
		}
	}
	.FarmerPreferenceCss{
		width: 100%;
		p{
			font-size: 16px;
			color: #439dc1;
		}
		.FarmerPreferenceCss-top{
			width: 100%;
			
		}
		.FarmerPreferenceCss-buttom{
			ul{
				li{
					display: flex;
					margin: 5px 0;
					span{
						padding: 5px;
					}
					.name{
						padding: 5px;
						border-radius: 5px;
						background-color: #e6a23c;
						color: #fff;
					}
					.ont{
						color: #f56c6c;
					}
					.tow{
						color: #78c951;
					}
				}
			}
		}
	}
</style>