checkPaymentOrder.jsp 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867
  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 type="text/css">
  8. .table th {
  9. text-align: center
  10. }
  11. .table td {
  12. text-align: center
  13. }
  14. #searchForm {
  15. white-space: nowrap
  16. }
  17. .pay-wrapper {
  18. padding: 0 10px
  19. }
  20. .pay-list-item {
  21. margin-bottom: 30px
  22. }
  23. .pay-table th {
  24. background: #f9f9f9 !important;
  25. }
  26. .pay-table tr.t2 td {
  27. background: #f2fbff !important;
  28. }
  29. .pay-table tr.t2 th {
  30. background: #e9f3f7 !important;
  31. }
  32. .pay-table tr.t1 th {
  33. background: #eee !important
  34. }
  35. .pay-table td {
  36. background: #fff !important
  37. }
  38. .pay-table .item0 {
  39. padding: 0;
  40. margin: 0;
  41. font-size: 12px;
  42. }
  43. input[type="checkbox"]::before {
  44. content: '\a0';
  45. display: inline-block;
  46. vertical-align: .2em;
  47. width: .8em;
  48. height: .8em;
  49. margin-right: .2em;
  50. border-radius: .2em;
  51. text-indent: .15em;
  52. line-height: .65
  53. }
  54. #select-all {
  55. width: 70px;
  56. height: 30px;
  57. -webkit-border-radius: 5px;
  58. -moz-border-radius: 5px;
  59. border-radius: 5px;
  60. background: #fff;
  61. border: 1px solid #ddd;
  62. margin-bottom: 10px
  63. }
  64. #select-all:active {
  65. background: #3daae9;
  66. color: #fff
  67. }
  68. .pay-more-func {
  69. float: right;
  70. color: #2fa4e7;
  71. cursor: pointer
  72. }
  73. .pay-more-func span:first-child {
  74. margin-right: 6px
  75. }
  76. .pay-more-func span:hover {
  77. color: #7aa9c3
  78. }
  79. .mask {
  80. width: 100%;
  81. height: 100%;
  82. position: fixed;
  83. top: 0;
  84. background: rgba(0, 0, 0, 0.7);
  85. display: none
  86. }
  87. .revise-popup-content, .tips-popup-content {
  88. width: 40%;
  89. height: auto;
  90. padding-bottom: 30px;
  91. background: #fff;
  92. -webkit-border-radius: 5px;
  93. -moz-border-radius: 5px;
  94. border-radius: 5px;
  95. position: absolute;
  96. top: 50%;
  97. left: 50%;
  98. transform: translate(-50%, -50%)
  99. }
  100. .revise-popup-content {
  101. width: 450px;
  102. height: 360px;
  103. overflow-y: scroll;
  104. padding: 0 15px 30px 15px
  105. }
  106. .tips-popup-content {
  107. width: 30%
  108. }
  109. .tips-popup-content p {
  110. text-align: center;
  111. padding: 80px;
  112. font-size: 20px
  113. }
  114. .revise-popup-content h4, .tips-popup-content h4 {
  115. padding-left: 10px;
  116. height: 40px;
  117. line-height: 40px;
  118. border-bottom: 1px solid #eee;
  119. margin-bottom: 20px
  120. }
  121. .revise-popup-content div {
  122. margin-top: 7px;
  123. text-align: center
  124. }
  125. .revise-popup-content label {
  126. width: 70px;
  127. text-align: right;
  128. vertical-align: text-bottom
  129. }
  130. .revise-popup-content button {
  131. width: 80px;
  132. height: 30px;
  133. -webkit-border-radius: 5px;
  134. -moz-border-radius: 5px;
  135. border-radius: 5px
  136. }
  137. .revise-popup-content > div:nth-of-type(4) > span:first-child {
  138. margin-left: -104px
  139. }
  140. .revise-popup-content > div:nth-of-type(4) > span:last-child {
  141. margin-left: 30px
  142. }
  143. .revise-popup-content > div:nth-of-type(4) > span span {
  144. margin-left: 10px
  145. }
  146. .revise-popup-content > div:last-child {
  147. text-align: center;
  148. margin-top: 20px
  149. }
  150. .revise-popup-content input {
  151. width: 100px;
  152. margin-bottom: 0px
  153. }
  154. .popup-cfm-btn, .tips-cfm-btn {
  155. background: #3daae9;
  156. color: #fff;
  157. border: none
  158. }
  159. .tips-cfm-btn {
  160. width: 100px;
  161. height: 40px;
  162. margin: auto;
  163. display: block;
  164. -webkit-border-radius: 5px;
  165. -moz-border-radius: 5px;
  166. border-radius: 5px
  167. }
  168. .popup-cancel-btn {
  169. background: #fff;
  170. color: #555;
  171. border: 1px solid #ddd;
  172. margin-left: 20px
  173. }
  174. .popup-tips {
  175. color: red;
  176. display: none
  177. }
  178. #close-btn, #close-btn1 {
  179. top: 8px;
  180. right: 10px;
  181. width: 18px;
  182. position: absolute;
  183. cursor: pointer
  184. }
  185. .tips-input-wrapper {
  186. width: 100px
  187. }
  188. .reset-btn {
  189. background: #fff;
  190. color: #555;
  191. border: 1px solid #ddd;
  192. margin-right: 20px
  193. }
  194. .pay-status {
  195. height: 40px;
  196. line-height: 40px;
  197. display: block
  198. }
  199. .form-search label {
  200. width: 80px;
  201. text-align: left;
  202. margin-top: 12px
  203. }
  204. .remark-textarea {
  205. width: 95%;
  206. height: 100px;
  207. resize: none
  208. }
  209. .remark-title {
  210. text-align: left !important
  211. }
  212. .remark-title span {
  213. color: red
  214. }
  215. .ul-form {
  216. white-space: nowrap;
  217. margin-left: -10px !important
  218. }
  219. .ul-form label {
  220. width: 90px;
  221. text-align: left;
  222. margin-top: 15px
  223. }
  224. .time-space-symbols {
  225. width: 100px;
  226. display: inline-block;
  227. text-align: center
  228. }
  229. #btnSubmit {
  230. width: 128px;
  231. margin-left: 435px
  232. }
  233. .pay-status label {
  234. margin-left: 0
  235. }
  236. .pay-status label:first-child {
  237. margin-left: 10px
  238. }
  239. .zeroCost .message {
  240. display: none;
  241. position: absolute;
  242. background: #FFF;
  243. white-space: nowrap;
  244. border: 1px solid black;
  245. }
  246. .zeroCost:hover .message {
  247. display: inline-block;
  248. color: black;
  249. padding: 5px;
  250. margin-left: 10px;
  251. }
  252. .weishaIcon {
  253. background: darkorange;
  254. color: white;
  255. margin: 0 0px;
  256. padding: 0 3px;
  257. font-style: normal;
  258. font-size: 12px;
  259. display: inline-block;
  260. border-radius: 2px
  261. }
  262. </style>
  263. <script type="text/javascript">
  264. $(document).ready(function () {
  265. });
  266. function page(n, s) {
  267. $("#pageNo").val(n);
  268. $("#pageSize").val(s);
  269. $("#searchForm").submit();
  270. return false;
  271. }
  272. </script>
  273. </head>
  274. <body>
  275. <ul class="nav nav-tabs">
  276. <li class="active tab-li"><a href="${ctx}/shopOrder/checkPaymentOrder">订单财务信息</a></li>
  277. </ul>
  278. <form:form id="searchForm" onsubmit="submitFunc()" modelAttribute="newOrder"
  279. action="${ctx}/shopOrder/checkPaymentOrder" method="post" class="breadcrumb form-search">
  280. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  281. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  282. <div class="ul-form">
  283. <label>子订单ID:</label>
  284. <form:input path="shopOrderIDs" htmlEscape="false" onkeyup="onlynum(this)" maxlength="8" class="input-medium"/>
  285. <label>子订单编号:</label>
  286. <form:input path="shopOrderNo" htmlEscape="false" maxlength="20" class="input-medium"/>
  287. <label>订单ID:</label>
  288. <form:input path="orderID" htmlEscape="false" onkeyup="onlynum(this)" maxlength="8" class="input-medium"/>
  289. <label>订单编号:</label>
  290. <form:input path="orderNo" htmlEscape="false" maxlength="20" class="input-medium"/><br>
  291. <label>供应商:</label>
  292. <form:input path="shopName" htmlEscape="false" maxlength="20" class="input-medium"/>
  293. <label>机构:</label>
  294. <form:input path="clubName" htmlEscape="false" maxlength="20" class="input-medium"/>
  295. <label class="control-label">下单时间:</label>
  296. <form:input path="startTime" type="text" maxlength="10" class="input-medium Wdate" value="${startTime}"
  297. onclick="WdatePicker({dateFmt:'yyyy-MM-dd ',isShowClear:false});"/>
  298. <span class="time-space-symbols">至</span>
  299. <form:input path="endTime" type="text" maxlength="10" class="input-medium Wdate" value="${endTime}"
  300. onclick="WdatePicker({dateFmt:'yyyy-MM-dd ',isShowClear:false});"/>
  301. <div class="pay-status">
  302. <label>收款状态:</label>
  303. <form:select path="receiptStatus" class="select-ele input-medium required">
  304. <form:option value="" label="所有"/>
  305. <form:options items="${fns:getDictList('receiptStatus')}" itemLabel="label" itemValue="value"
  306. htmlEscape="false"/>
  307. </form:select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  308. <label>付款状态:</label>
  309. <form:select path="payStatus" class="select-ele input-medium required">
  310. <form:option value="" label="所有"/>
  311. <form:options items="${fns:getDictList('payStatus')}" itemLabel="label" itemValue="value"
  312. htmlEscape="false"/>
  313. </form:select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  314. <label>退款状态:</label>
  315. <form:select path="refundType" class="select-ele input-medium required">
  316. <form:option value="" label="所有"/>
  317. <form:option value="0" label="无退款"/>
  318. <form:option value="1" label="部分退款"/>
  319. <form:option value="2" label="已退款"/>
  320. </form:select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  321. <label>返佣订单:</label>
  322. <form:select path="rebateOrder" class="select-ele input-medium required">
  323. <form:option value="" label="请选择"/>
  324. <form:option value="1" label="是"/>
  325. <form:option value="0" label="否"/>
  326. </form:select>
  327. </div>
  328. <div class="pay-status">
  329. <label>组织:</label>
  330. <form:select path="organizeID" class="select-ele input-medium required">
  331. <form:option value="" label="请选择"/>
  332. <form:option value="0" label="采美"/>
  333. <form:option value="9999" label="呵呵商城"/>
  334. <c:forEach items="${organizeList}" var="organize" varStatus="index">
  335. <form:option value="${organize.id}" label="${organize.organizeName}"/>
  336. </c:forEach>
  337. </form:select>
  338. <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  339. </div>
  340. <div class="clearfix"></div>
  341. </div>
  342. </form:form>
  343. <sys:message content="${message}"/>
  344. <div class="pay-wrapper">
  345. <c:forEach items="${page.list}" var="s" varStatus="sIndex">
  346. <div class="pay-list-item">
  347. <table class="table table-striped table-bordered table-condensed pay-table">
  348. <tr class="t1">
  349. <th class="item0">序号</th>
  350. <th colspan="2">母订单编号(ID)</th>
  351. <th>下单时间</th>
  352. <th>订单金额</th>
  353. <th>订单状态</th>
  354. <th>收款状态</th>
  355. <th>应收金额</th>
  356. <th>已收金额</th>
  357. <th>付款状态</th>
  358. <th>应付金额</th>
  359. <th>已付金额</th>
  360. <th>退款状态</th>
  361. <th>退款金额</th>
  362. <th colspan="2">机构</th>
  363. <th>优惠券</th>
  364. <th>经理折扣</th>
  365. <th>机构运费</th>
  366. <th>是否返佣</th>
  367. </tr>
  368. <tr>
  369. <td rowspan="0" class="item0">${(page.pageNo-1)*page.pageSize+sIndex.index+1}</td>
  370. <td colspan="2">${s.orderNo}(${s.orderID})</td>
  371. <td>${s.orderTime}</td>
  372. <td><fmt:formatNumber value="${s.payTotalFee}" type="number" pattern="#,##0.00"/></td>
  373. <td>
  374. <c:if test="${s.status eq 11 || s.status eq 12 || s.status eq 13 ||s.status eq 21 ||s.status eq 22 ||
  375. s.status eq 23 || s.status eq 31 ||s.status eq 32 ||s.status eq 33}">交易中<br>(${fns:getDictLabel(s.status,"order_detail_status","" )})</c:if>
  376. <c:if test="${s.status eq 0 || s.status eq 4 || s.status eq 5 || s.status eq 6 || s.status eq 7}">${fns:getDictLabel(s.status,"order_detail_status","" )}</c:if>
  377. </td>
  378. <td>
  379. <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${s.orderID}&from=1"
  380. style="text-decoration: underline">
  381. <c:if test="${s.receiptStatus == 1}">
  382. <font color="red">待收款</font>
  383. </c:if>
  384. <c:if test="${s.receiptStatus == 2}">
  385. <font color="#ff8c00">部分收款</font>
  386. </c:if>
  387. <c:if test="${s.receiptStatus == 3}">
  388. <font color="green">已收款</font>
  389. </c:if>
  390. <c:if test="${s.receiptStatus == 4}">
  391. ----
  392. </c:if>
  393. </a>
  394. </td>
  395. <td>
  396. <fmt:formatNumber value="${s.payableAmount}" type="number" pattern="#,##0.00"/>
  397. (余额抵扣:<fmt:formatNumber value="${s.balancePayFee}" type="number" pattern="#,##0.00"/>)
  398. </td>
  399. <td>
  400. <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${s.orderID}&from=1"
  401. style="text-decoration: underline">
  402. <c:if test="${s.alreadyReceipt eq '----'}">
  403. ${s.alreadyReceipt}
  404. </c:if>
  405. <c:if test="${s.alreadyReceipt ne '----'}">
  406. <fmt:formatNumber value="${s.alreadyReceipt}" type="number" pattern="#,##0.00"/>
  407. </c:if>
  408. </a>
  409. </td>
  410. <td>
  411. <c:if test="${s.payStatus == 1 || empty s.payStatus || s.payStatus == 0}"><font
  412. color="red">待付款</font></c:if>
  413. <c:if test="${s.payStatus == 2}"><font color="#ff8c00">部分付款</font></c:if>
  414. <c:if test="${s.payStatus == 3}"><font color="green">已付款</font>
  415. <c:if test="${s.zeroCostFlag eq 1}">
  416. <a href="javascript:;" class="zeroCost"><span><img src="/static/images/info.jpg"
  417. style="width: 15px;margin-bottom: 4px"></span>
  418. <div class="message">
  419. <span>商品成本为0,直接置为已付款,无需付款供应商</span>
  420. </div>
  421. </a>
  422. </c:if>
  423. </c:if>
  424. <c:if test="${s.payStatus == 4}">----</c:if>
  425. </td>
  426. <td><fmt:formatNumber value="${s.shouldPayShopAmount}" type="number" pattern="#,##0.00"/></td>
  427. <td>
  428. <c:if test="${s.paid eq '----'}">
  429. ${s.alreadyReceipt}
  430. </c:if>
  431. <c:if test="${s.paid ne '----'}">
  432. <fmt:formatNumber value="${s.paid}" type="number" pattern="#,##0.00"/>
  433. </c:if>
  434. </td>
  435. <td>
  436. <c:if test="${s.refundType == 1}">
  437. 部分退款
  438. </c:if>
  439. <c:if test="${s.refundType == 2}">
  440. 已退款
  441. </c:if>
  442. <c:if test="${s.refundType != 1 && s.refundType != 2}">
  443. 无退款
  444. </c:if>
  445. </td>
  446. <td><fmt:formatNumber value="${s.returnValue}" type="number" pattern="#,##0.00"/></td>
  447. <td colspan="2">
  448. <c:if test="${s.organizeID == '1'}">
  449. <span class="org-note">星范</span>
  450. </c:if>
  451. ${s.clubName}
  452. <c:if test="${s.orderType eq 2}">
  453. <font color="red">(呵呵商城)</font>
  454. </c:if>
  455. <c:if test="${s.organizeID == 3}">
  456. </c:if>
  457. </td>
  458. <td>
  459. ${s.couponAmount}
  460. </td>
  461. <td><fmt:formatNumber value="${s.discountFee}" type="number" pattern="#,##0.00"/></td>
  462. <td>
  463. <c:if test="${s.freight == 0}">
  464. 包邮
  465. </c:if>
  466. <c:if test="${s.freight == -1}">
  467. 到付
  468. </c:if>
  469. <c:if test="${s.freight == -2}">
  470. 仪器到付-产品包邮
  471. </c:if>
  472. <c:if test="${s.freight != -1 && s.freight != 0 && s.freight != -2}">
  473. <fmt:formatNumber value="${s.freight}" type="currency"/>
  474. <c:if test="${s.returnedFreightFlag eq true}"><font color="red">(已退)</font></c:if>
  475. </c:if>
  476. </td>
  477. <td>
  478. <c:if test="${s.rebateOrder == '1'}">是</c:if>
  479. <c:if test="${s.rebateOrder == '0'}">否</c:if>
  480. </td>
  481. </tr>
  482. <c:forEach items="${s.newShopOrders}" var="so" varStatus="soIndex">
  483. <tr class="t2">
  484. <th colspan="3">子订单编号(ID)</th>
  485. <th colspan="3">供应商</th>
  486. <th colspan="2">商品费</th>
  487. <th colspan="2">已付供应商</th>
  488. <th>供应商退款</th>
  489. <th colspan="2">应付供应商</th>
  490. <th colspan="3">应付税费</th>
  491. <th>供应商运费</th>
  492. <th>付第三方</th>
  493. <th>成本类型</th>
  494. </tr>
  495. <tr class="t2">
  496. <td colspan="3">${so.shopOrderNo}(${so.shopOrderID})</td>
  497. <td colspan="3">${so.shopName}</td>
  498. <td colspan="2" class="product-fee"><fmt:formatNumber value="${so.shopProductAmount}"
  499. type="number" pattern="#,##0.00"/></td>
  500. <td colspan="2"><fmt:formatNumber value="${so.payedShopAmount}" type="number"
  501. pattern="#,##0.00"/></td>
  502. <td>
  503. <c:if test="${so.refundAmount > 0}">
  504. <fmt:formatNumber value="${so.refundAmount}" type="number" pattern="#,##0.00"/>
  505. </c:if>
  506. </td>
  507. <td colspan="2">
  508. <c:if test="${so.differenceType ne 1 && so.differenceType ne 2 }">
  509. <font color="#E15616"><fmt:formatNumber value="${so.shouldPayShopAmount}" type="number"
  510. pattern="#,##0.00"/></font>
  511. </c:if>
  512. <%--1少付2多付--%>
  513. <c:if test="${so.differenceType eq 1 && so.differencePrice > 0}">
  514. <font color="black">${so.shouldPayShopAmount+so.differencePrice}</font><font color="red">(原应付:${so.shouldPayShopAmount},已补差价:${so.differencePrice})</font>
  515. </c:if>
  516. <c:if test="${so.differenceType eq 2 && so.differencePrice > 0}">
  517. <font color="black">${so.shouldPayShopAmount-so.differencePrice}</font><font color="red">(原应付:${so.shouldPayShopAmount},已退差价:${so.differencePrice})</font>
  518. </c:if>
  519. </td>
  520. <td colspan="3"><fmt:formatNumber value="${so.shopTaxFee}" type="number"
  521. pattern="#,##0.00"/></td>
  522. <td class="product-freight"><fmt:formatNumber value="${so.shopPostFee}" type="number"
  523. pattern="#,##0.00"/></td>
  524. <td><fmt:formatNumber value="${so.shopOtherFee}" type="number" pattern="#,##0.00"/></td>
  525. <td><c:if test="${empty so.costType || so.costType == '1'}">固定成本</c:if><c:if
  526. test="${so.costType == '2'}">比例成本</c:if></td>
  527. </tr>
  528. <tr>
  529. <th colspan="3">商品名</th>
  530. <th>规格</th>
  531. <th>数量<%--(赠品)--%></th>
  532. <th>退货</th>
  533. <th colspan="2">单价</th>
  534. <th colspan="3">机构税率 / 单税费 / 总税费</th>
  535. <th colspan="2">总价</th>
  536. <th colspan="3">供应商税率 / 单税费 / 总税费</th>
  537. <th>成本(单)</th>
  538. <th colspan="2">成本(总)</th>
  539. </tr>
  540. <c:forEach items="${so.newOrderProducts}" var="p" varStatus="pIndex">
  541. <tr class="pay-product-item">
  542. <td colspan="3" class="product-name">
  543. <c:if test="${p.productType eq 1}"><font color="red">协商赠品:</font></c:if>
  544. <c:if test="${p.productType eq 2}"><font color="red">促销赠品:</font></c:if>
  545. ${p.name}
  546. </td>
  547. <td style="width:80px;">${p.unit}</td>
  548. <td class="p-num" data-num="${p.num + p.presentNum}">
  549. ${p.num}
  550. <c:if test="${p.presentNum > 0}">(赠:${p.presentNum})</c:if>
  551. </td>
  552. <td><font color="${p.returnedNum>0?'red':''}">${p.returnedNum}</font></td>
  553. <td colspan="2"><fmt:formatNumber value="${empty p.touchPrice?p.discountPrice:p.touchPrice}"
  554. type="number" pattern="#,##0.00"/>
  555. <c:if test="${p.includedTax != null and p.includedTax != '' and p.includedTax ne 2}">
  556. <label style="color: red">
  557. (${p.includedTax eq 1?'含税':(p.invoiceType eq 1 or p.invoiceType eq 2)?'不含税-能开票':'不含税-不能开票'})
  558. </label>
  559. </c:if>
  560. </td>
  561. <td>${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'---':empty p.taxRate?0.0:p.taxRate}${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'':'%'}</td>
  562. <td>${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))?'---': empty p.addedValueTax ?0.00:p.addedValueTax}</td>
  563. <td><c:choose>
  564. <c:when test="${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))}">
  565. ---
  566. </c:when>
  567. <c:otherwise>
  568. <fmt:formatNumber
  569. value="${empty p.totalAddedValueTax ?0.00:(p.addedValueTax * (p.num+p.presentNum-p.returnedNum))}"
  570. type="number" pattern="#,##0.00"/>
  571. </c:otherwise>
  572. </c:choose></td>
  573. <td colspan="2"><fmt:formatNumber
  574. value="${((empty p.touchPrice?p.discountPrice:p.touchPrice) + p.addedValueTax)*(p.num+p.presentNum-p.returnedNum)}"
  575. type="number" pattern="#,##0.00"/></td>
  576. <td>${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'---':empty p.supplierTaxRate?0.0:p.supplierTaxRate}${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'':'%'}</td>
  577. <td>${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))?'---': empty p.singleShouldPayTotalTax ?0.00:p.singleShouldPayTotalTax}</td>
  578. <td><c:choose>
  579. <c:when test="${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))}">
  580. ---
  581. </c:when>
  582. <c:otherwise>
  583. <fmt:formatNumber
  584. value="${empty p.shouldPayTotalTax ?0.00:(p.singleShouldPayTotalTax * (p.num+p.presentNum-p.returnedNum))}"
  585. type="number" pattern="#,##0.00"/>
  586. </c:otherwise>
  587. </c:choose></td>
  588. <td><fmt:formatNumber value="${p.costPrice}" type="number" pattern="#,##0.00"/></td>
  589. <td colspan="2"><fmt:formatNumber
  590. value="${p.costPrice * (p.num + p.presentNum - p.returnedNum)}" type="number"
  591. pattern="#,##0.00"/></td>
  592. </tr>
  593. </c:forEach>
  594. </c:forEach>
  595. </table>
  596. <div style="float:right">
  597. <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord?orderID=${s.orderID}&from=3">收付款记录</a>&nbsp;&nbsp;&nbsp;
  598. <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRecturnRecordByOrderID?orderID=${s.orderID}&from=3">用户退款/货记录</a>&nbsp;&nbsp;&nbsp;
  599. <a href="${ctx}/shopOrder/refundRecord?orderID=${s.orderID}">供应商退/付款记录</a>
  600. </div>
  601. </div>
  602. </c:forEach>
  603. </div>
  604. <div class="pagination">${page}</div>
  605. <script>
  606. (function () {
  607. var payTableEle = $('.pay-table'),
  608. payProductEle = $('.pay-product-item');
  609. var getCheckedArr = sessionStorage.getItem('checkedIndexArr'),
  610. allCheckedEle = $('.pay-all-status');
  611. if (getCheckedArr) {
  612. getCheckedArr = JSON.parse(getCheckedArr);
  613. if (getCheckedArr.length > 0) {
  614. allCheckedEle.prop('checked', false);
  615. $.each(getCheckedArr, function (index, value) {
  616. $('.pay-checkbox').eq(value).prop('checked', true);
  617. })
  618. } else {
  619. allCheckedEle.prop('checked', true);
  620. }
  621. } else {
  622. allCheckedEle.prop('checked', true);
  623. }
  624. $('.tab-li').on('click', function () {
  625. if (getCheckedArr) {
  626. sessionStorage.removeItem('checkedIndexArr');
  627. }
  628. })
  629. function renderPopup(p, f, t, th, s, ps, plist) {
  630. if (plist == '') {
  631. $('.div-table tr:gt(0)').remove();
  632. return;
  633. }
  634. var tsize = plist.size(),
  635. str = '';
  636. for (var i = 0; i < tsize; i++) {
  637. var current = $(plist.get(i));
  638. str += '<tr>' +
  639. '<td>' + current.find('.p-name').text() + '</td>' +
  640. '<td class="tips-input-wrapper">' +
  641. '<input type="number" data-num=' + current.find('.p-num').attr('data-num') + ' data-copid=' + current.find('.p-copId').attr('value') + ' data-ov=' + current.find('.p-costprice').text().replace(',', '') + ' value=' + current.find('.p-costprice').text().replace(',', '') + ' class="modify-product-costprice">' +
  642. '</td>' +
  643. '<td class="tips-input-wrapper">' +
  644. '<input type="number" data-num=' + current.find('.p-num').attr('data-num') + ' data-ov=' + current.find('.p-taxes').text().replace(',', '') + ' value=' + current.find('.p-taxes').text().replace(',', '') + ' class="modify-product-taxes">' +
  645. '</td>' +
  646. '</tr>';
  647. }
  648. $('.div-table').append(str);
  649. }
  650. function showTips1(content) {
  651. var block = $('.popup-tips');
  652. block.text(content);
  653. block.show();
  654. }
  655. function btnToGrey() {
  656. $('.popup-cfm-btn').css({'background': '#ddd', 'color': '#555'});
  657. $('.popup-cfm-btn').attr('disabled', true);
  658. }
  659. function btnToNormal() {
  660. $('.popup-cfm-btn').css({'background': '#3daae9', 'color': '#fff'});
  661. $('.popup-cfm-btn').attr('disabled', false);
  662. }
  663. function showTips(text) {
  664. $('.tips-popup p').text(text);
  665. $('.tips-popup').show();
  666. }
  667. function toZero(thisEle) {
  668. if (Number(thisEle.val()) < 0) {
  669. thisEle.val(0);
  670. }
  671. }
  672. //恢复默认值
  673. $('.reset-btn').on('click', function () {
  674. var elements = $('.modify-product-costprice,#div-freight,.modify-product-taxes,#div-third-party-fee,#proportional');
  675. elements.each(function () {
  676. $(this).attr('value', $(this).attr('data-ov'));
  677. });
  678. validAndAdd();
  679. });
  680. $('#close-btn, .popup-cancel-btn').on('click', function () {
  681. $('.revise-popup').hide();
  682. renderPopup('', '', '', '', '', '', '');
  683. })
  684. $("#popup-product-fee").on("input propertychange", function () {
  685. toZero($(this));
  686. renderSupplierFee();
  687. })
  688. $("#popup-freight").on("input propertychange", function () {
  689. toZero($(this));
  690. renderSupplierFee();
  691. })
  692. $("#popup-taxes").on("input propertychange", function () {
  693. toZero($(this));
  694. renderSupplierFee();
  695. })
  696. $("#popup-third-party").on("input propertychange", function () {
  697. toZero($(this));
  698. if (!$(this).text().trim()) {
  699. showTips1('');
  700. $('.popup-tips').hide();
  701. btnToNormal();
  702. }
  703. });
  704. $('#close-btn1').on('click', function () {
  705. $('.tips-popup').hide();
  706. });
  707. $('body').on('input propertychange', '.modify-product-costprice', function () {
  708. validAndAdd();
  709. });
  710. $('body').on('input propertychange', '#div-freight', function () {
  711. validAndAdd();
  712. });
  713. $('body').on('input propertychange', '.modify-product-taxes', function () {
  714. validAndAdd();
  715. });
  716. $('body').on('input propertychange', '#div-third-party-fee', function () {
  717. validAndAdd();
  718. });
  719. $('body').on('input propertychange', '#proportional', function () {
  720. validAndAdd();
  721. });
  722. // $('#myTab a:first').tab('show');
  723. $('#myTab a').click(function (e) {
  724. e.preventDefault();
  725. var parentLi = $(this).closest('li'),
  726. index = parentLi.index(),
  727. reviseContentEle = $('.revise-content');
  728. parentLi.addClass('active').siblings().removeClass('active');
  729. reviseContentEle.eq(index).show().siblings('.revise-content').hide();
  730. if ($('#li-fixed-cost,#li-proportional-cost').length == 2) {
  731. validAndAdd();
  732. }
  733. })
  734. $('.pay-all-status').on('click', function () {
  735. var thisStatus = $(this).prop('checked');
  736. if (thisStatus) {
  737. $('.pay-other-status').prop('checked', false);
  738. }
  739. })
  740. $('.pay-other-status').on('click', function () {
  741. var thisStatus = $(this).prop('checked');
  742. if (thisStatus) {
  743. $('.pay-all-status').prop('checked', false);
  744. }
  745. })
  746. /*$('.pay-table').each(function () {
  747. var productFee = $(this).find('.product-fee');
  748. var index = 0,
  749. fee = 0;
  750. productFee.each(function () {
  751. fee += Number($(this).text());
  752. $(this).attr('data-index', index);
  753. if (index === 0) {
  754. $(this).attr('rowspan', 0);
  755. } else {
  756. $(this).remove();
  757. }
  758. index++;
  759. });
  760. productFee.text(fee);
  761. })*/
  762. })()
  763. /**
  764. * @param obj
  765. * jquery控制input只能输入数字
  766. */
  767. function onlynum(obj) {
  768. obj.value = obj.value.replace(/[^\d]/g, ""); //清除"数字"以外的字符
  769. }
  770. function submitFunc() {
  771. var checkedArr = [];
  772. $('.pay-checkbox').each(function (index) {
  773. var thisStatus = $(this).prop('checked');
  774. if (thisStatus) {
  775. checkedArr.push(index);
  776. }
  777. })
  778. if (checkedArr.length > 0) {
  779. sessionStorage.setItem('checkedIndexArr', JSON.stringify(checkedArr));
  780. } else {
  781. sessionStorage.setItem('checkedIndexArr', []);
  782. }
  783. }
  784. </script>
  785. </body>
  786. </html>