cmDiscernReceiptForm.jsp 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  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 {
  93. background: darkorange;
  94. color: white;
  95. margin: 0 0px;
  96. padding: 0 3px;
  97. font-style: normal;
  98. font-size: 12px;
  99. display: inline-block;
  100. border-radius: 2px
  101. }
  102. </style>
  103. <script type="text/javascript">
  104. $(document).ready(function () {
  105. });
  106. // 发送消息
  107. function cancel(id) {
  108. var html = "<div style='padding:20px;'>" +
  109. "<textarea placeholder='请填写撤销收款的说明' name='content' id='content' rows='5' cols='12'/>" +
  110. "</div>";
  111. var submit = function (v, h, f) {
  112. window.location.href = "${ctx}/order/cmDiscernReceipt/cancel?id=" + id + "&note=" + f.content + "&orderID=${vo.orderInfos[0].orderID}"
  113. };
  114. $.jBox(html, {title: "确定撤销收款吗?", submit: submit});
  115. }
  116. </script>
  117. </head>
  118. <body>
  119. <ul class="nav nav-tabs">
  120. <li><a href="${ctx}/order/cmDiscernReceipt/">收款列表</a></li>
  121. <li class="active"><a href="${ctx}/order/cmDiscernReceipt/detail?id=${cmDiscernReceipt.id}">收款详情</a></li>
  122. </ul>
  123. <br/>
  124. <div class="receipt-order-details">
  125. <sys:message content="${message}"/>
  126. <div>
  127. <div class="receipt-title">
  128. <h5>收款信息</h5>
  129. <c:if test="${vo.receiptStatus != 5 && vo.payWay eq 2}">
  130. <a href="#" onclick="cancel(${vo.receiptID})" class="receipt-order-recall">撤销收款</a>
  131. </c:if>
  132. </div>
  133. <div class="receipt-order-title">
  134. <span><label>收款ID:</label>${vo.receiptID}</span>
  135. <span><label>收款类别:</label>
  136. <c:if test="${vo.receiptType == 1}">
  137. 订单款
  138. </c:if>
  139. <c:if test="${vo.receiptType == 2}">
  140. 非订单款
  141. </c:if>
  142. <c:if test="${vo.receiptType == 3}">
  143. <c:if test="${vo.payType == 10}">
  144. 口头返佣
  145. </c:if>
  146. <c:if test="${vo.payType != 10}">
  147. 转账返佣
  148. </c:if>
  149. </c:if>
  150. <c:if test="${vo.receiptType == 5}">
  151. 供应商退款
  152. </c:if>
  153. <c:if test="${vo.receiptType == 6}">
  154. 超级会员款
  155. </c:if>
  156. <c:if test="${vo.receiptType == 7}">
  157. 二手商品上架费
  158. </c:if>
  159. </span>
  160. <span><label>收款类型:</label>${fns:getPayTypeStr(vo.payType)}</span>
  161. <span><label>收款金额:</label>${vo.receiptAmount}</span>
  162. <span><label>收款时间:</label>${vo.receiptDate}</span>
  163. <span><label>收款状态:</label>
  164. <c:if test="${vo.payWay ne 3}">
  165. <c:if test="${vo.receiptStatus == 1}">
  166. 待确认
  167. </c:if>
  168. <c:if test="${vo.receiptStatus == 2}">
  169. 已确认
  170. </c:if>
  171. <c:if test="${vo.receiptStatus == 3}">
  172. 审核通过
  173. </c:if>
  174. <c:if test="${vo.receiptStatus == 4}">
  175. 审核未通过
  176. </c:if>
  177. <c:if test="${vo.receiptStatus == 5}">
  178. <font color="red">收款撤销</font>
  179. </c:if>
  180. </c:if>
  181. <c:if test="${vo.payWay eq 3}">
  182. ----------
  183. </c:if>
  184. </span>
  185. <span class="receipt-details-new-row receipt-msg-wrapper"><label>收款短信:</label>${vo.smsContent eq null ? "无" : vo.smsContent eq "" ? "无" : vo.smsContent}</span>
  186. <c:if test="${vo.receiptType == 3 && not empty vo.rebateRemarks}">
  187. <span class="receipt-details-new-row receipt-msg-wrapper"><label>备注:</label>${vo.rebateRemarks}</span>
  188. </c:if>
  189. <c:if test="${vo.receiptStatus == 5}">
  190. <span class="receipt-details-new-row"><label>撤销说明:</label>${vo.cancelReason eq null ? "无" : vo.cancelReason eq "" ? "无" : vo.cancelReason}</span>
  191. </c:if>
  192. </div>
  193. <c:if test="${vo.receiptType == 2}">
  194. <div class="not-order-type">
  195. <span><label>确认人:</label> ${vo.confirmer}</span>
  196. <span><label>确认时间: </label>${vo.confirmTime}</span>
  197. <br>
  198. <span class="not-order-reason"><label>确认原因:</label>${vo.noOrderReason}</span>
  199. </div>
  200. </c:if>
  201. </div>
  202. <c:if test="${vo.receiptType != 2 and vo.receiptType != 6 and vo.receiptType != 7}">
  203. <h5>关联订单</h5>
  204. <div class="receipt-order-form">
  205. <c:forEach items="${vo.orderInfos}" var="orderInfo">
  206. <div class="receipt-order-form">
  207. <c:if test="${vo.receiptType == 3 || vo.receiptType == 5}">
  208. <div class="receipt-suborder-title">
  209. <span class="font-blue"><label>子订单编号:</label><a
  210. href="${ctx}/order/detail?id=${orderInfo.orderID}">${orderInfo.shopOrderNo}(${orderInfo.shopOrderID})</a></span>
  211. <span><label>订单金额:</label>¥<fmt:formatNumber value="${orderInfo.shopOrderAmount}"
  212. pattern="#0.00"/></span>
  213. <span><label>供应商:</label>${orderInfo.shopName}</span>
  214. <c:if test="${vo.receiptType == 5}">
  215. <span><label>应付金额:</label>¥<fmt:formatNumber value="${orderInfo.shouldPayShopAmount}"
  216. pattern="#0.00"/></span>
  217. <span><label>已付金额:</label>¥<fmt:formatNumber value="${orderInfo.payedShopAmount}"
  218. pattern="#0.00"/></span>
  219. <span><label>已退金额:</label>¥<fmt:formatNumber value="${orderInfo.refundsAmount}"
  220. pattern="#0.00"/></span>
  221. </c:if>
  222. </div>
  223. </c:if>
  224. <div class="receipt-order-row2">
  225. <span class="font-blue"><label>订单编号:</label><a
  226. href="${ctx}/order/detail?id=${orderInfo.orderID}">${orderInfo.orderNo}(${orderInfo.orderID})</a></span>
  227. <span><label>订单金额:</label>¥<fmt:formatNumber
  228. value="${orderInfo.orderAmount}"
  229. pattern="#0.00"/></span>
  230. <span>
  231. <label>已收金额:</label>¥<fmt:formatNumber
  232. value="${empty orderInfo.receiptAmount ? 0 : orderInfo.receiptAmount}"
  233. pattern="#0.00"/>
  234. <span>
  235. <c:forEach items="${orderInfo.receiptRecordVo}" var="receiptRecord"
  236. varStatus="index">
  237. <c:if test="${receiptRecord.confirmType eq 1 || receiptRecord.confirmType eq 2 || receiptRecord.confirmType eq 3}">
  238. <label>抹平明细:</label>
  239. <c:if test="${receiptRecord.confirmType eq 1}">
  240. <c:if test="${vo.receiptOrderFlag}">
  241. <font color="red">(一款多单:少收抹平金额未知)</font>
  242. </c:if>
  243. <c:if test="${!vo.receiptOrderFlag}">
  244. <font color="red">(少收抹平:
  245. ¥<fmt:formatNumber
  246. value="${orderInfo.payableAmount - (empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount)}"
  247. pattern="#0.00"/>元)
  248. </font>
  249. </c:if>
  250. </c:if>
  251. <c:if test="${receiptRecord.confirmType eq 2}">
  252. <c:if test="${vo.receiptOrderFlag}">
  253. <font color="red">(一款多单:多收抹平金额未知)</font>
  254. </c:if>
  255. <c:if test="${!vo.receiptOrderFlag}">
  256. <font color="red">(多收抹平:
  257. ¥<fmt:formatNumber
  258. value="${(empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount) - orderInfo.payableAmount}"
  259. pattern="#0.00"/>元)
  260. </font>
  261. </c:if>
  262. </c:if>
  263. <c:if test="${receiptRecord.confirmType eq 3}">
  264. <c:if test="${vo.receiptOrderFlag}">
  265. <font color="red">(一款多单:多收退余额)</font>
  266. </c:if>
  267. <c:if test="${!vo.receiptOrderFlag}">
  268. <font color="red">(多收退余额${receiptRecord.associationType eq 2 ? "(自动)" : ""}:
  269. ¥<fmt:formatNumber
  270. value="${(empty receiptRecord.returnBalanceAmount ? 0 : receiptRecord.returnBalanceAmount)}"
  271. pattern="#0.00"/>元)
  272. </font>
  273. </c:if>
  274. </c:if>
  275. </c:if>
  276. </c:forEach>
  277. </span>
  278. </span>
  279. <span><label>机构名称:</label>
  280. <c:if test="${orderInfo.organizeID == 1}">
  281. <span class="org-note">星范</span>
  282. </c:if>
  283. ${orderInfo.customerName}
  284. <c:if test="${orderInfo.organizeID == 3}">
  285. </c:if>
  286. </span>
  287. <span><label>订单状态:</label>
  288. <c:if test="${orderInfo.receiptStatus == 1}">待收款</c:if>
  289. <c:if test="${orderInfo.receiptStatus == 2}">部分收款</c:if>
  290. <c:if test="${orderInfo.receiptStatus == 3}">已收款</c:if>
  291. </span>
  292. </div>
  293. <div class="receipt-order-row3">
  294. <span><label>订单类型:</label><c:if test="${orderInfo.orderType == 0}">协销订单</c:if>
  295. <c:if test="${orderInfo.orderType == 1}">自主订单</c:if></span>
  296. <span><label>下单日期:</label>${orderInfo.orderTime}</span>
  297. </div>
  298. <div class="receipt-order-row4">
  299. <div><h5><label>订单收款记录:</label></h5></div>
  300. <c:forEach items="${orderInfo.receiptRecordVo}" var="receiptRecord" varStatus="index">
  301. <div class="row4-wrapper">
  302. <span class="row4-order-no">${index.index + 1}、</span>
  303. <span class="row4-time">${receiptRecord.receiptTime}</span>
  304. <c:if test="${receiptRecord.payWay == 1}">
  305. <%--线上收款--%>
  306. <span>线上&nbsp;${fns:getPayTypeStr(receiptRecord.payType)}</span>
  307. <span>${receiptRecord.receiptAmount}</span>
  308. <span><label>交易号:</label>${receiptRecord.mbOrderId}</span>
  309. </c:if>
  310. <c:if test="${receiptRecord.payWay == 2}">
  311. <span>线下&nbsp;${fns:getPayTypeStr(receiptRecord.payType)}</span>
  312. <span>${receiptRecord.receiptAmount}</span>
  313. <c:if test="${not empty receiptRecord.confirmUserPermissionID}">
  314. <span>${receiptRecord.confirmUserName}确认(${receiptRecord.confirmDate})</span>
  315. </c:if>
  316. <c:if test="${not empty receiptRecord.reviewUserPermissionID}">
  317. <span>
  318. <c:if test="${receiptRecord.receiptStatus eq 4}">
  319. ${receiptRecord.reviewUserName}审核不通过(${receiptRecord.reviewDate})
  320. </c:if>
  321. <c:if test="${receiptRecord.receiptStatus ne 4}">
  322. ${receiptRecord.reviewUserName}审核通过(${receiptRecord.reviewDate})
  323. </c:if>
  324. </span>
  325. </c:if>
  326. </c:if>
  327. <c:if test="${receiptRecord.payWay == 3}">
  328. <%--余额抵扣--%>
  329. <span><a
  330. href="${ctx}/user/cmUserBalanceRecord/userBalanceRecord?userId=${orderInfo.userID}"
  331. style="text-decoration: underline">${fns:getPayTypeStr(receiptRecord.payType)}</a></span>
  332. <span><a
  333. href="${ctx}/user/cmUserBalanceRecord/userBalanceRecord?userId=${orderInfo.userID}"
  334. style="text-decoration: underline">${receiptRecord.receiptAmount}</a></span>
  335. (其中线下余额¥${receiptRecord.userMoney},线上余额¥${receiptRecord.onlineMoney})
  336. </c:if>
  337. <span>
  338. <%-- 一款多单的时候直接显示再订单上即可,无需收款记录显示--%>
  339. <c:if test="${!vo.receiptOrderFlag}">
  340. <c:if test="${receiptRecord.confirmType eq 1 || receiptRecord.confirmType eq 2 || receiptRecord.confirmType eq 3}">
  341. <label>抹平明细:</label>
  342. <c:if test="${receiptRecord.confirmType eq 1}">
  343. <font color="red">(少收抹平:
  344. ¥<fmt:formatNumber
  345. value="${orderInfo.payableAmount - (empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount)}"
  346. pattern="#0.00"/>元)
  347. </font>
  348. </c:if>
  349. <c:if test="${receiptRecord.confirmType eq 2}">
  350. <font color="red">(多收抹平:
  351. ¥<fmt:formatNumber
  352. value="${(empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount) - orderInfo.payableAmount}"
  353. pattern="#0.00"/>元)
  354. </font>
  355. </c:if>
  356. <c:if test="${receiptRecord.confirmType eq 3}">
  357. <font color="red">(多收退余额${receiptRecord.associationType eq 2 ? "(自动)" : ""}:
  358. ¥<fmt:formatNumber
  359. value="${(empty receiptRecord.returnBalanceAmount ? 0 : receiptRecord.returnBalanceAmount)}"
  360. pattern="#0.00"/>元)
  361. </font>
  362. </c:if>
  363. </c:if>
  364. </c:if>
  365. </span>
  366. </div>
  367. </c:forEach>
  368. </div>
  369. </div>
  370. <br>
  371. </c:forEach>
  372. </div>
  373. </c:if>
  374. <c:if test="${vo.receiptType == 6}">
  375. <h5>关联超级会员记录</h5>
  376. <div class="receipt-order-form">
  377. <div>
  378. <c:if test="${not empty vo.vipInfo}">
  379. <span>会员套餐:${vo.vipInfo.duration}个月</span>
  380. <span>交易号:${vo.vipInfo.orderRequestNo}</span>
  381. </c:if>
  382. </div>
  383. </div>
  384. </c:if>
  385. <c:if test="${vo.receiptType == 7}">
  386. <h5>二手商品上架费</h5>
  387. <div class="receipt-order-form">
  388. <div>
  389. <span>交易号:${receiptRecord.mbOrderId}</span>
  390. </div>
  391. </div>
  392. </c:if>
  393. </div>
  394. <script>
  395. (function () {
  396. var row4_wrapper = $('.row4-wrapper');
  397. row4_wrapper.each(function (index) {
  398. if (index % 2 !== 0) {
  399. row4_wrapper.eq(index).css('color', '#2fa4e7');
  400. }
  401. })
  402. })()
  403. </script>
  404. </body>
  405. </html>