<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8"/>
<title>企业信息管理-查看</title>
<link rel="icon" type="image/x-icon" href="/login/img/favicon.ico">
<div th:substituteby="common/resourceMainHeader :: resourceMainHeader"></div>
<link rel="stylesheet" href="/css/external/enterPriseBusiness/enterPriseBusiness.css" type="text/css">
<!--[if !IE]> -->
		<script src="/js/external/jquery-2.1.4.min.js"></script>
	<!-- <![endif]-->
	<!--[if IE]>
		<script src="/js/external/jquery-1.11.3.min.js"></script>
	<![endif]-->
	<script src="/js/external/zui.min.js"></script>
	<script src="/js/base/base.js"></script>
	<style>
		#viewCustomerMarketContent .row{
			margin: 0 0.2rem 0.4rem 0;
		}
		#viewCustomerMarketContent .customerViewTitle{
			font-size:0.12rem !important;
			font-weight:normal !important;
			padding-left:0.15rem !important;
		}
	</style>
</head>
<body>
	<div class="base-extend">
		<ol class="breadcrumb" style="margin-top:0;">
		  	<li>企业信息管理</li>
		  	<li>进口方管理</li>
		  	<li>查看</li>
		</ol>
		<button class="btn btn-white btn-info colorbtn" style="position:absolute;right:0.2rem;top:0.05rem;cursor:pointer;" onclick="window.close();">关闭</button>
		<div class="detailContentBox" style="top:0.55rem;bottom:0.1rem;">
			<div class="form-horizontal">
				 <input type="hidden" name="id" th:value="${entForeignInfo?.id}">
					<div class="modal-content newTabAddUpdateBox" id="viewCustomerMarketContent" style="padding:0;top:0;bottom:0;border:none;">
					<div class="row">
						<table>
							<tbody>
								<tr>
									<td colspan="4">
										<span class="detailContentBox-tabletitle">企业基本信息</span>
									</td>
								</tr>
							<tr>
								<td width="15%">
									<span class="">进口方</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" readonly th:value="${entForeignInfo?.enterpriseName}" 
									id="importer" class="form-control">
								</td>
								<td width="15%">
									<span class="">进口编号</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" th:value="${entForeignInfo?.enterpriseNum}" 
									id="importerNo" readonly class="form-control">
								</td>
							</tr>
							<tr>
								<td width="15%">
									<span class="">国别</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" readonly
									 th:value="${entForeignInfo?.countryName}" id="foreignCountryName" class="form-control">
								</td>
								<td width="15%">
									<span class="">国别代码</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" readonly
									th:value="${entForeignInfo?.countryCode}" id="foreignCountryCode" class="form-control">
								</td>
							</tr>
							<tr>
								<td width="15%">
									<span>注册地址</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" readonly 
									th:value="${entForeignInfo?.registeredAddress}"
									id="foreignRegisteredAddress" class="form-control">
								</td>
								<td width="15%">
									<span>经营地址</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" readonly
									th:value="${entForeignInfo?.operatingAddress}" 
									id="foreignOperatingAddress" class="form-control">
								</td>
							</tr>
							<tr>
								<td width="15%">
									<span>网址</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" readonly
									th:value="${entForeignInfo?.website}" 
									id="foreignRegisteredAddress" class="form-control">
								</td>
								<td width="15%">
									<span>法定代表人</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" readonly 
									th:value="${entForeignInfo?.legalRepresentative}"
									id="foreignWebsiteAddress" class="form-control">
								</td>
							</tr>
						</tbody></table>
					</div>
					<div class="row">
						<table class="employeeList_table">
							<tbody>
								<tr>
									<td colspan="8">
										<span class="detailContentBox-tabletitle">联系人信息</span>
									</td>
								</tr>
								<tr>
									<td width="8%"><span>序号</span></td>
									<td width="10%"><span class="">联系人</span></td>
									<td width="15%"><span>公司</span></td>
									<td width="10%"><span>职位</span></td>
									<td width="12%"><span>E-mail</span></td>
									<td width="15%"><span>联系电话</span></td>
									<td width="15%"><span>住址</span></td>
									<td width="15%"><span>备注</span></td>
								</tr>
								<tr class="trBase" th:each="item,itemStat:${entForeignInfo?.employeeList}" th:attr="data-index=${itemStat?.index}">
									<input type="hidden" class="employeeId" th:name="'employeeList['+${itemStat?.index}+'].id'" th:value="${item?.id}">
									<td width="8%" th:text="${itemStat?.index}+1">
									</td>
									<td width="10%" style="background-color:#fff;" th:text="${item?.empName}" >
									</td>
									<td width="15%" style="background-color:#fff;" th:text="${item.companyName}" >
									</td>
									<td width="10%" style="background-color:#fff;" th:text="${item.empPosition}">
									</td>
									<td width="12%" style="background-color:#fff;" th:text="${item.email}">
									</td>
									<td width="15%" style="background-color:#fff;" th:text="${item.contactNumber}">
									</td>
									<td width="15%" style="background-color:#fff;" th:text="${item.address}">
									</td>
									<td width="15%" style="background-color:#fff;" th:text="${item.remark}">
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<script>
$(function(){
	if( $('.trBase').length<=0 ){
		$('.employeeList_table').append('<tr><td colspan="8" style="background:#fff;">无联系人</td></tr>')
	}
})
</script>
</html>