<%@ 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="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!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/insure/write-application.css' />" /> 
		<link type="text/css" rel="stylesheet" href="<c:url value='/resources/versions-2.0/dist/css/insure/fileinput.css' />" /> 
	</head>
<body style="background: rgba(244,245,246,1);">
<jsp:include page="../../../index/multi_h.jsp"/>

<div class="container" style="padding-bottom: 50px; padding-top: 20px;"><!-- container start -->
	<%--<ol class="breadcrumb">
	  <li><a href="<c:url value='/'/>">首页</a></li>
	  <li><a href="<c:url value='/synopsis/product/productAllView'/>">产品列表</a></li>
	  <li><a href="<c:url value='/insurance/product/productInfo/${dto.product_oid}'/>">产品详情</a></li>
	  <li class="active">投保</li>
	</ol>    	--%>
	<div class="nav-list">
		<div class="row w-80-auto">
			<div class="col-sm-3 col-sm-4 active">
				<p><i class="glyphicon glyphicon-ok pull-left"></i><span class=" pull-left">填写保险信息</span></p>
			</div>
			<div class="col-sm-3 col-sm-4">
				<p><i class="pull-left">2</i><span class="pull-left">确认投保信息</span></p>
			</div>
			<div class="col-sm-3 col-sm-3">
				<p><i class="pull-left">3</i><span class="pull-left">投保信息审核</span></p>
			</div>
			<div class="col-sm-3 col-sm-3 pull-right">
				<p><i class="pull-left">4</i><span class="pull-left"> 缴费通知</span></p>
			</div>
		</div>
	</div>
	<form class="form-horizontal form-create-item"  action="<c:url value='/insurance/customs/policy/confirmPage?ACCESS_TOKEN=${ACCESS_TOKEN}'/>" method="post" id="policyInfoForm">
       	<input type="hidden" name="oid" id="policyOid" value="${dto.oid}"/>
		<input type="hidden" name="product_id" id="product_oid" value="${not empty dto.product_oid ? dto.product_oid : not empty pd.oid ? pd.oid : ''}"/>
		<div class="message-war"><!-- message-war start -->
			<div class="title-war"><h3>4.应收账款余额分布 Distribution of A/R of Debtors</h3></div>
			<div class="row w-95-auto"><!-- w-95-auto start -->
				<div class="col-sm-3 col-xs-3">
					<p>*截止日期:As of:</p>
					<input Data-Val="Required" placeholder="" name="ar_as_of" id="ar_asOf" value="${fn:replace(vo.ar_as_of, ' 00:00:00', '')}" class="laydate-icon form-control">
				</div>
				<div class="clear"></div>
				<div class="clearfix mt-20">
					<div class="col-sm-6 col-xs-6 text-center">
						<strong>内贸 Domestic</strong>
					</div>
					<div class="col-sm-6 col-xs-6 text-center">
						<strong>出口  Export</strong>
					</div>
				</div>
				<div class="clearfix">
					<div class="col-sm-3 col-xs-3">
					<p class="text-center">未偿债务总额<br/>Total Outstanding</p>
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center">债务人数量<br/>No. of Buyers</p>
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center">未偿债务<br/>Amount Outstanding</p>
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center">*债务人数量<br/>No. of Buyers</p>
					</div>
					<div class="col-sm-3 col-xs-3">
						<p class="text-center">*未偿债务总额<br/>Total Outstanding</p>
					</div>
				</div>

				<div class="clearfix">
				<input type="hidden" name="arDebtorsList[0].oid" value="${vo.arDebtorsList[0].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
					<input Data-Val="Point" type="text" name="arDebtorsList[0].domestic_total" id="ar_domesticTotal_1" value="${vo.arDebtorsList[0].domestic_total}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num" type="text" name="arDebtorsList[0].domestic_buyers" id="ar_domesticBuyers_1" value="${vo.arDebtorsList[0].domestic_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">1-10,000</p>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num Required" type="text" name="arDebtorsList[0].export_buyers" id="ar_exportBuyers_1" value="${vo.arDebtorsList[0].export_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="arDebtorsList[0].export_total" id="ar_exportTotal_1" value="${vo.arDebtorsList[0].export_total}" class="form-control" placeholder="" />
					</div>

				</div>
				<div class="clearfix">
				<input type="hidden" name="arDebtorsList[1].oid" value="${vo.arDebtorsList[1].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point" type="text" name="arDebtorsList[1].domestic_total" id="ar_domesticTotal_2" value="${vo.arDebtorsList[1].domestic_total}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num" type="text" name="arDebtorsList[1].domestic_buyers" id="ar_domesticBuyers_2" value="${vo.arDebtorsList[1].domestic_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">10,001-20,000</p>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num Required" type="text" name="arDebtorsList[1].export_buyers" id="ar_exportBuyers_2" value="${vo.arDebtorsList[1].export_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="arDebtorsList[1].export_total" id="ar_exportTotal_2" value="${vo.arDebtorsList[1].export_total}" class="form-control" placeholder="" />
					</div>

				</div>
				<div class="clearfix">
				<input type="hidden" name="arDebtorsList[2].oid" value="${vo.arDebtorsList[2].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point" type="text" name="arDebtorsList[2].domestic_total" id="ar_domesticTotal_3" value="${vo.arDebtorsList[2].domestic_total}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num" type="text" name="arDebtorsList[2].domestic_buyers" id="ar_domesticBuyers_3" value="${vo.arDebtorsList[2].domestic_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">20,001-50,000</p>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num Required" type="text" name="arDebtorsList[2].export_buyers" id="ar_exportBuyers_3" value="${vo.arDebtorsList[2].export_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="arDebtorsList[2].export_total" id="ar_exportTotal_3" value="${vo.arDebtorsList[2].export_total}" class="form-control" placeholder="" />
					</div>

				</div>
				<div class="clearfix">
				<input type="hidden" name="arDebtorsList[3].oid" value="${vo.arDebtorsList[3].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point" type="text" name="arDebtorsList[3].domestic_total" id="ar_domesticTotal_4" value="${vo.arDebtorsList[3].domestic_total}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num" type="text" name="arDebtorsList[3].domestic_buyers" id="ar_domesticBuyers_4" value="${vo.arDebtorsList[3].domestic_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">50,001-100,000</p>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num Required" type="text" name="arDebtorsList[3].export_buyers" id="ar_exportBuyers_4" value="${vo.arDebtorsList[3].export_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="arDebtorsList[3].export_total" id="ar_exportTotal_4" value="${vo.arDebtorsList[3].export_total}" class="form-control" placeholder="" />
					</div>

				</div>
				<div class="clearfix">
				<input type="hidden" name="arDebtorsList[4].oid" value="${vo.arDebtorsList[4].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point" type="text" name="arDebtorsList[4].domestic_total" id="ar_domesticTotal_5" value="${vo.arDebtorsList[4].domestic_total}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num" type="text" name="arDebtorsList[4].domestic_buyers" id="ar_domesticBuyers_5" value="${vo.arDebtorsList[4].domestic_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">100,001-500,000</p>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num Required" type="text" name="arDebtorsList[4].export_buyers" id="ar_exportBuyers_5" value="${vo.arDebtorsList[4].export_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="arDebtorsList[4].export_total" id="ar_exportTotal_5" value="${vo.arDebtorsList[4].export_total}" class="form-control" placeholder="" />
					</div>

				</div>
				<div class="clearfix">
				<input type="hidden" name="arDebtorsList[5].oid" value="${vo.arDebtorsList[5].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point" type="text" name="arDebtorsList[5].domestic_total" id="ar_domesticTotal_6" value="${vo.arDebtorsList[5].domestic_total}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num" type="text" name="arDebtorsList[5].domestic_buyers" id="ar_domesticBuyers_6" value="${vo.arDebtorsList[5].domestic_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">500,001-1,000,000</p>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num Required" type="text" name="arDebtorsList[5].export_buyers" id="ar_exportBuyers_6" value="${vo.arDebtorsList[5].export_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="arDebtorsList[5].export_total" id="ar_exportTotal_6" value="${vo.arDebtorsList[5].export_total}" class="form-control" placeholder="" />
					</div>

				</div>
				<div class="clearfix">
				<input type="hidden" name="arDebtorsList[6].oid" value="${vo.arDebtorsList[6].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point" type="text" name="arDebtorsList[6].domestic_total" id="ar_domesticTotal_7" value="${vo.arDebtorsList[6].domestic_total}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num" type="text" name="arDebtorsList[6].domestic_buyers" id="ar_domesticBuyers_7" value="${vo.arDebtorsList[6].domestic_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">1,000,001-5,000,000</p>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num Required" type="text" name="arDebtorsList[6].export_buyers" id="ar_exportBuyers_7" value="${vo.arDebtorsList[6].export_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="arDebtorsList[6].export_total" id="ar_exportTotal_7" value="${vo.arDebtorsList[6].export_total}" class="form-control" placeholder="" />
					</div>

				</div>
				<div class="clearfix">
					<input type="hidden" name="arDebtorsList[7].oid" value="${vo.arDebtorsList[7].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point" type="text" name="arDebtorsList[7].domestic_total" id="ar_domesticTotal_8" value="${vo.arDebtorsList[7].domestic_total}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num" type="text" name="arDebtorsList[7].domestic_buyers" id="ar_domesticBuyers_8" value="${vo.arDebtorsList[7].domestic_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">5,000,000-∞</p>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Num Required" type="text" name="arDebtorsList[7].export_buyers" id="ar_exportBuyers_8" value="${vo.arDebtorsList[7].export_buyers}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="arDebtorsList[7].export_total" id="ar_exportTotal_8" value="${vo.arDebtorsList[7].export_total}" class="form-control" placeholder="" />
					</div>

				</div>
				<div class="clearfix">
					<div class="col-sm-3 col-xs-3 mt-20">
						<input type="text" name="domestic_total_sum" id="ar_domesticTotal_sum" readonly="readonly" value="${vo.domestic_total_sum}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input type="text" name="domestic_buyers_sum" id="ar_domesticBuyers_sum" readonly="readonly" value="${vo.domestic_buyers_sum}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">总计Total</p>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input type="text" name="export_buyers_sum" id="ar_exportBuyers_sum"  readonly="readonly" value="${vo.export_buyers_sum}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input type="text" name="export_total_sum" id="ar_exportTotal_sum" readonly="readonly" value="${vo.export_total_sum}" class="form-control" placeholder="" />
					</div>

				</div>
			</div><!-- w-95-auto end -->
		</div><!-- message-war end -->
		<div class="message-war"><!-- message-war start -->
			<div class="title-war"><h3>5.账龄及坏账分析 Breakdown of Debt Ages</h3></div>
			<div class="row w-95-auto"><!-- w-95-auto start -->
				<div class="col-sm-3 col-xs-3">
					<p>*截止日期:As of:</p>
					<input placeholder="" Data-Val="Required" name="as_of" id="asof" value="${vo.as_of}" class="laydate-icon form-control">
				</div>
				<div class="clear"></div>
				<div class="clearfix mt-20">
					<div class="col-sm-4 col-xs-4 text-center">
						<p>内贸 Domestic</p>
						<input Data-Val="Point" type="text" name="domestics" id="debtAges_domestic" value="${vo.domestics}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-4 col-xs-4 col-sm-offset-4 col-xs-offset-4 text-center">
						<p>*出口  Export</p>
						<input Data-Val="Point Required" type="text" name="exports" id="debtAges_export" value="${vo.exports}" class="form-control" placeholder="" />
					</div>
				</div>
				<div class="clearfix">
					<div class="col-sm-3 col-xs-3">
						<p class="text-center">金额<br/>Amount</p>
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center">占比<br/>Percentage</p>
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center">账龄<br/>Credit Period</p>
					</div>
					<div class="col-sm-3 col-xs-3">
						<p class="text-center">*金额<br/>Amount</p>
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center">*占比<br/>Percentage</p>
					</div>
				</div>

				<div class="clearfix">
				<input type="hidden" name="debtAgesList[0].oid" value="${vo.debtAgesList[0].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
					<input Data-Val="Point" type="text" name="debtAgesList[0].domestic_amount" id="debtAges_domestic_amount_1" value="${vo.debtAgesList[0].domestic_amount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point" type="text" name="debtAgesList[0].domestic_percentage" id="debtAges_domestic_percentage_1" value="${vo.debtAgesList[0].domestic_percentage}" class="form-control text-right pr-40" placeholder="" />
						<span class="po-r15-b8">%</span>
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">未到期 Current</p>
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="debtAgesList[0].export_amount" id="debtAges_export_amount_1" value="${vo.debtAgesList[0].export_amount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="debtAgesList[0].export_percentage" id="debtAges_export_percentage_1" value="${vo.debtAgesList[0].export_percentage}" class="form-control text-right pr-40" placeholder="" />
						<span class="po-r15-b8">%</span>
					</div>
				</div>
				<div class="clearfix">
				<input type="hidden" name="debtAgesList[1].oid" value="${vo.debtAgesList[1].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
					<input Data-Val="Point" type="text" name="debtAgesList[1].domestic_amount" id="debtAges_domestic_amount_2" value="${vo.debtAgesList[1].domestic_amount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point" type="text" name="debtAgesList[1].domestic_percentage" id="debtAges_domestic_percentage_2" value="${vo.debtAgesList[1].domestic_percentage}" class="form-control text-right pr-40" placeholder="" />
						<span class="po-r15-b8">%</span>
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">超期01-30天<br/>Overdue 01-30days</p>
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="debtAgesList[1].export_amount" id="debtAges_export_amount_2" value="${vo.debtAgesList[1].export_amount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="debtAgesList[1].export_percentage" id="debtAges_export_percentage_2" value="${vo.debtAgesList[1].export_percentage}" class="form-control text-right pr-40" placeholder="" />
						<span class="po-r15-b8">%</span>
					</div>
				</div>
				<div class="clearfix">
				<input type="hidden" name="debtAgesList[2].oid" value="${vo.debtAgesList[2].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
					<input Data-Val="Point" type="text" name="debtAgesList[2].domestic_amount" id="debtAges_domestic_amount_3" value="${vo.debtAgesList[2].domestic_amount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point" type="text" name="debtAgesList[2].domestic_percentage" id="debtAges_domestic_percentage_3" value="${vo.debtAgesList[2].domestic_percentage}" class="form-control text-right pr-40" placeholder="" />
						<span class="po-r15-b8">%</span>
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">超期31-60天<br/>Overdue 31-60days</p>
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="debtAgesList[2].export_amount" id="debtAges_export_amount_3" value="${vo.debtAgesList[2].export_amount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="debtAgesList[2].export_percentage" id="debtAges_export_percentage_3" value="${vo.debtAgesList[2].export_percentage}" class="form-control text-right pr-40" placeholder="" />
						<span class="po-r15-b8">%</span>
					</div>
				</div>
				<div class="clearfix">
				<input type="hidden" name="debtAgesList[3].oid" value="${vo.debtAgesList[3].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
					<input Data-Val="Point" type="text" name="debtAgesList[3].domestic_amount" id="debtAges_domestic_amount_4" value="${vo.debtAgesList[3].domestic_amount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point" type="text" name="debtAgesList[3].domestic_percentage" id="debtAges_domestic_percentage_4" value="${vo.debtAgesList[3].domestic_percentage}" class="form-control text-right pr-40" placeholder="" />
						<span class="po-r15-b8">%</span>
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">超期61-90天<br/>Overdue 61-90days</p>
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="debtAgesList[3].export_amount" id="debtAges_export_amount_4" value="${vo.debtAgesList[3].export_amount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="debtAgesList[3].export_percentage" id="debtAges_export_percentage_4" value="${vo.debtAgesList[3].export_percentage}" class="form-control text-right pr-40" placeholder="" />
						<span class="po-r15-b8">%</span>
					</div>
				</div>
				<div class="clearfix">
				<input type="hidden" name="debtAgesList[4].oid" value="${vo.debtAgesList[4].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
					<input Data-Val="Point" type="text" name="debtAgesList[4].domestic_amount" id="debtAges_domestic_amount_5" value="${vo.debtAgesList[4].domestic_amount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point" type="text" name="debtAgesList[4].domestic_percentage" id="debtAges_domestic_percentage_5" value="${vo.debtAgesList[4].domestic_percentage}" class="form-control text-right pr-40" placeholder="" />
						<span class="po-r15-b8">%</span>
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">超期＞90天<br/>Overdue＞ 90days</p>
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="debtAgesList[4].export_amount" id="debtAges_export_amount_5" value="${vo.debtAgesList[4].export_amount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="debtAgesList[4].export_percentage" id="debtAges_export_percentage_5" value="${vo.debtAgesList[4].export_percentage}" class="form-control text-right pr-40" placeholder="" />
						<span class="po-r15-b8">%</span>
					</div>
				</div>
				<div class="clearfix">
					<div class="col-sm-3 col-xs-3 mt-20">
					<input type="text" name="domestic_amount_sum" readonly="readonly" id="debtAges_domestic_amount_sum" value="${vo.domestic_amount_sum}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input type="text" name="domestic_percentage_sum" readonly="readonly" id="debtAges_domestic_percentage_sum" value="${vo.domestic_percentage_sum}" class="form-control text-right pr-40" placeholder="" />
						<span class="po-r15-b8">%</span>
					</div>
					<div class="col-sm-2 col-xs-2">
						<p class="text-center mt-0">合计 Total</p>
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input type="text" name="export_amount_sum" readonly="readonly" id="debtAges_export_amount_sum" value="${vo.export_amount_sum}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input type="text" name="export_percentage_sum" readonly="readonly" id="debtAges_export_percentage_sum" value="${vo.export_percentage_sum}" class="form-control text-right pr-40" placeholder="" />
						<span class="po-r15-b8">%</span>
					</div>
				</div>
				<div>
					<p>Please provide details of customers that are 31+ days overdue or giving cause for concern<br/>如有买方逾期31天以上，请提供以下详细信息</p>
				</div>
				<div class="clearfix"><p>*是否已有有买方逾期31天以上</p></div>
				<div class="col-sm-8 col-xs-8 clearfix">
					<div class="row">
						<div class="col-sm-2 col-xs-2 rad-io">
							<span><input type="radio" value="1" name="is_overdue_buyers" id="is_overdue_buyers_1" <c:if test="${not empty vo.is_overdue_buyers && vo.is_overdue_buyers eq '1' }"> checked="checked"</c:if>><label for="is_overdue_buyers_1" class="pull-left"></label><strong class="pull-left">是 Yes</strong></span>
						</div>
						<div class="col-sm-2 col-xs-2 rad-io">
							<span><input type="radio" value="0" name="is_overdue_buyers" id="is_overdue_buyers_2" <c:if test="${empty vo.is_overdue_buyers}"> checked="checked"</c:if> <c:if test="${not empty vo.is_overdue_buyers && vo.is_overdue_buyers eq '0' }"> checked="checked"</c:if>><label for="is_overdue_buyers_2" class="pull-left"></label><strong class="pull-left">否 No</strong></span>
						</div>
					</div>
				</div>

				<div class="clear"></div>
				<div id="is_overdue_buyers1" <c:if test="${empty vo.is_overdue_buyers}"> style="display: none;"</c:if> <c:if test="${not empty vo.is_overdue_buyers && vo.is_overdue_buyers eq '0' }"> style="display: none;"</c:if>>
				<div class="col-sm-2 col-xs-2">
					<p class="text-center">*买方名称/国家<br/>Buyer Name/Country</p>
				</div>
				<div class="col-sm-2 col-xs-2">
					<p class="text-center">*总账款余额<br/>Total Debt Outstanding</p>
				</div>
				<div class="col-sm-3 col-xs-3">
					<p class="text-center">*逾期账款<br/>Overdue debt</p>
				</div>
				<div class="col-sm-3 col-xs-3">
					<p class="text-center">*最早到期日<br/>Due Date</p>
				</div>
				<div class="col-sm-2 col-xs-2">
					<p class="text-center">*已执行的催收方案<br/>Action taken</p>
				</div>
				<c:if test="${empty vo.overdueDetailList}">
				<input type="hidden" name="overdue_num" id="overdue_num" value="1">
				<div class="clearfix overdue_num_1">
					<input type="hidden" name="overdueDetailList[0].oid" id="overdue_oid_0" value="">
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Required" type="text" name="overdueDetailList[0].country" id="overdue_country_0" value="" class="form-control" placeholder=""  <c:if test="${empty vo.is_overdue_buyers}"> data-status="hidden"</c:if> <c:if test="${not empty vo.is_overdue_buyers && vo.is_overdue_buyers eq '0' }"> data-status="hidden"</c:if>/>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="overdueDetailList[0].total_debt" id="overdue_total_debt_0" value="" class="form-control" placeholder=""  <c:if test="${empty vo.is_overdue_buyers}"> data-status="hidden"</c:if> <c:if test="${not empty vo.is_overdue_buyers && vo.is_overdue_buyers eq '0' }"> data-status="hidden"</c:if>/>
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="overdueDetailList[0].debt" id="overdue_debt_0" value="" class="form-control" placeholder=""  <c:if test="${empty vo.is_overdue_buyers}"> data-status="hidden"</c:if> <c:if test="${not empty vo.is_overdue_buyers && vo.is_overdue_buyers eq '0' }"> data-status="hidden"</c:if>/>
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Required" placeholder="" name="overdueDetailList[0].due_date" id="overdue_dueDate_0" value="" class="laydate-icon form-control" onclick="laydate({elem: '#overdue_due_date_0', format: 'YYYY-MM-DD'})" <c:if test="${empty vo.is_overdue_buyers}"> data-status="hidden"</c:if> <c:if test="${not empty vo.is_overdue_buyers && vo.is_overdue_buyers eq '0' }"> data-status="hidden"</c:if>>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Required" type="text" name="overdueDetailList[0].taken" id="overdue_taken_0" value="" class="form-control" placeholder=""  <c:if test="${empty vo.is_overdue_buyers}"> data-status="hidden"</c:if> <c:if test="${not empty vo.is_overdue_buyers && vo.is_overdue_buyers eq '0' }"> data-status="hidden"</c:if>/>
					</div>
				</div>
				</c:if>

				<c:if test="${ vo.overdueDetailList.size()>0}">
				<input type="hidden" name="overdue_num" id="overdue_num" value="${vo.overdueDetailList.size()}">
				<c:forEach items="${ vo.overdueDetailList }" varStatus="index">
				<div class="clearfix overdue_num_${index.index+1}">
					<input type="hidden" name="overdueDetailList[${index.index}].oid" id="overdue_oid_${index.index}" value="${ vo.overdueDetailList[index.index].oid}">
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Required" type="text" name="overdueDetailList[${index.index}].country" id="overdue_country_${index.index}" value="${ vo.overdueDetailList[index.index].country}" class="form-control" placeholder=""  <c:if test="${empty vo.is_overdue_buyers}"> data-status="hidden"</c:if> <c:if test="${not empty vo.is_overdue_buyers && vo.is_overdue_buyers eq '0' }"> data-status="hidden"</c:if>/>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="overdueDetailList[${index.index}].total_debt" id="overdue_totalDebt_${index.index}" value="${ vo.overdueDetailList[index.index].total_debt}" class="form-control" placeholder=""  <c:if test="${empty vo.is_overdue_buyers}"> data-status="hidden"</c:if> <c:if test="${not empty vo.is_overdue_buyers && vo.is_overdue_buyers eq '0' }"> data-status="hidden"</c:if>/>
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="overdueDetailList[${index.index}].debt" id="overdue_debt_${index.index}" value="${ vo.overdueDetailList[index.index].debt}" class="form-control" placeholder=""  <c:if test="${empty vo.is_overdue_buyers}"> data-status="hidden"</c:if> <c:if test="${not empty vo.is_overdue_buyers && vo.is_overdue_buyers eq '0' }"> data-status="hidden"</c:if>/>
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Required" placeholder="" name="overdueDetailList[${index.index}].due_date" id="overdue_dueDate_${index.index}" value="${ vo.overdueDetailList[index.index].due_date}" class="laydate-icon form-control" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" <c:if test="${empty vo.is_overdue_buyers}"> data-status="hidden"</c:if> <c:if test="${not empty vo.is_overdue_buyers && vo.is_overdue_buyers eq '0' }"> data-status="hidden"</c:if>>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Required" type="text" name="overdueDetailList[${index.index}].taken" id="overdue_taken_${index.index}" value="${ vo.overdueDetailList[index.index].taken}" class="form-control" placeholder=""  <c:if test="${empty vo.is_overdue_buyers}"> data-status="hidden"</c:if> <c:if test="${not empty vo.is_overdue_buyers && vo.is_overdue_buyers eq '0' }"> data-status="hidden"</c:if>/>
					</div>
				</div>
				</c:forEach>
				</c:if>
				<div class="col-sm-12 col-xs-12 text-center add-a-line" onclick="doDIVMOD(this, 'overdue','add','5');"><span><i class="glyphicon glyphicon-plus"></i> 添加</span></div>
				<div class="col-sm-12 col-xs-12 text-center remove-a-line" <c:if test='${ vo.overdueDetailList.size()<2}'> style="display: none;"</c:if>  onclick="doDIVMOD(this, 'overdue','delete','5');"><span><i class="glyphicon glyphicon-minus"></i> 删除</span></div>
				<div class="clear"></div>
				</div>

				<div class="text-center">
					<h5>坏账分析</h5>
				</div>
				<div class="col-sm-2 col-xs-2">
					<p class="text-center">财务年度<br/>Financial Year</p>
				</div>
				<div class="col-sm-2 col-xs-2">
					<p class="text-center">*坏账损失总计<br/>Total Bad Debt</p>
				</div>
				<div class="col-sm-3 col-xs-3">
					<p class="text-center">*最大的单个坏账损失金额(人民币）<br/>Largest Single Bad Debt Loss</p>
				</div>
				<div class="col-sm-3 col-xs-3">
					<p class="text-center">*坏账损失的个数<br/>Number of Bad Debts</p>
				</div>
				<div class="col-sm-2 col-xs-2">
					<p class="text-center">*成功追回款项<br/>Amounts Recovered</p>
				</div>
				<div class="clear"></div>

				<div>
					<div class="col-sm-2 col-xs-2">
					<input type="hidden" name="badAnalysisList[0].oid" value="${vo.badAnalysisList[0].oid}">
						<p class="text-center">${vo.badAnalysisList[0].year}</p>
						<input type="hidden" name="badAnalysisList[0].year" id="badDebt_year_1" value="${vo.badAnalysisList[0].year}"/>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="badAnalysisList[0].bad_debt_total" id="badDebt_total_1" value="${vo.badAnalysisList[0].bad_debt_total}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="badAnalysisList[0].bad_debt_loss" id="badDebt_loss_1" value="${vo.badAnalysisList[0].bad_debt_loss}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Num Required" type="text" name="badAnalysisList[0].bad_debt_number" id="badDebt_number_1" value="${vo.badAnalysisList[0].bad_debt_number}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="badAnalysisList[0].take_back_amount" id="badDebt_amounts_1" value="${vo.badAnalysisList[0].take_back_amount}" class="form-control" placeholder="" />
					</div>
				</div>
				<div>
					<div class="col-sm-2 col-xs-2">
					<input type="hidden" name="badAnalysisList[1].oid" value="${vo.badAnalysisList[1].oid}">
						<p class="text-center">${vo.badAnalysisList[1].year}</p>
						<input type="hidden" name="badAnalysisList[1].year" id="badDebt_year_2" value="${vo.badAnalysisList[1].year}"/>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="badAnalysisList[1].bad_debt_total" id="badDebt_total_2" value="${vo.badAnalysisList[1].bad_debt_total}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="badAnalysisList[1].bad_debt_loss" id="badDebt_loss_2" value="${vo.badAnalysisList[1].bad_debt_loss}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Num Required" type="text" name="badAnalysisList[1].bad_debt_number" id="badDebt_number_2" value="${vo.badAnalysisList[1].bad_debt_number}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="badAnalysisList[1].take_back_amount" id="badDebt_amounts_2" value="${vo.badAnalysisList[1].take_back_amount}" class="form-control" placeholder="" />
					</div>
				</div>
				<div>
					<div class="col-sm-2 col-xs-2">
					<input type="hidden" name="badAnalysisList[2].oid" value="${vo.badAnalysisList[2].oid}">
						<p class="text-center">${vo.badAnalysisList[2].year}</p>
						<input type="hidden" name="badAnalysisList[2].year" id="badDebt_year_3" value="${vo.badAnalysisList[2].year}"/>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="badAnalysisList[2].bad_debt_total" id="badDebt_total_3" value="${vo.badAnalysisList[2].bad_debt_total}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Point Required" type="text" name="badAnalysisList[2].bad_debt_loss" id="badDebt_loss_3" value="${vo.badAnalysisList[2].bad_debt_loss}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Num Required" type="text" name="badAnalysisList[2].bad_debt_number" id="badDebt_number_3" value="${vo.badAnalysisList[2].bad_debt_number}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="badAnalysisList[2].take_back_amount" id="badDebt_amounts_3" value="${vo.badAnalysisList[2].take_back_amount}" class="form-control" placeholder="" />
					</div>
				</div>

				<div class="clear"></div>
				<div class="text-center mt-20">
					<h5>过去三年中三笔最大的呆坏账详情</h5>
					<h5>Details of 3 Largest Bad Debts Over the Past Three Years</h5>
				</div>
				<div class="col-sm-3 col-xs-3">
					<p class="text-center">*债务人 (姓名及地址)<br/>Debtor(Name and Address)</p>
				</div>
				<div class="col-sm-1 col-xs-1">
					<p class="text-center">*年份<br/>Year</p>
				</div>
				<div class="col-sm-1 col-xs-1">
					<p class="text-center">*国家<br/>Country</p>
				</div>
				<div class="col-sm-2 col-xs-2">
					<p class="text-center">*付款条件<br/>Payment Terms</p>
				</div>
				<div class="col-sm-2 col-xs-2">
					<p class="text-center">*坏账原因<br/>Reason of Bad Debts</p>
				</div>
				<div class="col-sm-2 col-xs-2">
					<p class="text-center">*坏账金额<br/>Amount of Bad Debts</p>
				</div>
				<div class="col-sm-1 col-xs-1">
					<p class="text-center">*处理现状<br/>Status</p>
				</div>
				<div>
				<input type="hidden" name="pastBadDetailList[0].oid" value="${vo.pastBadDetailList[0].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
					<input Data-Val="Required" type="text" name="pastBadDetailList[0].debtor" id="threeYears_debtor_1" value="${vo.pastBadDetailList[0].debtor}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-1 col-xs-1 mt-20">
					<input Data-Val="Num Required" type="text" name="pastBadDetailList[0].before_year" id="threeYears_year_1" value="${vo.pastBadDetailList[0].before_year}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-1 col-xs-1 mt-20">
						<input Data-Val="Required" type="text" name="pastBadDetailList[0].country" id="threeYears_country_1" value="${vo.pastBadDetailList[0].country}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Required" type="text" name="pastBadDetailList[0].payment_terms" id="threeYears_paymentTerms_1" value="${vo.pastBadDetailList[0].payment_terms}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Required" type="text" name="pastBadDetailList[0].reason" id="threeYears_reason_1" value="${vo.pastBadDetailList[0].reason}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="pastBadDetailList[0].debtamount" id="threeYears_amount_1" value="${vo.pastBadDetailList[0].debtamount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-1 col-xs-1 mt-20">
						<input Data-Val="Required" type="text" name="pastBadDetailList[0].bad_status" id="threeYears_status_1" value="${vo.pastBadDetailList[0].bad_status}" class="form-control" placeholder="" />
					</div>
				</div>
				<div>
				<input type="hidden" name="pastBadDetailList[1].oid" value="${vo.pastBadDetailList[1].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
					<input Data-Val="Required" type="text" name="pastBadDetailList[1].debtor" id="threeYears_debtor_2" value="${vo.pastBadDetailList[1].debtor}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-1 col-xs-1 mt-20">
					<input Data-Val="Num Required" type="text" name="pastBadDetailList[1].before_year" id="threeYears_year_2" value="${vo.pastBadDetailList[1].before_year}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-1 col-xs-1 mt-20">
						<input Data-Val="Required" type="text" name="pastBadDetailList[1].country" id="threeYears_country_2" value="${vo.pastBadDetailList[1].country}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Required" type="text" name="pastBadDetailList[1].payment_terms" id="threeYears_paymentTerms_2" value="${vo.pastBadDetailList[1].payment_terms}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Required" type="text" name="pastBadDetailList[1].reason" id="threeYears_reason_2" value="${vo.pastBadDetailList[1].reason}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="pastBadDetailList[1].debtamount" id="threeYears_amount_2" value="${vo.pastBadDetailList[1].debtamount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-1 col-xs-1 mt-20">
						<input Data-Val="Required" type="text" name="pastBadDetailList[1].bad_status" id="threeYears_status_2" value="${vo.pastBadDetailList[1].bad_status}" class="form-control" placeholder="" />
					</div>
				</div>
				<div>
				<input type="hidden" name="pastBadDetailList[2].oid" value="${vo.pastBadDetailList[2].oid}">
					<div class="col-sm-3 col-xs-3 mt-20">
					<input Data-Val="Required" type="text" name="pastBadDetailList[2].debtor" id="threeYears_debtor_3" value="${vo.pastBadDetailList[2].debtor}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-1 col-xs-1 mt-20">
					<input Data-Val="Num Required" type="text" name="pastBadDetailList[2].before_year" id="threeYears_year_3" value="${vo.pastBadDetailList[2].before_year}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-1 col-xs-1 mt-20">
						<input Data-Val="Required" type="text" name="pastBadDetailList[2].country" id="threeYears_country_3" value="${vo.pastBadDetailList[2].country}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Required" type="text" name="pastBadDetailList[2].payment_terms" id="threeYears_paymentTerms_3" value="${vo.pastBadDetailList[2].payment_terms}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Required" type="text" name="pastBadDetailList[2].reason" id="threeYears_reason_3" value="${vo.pastBadDetailList[2].reason}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="pastBadDetailList[2].debtamount" id="threeYears_amount_3" value="${vo.pastBadDetailList[2].debtamount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-1 col-xs-1 mt-20">
						<input Data-Val="Required" type="text" name="pastBadDetailList[2].bad_status" id="threeYears_status_3" value="${vo.pastBadDetailList[2].bad_status}" class="form-control" placeholder="" />
					</div>
				</div>
			</div><!-- w-95-auto end -->
		</div><!-- message-war end -->

		<div class="message-war"><!-- message-war start -->
			<div class="title-war"><h3>6.投保的前十大买家（按赊销额） Top 10 Buyers to be Covered（by Credit Sales Turnover）</h3></div>
			<div class="row w-95-auto"><!-- w-95-auto start -->
				<div class="col-sm-2 col-xs-2">
					<p class="text-center">*名称<br/>Customer Name</p>
				</div>
				<div class="col-sm-3 col-xs-3">
					<p class="text-center">*地址<br/>Address</p>
				</div>
				<div class="col-sm-1 col-xs-1">
					<p class="text-center">*国别<br/>Country</p>
				</div>
				<div class="col-sm-2 col-xs-2">
					<p class="text-center">*付款方式<br/>Payment Terms</p>
				</div>
				<div class="col-sm-2 col-xs-2">
					<p class="text-center">*年赊销金额<br/>Annual Credit Amount</p>
				</div>
				<div class="col-sm-2 col-xs-2">
					<p class="text-center">*信用限额需求**<br/>Limit Requested</p>
				</div>
				<c:if test="${empty vo.topBuyersList}">
				<input type="hidden" name="buyers_num" id="buyers_num" value="1">
				<div class="clearfix buyers_num_1">
				<input type="hidden" name="topBuyersList[0].oid" id="buyers_oid_0" value="">
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Required" type="text" name="topBuyersList[0].customer_name" id="buyers_customer_name_0" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Required" type="text" name="topBuyersList[0].address" id="buyers_address_0" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-1 col-xs-1 mt-20">
						<input Data-Val="Required" type="text" name="topBuyersList[0].country" id="buyers_country_0" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<select Data-Val="Required" name="topBuyersList[0].payment_terms" id="buyers_paymentTerms_0" class="form-control" style="background:url(<c:url value='/resources/versions-2.0/images/public/select-btn.jpg' />) 97% no-repeat  #fafafc;">
							<option value="">请选择付款方式</option>
							<c:forEach items="${listPaymentTerms }" var="list">
							<option value="${list.value }">${list.label }</option>
							</c:forEach>
						</select>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="topBuyersList[0].credit_amount" id="buyers_creditAmount_0" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="topBuyersList[0].amount_requested" id="buyers_amount_requested_0" class="form-control" placeholder="" />
					</div>
				</div>
				</c:if>
				<c:if test="${ vo.topBuyersList.size()>0}">
				<input type="hidden" name="buyers_num" id="buyers_num" value="${vo.topBuyersList.size()}">
				<c:forEach items="${ vo.topBuyersList }" varStatus="index">
				<div class="clearfix buyers_num_${index.index+1}">
					<input type="hidden" name="topBuyersList[${index.index}].oid" id="buyers_oid_${index.index}" value="${ vo.topBuyersList[index.index].oid}">
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Required" type="text" name="topBuyersList[${index.index}].customer_name" id="buyers_customer_name_${index.index}" value="${ vo.topBuyersList[index.index].customer_name}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-3 col-xs-3 mt-20">
						<input Data-Val="Required" type="text" name="topBuyersList[${index.index}].address" id="buyers_address_${index.index}" value="${ vo.topBuyersList[index.index].address}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-1 col-xs-1 mt-20">
						<input Data-Val="Required" type="text" name="topBuyersList[${index.index}].country" id="buyers_country_${index.index}" value="${ vo.topBuyersList[index.index].country}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<select Data-Val="Required" name="topBuyersList[${index.index}].payment_terms" id="buyers_paymentTerms_${index.index}" class="form-control" style="background:url(<c:url value='/resources/versions-2.0/images/public/select-btn.jpg' />) 97% no-repeat  #fafafc;">
							<option value="">请选择付款方式</option>
							<c:forEach items="${listPaymentTerms }" var="list">
							<option value="${list.value }" <c:if test="${list.value eq vo.topBuyersList[index.index].payment_terms }"> selected="selected"</c:if>>${list.label }</option>
							</c:forEach>
						</select>
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="topBuyersList[${index.index}].credit_amount" id="buyers_creditAmount_${index.index}" value="${ vo.topBuyersList[index.index].credit_amount}" class="form-control" placeholder="" />
					</div>
					<div class="col-sm-2 col-xs-2 mt-20">
						<input Data-Val="Point Required" type="text" name="topBuyersList[${index.index}].amount_requested" id="buyers_amount_requested_${index.index}" value="${ vo.topBuyersList[index.index].amount_requested}" class="form-control" placeholder="" />
					</div>
				</div>
				</c:forEach>
				</c:if>
				<div class="col-sm-12 col-xs-12 text-center add-a-line" onclick="doDIVMOD(this, 'buyers','add','10');"><span><i class="glyphicon glyphicon-plus"></i> 添加</span></div>
				<div class="col-sm-12 col-xs-12 text-center remove-a-line" <c:if test='${ empty vo.topBuyersList ? true : vo.topBuyersList.size()<2}'> style="display: none;"</c:if> onclick="doDIVMOD(this, 'buyers','delete','10');"><span><i class="glyphicon glyphicon-minus"></i> 删除</span></div>
				<div><p class="c-red">**是否同意保险公司联系买家并透露投保人名字  Agree the Insurance company to contact the buyer and disclose your company name</p></div>
				<div class="col-sm-8 col-xs-8 clearfix">
					<div class="row">
						<div class="col-sm-2 col-xs-2 rad-io">
							<span><input type="radio" name="is_disclose_name" id="isDiscloseName_1" value="1" <c:if test="${not empty vo.is_disclose_name && vo.is_disclose_name eq '1' }"> checked="checked"</c:if>><label for="isDiscloseName_1" class="pull-left"></label><strong class="pull-left">是 Yes</strong></span>
						</div>
						<div class="col-sm-2 col-xs-2 rad-io">
							<span><input type="radio" name="is_disclose_name" id="isDiscloseName_2" value="0" <c:if test="${empty vo.is_disclose_name}"> checked="checked"</c:if> <c:if test="${not empty vo.is_disclose_name && vo.is_disclose_name eq '0' }"> checked="checked"</c:if>><label for="isDiscloseName_2" class="pull-left"></label><strong class="pull-left">否 No</strong></span>
						</div>
					</div>
				</div>
				<div class="clear"></div>
				<div><p>**:信用限额需求可设定为单个买家最高曝险金额，具体可以未来一年内该买家的最高应收账款额为参考  Credit limit is usually set as the maximum exposure towards each single buyer, with the maximum aggregate A/R outstanding towards each buyer being a good reference.</p></div>
			</div><!-- w-95-auto end -->
		</div><!-- message-war end -->
		</form>
		<div class="row next-step">
			<div class="col-sm-12 col-xs-12 text-right pull-right">
				<p>
					<a href="javascript:void(0);" onclick="saveCommonExportInfo('2');" id="pendingInfo" class="save">暂存本页</a>
					<a href="javascript:void(0);" onclick="save_policy_my();" class="ns-btn">下一步</a>
					<a href="<c:url value='/insurance/customs/policy/qy_policy/${vo.oid}/1'/>" class="ns-btn">上一步</a>
				</p>
			</div>
		</div>
	</div><!-- container end -->
<jsp:include page="../../../index/multi_f.jsp" />
</body>
<script type="text/javascript" src="<c:url value='/resources/versions-2.0/js/date/laydate.js' />"></script>
<script src="<c:url value='/resources/commonJS/con-common.js'/>" type="text/javascript"></script>
<script type="text/javascript" src="<c:url value='/resources/versions-2.0/js/fileinput/fileinput.js' />"></script>
<script type="text/javascript" src="<c:url value='/resources/versions-2.0/js/fileinput/fileinput_locale_zh.js' />"></script>
<script type="text/javascript" src="<c:url value='/resources/commonJS/normalCheck.js' />"></script>
	<script type="text/javascript" src="<c:url value='/resources/commonJS/validateIdent.js' />"></script>
<script type="text/javascript" src="<c:url value='/resources/js/customs_enterBasicInfo.js' />"></script>
<script type="text/javascript">
    //日期范围限制
    var ar_asOf = {
        elem: '#ar_asOf',
        format: 'YYYY-MM-DD',
        max: '2099-06-16', //最大日期
        istoday: false,
        choose: function(datas){

        }
    };
    var asof = {
        elem: '#asof',
        format: 'YYYY-MM-DD',
        max: '2099-06-16',
        istoday: false,
        choose: function(datas){

        }
    };

    Date.prototype.Format = function (fmt) { //author: meizz
        var o = {
            "M+": this.getMonth() + 1, //月份
            "d+": this.getDate(), //日
            "h+": this.getHours(), //小时
            "m+": this.getMinutes(), //分
            "s+": this.getSeconds(), //秒
            "q+": Math.floor((this.getMonth() + 3) / 3), //季度
            "S": this.getMilliseconds() //毫秒
        };
        if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
        for (var k in o)
            if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
        return fmt;
    }
    laydate(ar_asOf);
    laydate(asof);
var baseUrl = '${pageContext.request.contextPath }';
function save_policy_my(){
	if(customsVerify()){
		var index = layer.load(0, {shade: [0.3,'#808080'],scrollbar: false});
		$.ajax({
			type: 'POST',
			url:baseUrl + '/insurance/customs/policy/pendingCommonExportVo_2Policy',
			data:$("#policyInfoForm").serialize(),
			dataType:"json",
			success: function(json){
				layer.close(index);
				if(json.statusCode == '200') {
					window.location.href = baseUrl + '/insurance/customs/policy/qy_policy/'+json.navTabId+'/3'+'?ACCESS_TOKEN=${ACCESS_TOKEN}';
				}else{
					layer.msg(json.message);
				}
			},
			error : function(XMLHttpRequest, textStatus, errorThrown) {
				layer.close(index);
				layer.msg(textStatus);
			}
		});
	}
}
function customsVerify(){
	var flag = true;
	$("input[Data-Val]").each(function(){
		var dataVal = $(this).attr("Data-Val");
		if($(this).attr("type") != "hidden" && $(this).attr("data-status") != "hidden") {
			if(dataVal == "Point Required"){
				if($(this).val() == ''){
					document.getElementById(this.id).scrollIntoView();
					layer.msg("必填项不能为空！");
					$(this).focus();
					flag = false;
					return true;
				}else{
					if($(this).val().length>12){
						document.getElementById(this.id).scrollIntoView();
						layer.msg("长度超出限制！");
						$(this).focus();
						flag = false;
						return true;
					}
				}
			}
			if (dataVal == "Point Required" || dataVal == "Num Required" || dataVal == "Required") {
				if ($(this).val() == '') {
					document.getElementById(this.id).scrollIntoView();
					layer.msg("必填项不能为空！");
					$(this).focus();
					flag = false;
					return true;
				} else {
					if ($(this).val().length > 24) {
						document.getElementById(this.id).scrollIntoView();
						layer.msg("长度超出限制！");
						$(this).focus();
						flag = false;
						return true;
					}
				}

			}
		}
	});
	if(flag){
		$("select[Data-Val]").each(function(){
			var dataVal = $(this).attr("Data-Val");
			if($(this).attr("type") != "hidden" && $(this).attr("data-status") != "hidden"){
				if(dataVal == "Point Required" || dataVal == "Num Required" || dataVal == "Required"){
					if($(this).val() == ''){
						document.getElementById(this.id).scrollIntoView();
						layer.msg("必填项不能为空！");
						$(this).focus();
						flag = false;
						return true;
					}

				}
			}
		});
		if(flag){
			$("textarea[Data-Val]").each(function(){
				var dataVal = $(this).attr("Data-Val");
				if($(this).attr("type") != "hidden" && $(this).attr("data-status") != "hidden"){
					if(dataVal == "Point Required" || dataVal == "Num Required" || dataVal == "Required"){
						if($(this).val() == ''){
							document.getElementById(this.id).scrollIntoView();
							layer.msg("必填项不能为空！");
							$(this).focus();
							flag = false;
							return true;
						}else{
                            if($(this).val().length>100){
                                document.getElementById(this.id).scrollIntoView();
                                layer.msg("长度超出限制(100字符)！");
                                $(this).focus();
                                flag = false;
                                return true;
                            }
                        }

					}
				}
			});

		}
	}
	return flag;
}
</script>
</html>