packPosition.jsp
5.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?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>
<html>
<head>
<jsp:include page="${ctx }/view/common/meta.jsp" />
<link href="${ctx }/resource/css/member.css" rel="stylesheet" type="text/css" />
<link href="${ctx }/resource/css/tab-slide.css" rel="stylesheet" type="text/css" />
<link href="${ctx }/resource/css/trade.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx }/resource/js/user/pick/position.js"></script>
</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 self position" style="margin-top: 28px">
<div class="title-btn">
<h2 style="text-align: left;">提货申请</h2>
<a href="${ctx }/user/pick/record" class="red-btn pick-record">提货记录</a>
</div>
<div class="crossline"></div>
<div class="tab-slide bottom-border">
<a class="attention " href="${ctx }/user/position">普通提货</a>
<a class="tab-seletced" href="${ctx }/user/position/pack">封装提货</a>
<a class="attention" href="${ctx }/user/warehouses">网点自提</a>
</div>
<div class="clear"></div>
<div class="pick-msg">
<!-- 没有数据 -->
<c:if test="${empty positions }">
<div style="background: #f2f2f2; margin: 5px 0;">
<img style="width: 65%" src="${ctx }/resource/images/noData.png"></img>
</div>
</c:if>
<!-- 有数据 -->
<c:if test="${!empty positions }">
<div class="positionGift-rule">
为了保证质量,所有封装自提的藏品将根据封装方式的不同,提货时间将有不同程度的增加 <a>了解封装方式及礼盒样式</a>
</div>
<table cellpadding='0' cellspacing='0' id="pickTable">
<thead>
<tr>
<th width="15%">藏品代码</th>
<th class="left-font" width="20%">藏品名称</th>
<th>可提数量</th>
<th>提货数量</th>
<th>封装方式</th>
<th>封装费用</th>
</tr>
</thead>
<tbody>
<c:forEach items="${positions }" var="position">
<c:if test="${position.enable_amount > 0.0 }">
<tr>
<td>${position.otc_code }</td>
<td class="left-font">${position.otc_name }</td>
<td><fmt:formatNumber pattern="#####" value="${position.enable_amount }" /></td>
<td>
<input type="number" name="occurAmount" min="1" maxlength="5"
onkeyup="this.value=this.value.replace(/\D/g,'')"
onafterpaste="this.value=this.value.replace(/\D/g,'')" />
<span style="display: none;">${position.enable_amount }</span>
</td>
<td>
<select class="pickPacks" style="width: 100px;">
<c:forEach var="pickPack" items="${pickPacks }">
<c:if test="${pickPack.otcCode == position.otc_code }">
<option value="${pickPack.packFee }">${pickPack.packType }</option>
</c:if>
</c:forEach>
</select>
</td>
<!-- <td>
<span>${position.pack_fee }</span> 元/个
</td> -->
</tr>
</c:if>
</c:forEach>
</tbody>
</table>
<div class="positionGift-method">
<span>包装方式:</span>
<ul id="positionGiftMethod">
<li value="0">无需包装</li>
<c:forEach items="${pickPackages }" var="pickPackage">
<li value="${pickPackage.id }">${pickPackage.packageName } (¥${pickPackage.packageFee })</li>
</c:forEach>
</ul>
<div class="clear"></div>
</div>
<form id="pickForm" action="${ctx }/user/pick" method="post">
<p class="pick-person">
<span>提货方式:</span>
<label><input type="radio" name="pickType" value="3" title="转赵涌在线" />转赵涌在线</label>
<label><input type="radio" name="pickType" value="1" title="上门自提" />上门自提</label>
<label><input type="radio" name="pickType" value="2" title="顺丰到付" checked="checked"/>顺丰到付</label>
<input type="button" class="red-btn" id="btnPackPick" value="下一步" />
</p>
<input type="hidden" id="hidApplys" name="applys" />
<input type="hidden" id="hidPackageId" name="packageId" />
<input type="hidden" name="pack" value="1" />
</form>
</c:if>
</div>
</div>
<div class="clear"></div>
</div>
<!-- 结果弹窗 -->
<div class="easyDialog_wrapper entrust ensure" id="ensure">
<div class="easyDialog_content" style="border-top: 3px solid #d81e31;">
<div class="easyDialog_text" id="entrust_result">请选择提货方式</div>
<div class="easyDialog_footer">
<button class="btn_highlight " onclick="window.location.reload()">确定</button>
</div>
</div>
</div>
<jsp:include page="${ctx }/view/common/bottom.jsp" />
</body>
</html>