cmDiscernReceiptForm.jsp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
  3. <html>
  4. <head>
  5. <title>收款详情</title>
  6. <meta name="decorator" content="default"/>
  7. <style>
  8. body, label, input, button, select, textarea, .uneditable-input, .navbar-search .search-query {
  9. font-size: 16px;
  10. }
  11. .receipt-order-details {
  12. padding: 0 15px;
  13. }
  14. h5 {
  15. font-size: 17px;
  16. padding-bottom: 5px;
  17. }
  18. .receipt-title {
  19. border-bottom: 1px solid #eee;
  20. }
  21. .receipt-title h5 {
  22. display: inline-block;
  23. }
  24. .receipt-title a {
  25. margin-left: 700px;
  26. }
  27. .receipt-order-row4 h5 {
  28. border-bottom: none;
  29. margin-bottom: 10px;
  30. }
  31. .receipt-order-title {
  32. line-height: 30px;
  33. margin: 10px 0;
  34. white-space: nowrap;
  35. }
  36. .receipt-order-title span, .receipt-order-form span, .not-order-type span {
  37. margin-left: 30px;
  38. }
  39. .receipt-order-title > span:first-child, .not-order-type span:first-child {
  40. margin-left: 0px;
  41. }
  42. .receipt-order-recall {
  43. margin-left: 100px;
  44. }
  45. .receipt-order-details label {
  46. color: #666;
  47. font-weight: 600;
  48. cursor: default;
  49. }
  50. .receipt-suborder-title {
  51. border-bottom: 1px dashed #555;
  52. padding-bottom: 10px;
  53. }
  54. .receipt-order-form {
  55. border: 1px solid #eee;
  56. padding: 5px;
  57. margin-top: 10px;
  58. }
  59. .receipt-order-form > div span:first-child {
  60. margin-left: 0;
  61. }
  62. .receipt-order-form > div {
  63. margin: 5px 0;
  64. white-space: nowrap;
  65. }
  66. .receipt-order-row4 span {
  67. margin-left: 60px;
  68. }
  69. .receipt-order-row2 {
  70. margin-top: 10px !important;
  71. }
  72. .row4-order-no, .row4-time {
  73. margin-left: 0 !important;
  74. }
  75. .row4-wrapper {
  76. margin-bottom: 10px;
  77. }
  78. .font-blue {
  79. color: #2fa4e7;
  80. }
  81. .not-order-reason {
  82. margin-top: 15px;
  83. display: inline-block;
  84. margin-left: 0 !important;
  85. }
  86. .receipt-details-new-row {
  87. margin-left: 0 !important;
  88. }
  89. .receipt-msg-wrapper {
  90. display: block;
  91. }
  92. .weishaIcon {background:darkorange;color:white;margin:0 0px;padding:0 3px;font-style:normal;font-size: 12px; display:inline-block;border-radius:2px}
  93. </style>
  94. <script type="text/javascript">
  95. $(document).ready(function () {
  96. });
  97. // 发送消息
  98. function cancel(id) {
  99. var html = "<div style='padding:20px;'>" +
  100. "<textarea placeholder='请填写撤销收款的说明' name='content' id='content' rows='5' cols='12'/>" +
  101. "</div>";
  102. var submit = function (v, h, f) {
  103. window.location.href = "${ctx}/order/cmDiscernReceipt/cancel?id=" + id + "&note=" + f.content + "&orderID=${vo.orderInfos[0].orderID}"
  104. };
  105. $.jBox(html, {title: "确定撤销收款吗?", submit: submit});
  106. }
  107. </script>
  108. </head>
  109. <body>
  110. <ul class="nav nav-tabs">
  111. <li><a href="${ctx}/order/cmDiscernReceipt/">收款列表</a></li>
  112. <li class="active"><a href="${ctx}/order/cmDiscernReceipt/detail?id=${cmDiscernReceipt.id}">收款详情</a></li>
  113. </ul>
  114. <br/>
  115. <div class="receipt-order-details">
  116. <sys:message content="${message}"/>
  117. <div>
  118. <div class="receipt-title">
  119. <h5>收款信息</h5>
  120. <c:if test="${vo.receiptStatus != 5 && vo.payWay eq 2}">
  121. <a href="#" onclick="cancel(${vo.receiptID})" class="receipt-order-recall">撤销收款</a>
  122. </c:if>
  123. </div>
  124. <div class="receipt-order-title">
  125. <span><label>收款ID:</label>${vo.receiptID}</span>
  126. <span><label>收款类别:</label>
  127. <c:if test="${vo.receiptType == 1}">
  128. 订单款
  129. </c:if>
  130. <c:if test="${vo.receiptType == 2}">
  131. 非订单款
  132. </c:if>
  133. <c:if test="${vo.receiptType == 3}">
  134. <c:if test="${vo.payType == 10}">
  135. 口头返佣
  136. </c:if>
  137. <c:if test="${vo.payType != 10}">
  138. 转账返佣
  139. </c:if>
  140. </c:if>
  141. </span>
  142. <span><label>收款类型:</label>${fns:getPayTypeStr(vo.payType)}</span>
  143. <span><label>收款金额:</label>${vo.receiptAmount}</span>
  144. <span><label>收款时间:</label>${vo.receiptDate}</span>
  145. <span><label>收款状态:</label>
  146. <c:if test="${vo.payWay ne 3}">
  147. <c:if test="${vo.receiptStatus == 1}">
  148. 待确认
  149. </c:if>
  150. <c:if test="${vo.receiptStatus == 2}">
  151. 已确认
  152. </c:if>
  153. <c:if test="${vo.receiptStatus == 3}">
  154. 审核通过
  155. </c:if>
  156. <c:if test="${vo.receiptStatus == 4}">
  157. 审核未通过
  158. </c:if>
  159. <c:if test="${vo.receiptStatus == 5}">
  160. <font color="red">收款撤销</font>
  161. </c:if>
  162. </c:if>
  163. <c:if test="${vo.payWay eq 3}">
  164. ----------
  165. </c:if>
  166. </span>
  167. <span class="receipt-details-new-row receipt-msg-wrapper"><label>收款短信:</label>${vo.smsContent eq null ? "无" : vo.smsContent eq "" ? "无" : vo.smsContent}</span>
  168. <c:if test="${vo.receiptType == 3 && not empty vo.rebateRemarks}">
  169. <span class="receipt-details-new-row receipt-msg-wrapper"><label>备注:</label>${vo.rebateRemarks}</span>
  170. </c:if>
  171. <c:if test="${vo.receiptStatus == 5}">
  172. <span class="receipt-details-new-row"><label>撤销说明:</label>${vo.cancelReason eq null ? "无" : vo.cancelReason eq "" ? "无" : vo.cancelReason}</span>
  173. </c:if>
  174. </div>
  175. <c:if test="${vo.receiptType == 2}">
  176. <div class="not-order-type">
  177. <span><label>确认人:</label> ${vo.confirmer}</span>
  178. <span><label>确认时间: </label>${vo.confirmTime}</span>
  179. <br>
  180. <span class="not-order-reason"><label>确认原因:</label>${vo.noOrderReason}</span>
  181. </div>
  182. </c:if>
  183. </div>
  184. <c:if test="${vo.receiptType != 2}">
  185. <h5>关联订单</h5>
  186. <div class="receipt-order-form">
  187. <c:forEach items="${vo.orderInfos}" var="orderInfo">
  188. <div class="receipt-order-form">
  189. <c:if test="${vo.receiptType == 3}">
  190. <div class="receipt-suborder-title">
  191. <span class="font-blue"><label>子订单编号:</label><a
  192. href="${ctx}/order/detail?id=${orderInfo.orderID}">${orderInfo.shopOrderNo}(${orderInfo.shopOrderID})</a></span>
  193. <span><label>订单金额:</label>¥<fmt:formatNumber
  194. value="${orderInfo.shopOrderAmount}"
  195. pattern="#0.00"/></span>
  196. <span><label>供应商:</label>${orderInfo.shopName}</span>
  197. </div>
  198. </c:if>
  199. <div class="receipt-order-row2">
  200. <span class="font-blue"><label>订单编号:</label><a
  201. href="${ctx}/order/detail?id=${orderInfo.orderID}">${orderInfo.orderNo}(${orderInfo.orderID})</a></span>
  202. <span><label>订单金额:</label>¥<fmt:formatNumber
  203. value="${orderInfo.orderAmount}"
  204. pattern="#0.00"/></span>
  205. <span>
  206. <label>已收金额:</label>¥<fmt:formatNumber
  207. value="${empty orderInfo.receiptAmount ? 0 : orderInfo.receiptAmount}"
  208. pattern="#0.00"/>
  209. <span>
  210. <c:forEach items="${orderInfo.receiptRecordVo}" var="receiptRecord" varStatus="index">
  211. <c:if test="${receiptRecord.confirmType eq 1 || receiptRecord.confirmType eq 2 || receiptRecord.confirmType eq 3}">
  212. <label>抹平明细:</label>
  213. <c:if test="${receiptRecord.confirmType eq 1}">
  214. <c:if test="${vo.receiptOrderFlag}">
  215. <font color="red">(一款多单:少收抹平金额未知)</font>
  216. </c:if>
  217. <c:if test="${!vo.receiptOrderFlag}">
  218. <font color="red">(少收抹平:
  219. ¥<fmt:formatNumber value="${orderInfo.payableAmount - (empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount)}" pattern="#0.00"/>元)
  220. </font>
  221. </c:if>
  222. </c:if>
  223. <c:if test="${receiptRecord.confirmType eq 2}">
  224. <c:if test="${vo.receiptOrderFlag}">
  225. <font color="red">(一款多单:多收抹平金额未知)</font>
  226. </c:if>
  227. <c:if test="${!vo.receiptOrderFlag}">
  228. <font color="red">(多收抹平:
  229. ¥<fmt:formatNumber value="${(empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount) - orderInfo.payableAmount}" pattern="#0.00"/>元)
  230. </font>
  231. </c:if>
  232. </c:if>
  233. <c:if test="${receiptRecord.confirmType eq 3}">
  234. <c:if test="${vo.receiptOrderFlag}">
  235. <font color="red">(一款多单:多收退余额)</font>
  236. </c:if>
  237. <c:if test="${!vo.receiptOrderFlag}">
  238. <font color="red">(多收退余额${receiptRecord.associationType eq 2 ? "(自动)" : ""}:
  239. ¥<fmt:formatNumber value="${(empty receiptRecord.returnBalanceAmount ? 0 : receiptRecord.returnBalanceAmount)}" pattern="#0.00"/>元)
  240. </font>
  241. </c:if>
  242. </c:if>
  243. </c:if>
  244. </c:forEach>
  245. </span>
  246. </span>
  247. <span><label>机构名称:</label>
  248. <c:if test="${orderInfo.organizeID == 1}">
  249. <span class="org-note">星范</span>
  250. </c:if>
  251. ${orderInfo.customerName}
  252. <c:if test="${orderInfo.organizeID == 3}">
  253. </c:if>
  254. </span>
  255. <span><label>订单状态:</label>
  256. <c:if test="${orderInfo.receiptStatus == 1}">待收款</c:if>
  257. <c:if test="${orderInfo.receiptStatus == 2}">部分收款</c:if>
  258. <c:if test="${orderInfo.receiptStatus == 3}">已收款</c:if>
  259. </span>
  260. </div>
  261. <div class="receipt-order-row3">
  262. <span><label>订单类型:</label><c:if test="${orderInfo.orderType == 0}">协销订单</c:if>
  263. <c:if test="${orderInfo.orderType == 1}">自主订单</c:if></span>
  264. <span><label>下单日期:</label>${orderInfo.orderTime}</span>
  265. </div>
  266. <div class="receipt-order-row4">
  267. <div><h5><label>订单收款记录:</label></h5></div>
  268. <c:forEach items="${orderInfo.receiptRecordVo}" var="receiptRecord" varStatus="index">
  269. <div class="row4-wrapper">
  270. <span class="row4-order-no">${index.index + 1}、</span>
  271. <span class="row4-time">${receiptRecord.receiptTime}</span>
  272. <c:if test="${receiptRecord.payWay == 1}">
  273. <%--线上收款--%>
  274. <span>线上&nbsp;${fns:getPayTypeStr(receiptRecord.payType)}</span>
  275. <span>${receiptRecord.receiptAmount}</span>
  276. <span><label>交易号:</label>${receiptRecord.mbOrderId}</span>
  277. </c:if>
  278. <c:if test="${receiptRecord.payWay == 2}">
  279. <span>线下&nbsp;${fns:getPayTypeStr(receiptRecord.payType)}</span>
  280. <span>${receiptRecord.receiptAmount}</span>
  281. <c:if test="${not empty receiptRecord.confirmUserPermissionID}">
  282. <span>${receiptRecord.confirmUserName}确认(${receiptRecord.confirmDate})</span>
  283. </c:if>
  284. <c:if test="${not empty receiptRecord.reviewUserPermissionID}">
  285. <span>
  286. <c:if test="${receiptRecord.receiptStatus eq 4}">
  287. ${receiptRecord.reviewUserName}审核不通过(${receiptRecord.reviewDate})
  288. </c:if>
  289. <c:if test="${receiptRecord.receiptStatus ne 4}">
  290. ${receiptRecord.reviewUserName}审核通过(${receiptRecord.reviewDate})
  291. </c:if>
  292. </span>
  293. </c:if>
  294. </c:if>
  295. <c:if test="${receiptRecord.payWay == 3}">
  296. <%--余额抵扣--%>
  297. <span><a href="${ctx}/user/cmUserBalanceRecord/userBalanceRecord?userId=${orderInfo.userID}" style="text-decoration: underline">${fns:getPayTypeStr(receiptRecord.payType)}</a></span>
  298. <span><a href="${ctx}/user/cmUserBalanceRecord/userBalanceRecord?userId=${orderInfo.userID}" style="text-decoration: underline">${receiptRecord.receiptAmount}</a></span>
  299. </c:if>
  300. <span>
  301. <%-- 一款多单的时候直接显示再订单上即可,无需收款记录显示--%>
  302. <c:if test="${!vo.receiptOrderFlag}">
  303. <c:if test="${receiptRecord.confirmType eq 1 || receiptRecord.confirmType eq 2 || receiptRecord.confirmType eq 3}">
  304. <label>抹平明细:</label>
  305. <c:if test="${receiptRecord.confirmType eq 1}">
  306. <font color="red">(少收抹平:
  307. ¥<fmt:formatNumber value="${orderInfo.payableAmount - (empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount)}" pattern="#0.00"/>元)
  308. </font>
  309. </c:if>
  310. <c:if test="${receiptRecord.confirmType eq 2}">
  311. <font color="red">(多收抹平:
  312. ¥<fmt:formatNumber value="${(empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount) - orderInfo.payableAmount}" pattern="#0.00"/>元)
  313. </font>
  314. </c:if>
  315. <c:if test="${receiptRecord.confirmType eq 3}">
  316. <font color="red">(多收退余额${receiptRecord.associationType eq 2 ? "(自动)" : ""}:
  317. ¥<fmt:formatNumber value="${(empty receiptRecord.returnBalanceAmount ? 0 : receiptRecord.returnBalanceAmount)}" pattern="#0.00"/>元)
  318. </font>
  319. </c:if>
  320. </c:if>
  321. </c:if>
  322. </span>
  323. </div>
  324. </c:forEach>
  325. </div>
  326. </div><br>
  327. </c:forEach>
  328. </c:if>
  329. </div>
  330. </div>
  331. <script>
  332. (function () {
  333. var row4_wrapper = $('.row4-wrapper');
  334. row4_wrapper.each(function (index) {
  335. if (index % 2 !== 0) {
  336. row4_wrapper.eq(index).css('color', '#2fa4e7');
  337. }
  338. })
  339. })()
  340. </script>
  341. </body>
  342. </html>