<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/fns.tld" prefix="fns" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" /><meta http-equiv="X-UA-Compatible" content="IE=9" />
		<meta name="keywords" content="保险保函、电子保函、保证保险、保函开具、工程投标保证保险、建设合同履约保证保险、业主合同款支付保证保险、建设工程质量保证保险、建筑业企业人工工资支付保证保险、海关税保险、诉讼财产保全责任保险">
		<meta name="description" content="百联保是百川信（厦门）网络信息服务有限公司基于金融创新并响应“互联网＋”计划搭建的第三方金融服务平台。 ">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<title>百联保-信用险业务管理-信用限额管理</title>
		
		<link type="text/css" rel="stylesheet" href="<c:url value='/resources/versions-2.0/dist/css/bootstrap.min.css'/>"/> 
		<link type="text/css" rel="stylesheet" href="<c:url value='/resources/versions-2.0/dist/css/public.css'/>"/>
		<link type="text/css" rel="stylesheet" href="<c:url value='/resources/versions-2.0/dist/css/account/my-account.css'/>" />
		<link type="text/css" rel="stylesheet" href="<c:url value='/resources/versions-2.0/dist/css/insure/write-application.css'/>" />
		
		<!--[if lt IE 9]> 
	      <script src="<c:url value='/resources/versions-2.0/js/html5shiv/3.7.2/html5shiv.min.js' />"></script>
	      <script src="<c:url value='/resources/versions-2.0/js/respond.js/1.4.2/respond.min.js' />"></script>
	   	<![endif]-->
	</head>
	<body>
		<div class="container-fluid">
			<jsp:include page="../../pcHeader.jsp"/>
			<div class="mar-content mt-80">
					<div class="container w100-mt20"><!-- container start --> 
				<div class="nav-list" >
					<div class="row">
						<div class="col-sm-4 col-sm-4">
							<p><i class="glyphicon glyphicon-ok pull-left"></i><span class=" pull-left">选择保单</span></p>
						</div>
						<div class="col-sm-4 col-sm-4">
							<p><i class="pull-left">2</i><span class="pull-left">限额查询</span></p>
						</div>
						<div class="col-sm-4 col-sm-4 active">
							<p><i class="pull-left">3</i><span class="pull-left">申请/修改</span></p>
						</div> 
					</div>
				</div>
				<div class="message-war"><!-- message-war start --> 
					<div class="w-95-auto"><!-- w-95-auto start --> 
					<form id="CreditAmountForm" action="<c:url value='/exports/credit/saveCreditAmount?ACCESS_TOKEN=${ACCESS_TOKEN}'/>" method="post">
						<div class="clearfix">
							<div class="clearfix">
								<div class="col-sm-4 col-xs-4">
									<p>保单号</p>
									<input type="text" class="form-control"   readonly="readonly" value="${dto.vo.external_reference }">
								</div>
								<div class="col-sm-4 col-xs-4">
									<p>被保险人</p>
									<select class="form-control" style="background:url(images/public/select-btn.jpg) 97% no-repeat  #fafafc;">
										<option>${dto.vo.applicant_name }</option>
									</select> 
								</div>
								<div class="col-sm-4 col-xs-4">
									<p>买家代码<%--<a href="<c:url value='/exports/credit/findBuyers'/>" class="ml-14">查找买家</a>--%></p>
									<input type="text" class="form-control"  name="code"  readonly="readonly" value="${buyersQuota.code }" placeholder="请输入买家代码">
								</div>
							</div>
							<!-- 买家信息块  -->
								<div>
									<div class="mess-title"><h3>买家信息</h3></div>
									<div class="clearfix"> 
										<div class="col-sm-4 col-xs-4">
											<p>*国家</p>
											<input type="text" class="form-control" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${buyersQuota.country}"</c:if>>

										<%--<select class="form-control" name="country"  readonly="readonly" <c:if test="${not empty buyersQuota }">value="${buyersQuota.country}"</c:if>  style="background:url(images/public/select-btn.jpg) 97% no-repeat  #fafafc;">--%>
												<%--<c:forEach items="${countryList}"  var="c">--%>
													<%--<option value="${c.value}" <c:if test="${c.value  eq buyersQuota.country }">selected="selected"</c:if> >${c.value}</option>--%>
												<%--</c:forEach>--%>


											<%--</select> --%>
										</div>
										<div class="col-sm-4 col-xs-4">
											<p>州/地区</p>
											<input type="text" class="form-control" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${buyersQuota.address}"</c:if>>

										<%--<select class="form-control" name="address" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${buyersQuota.address}"</c:if>  style="background:url(images/public/select-btn.jpg) 97% no-repeat  #fafafc;">--%>
												<%--<option>福建省</option>--%>

											<%--</select>--%>
										</div>
										<div class="col-sm-4 col-xs-4"> 
											<p>*所在城市</p> 
											<input type="text" class="form-control" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${buyersQuota.city}"</c:if>   name="city"  placeholder="">
										</div>
									</div>
									<div class="clearfix">
										<div class="col-sm-4 col-xs-4"> 
											<p>*买家名称</p> 
											<input type="text" class="form-control"  readonly="readonly"<c:if test="${not empty buyersQuota }">value="${buyersQuota.customer_name}"</c:if> name="customer_name"    placeholder="">
										</div>
										<div class="col-sm-4 col-xs-4">
											<p>证件号码</p>
											<label class="col-sm-5 col-xs-5 pl-0">
												<%--<select class="form-control" name="idType" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${buyersQuota.idType}"</c:if>  style="background:url(images/public/select-btn.jpg) 97% no-repeat  #fafafc;">--%>
													<%--<option value="">身份证</option>--%>
													<%----%>
												<%--</select> --%>
<%--
											<input type="text" class="form-control" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${fns:getDictLabel (buyersQuota.idType,"iDType","")}"</c:if>>
--%>
													<option value="4">组织机构代码证</option>
											</label>
											<label class="col-sm-7 col-xs-7">
												<input type="text" name="id_no" class="form-control" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${buyersQuota.id_no}"</c:if>  placeholder="">
											</label>
										</div>
										<div class="col-sm-4 col-xs-4"> 
											<p>街道名称</p> 
											<input type="text" name="street"  class="form-control" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${buyersQuota.street}"</c:if>  placeholder="">
										</div> 
									</div>
									<div class="clearfix">
										<div class="col-sm-4 col-xs-4"> 
											<p>门牌号</p> 
											<input type="text" name="house_num" class="form-control" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${buyersQuota.house_num}"</c:if>  placeholder="">
										</div>
										<div class="col-sm-4 col-xs-4">
											<p>公司级别</p>
											<input type="text" class="form-control" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${fns:getDictLabel (buyersQuota.video_level,"accountType","")}"</c:if>>

										<%--<select class="form-control" name="video_level" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${buyersQuota.video_level}"</c:if>  style="background:url(images/public/select-btn.jpg) 97% no-repeat  #fafafc;">--%>
												<%--<c:forEach items="${fns:getDictList('accountType')}" var="type">--%>
													<%--<option value="${type.value}">${type.label}</option>--%>
												<%--</c:forEach>--%>
											<%--</select> --%>
										</div>
										<div class="col-sm-4 col-xs-4"> 
											<p>行业类别</p>
											<input type="text" class="form-control" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${fns:getDictLabel (buyersQuota.vocation,"enterpriseType","")}"</c:if>>
											<%--<select class="form-control" name="vocation" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${buyersQuota.vocation}"</c:if>  style="background:url(images/public/select-btn.jpg) 97% no-repeat  #fafafc;">--%>
												<%--<c:forEach items="${fns:getDictList('enterpriseType')}" var="type">--%>
													<%--<option value="${type.value}">${type.label}</option>--%>
												<%--</c:forEach>--%>
											<%----%>
											<%--</select> --%>
										</div> 
									</div>
									<div class="clearfix">
										<div class="col-sm-4 col-xs-4"> 
											<p>注册资本</p> 
											<input type="text" class="form-control" name="capital" readonly="readonly"<c:if test="${not empty buyersQuota }">value="${buyersQuota.capital}"</c:if>  placeholder="">
										</div>
										<div class="col-sm-4 col-xs-4">
											<p>员工数</p>
											<input type="text" class="form-control" name="emp_num" readonly="readonly"<c:if test="${not empty buyersQuota }">value="${buyersQuota.emp_num}"</c:if>  placeholder="">
										</div>
										<div class="col-sm-4 col-xs-4"> 
											<p>联系人</p> 
											<input type="text" class="form-control" name="linkman" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${buyersQuota.linkman}"</c:if>  placeholder="">
										</div> 
									</div>
									<div class="clearfix">
										<div class="col-sm-4 col-xs-4"> 
											<p>电话号码</p> 
											<input type="text" class="form-control"  name="phone" readonly="readonly" <c:if test="${not empty buyersQuota }">value="${buyersQuota.phone}" </c:if>  placeholder="">
										</div> 
									</div>
								</div>
								<!--买家信息块     -->
							<div class="mess-title"><h3>限额申请信息</h3></div>
							<div class="clearfix">
								<div class="col-sm-4 col-xs-4"> 
									<p>申请限额类型</p> 
									<div class="col-sm-12 col-xs-12">
										<div class="row">
										  <c:forEach items="${ApplicationLimitTypes }" var="applicationLimitType">
								
											<div class="col-sm-4 col-xs-4 rad-io">
												<span><input type="radio"  <c:if test="${buyersQuota.limit_type  eq applicationLimitType.value }">checked="checked" </c:if> name="limit_type" value="${applicationLimitType}" id="radio_${applicationLimitType.value}"><label for="radio_${applicationLimitType.value}" class="pull-left"></label><strong class="pull-left lh-17">${applicationLimitType.label}</strong></span>
											</div>
											</c:forEach>
										</div>
									</div> 
								</div>
								<div class="col-sm-4 col-xs-4">
									<p>申请限额USD</p>
									<input type="text" name="amount_requested" readonly="readonly" value="${buyersQuota.amount_requested}" class="form-control" >
								</div>
								<div class="col-sm-4 col-xs-4">
									<p>结算方式</p>
										<select class="form-control"  name="payment_terms" style="background:url(images/public/select-btn.jpg) 97% no-repeat  #fafafc;">
										 <c:forEach items="${SettlementTypes }" var="settlementType">
											<option value="${settlementType.value }" <c:if test="${buyersQuota.payment_terms  eq settlementType.value }">selected="selected"</c:if> >${settlementType.label}</option>
										  </c:forEach>
									</select> 
								</div>
							</div>
							<div class="clearfix">
								<div class="col-sm-4 col-xs-4">
									<p>信用期限（天）默认为150天</p>
									<input type="text" class="form-control" name="credit_period" readonly="readonly"  value="${buyersQuota.credit_period}">
								</div> 
								<div class="col-sm-8 col-xs-8">
									<p>备注</p> 
									<textarea  class="text-w form-control" name="remark" readonly="readonly" >${buyersQuota.remark}</textarea>
								</div> 
								<div class="next-step">
									<div class="col-sm-3 col-xs-3 pull-right mt-20"> 
										<a href="<c:url value='/exports/credit/limitQuery/${buyerdto.vo.oid}?ACCESS_TOKEN=${ACCESS_TOKEN}'/>" class="ns-btn">返回</a>
									</div>
								</div>
							</div>
						</div> 
					</form>
					</div><!-- w-95-auto end -->
				</div><!-- message-war end --> 
			</div><!-- container end --> 
			</div><!-- mar-content 右边内容块 end -->
		</div>
	</body>
	
</html>
<script type="text/javascript">
choiseMenu("shipping01");
</script>

