userBalanceWithdrawalsReview.jsp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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. .table th{text-align:center}
  9. .table td{text-align:center}
  10. .payment-form h4{width:96%;margin-left:2%;padding-bottom:20px;text-align:center;border-bottom:1px solid #eee}
  11. .required{color:red}
  12. .payment-form label{width:100px;text-align:right;vertical-align:middle;font-weight:600}
  13. .payment-form-top{padding:10px 0}
  14. .payment-form-top>div,.payment-form-bottom>div{width:94%;margin-left:3%;height:50px;line-height:50px;border-bottom:1px solid #eee;white-space:nowrap}
  15. .payment-form-top input{vertical-align:baseline}
  16. .payment-form-top>div:last-child span{margin-left:15px}
  17. .payment-form-top>div:last-child span:nth-of-type(1){margin-left:0}
  18. .pay-table th{background:#f9f9f9}
  19. .pay-table tr:first-child th{background:#eee !important}
  20. .pay-table td{background:#fff !important}
  21. .check-btn{width:96%;margin-left:2%;text-align:center;height:60px;line-height:60px;margin-top:30px}
  22. .check-btn button{width:100px;height:35px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;border:none;border:1px solid #ddd}
  23. .payment-form-bottom label{width:140px}
  24. .process-details span{width:140px;margin-left:50px;font-weight:600}
  25. .process-details div{display:inline-block}
  26. .payment-btn button{width:100px;height:35px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;border:none;border:1px solid #ddd}
  27. .tips-popup-content div{width:100%;text-align:center}
  28. .tips-popup-content p{text-align:center;padding:80px;font-size:20px}
  29. .tips-popup-content h4{padding-left:10px;height:40px;line-height:40px;border-bottom:1px solid #eee;margin-bottom:20px}
  30. .check-btn{width:96%;margin-left:2%;text-align:center;height:60px;line-height:60px;margin-top:30px}
  31. .check-btn button{width:100px;height:35px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;border:none;border:1px solid #ddd}
  32. .mask{width:100%;height:100%;position:fixed;top:0;background:rgba(0,0,0,0.7);display:none}
  33. .tips-popup-content{width:40%;height:auto;padding-bottom:30px;background:#fff;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
  34. .tips-popup-content div{width:100%;text-align:center}
  35. .tips-popup-content{width:30%}
  36. .tips-popup-content p{text-align:center;padding:80px;font-size:20px}
  37. .tips-popup-content h4{padding-left:10px;height:40px;line-height:40px;border-bottom:1px solid #eee;margin-bottom:20px}
  38. .tips-cfm-btn,.tips-cancel-btn,.check-blue-btn,.check-grey-btn{width:100px;height:40px;margin:auto;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;background:#3daae9;color:#fff;border:none}
  39. .refuse-btn{margin-left:50px}
  40. .return-btn,.tips-cancel-btn,.check-grey-btn{background:#fff;color:#555;margin-left:50px}
  41. .tips-cancel-btn,.check-grey-btn{border:1px solid #ddd;margin-left:20px;display:none}
  42. #close-btn1{top:8px;right:10px;width:18px;position:absolute;cursor:pointer}
  43. .tips-popup-reason .tips-popup-content{height:250px}
  44. .tips-popup-reason .tips-popup-content div{position:absolute;bottom:15px}
  45. .tips-popup-reason .check-grey-btn{display:inline-block}
  46. #refuse-reason{width:80%;height:48%;left:8%;position:absolute;resize:none}
  47. .tips-popup-reason h5{color:#555;padding-left:8%;margin-bottom:4px;margin-top:-12px}
  48. .check-cfm-btn{background:#3daae9;color:#fff}
  49. </style>
  50. <style media="print">
  51. .styleWidth{width:6%;word-break:break-all}
  52. .styleWidth{}
  53. .styleWidth3{width:10%;word-break:break-all}
  54. .table{margin-left:0;margin-bottom:20px;padding-bottom:2px;border-bottom:1px solid #ddd;box-sizing:border-box}
  55. .export{display:none}
  56. </style>
  57. </head>
  58. <body>
  59. <ul class="nav nav-tabs">
  60. <li><a href="${ctx}/balance/cmUserBalanceWithdrawals/">余额提现列表</a></li>
  61. <li class="active"><a href="${ctx}/balance/cmUserBalanceWithdrawals/withdrawalReview?id=${balanceWithdrawals.id}">提现审核</a></li>
  62. </ul><br/>
  63. <div class="payment-form">
  64. <h4>提现单</h4>
  65. <div class="payment-form-top">
  66. <div>
  67. <label>机构名称:</label>
  68. <span>${balanceWithdrawals.clubName}</span>
  69. </div>
  70. <div>
  71. <label>提现账号:</label>
  72. <span>户名:${balanceWithdrawals.bankAccountName}</span>&nbsp;&nbsp;
  73. <span>账号:${balanceWithdrawals.bankAccountNo}</span>&nbsp;&nbsp;
  74. <span>开户行:${balanceWithdrawals.openBank}</span>&nbsp;&nbsp;
  75. <span>账户类型:
  76. <c:if test="${balanceWithdrawals.bankAccountType == '1'}">公帐</c:if>
  77. <c:if test="${balanceWithdrawals.bankAccountType == '2'}">私帐</c:if>
  78. </span>
  79. </div>
  80. <div>
  81. <label>提现金额:</label>
  82. <span>${balanceWithdrawals.withdrawalsFee}</span>
  83. </div>
  84. <div>
  85. <label>备注:</label>
  86. <span>${balanceWithdrawals.remark}</span>
  87. </div>
  88. <div>
  89. <label>申请人:</label>
  90. <span>${balanceWithdrawals.applicantName}</span>
  91. </div>
  92. <div>
  93. <label>申请时间:</label>
  94. <span><fmt:formatDate value="${balanceWithdrawals.addDate}" pattern="yyyy-MM-dd HH:mm:ss"/> </span>
  95. </div>
  96. <div>
  97. <label>审核状态:</label>
  98. <span>
  99. <c:if test="${balanceWithdrawals.status == '0'}">
  100. <font color="red">
  101. <strong>待审核</strong>
  102. </font>
  103. </c:if>
  104. </span>
  105. </div>
  106. <div>
  107. <label>转账银行:</label><span>
  108. <select name="payType">
  109. <option value="1">建设银行7297</option>
  110. <option value="2">中信银行0897</option>
  111. <option value="3">中信银行7172</option>
  112. <option value="4">广发银行0115</option>
  113. <option value="5">广发银行5461</option>
  114. </select>
  115. </span>
  116. </div>
  117. <div>
  118. <label>转账时间:</label>
  119. <span>${balanceWithdrawals.payTime}</span>
  120. <input name="id" value="${balanceWithdrawals.id}" id="id" type="hidden">
  121. </div>
  122. </div>
  123. <div class="check-btn">
  124. <button class="check-cfm-btn" type="button">审核通过</button>
  125. <button class="refuse-btn" type="button">审核不通过</button>
  126. <button class="return-btn" type="button" onclick="history.go(-1)">返回</button>
  127. </div>
  128. <div class="mask tips-popup-reason">
  129. <div class="tips-popup-content">
  130. <h4>确认提示</h4>
  131. <h5><span class="required">* </span>审核不通过原因:</h5>
  132. <textarea id="refuse-reason" cols="30" rows="10" maxlength="200"></textarea>
  133. <div>
  134. <button class="check-cfm-btn check-blue-btn" type="button">确定</button>
  135. <button class="check-grey-btn" type="button">取消</button>
  136. </div>
  137. <img id="close-btn1" src="/static/images/close-btn.png" alt="close-btn">
  138. </div>
  139. </div>
  140. <div class="mask tips-popup">
  141. <div class="tips-popup-content">
  142. <h4>信息提示</h4>
  143. <p></p>
  144. <div>
  145. <button class="tips-cfm-btn tips-cfm-directly" type="button">确定</button>
  146. <button class="tips-cancel-btn" type="button">取消</button>
  147. </div>
  148. <img id="close-btn1" src="/static/images/close-btn.png" alt="close-btn">
  149. </div>
  150. </div>
  151. </div>
  152. <script>
  153. (function(){
  154. var payTableEle = $('.pay-table'),
  155. accessFlag = true,
  156. unaccessFlag = true,
  157. payProductEle = $('.pay-product-item');
  158. payTableEle.each(function (i,l) {
  159. var productLength = $(this).find('.pay-product-item').length;
  160. });
  161. $('.pay-table').each(function(){
  162. var thisEle = $(this),
  163. totalComissionVal = 0,
  164. resVal = '';
  165. totalComissionEle = thisEle.find('.payCm'),
  166. comissionEle = thisEle.find('.payCm-t'),
  167. thirdPartyVal = thisEle.find('.third-party-fee').text().replace(',',''),
  168. freightVal = thisEle.find('.freight').text().replace(',','');
  169. totalComissionEle.each(function(){
  170. totalComissionVal += Number($(this).text().replace(',',''));
  171. })
  172. resVal = (totalComissionVal - thirdPartyVal - freightVal).toFixed(2);
  173. comissionEle.text(resVal);
  174. })
  175. $('.tips-cancel-btn, #close-btn1').on('click',function() {
  176. $('.mask').hide();
  177. })
  178. $('.tips-cfm-directly').on('click',function() {
  179. if($('.tips-cfm-btn').hasClass('tips-cfm-directly')) {
  180. $('.tips-popup').hide();
  181. } else {
  182. $('#form').submit();
  183. }
  184. })
  185. $('.refuse-btn').on('click',function() {
  186. $('.tips-popup-reason').show();
  187. })
  188. $('.check-grey-btn').on('click',function() {
  189. $('.tips-popup-reason').hide();
  190. })
  191. function showTips(title,text) {
  192. $('.tips-popup h4').text(title);
  193. $('.tips-popup p').text(text);
  194. $('.tips-popup').show();
  195. }
  196. function submitForm() {
  197. $('.tips-cfm-btn').removeClass('tips-cfm-directly').addClass('submit-now');
  198. $('.tips-cancel-btn').hide();
  199. showTips('信息提示','审核通过');
  200. }
  201. $('.check-cfm-btn').on('click',function(e) {
  202. var payType = $('select[name="payType"]').val(),
  203. id = $('#id').val();
  204. if($(this).hasClass('check-blue-btn')) {
  205. var textareaVal = $('#refuse-reason').val();
  206. if(!textareaVal.trim()) {
  207. showTips('信息提示','审核原因不能为空');
  208. return false;
  209. }
  210. if(unaccessFlag) {
  211. window.location.href = '${ctx}/balance/cmUserBalanceWithdrawals/withdrawalReviewData?id=' + id + '&reason=' + textareaVal;
  212. unaccessFlag = false;
  213. }
  214. } else {
  215. if(accessFlag) {
  216. window.location.href = '${ctx}/balance/cmUserBalanceWithdrawals/withdrawalReviewData?payType=' + payType + '&id=' + id;
  217. accessFlag = false;
  218. }
  219. }
  220. })
  221. })()
  222. </script>
  223. </body>
  224. </html>