entrustStockList.jsp
8.66 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?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;">库存清单
<!-- <a href="javascript:trustapplyReturn.beforeReturn()" class="returnButton" >批量退货</a> -->
</h2>
<div class="crossline"></div>
<%-- <div class="tab-slide bottom-border">
<a class=" tab-seletced" href="${ctx }/user/ration/stockList?result=entrustStockList.jsp">在库合格品</a>
<a class="attention" href="${ctx }/user/ration/stockList?result=entrustStockListNow.jsp">本批待退货</a>
<a class="attention" href="${ctx }/user/ration/stockList?result=entrustStockListPast.jsp">往期待退货</a>
</div> --%>
<ul class="tab">
<li class="selected"><a href="${ctx }/user/ration/stockList?result=entrustStockList.jsp">在库合格品</a></li>
<%-- <li ><a href="${ctx }/user/ration/stockList?result=entrustStockListNow.jsp">本批待退货</a></li> --%>
<li ><a href="${ctx }/user/ration/stockList?result=entrustStockListPast.jsp">待退货</a></li>
</ul>
<div class="clear"></div>
<table border="0" style="border-bottom: 1px solid #ccc;margin-top:0px;"
class=" etlistbg entrusttable" cellpadding="0" cellspacing="0">
<thead>
<tr id="head">
<td width="8%">藏品编号</td>
<td width="20%">藏品名称</td>
<td width="10%">库存总量</td>
<td width="18%">预约号</td>
<td width="7%">库存数量</td>
<!-- <td width="10%">待退货数量</td> -->
<td width="10%">配售状态</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.stockTotal}</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> --%>
<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> --%>
<td style="border: 0px;">
<c:if test="${entrustList.AGGREE_STATUS == 1}">
待交割
</c:if>
<c:if test="${entrustList.AGGREE_STATUS == 4}">
<c:if test="${entrustList.APPROVAL_COUNT > 0}">
<a href="javascript:trustapplyReturn.rationOldConfig('${entrustList.OTC_CODE }','${entrustList.OTC_NAME }','${entrustList.APPROVAL_COUNT}','${entrustList.price}', '${entrustList.APPLY_NO }', '${entrustList.remainAmount}')"
class="agreeRation" style="color:#fff">确认配售</a>
</c:if>
</c:if>
</td>
</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">
<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>