entrustStockListPast.jsp 8.7 KB
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<jsp:include page="${ctx }/view/common/meta.jsp" />
	<link href="${ctx }/resource/css/detail.css" rel="stylesheet" type="text/css" />
	<link href="${ctx }/resource/css/home.css" rel="stylesheet" type="text/css" />
	<link href="${ctx }/resource/css/member.css" rel="stylesheet" type="text/css" />
	<link href="${ctx }/resource/css/ration/returnBefore.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="${ctx }/resource/js/ration/trustapplyReturn.js"></script>
	<link href="${ctx }/resource/css/ration/marktEntrust.css?r=${now}" rel="stylesheet" type="text/css" />
	<link href="${ctx }/resource/css/tab-slide.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<jsp:include page="${ctx }/view/common/header.jsp" />

	<div class="bigbox">
		<jsp:include page="${ctx }/view/common/menu.jsp" />
		<div class="etlist rightbox0" style="margin-top: 28px">
		 	
			<h2 style="text-align: left;">库存清单</h2>
			<div class="crossline"></div>
			<%-- <div class="tab-slide bottom-border">	
				<a class="attention" href="${ctx }/user/ration/stockList?result=entrustStockList.jsp">在库合格品</a>
				<a class="attention" href="${ctx }/user/ration/stockList?result=entrustStockListNow.jsp">本批待退货</a>
				<a class="tab-seletced" href="${ctx }/user/ration/stockList?result=entrustStockListPast.jsp">往期待退货</a>
			</div> --%>
			 <ul class="tab">
				<li ><a href="${ctx }/user/ration/stockList?result=entrustStockList.jsp">在库合格品</a></li>
				<%-- <li ><a href="${ctx }/user/ration/stockList?result=entrustStockListNow.jsp">本批待退货</a></li> --%>
				<li class="selected"><a href="${ctx }/user/ration/stockList?result=entrustStockListPast.jsp">待退货</a></li>
			</ul> 
			<div class="clear"></div>	
			
			<!-- <div style=" color: red; text-align: left; line-height: 30px; font-size: 16px;    margin: 0px 0 15px;">
				<p style="float: left; width: 5%;font-weight: 600; ">注:</p>
				<p style="float: left; width: 95%;font-size: 12px;">
					(1)开放退货申请时间:每月1-5日00:00-24:00时;
					(2)自提客户上门时间:每月10日10:00-17:00时,遇节假日顺延至下一工作日;
					(3)以上时间逾期,请等待下一开放退货周期。
				</p>
				<div class="clear"></div>	
			</div> -->
			
			<table border="0" style="border-bottom: 1px solid #ccc;"
				class=" etlistbg entrusttable" cellpadding="0" cellspacing="0">
				<thead>
					<tr id="head">
						<td width="10%">藏品编号</td>
						<td width="15%">藏品名称</td>
						<td width="10%">待退货总量</td>
						<td width="10%">预约号</td>
						<td width="10%">待退货数量</td>
						
						<td width="10%"><a  href="javascript:trustapplyReturn.beforeReturn()" class="returnButton" style="margin: 0" >批量退货</a> </td>
					</tr>
				</thead>
				<tbody>
					<c:if test="${empty entrusts }">
						<tr>
							<td style="background:#f2f2f2;" colspan="10"><img style="width:65%" src="${ctx }/resource/images/noData.png"></img></td>	
						</tr>
					</c:if>
					<c:forEach var="entrust" items="${entrusts }" varStatus="status">
						<tr height="40">
							<td rowspan="${entrust.count }">${entrust.otc_code }</td>
							<td rowspan="${entrust.count }">${entrust.otc_name }</td>
							<td rowspan="${entrust.count }">${entrust.returnTotal}</td>
							<td>${entrust.apply_no }</td>
							<%-- <td>${entrust.approval_count}</td> --%>
							<c:choose>
							   <c:when test="${entrust.remove_way == '1' }">
							   <td>0</td>
							   </c:when>
							   <c:otherwise>
							   <td>${entrust.back_amount}</td>
							   </c:otherwise>
							</c:choose>
							
							<c:if test="${!empty postReturn }">
								<td>&nbsp</td>
							</c:if>
							
							<%-- <td>
							   <c:if test="${entrust.aggree_status == 1}">
							         待交割
							   </c:if>
							   <c:if test="${entrust.aggree_status == 4}"> 
							       <c:if test="${entrust.approval_count > 0}">
							        <a href="javascript:trustapplyReturn.rationOldConfig('${entrust.otc_code }','${entrust.otc_name }','${entrust.approval_count}','${entrust.price}', '${entrust.apply_no }', '${entrust.remainAmount}')"
									   class="agreeRation" style="color:#fff">确认配售</a>
								   </c:if>
							   </c:if>
							</td> --%>
						</tr>
						<c:forEach var="entrustList" items="${entrust.entrustMap }"
							begin="1" varStatus="status">
							<%-- <c:if test="${status.last==true}"> --%>
							<tr height="40">
								<td style="border: 0px;">${entrustList.APPLY_NO }</td>
								<%-- <td style="border: 0px;">
                                <fmt:formatNumber value="${entrustList.APPROVAL_COUNT }" pattern="##" minFractionDigits="0" />
								</td> --%>
								<c:choose>
							   <c:when test="${entrustList.REMOVE_WAY == '1' }">
							   <td style="border: 0px;">0</td>
							   </c:when>
							   <c:otherwise>
							   <td style="border: 0px;">
                                 <fmt:formatNumber value="${entrustList.BACK_AMOUNT }" pattern="##" minFractionDigits="0" />
							   </td>
							   </c:otherwise>
							</c:choose>
								
							</tr>
						</c:forEach>

					</c:forEach>
				</tbody>
			</table>
		</div>
		<div class="clear"></div>
	</div>
	
	
	<div class="easyDialog_wrapper" id="easyDialogConfig" style="width:500px;">
		<div class="easyDialog_content">
			<h4 class="easyDialog_title"  style="text-align: center; 
      color:#F81919; 
      height:50px; 
      padding-top: 10px; 
      font-size: 16px; 
      font-weight: bold;">请选择收货地址  <span class="addressClose"  onclick="easyDialog.close();"></span></h4> 
			<div class="easyDialog_text" id="dialog-content">
				<form id="return-form">
				 <input type="hidden" name="result" value="entrustStockListPast.jsp"/>
					<div id="addressDiv" style=' overflow: auto; overflow-x: hidden;  height: 120px;'>
						
					</div>
				</form>
			</div>
			<div style="text-align: center; margin-bottom: 20px;">
				<button class="sale " id="wuliu"  onclick="trustapplyReturn.trustApplyReturn(0)"><span style="color:#fff">物流退货</span></button>
				<button class="sale " id="add" onclick="trustapplyReturn.addAddress()"><span style="color:#fff">添加退货地址</span></button>
				<button class="sale " onclick="trustapplyReturn.trustApplyReturn(1)"><span style="color:#fff">自提退货</span></button>	
			</div>
		</div>
	</div>
	
	
	<div class="easyDialog_wrapper" id="rationConfig">
		<div class="easyDialog_content " style="    border-top: 3px solid #F81919;">
			<h4 class="easyDialog_title" style="text-align: center; color:#F81919;position: relative;">申请配售  <span class="addressClose cancelBtn"  onclick="easyDialog.close();"></span></h4>
			<div class="easyDialog_text trusteeship_txt">
				<form>
					<input type="hidden" id="applyNo"/>
					<input type="hidden" id="remainAmount"/>
					<table style="margin: 10px 0; width: 100%;" cellpadding="0"
						cellspacing="0">
						<tr>
							<td style="white-space: nowrap; text-align: right;width: 48%;">藏品代码:</td>
							<td id="otcCode" style="padding-left: 15px;"></td>
							<td style="width: 40px;"></td>
						</tr>
						<tr>
							<td style="text-align: right;">藏品名称:</td>
							<td id="otcName" style="padding-left: 15px;"></td>
							<td style="width: 40px;"></td>
						</tr>
						<tr>
							<td style="text-align: right;">配售数量:</td>
							<td id="stockNum" style="padding-left: 15px;"></td>
							<td style="width: 40px;"></td>
						</tr>
						<tr>
							<td style="text-align: right;">配售单价:</td>
							<td id="price" style="padding-left: 15px;"></td>
							<td style="width: 40px;"></td>
						</tr>
						<tr>
							<td style="text-align: right;">配售金额:</td>
							<td id="totalPrice" style="padding-left: 15px;"></td>
							<td style="width: 40px;"></td>
						</tr>
					</table>
				</form>
			</div>
			<div style="text-align: center; margin-bottom: 20px;">
				<button class="sale agreeButton" onclick="trustapplyReturn.agreeRation()"><span style="color:#fff;font-weight: normal;">同意配售</span></button>
				<button class="sale cancelButton" onclick="trustapplyReturn.cancelRation()"><span style="color:#fff;font-weight: normal;">取消</span></button>
			</div>
		</div>
	</div>

	<jsp:include page="${ctx }/view/common/bottom.jsp" />
</body>
</html>