<%@ 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" %>
<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'/>" />
<!-- 保留分页 -->

<table class="table ">
								 
									<tbody>
										<tr>
												<td class="col-sm-1 col-xs-1">买家代码</td>
												<td class="col-sm-2 col-xs-2">买方公司名称</td>
												<td class="col-sm-1 col-xs-1">国家</td>
												<td class="col-sm-1 col-xs-1">限额类型</td>
												<td class="col-sm-2 col-xs-2">申请限额</td>
												<td class="col-sm-1 col-xs-1">批复限额</td>
												<td class="col-sm-1 col-xs-1">批复状态</td>
												<td class="col-sm-2 col-xs-2">操作选项</td>
									</tr> 
									 <c:choose>
										<c:when test="${empty blist}">
											<tr>
												<td class="col-sm-12" colspan="8" style="text-align: center;">暂无相关数据</td>
											</tr>
										</c:when>
										<c:otherwise>
											<c:forEach items="${blist}" var="buyersQuota" varStatus="status">
												<tr>
													<td class="col-sm-1 col-xs-1">${buyersQuota.code}</td>
													<td class="col-sm-2 col-xs-2">${buyersQuota.customer_name}</td>
													<td class="col-sm-1 col-xs-1">${buyersQuota.country}</td>
													<td class="col-sm-1 col-xs-1">${fns:getDictLabel (buyersQuota.limit_type,"applicationLimitType","")}</td>
													<td class="col-sm-2 col-xs-2">${buyersQuota.amount_requested}</td>
													<td class="col-sm-1 col-xs-1"><c:if test="${not empty  buyersQuota.reply_amount}">${buyersQuota.reply_amount}</c:if> <c:if test="${empty   buyersQuota.reply_amount}">0</c:if> CNY</td>
													<td class="col-sm-1 col-xs-1">${fns:getDictLabel (buyersQuota.apply_type,"applyCreditAmountType","")}</td>
													<td class="col-sm-2 col-xs-2">
													<label><a href="<c:url value='/exports/credit/getApplyAmount/${buyersQuota.oid}?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">详情</a></label>													<%-- <c:if test="${buyersQuota.apply_type eq '0'}">

													<%-- <c:if test="${buyersQuota.apply_type eq '0'}">
														<label><a href="<c:url value='/exports/credit/delApplyAmount/${buyersQuota.oid}'/>">取消</a></label> 
													</c:if>
													<c:if test="${buyersQuota.apply_type eq '2'}">
													<label><a href="<c:url value='/exports/credit/updApplyAmount/${buyersQuota.oid}'/>">限额</a></label>
													</c:if>
													<c:if test="${buyersQuota.apply_type eq '1' || buyersQuota.apply_type eq '3'||buyersQuota.apply_type eq '4'}">
													        <c:if  test="${ not empty buyersQuota.code}">
																<label><a href="<c:url value='/exports/credit/updApplyAmount/${buyersQuota.oid}'/>">限额</a></label>
															</c:if>
															<c:if  test="${ empty buyersQuota.code}">
																<label><a href="<c:url value='/exports/credit/addApplyAmount?oid=${buyersQuota.oid}'/>">限额</a></label>
															</c:if>
													</c:if> --%>
													</td>
												</tr>
											</c:forEach>
										</c:otherwise>
									</c:choose>			
									</tbody>
								</table>