warehousePosition.jsp
3.42 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
<?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="pick-msg ">
<div class="branch-box">
<div class="branch-msg ">
<strong>${warehouse.name }</strong>
<div>
<div class="msg">
<p>
<label>联系人:</label>${warehouse.contactName }</p>
<p>
<label>电话:</label>${warehouse.contactPhone }</p>
<div style="clear: both;"></div>
</div>
<p>网点地址:${warehouse.province }${warehouse.city } ${warehouse.area }${warehouse.address }</p>
</div>
</div>
<a href="${ctx }/user/warehouses">返回网点列表</a>
<div style="clear: both;"></div>
</div>
<!-- 没有数据 -->
<c:if test="${empty positions }">
<div style="background: #f2f2f2; margin: 5px 0;">
<img style="width: 65%" src="${ctx }/resource/images/noData.png" />
</div>
</c:if>
<!-- 有数据 -->
<c:if test="${!empty positions }">
<table cellpadding='0' cellspacing='0' id="pickTable">
<thead>
<tr>
<th width="20%">藏品代码</th>
<th class="left-font">藏品名称</th>
<th>可提数量</th>
<th width="25%">提货数量</th>
<th width="15%">库存总量</th>
</tr>
</thead>
<tbody>
<c:forEach items="${positions }" var="position">
<tr>
<td>${position.otcCode }</td>
<td class="left-font">${position.otcName }</td>
<td><fmt:formatNumber pattern="#####" value="${position.enableAmount }" /></td>
<td>
<input type="number" name="occurAmount" min="1" maxlength="5"
<c:if test="${position.enableAmount == 0 }"> disabled="disabled" </c:if>
onkeyup="this.value=this.value.replace(/\D/g,'')"
onafterpaste="this.value=this.value.replace(/\D/g,'')" />
<span style="display: none;">${position.enableAmount }</span>
<span style="display: none;">${position.usefulAmount }</span>
</td>
<td>${position.usefulAmount }</td>
</tr>
</c:forEach>
</tbody>
</table>
</c:if>
<form id="pickForm" action="${ctx }/user/pick/warehouseDetail" method="post">
<p class="pick-person" style="background: #fff;">
<input type="button" class="red-btn" id="btnWarehousePick" value="下一步" />
</p>
<input type="hidden" name="warehouseCode" value="${warehouse.code }" />
<input type="hidden" id="hidApplys" name="applys" />
</form>
</div>
</div>
<div class="clear"></div>
</div>
<jsp:include page="${ctx }/view/common/bottom.jsp" />
</body>
</html>