<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8"/>
<title>企业信息管理-进口方-修改</title>
<link rel="stylesheet" href="/css/external/enterPriseBusiness/enterPriseBusiness.css" type="text/css">
</head>
<body>
	<div class="base-extend">
		<div class="addHeader">
			<ol class="breadcrumb" style="margin-top:0;">
				<i class="icon-chevron-sign-left newBackBtn"></i>
			  	<li>企业信息管理</li>
			  	<li>进口方管理</li>
			  	<li>修改</li>
			</ol>
		</div>
		<div class="detailContentBox">
			<p class="detailContentBox-title">修改</p>
			<input type="hidden" id="operateType" value="update">
			<form class="form-horizontal businessClass-form" id="foreignInfoForm" autocomplete="off">
				 <input type="hidden" name="id" th:value="${entForeignInfo?.id}">
				 <div class="newTabAddUpdateBox">
					<div class="row">
						<select tag:option="countryName" class="countryOriginalOption" style="display:none;"></select>
						<ul class="allcompany" style="display:none;"></ul>
						<table>
							<tbody>
								<tr>
									<td colspan="4">
										<span class="detailContentBox-tabletitle">企业基本信息</span>
									</td>
								</tr>
							<tr>
								<td width="15%">
									<span class="required_fileds_star">进口方</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" name="enterpriseName" th:value="${entForeignInfo?.enterpriseName}" 
									readonly maxlength="100" id="importer" class="form-control nowrite">
								</td>
								<td width="15%">
									<span class="required_fileds_star">进口编号</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" name="enterpriseNum" th:value="${entForeignInfo?.enterpriseNum}" 
									readonly class="form-control nowrite">
								</td>
							</tr>
							<tr>
								<td width="15%">
									<span class="required_fileds_star">国别</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" name="countryName" id="foreignCountryName" class="form-control" readOnly th:value="${entForeignInfo?.countryName}">
									<div class="foreignCountryListBox entCustomerListBox">
										<input type="text" class="form-control" style="margin:0.05rem auto;width:97%;" placeholder="可输入关键词查询企业">
										<ul></ul>
									</div>
									<input type="hidden" id="companyId" th:value="${entForeignInfo?.country?.id}"> 
								</td>
								<td width="15%">
									<span class="required_fileds_star">国别代码</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" name="countryCode" th:value="${entForeignInfo?.countryCode}" id="foreignCountryCode" class="form-control" readOnly>
								</td>
							</tr>
							<tr>
								<td width="15%">
									<span>注册地址</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" maxlength="100" name="registeredAddress" 
									th:value="${entForeignInfo?.registeredAddress}"
									id="foreignRegisteredAddress" class="form-control">
								</td>
								<td width="15%">
									<span>经营地址</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" maxlength="100" name="operatingAddress"
									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" maxlength="100" name="website" 
									th:value="${entForeignInfo?.website}" 
									id="foreignRegisteredAddress" class="form-control">
								</td>
								<td width="15%">
									<span>法定代表人</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" maxlength="100" name="legalRepresentative" 
									th:value="${entForeignInfo?.legalRepresentative}"
									id="foreignWebsiteAddress" class="form-control">
								</td>
							</tr>
						</tbody></table>
					</div>
					<div class="row">
						<table class="employeeList_tableFake" style="display:none;">
							<tr class="trBase">
								<td width="8%" style="background-color:#fff;">
									<span>1</span>
								</td>
								<td width="10%" class="enter">
									<input type="text" maxlength="100" class="form-control empName">
								</td>
								<td width="12%" class="enter">
									<input type="text" maxlength="100" class="form-control companyName">
								</td>
								<td width="10%" class="enter">
									<input type="text" maxlength="100" class="form-control empPosition">
								</td>
								<td width="12%" class="enter">
									<input type="text" maxlength="30" class="form-control emails">
								</td>
								<td width="12%" class="enter">
									<input type="text" maxlength="30" class="form-control contactNumber">
								</td>
								<td width="12%" class="enter">
									<input type="text" maxlength="100" class="form-control address">
								</td>
								<td width="12%" class="enter">
									<input type="text" maxlength="100" class="form-control remark">
								</td>
								<td width="12%" class="enter">
									<span class="negativeInformationPlus">+增加</span>
									<span class="negativeInformationReduce">-删除</span>
								</td>
							</tr>
						</table>
					
						<table class="employeeList_table">
							<tbody>
								<tr>
									<td colspan="9">
										<span class="detailContentBox-tabletitle">联系人信息</span>
									</td>
								</tr>
								<tr>
									<td width="8%"><span>序号</span></td>
									<td width="10%"><span>联系人</span></td>
									<td width="12%"><span>公司</span></td>
									<td width="10%"><span>职位</span></td>
									<td width="12%"><span>E-mail</span></td>
									<td width="12%"><span>联系电话</span></td>
									<td width="12%"><span>住址</span></td>
									<td width="12%"><span>备注</span></td>
									<td width="12%"><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%" style="background-color:#fff">
										<span th:text="${itemStat?.index}+1"></span>
									</td>
									<td width="10%" class="enter">
										<input type="text" maxlength="100" th:value="${item?.empName}" class="form-control empName">
									</td>
									<td width="12%" class="enter">
										<input type="text" maxlength="100" th:value="${item.companyName}" class="form-control companyName">
									</td>
									<td width="10%" class="enter">
										<input type="text" maxlength="100" th:value="${item.empPosition}" class="form-control empPosition">
									</td>
									<td width="12%" class="enter">
										<input type="text" maxlength="30" th:value="${item.email}" class="form-control emails">
										<span class="error" style="display:none;">请输入正确的email地址</span>
									</td>
									<td width="12%" class="enter">
										<input type="text" maxlength="30" th:value="${item.contactNumber}" class="form-control contactNumber">
									</td>
									<td width="12%" class="enter">
										<input type="text" maxlength="100" th:value="${item.address}" class="form-control address">
									</td>
									<td width="12%" class="enter">
										<input type="text" maxlength="100" th:value="${item.remark}" class="form-control remark">
									</td>
									<td width="12%" class="enter">
										<span class="negativeInformationPlus">+增加</span>
										<span class="negativeInformationReduce">-删除</span>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="yk_addBtns yk_addNewMsg newTabAddUpdateBtnBox">
					<button class="btn btn-white btn-info colorbtn save">保存</button>
					<button class="btn btn-white btn-info btn-cancel">关闭</button>
				</div>
			</form>
		</div>
	</div>
</body>
<script src="/js/enterPriseBusiness/foreign/enterpriseForeignInfoAddUpdate.js"></script>
</html>