pickRecord.jsp 11.9 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"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html>
<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/returnRecord.css" rel="stylesheet" type="text/css" />
	<link href="${ctx }/resource/css/tab-slide.css" rel="stylesheet" type="text/css" />
	<link href="${ctx }/resource/js/utils/page/page.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="${ctx}/resource/js/utils/page/query.js"></script>
	<script type="text/javascript" src="${ctx}/resource/js/utils/page/page.js"></script>
	<script type="text/javascript" src="${ctx}/resource/js/user/pick/pick.js"></script>
	<script type="text/javascript" src="${ctx}/resource/js/user/pick/pickRecord.js?r=<%=Math.random()%>"></script>
	<script type="text/javascript">
		$(function() {
			$('#pageToolbar').Paging({
				pagesize : '${params.rows }',
				count : '${params._total}',
				toolbar : true,
				current : Number('${params.page}'),
				callback : function(page, size, count) {
					window.location.href = '${ctx }/user/pick/record?page=' + page + '&rows=' + size;
				}
			});
		});
		var errorMessage = '${resultInfo.message }';
		
		function ensure(pickNo){
			alert(pickNo)
			var url = "${ctx }/user/pick/cancel?_token_pick_cancel=${_token_pick_cancel}&pickNo=" + pickNo;
			$("#sureCancel").attr("href", url);
			easyDialog.open({
				  container : "ensure_popup"
			});
		};
	</script>
	<style>
	.records tr {
		margin-top: 10px;
	}
	
	.records a {
		color: blue;
	}
	
	.picker-way{
		text-align: left;
    	padding: 0 20px;
	}
	</style>
</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="clear"></div>
			<%-- <div class="tab-slide bottom-border">
				<a class="attention" href="${ctx }/user/return/queryAll">退货记录</a> 
				<a class="tab-seletced" href="${ctx }/user/pick/record">提货记录</a>
			</div> --%>
				 <ul class="tab">
				<li ><a href="${ctx }/user/return/queryAll">退货记录</a> </li>
				<li class="selected"><a href="${ctx }/user/pick/record">提货记录</a></li>
		         </ul> 
			<div class="pickRecord">
				<p>如需要查询2017年4月21日之前的提货记录,请前往历史提货记录查询页面。</p>
				<a href="${ctx }/user/pick/history" >立即查看</a>
			</div>

			<table border="0" style="border-bottom: 1px solid #ccc; width: 100%;" class=" etlistbg entrusttable" cellpadding="2" cellspacing="0">
				<tbody>
					<c:if test="${empty applys }">
						<tr>
							<td style="background:#f2f2f2;" colspan="10"><img style="width:65%" src="${ctx }/resource/images/noData.png"></img></td>	
						</tr>
					</c:if>
					<c:forEach items="${applys }" var="pick">
					<tr class="flex_tr " style="background: #f2f2f2; height: 40px; font-weight: bold;">
						<td width="25%">申请时间:${pick.createDate }</td>
						<td width="25%">提货单号:${pick.pickNo }</td>
						<td width="25%" class="picker-way">
							提货方式:
							<c:if test="${pick.pickType == '0' }">本人自提</c:if>
							<c:if test="${pick.pickType == '1' }">委托自提</c:if>
							<c:if test="${pick.pickType == '2' }">顺丰到付</c:if>
							<c:if test="${pick.pickType == '3' }">转赵涌在线</c:if>
							<c:if test="${pick.pickType == '4' }">网点自提</c:if>
							<c:if test="${pick.pickType == '5' }">网点委托</c:if>
							<c:if test="${pick.pickType == '6' }">转亚交所AAE</c:if>
						</td>
						<td width="30%" class="picker-way">
							包装方式:${pick.packageType == null ? "无" : pick.packageType }
						</td>
						<td style="text-align: center;"><span class="flex_a png flex_plus"></span></td>
					</tr>

					<tr  >
						<td colspan="6">
							<table border="0" cellpadding="0" cellspacing="0" class="entrust records">
								<thead>
									<tr style="height: 30px;">
										<td width="10%">藏品代码</td>
										<td width="16%">藏品名称</td>
										<td width="8%">提货数量</td>
										<td width="8%">封装方式</td>
										<!-- 本人自提 -->
										<c:if test="${pick.pickType == 0 || pick.pickType == 1 || pick.pickType == 4 || pick.pickType == 5}">
										<td width="8%">提货人</td>
										<td width="10%">提货日期</td>
										<td width="16%">提货地址</td>
										</c:if>
										<!-- 顺风到付 -->
										<c:if test="${pick.pickType == 2 }">
										<td width="8%">收货人</td>
										<td width="10%">联系方式</td>
										<td width="16%">收货地址</td>
										</c:if>
										<!--转赵涌在线 -->
										<c:if test="${pick.pickType == 3 }">
										<td width="34%" >赵涌在线账号</td>
										</c:if>
										<c:if test="${pick.pickType == 6 }">
										<td width="34%" >转出目的地</td>
										</c:if>
										<td width="10%">提货状态</td>
									</tr>
								</thead>
								<tbody>
									<!-- 本人自提 -->
									<c:if test="${pick.pickType == 0 || pick.pickType == 1 || pick.pickType == 4 || pick.pickType == 5 }">
										<c:forEach items="${pick.applyList }" var="apply" varStatus="stas">
											<c:if test="${stas.index == 0 }">
					                            <tr height="30">
					 								<td>${apply.otcCode }</td>
													<td>${apply.otcName }</td>
													<td>${apply.occurAmount }</td>
													<td>${apply.packType == null ? "无" : apply.packType }</td>
													<td rowspan="${fn:length(pick.applyList) }"> ${apply.pickingName }</td>
													<td rowspan="${fn:length(pick.applyList) }"> ${apply.pickingDate }</td>
													<td style="text-align:left;padding:0 5px;" rowspan="${fn:length(pick.applyList) }">${apply.pickingAddress }</td>
													<td rowspan="${fn:length(pick.applyList) }">
														<p> ${apply.pickStatusName }</p>
														<c:if test="${apply.pickStatus == '0' }">
															<a onclick="ensure('${pick.pickNo}')">取消提货</a>
														</c:if>
													</td>
												</tr>
											</c:if>
											<c:if test="${stas.index > 0 }">
												<tr>
													<td>${apply.otcCode }</td>
													<td>${apply.otcName }</td>
													<td>${apply.occurAmount }</td>
													<td>${apply.packType == null ? "无" : apply.packType }</td>
												</tr>
											</c:if>
										</c:forEach>
									</c:if>
									
									<!-- 赵涌在线 -->
									<c:if test="${pick.pickType == 3 }">
										<c:forEach items="${pick.applyList }" var="apply" varStatus="stas">
											<c:if test="${stas.index == 0 }">
					                            <tr height="30">
					 								<td>${apply.otcCode }</td>
													<td>${apply.otcName }</td>
													<td>${apply.occurAmount }</td>
													<td>${apply.packType == null ? "无" : apply.packType }</td>
													<td rowspan="${fn:length(pick.applyList) }">${pick.zhaoonlineId }</td>
													<td rowspan="${fn:length(pick.applyList) }">
														<p>${apply.pickStatusName }</p>
														<c:if test="${apply.pickStatus == '0' }">
															<a onclick="ensure(${pick.pickNo})">取消提货</a>
														</c:if>
													</td>
												</tr>
											</c:if>
											<c:if test="${stas.index > 0 }">
												<tr>
													<td>${apply.otcCode }</td>
													<td>${apply.otcName }</td>
													<td>${apply.occurAmount }</td>
													<td>${apply.packType == null ? "无" : apply.packType }</td>
												</tr>
											</c:if>
										</c:forEach>
									</c:if>
									
									<!-- 转香港90兆-->
									<c:if test="${pick.pickType == 6 }">
										<c:forEach items="${pick.applyList }" var="apply" varStatus="stas">
											<c:if test="${stas.index == 0 }">
					                            <tr height="30">
					 								<td>${apply.otcCode }</td>
													<td>${apply.otcName }</td>
													<td>${apply.occurAmount }</td>
													<td>${apply.packType == null ? "无" : apply.packType }</td>
													<td rowspan="${fn:length(pick.applyList) }">亚交所</td>
													<td rowspan="${fn:length(pick.applyList) }">
														<p>${apply.pickStatusName }</p>
														<%-- <c:if test="${apply.pickStatus == '0' }">
															<a onclick="ensure(${pick.pickNo})">取消提货</a>
														</c:if> --%>
													</td>
												</tr>
											</c:if>
											<c:if test="${stas.index > 0 }">
												<tr>
													<td>${apply.otcCode }</td>
													<td>${apply.otcName }</td>
													<td>${apply.occurAmount }</td>
													<td>${apply.packType == null ? "无" : apply.packType }</td>
												</tr>
											</c:if>
										</c:forEach>
									</c:if>

									<!-- 顺丰到付 -->
									<c:if test="${pick.pickType == 2 }">
										<c:forEach items="${pick.applyList }" var="apply" varStatus="stas">
											<c:if test="${stas.index == 0 }">
					                            <tr height="30">
					 								<td>${apply.otcCode }</td>
													<td>${apply.otcName }</td>
													<td>${apply.occurAmount }</td>
													<td>${apply.packType == null ? "无" : apply.packType }</td>
													<td rowspan="${fn:length(pick.applyList) }">${apply.pickingName }</td>
													<td rowspan="${fn:length(pick.applyList) }">${apply.phoneCode }</td>
													<td style="text-align:left;padding:0 5px;" rowspan="${fn:length(pick.applyList) } ">${apply.expressAddress }</td>
													<td rowspan="${fn:length(pick.applyList) }">
														<p>${apply.pickStatusName }</p>
														<c:if test="${apply.pickStatus == '0' }">
															<a onclick="ensure(${pick.pickNo})">取消提货</a>
														</c:if>
														<c:if test="${apply.pickStatus == '3' }">
															<div style="position: relative;">
																<a class="showExpressId">查看快递单号</a>
																<p class="express-id">
																	<small style="margin-top: -10px;">顺丰到付</small> 
																	<small>${pick.expressNo }</small>
																</p>
															</div>
														</c:if>
													</td>
												</tr>
											</c:if>
											<c:if test="${stas.index > 0 }">
												<tr>
													<td>${apply.otcCode }</td>
													<td>${apply.otcName }</td>
													<td>${apply.occurAmount }</td>
													<td>${apply.packType == null ? "无" : apply.packType }</td>
												</tr>
											</c:if>
										</c:forEach>
									</c:if>
								</tbody>
							</table>
						</td>
					</tr>
					</c:forEach>
				</tbody>
			</table>
			<c:if test="${!empty applys }">
            	 <div id="pageToolbar"></div>
            </c:if>
		</div>
		<div class="clear"></div>
	</div>
	<jsp:include page="${ctx }/view/common/bottom.jsp" />
		
	<!-- 提示弹窗 -->
		<div class="easyDialog_wrapper ND " id="ensure_popup" >
		  <div class="easyDialog_content" style="border-top:3px solid #d81e31;">
		    <div class="easyDialog_text">
		    	<p style="font-weight: 600;padding: 30px 0 0; font-size: 16px;" id="ensure_popup_text"></p>
		    	<p style="font-weight: 600;padding: 30px 0 0; font-size: 16px;">你确定要取消提货么?</p>
		    </div>
		    <div class="easyDialog_footer two-btn">
		      <button class="btn_normal" onclick="easyDialog.close()">取消</button>
		      <a class="linkBtn" id="sureCancel">确定</a>
		    </div>
		  </div>
		</div>
	
	
</body>
</html>