orderDetail.jsp 83 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
  3. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  4. <html>
  5. <head>
  6. <title>订单列表</title>
  7. <meta name="decorator" content="default"/>
  8. <style type="text/css">
  9. * {
  10. margin: 0;
  11. padding: 0
  12. }
  13. a {
  14. list-style: none;
  15. text-decoration: none
  16. }
  17. body {
  18. background-color: rgb(255, 255, 255)
  19. }
  20. h3 {
  21. line-height: 20px;
  22. padding: 20px 0 20px 15px;
  23. border-bottom: 1px solid #CCCCCC
  24. }
  25. .now-status p {
  26. padding: 20px
  27. }
  28. .now-status span {
  29. display: inline-block;
  30. width: 160px;
  31. line-height: 35px;
  32. margin-right: 15px;
  33. cursor: pointer;
  34. border: 1px solid #CCCCCC;
  35. text-align: center;
  36. border-radius: 5px
  37. }
  38. .buyInfo p {
  39. padding: 15px 5px 0
  40. }
  41. .buyInfo p label {
  42. width: 60px;
  43. display: inline-block
  44. }
  45. .buyInfo p span {
  46. padding-left: 10px
  47. }
  48. .table th {
  49. background-color: #CCCCCC
  50. }
  51. .table th, .table td {
  52. font-weight: normal;
  53. border: 1px solid #CCCCCC;
  54. height: 35px;
  55. text-align: center
  56. }
  57. .table td .div-img {
  58. box-sizing: border-box
  59. }
  60. .table td .div-img img {
  61. width: 100px;
  62. height: 100px;
  63. vertical-align: middle
  64. }
  65. .table td .div-img span {
  66. }
  67. .div-order span {
  68. width: 260px;
  69. display: inline-block;
  70. margin-right: 50px
  71. }
  72. .text-result p {
  73. padding-top: 15px
  74. }
  75. .text-cost p {
  76. padding: 20px 0
  77. }
  78. .moeny-cost p {
  79. padding: 10px 0 0 0;
  80. text-align: left
  81. }
  82. .moeny-cost p label {
  83. display: inline-block
  84. }
  85. .Staging table {
  86. width: 100%;
  87. border-collapse: collapse;
  88. margin-top: 20px
  89. }
  90. .Staging table th, .Staging table td {
  91. font-weight: normal;
  92. border: 1px solid #000;
  93. height: 35px;
  94. text-align: center;
  95. width: 10%
  96. }
  97. .change-info {
  98. position: fixed;
  99. top: 0%;
  100. left: 50%;
  101. transform: translateX(-50%);
  102. z-index: 999;
  103. width: 800px;
  104. background-color: #fff;
  105. box-shadow: 0px 0px 15px #ccc
  106. }
  107. .item-div label {
  108. width: 260px;
  109. text-align: right;
  110. display: inline-block;
  111. margin-right: 50px
  112. }
  113. .item-div input {
  114. width: 300px;
  115. line-height: 35px;
  116. height: 35px;
  117. box-sizing: border-box;
  118. border: 1px solid #CCCCCC;
  119. display: inline-block
  120. }
  121. .item-div select {
  122. width: 90px;
  123. height: 35px;
  124. margin-right: 10px
  125. }
  126. .item-div textarea {
  127. border: 1px solid #CCCCCC;
  128. margin-top: 20px;
  129. width: 300px;
  130. height: 80px;
  131. resize: none;
  132. display: block
  133. }
  134. .layer-status span {
  135. display: inline-block;
  136. width: 80px;
  137. line-height: 35px;
  138. background-color: #00A6C7;
  139. text-align: center;
  140. color: #fff;
  141. cursor: pointer
  142. }
  143. .layer-status span:nth-of-type(1) {
  144. }
  145. .layer-status span:nth-of-type(2) {
  146. margin-left: 72px
  147. }
  148. .same-style {
  149. position: fixed;
  150. top: 20%;
  151. left: 50%;
  152. transform: translateX(-50%);
  153. width: 500px;
  154. background-color: #fff;
  155. z-index: 999;
  156. box-shadow: 0 0 15px #666
  157. }
  158. .reason-cancel label {
  159. margin-right: 20px
  160. }
  161. .reason-cancel textarea {
  162. width: 270px;
  163. height: 80px;
  164. resize: none;
  165. vertical-align: text-top;
  166. border: 1px solid #CCCCCC
  167. }
  168. .order-details-heading {
  169. background: #eee
  170. }
  171. .order-details-heading td {
  172. white-space: nowrap;
  173. padding: 0 10px
  174. }
  175. .order-rows, .order-details-heading {
  176. width: 100%;
  177. border-bottom: 1px solid #ccc;
  178. border-left: 1px solid #ccc;
  179. border-right: 1px solid #ccc;
  180. color: #666;
  181. padding: 10px;
  182. line-height: 30px
  183. }
  184. .order-details-heading {
  185. border-top: 1px solid #ccc
  186. }
  187. .order-details-heading span, .order-rows span {
  188. margin-right: 80px
  189. }
  190. .order-details-heading span {
  191. width: 230px;
  192. margin-right: 0px;
  193. display: inline-block
  194. }
  195. .order-details-heading span label, .order-rows span label {
  196. font-weight: bold
  197. }
  198. .order-rows .supplier-img {
  199. width: 100px
  200. }
  201. .operation-wrapper {
  202. position: relative
  203. }
  204. .operation-btn {
  205. cursor: pointer
  206. }
  207. .operation-block {
  208. background: #fff;
  209. width: 125px;
  210. position: absolute;
  211. left: 826px;
  212. top: 5px;
  213. padding: 10px;
  214. border: 1px solid #666;
  215. -webkit-border-radius: 5px;
  216. -moz-border-radius: 5px;
  217. border-radius: 5px;
  218. z-index: 100001;
  219. display: none
  220. }
  221. .operation-block a {
  222. display: block;
  223. padding: 3px 0
  224. }
  225. .print-wrapper {
  226. display: inline-block
  227. }
  228. .supplier-product-name, .supplier-product-alias {
  229. width: 200px;
  230. line-height: 20px
  231. }
  232. .supplier-product-info {
  233. width: 55%;
  234. display: inline-block;
  235. position: relative;
  236. top: 50%;
  237. transform: translateY(30%)
  238. }
  239. .supplier-product-promotionInfo {
  240. width: 20%;
  241. display: inline-block;
  242. position: relative;
  243. top: 50%;
  244. transform: translateY(30%)
  245. }
  246. .supplier-product-item {
  247. margin-bottom: 10px
  248. }
  249. .supplier-product-alias {
  250. display: inline-block;
  251. margin-top: 5px
  252. }
  253. .supplier-name {
  254. display: inline-block;
  255. vertical-align: middle;
  256. margin: 0 10px
  257. }
  258. #auditBox {
  259. padding: 20px;
  260. line-height: 30px
  261. }
  262. #auditBox p {
  263. font-size: 16px;
  264. margin: 0 0 0 0
  265. }
  266. #auditBox .note-div {
  267. font-size: 16px
  268. }
  269. .downSpan {
  270. display: block;
  271. margin-left: 5px;
  272. margin-bottom: -8px
  273. }
  274. .upSpan {
  275. display: block;
  276. margin-left: 5px;
  277. margin-top: -8px
  278. }
  279. .promotionsName {
  280. margin: 2px
  281. }
  282. .ladderPrice > span {
  283. text-decoration: underline;
  284. color: red
  285. }
  286. .ladderPrice .list {
  287. display: none;
  288. position: absolute;
  289. z-index: 999;
  290. background: #FFF;
  291. white-space: nowrap;
  292. border: 1px solid #EEE;
  293. padding: 10px 0;
  294. color: #333
  295. }
  296. .ladderPrice:hover .list {
  297. display: block
  298. }
  299. .ladderPrice .list span {
  300. margin: 0 20px;
  301. width: 60px;
  302. text-align: center;
  303. display: inline-block
  304. }
  305. .ladderPrice .list span.price {
  306. color: red
  307. }
  308. .weishaIcon {
  309. background: darkorange;
  310. color: white;
  311. margin: 0 0px;
  312. padding: 0 3px;
  313. font-style: normal;
  314. font-size: 12px;
  315. display: inline-block;
  316. border-radius: 2px
  317. }
  318. .acticer_span{display: inline-block;width: 14px;height: 14px;border-radius: 50%;box-sizing: border-box;border: 1px solid #999999;text-align: center;color: #333333;font-size: 12px;line-height: 14px;float: none;margin-left: 3px;}
  319. </style>
  320. <script type="text/javascript" src="${ctxStatic}/QRCode/jquery.qrcode.min.js"></script>
  321. <script type="text/javascript" src="static/common/clipboard.min.js"></script>
  322. </head>
  323. <body>
  324. <ul class="nav nav-tabs">
  325. <li class="active"><a href="${ctx}/order/detail?id=${order.orderID}">订单详情</a></li>
  326. <shiro:hasPermission name="order:order:view">
  327. <li><a href="${ctx}/order/orderList">订单列表</a></li>
  328. </shiro:hasPermission>
  329. <%-- <shiro:hasPermission name="order:order:form">--%>
  330. <%-- <li><a href="${ctx}/order/form">添加订单</a></li>--%>
  331. <%-- </shiro:hasPermission>--%>
  332. <%-- <shiro:hasPermission name="order:order:postageOrderForm">--%>
  333. <%-- <li><a href="${ctx}/order/postageOrderForm">添加运费订单</a></li>--%>
  334. <%-- </shiro:hasPermission>--%>
  335. <shiro:hasPermission name="order:order:secondhandOrder">
  336. <li><a href="${ctx}/order/secondhandOrderList">二手订单列表</a></li>
  337. </shiro:hasPermission>
  338. <%-- <shiro:hasPermission name="order:order:secondeProductOrderForm">--%>
  339. <%-- <li><a href="${ctx}/order/secondeProductOrderForm">添加二手订单</a></li>--%>
  340. <%-- </shiro:hasPermission>--%>
  341. </ul>
  342. <sys:message content="${message}"/>
  343. <table class="order-details-heading">
  344. <tr>
  345. <td>下单时间: ${order.orderTime}</td>
  346. <td>订单ID(订单编号): <b style="font-size: 17px;">${order.orderID}</b>(${order.orderNo})</td>
  347. <td>返佣订单: ${(order.rebateOrder ne '0' || order.rebateFlag eq '1')?'是':'否'}</td>
  348. </tr>
  349. <tr>
  350. <td>订单类型: <c:if test="${order.orderType == 1}">自主订单</c:if><c:if test="${order.orderType == 0}">协销订单</c:if></td>
  351. <td>订单来源: ${fns:getDictLabel(order.orderSource,"bp_orderSource","" )}</td>
  352. <%-- <td>订单状态:--%>
  353. <%-- <c:if test="${order.status eq 11 || order.status eq 12 || order.status eq 13 ||order.status eq 21 ||order.status eq 22 ||--%>
  354. <%-- order.status eq 23 || order.status eq 31 ||order.status eq 32 ||order.status eq 33}">--%>
  355. <%-- 交易中--%>
  356. <%-- </c:if>--%>
  357. <%-- <c:if test="${order.status eq 0 || order.status eq 4 || order.status eq 5 || order.status eq 6 || order.status eq 7}">--%>
  358. <%-- ${fns:getDictLabel(order.status,"order_status","" )}--%>
  359. <%-- <c:if test="${order.status eq 0}">--%>
  360. <%-- <span id="time" style="color: red"></span>--%>
  361. <%-- </c:if>--%>
  362. <%-- <c:if test="${order.status eq 6}">--%>
  363. <%-- <font color="red">(--%>
  364. <%-- <c:if test="${order.closeTime ne null}">--%>
  365. <%-- ${order.closeTime}--%>
  366. <%-- </c:if>--%>
  367. <%-- <c:if test="${order.closeReason ne null}">--%>
  368. <%-- , ${order.closeReason}--%>
  369. <%-- </c:if>--%>
  370. <%-- )</font>--%>
  371. <%-- </c:if>--%>
  372. <%-- </c:if>--%>
  373. <%-- </td>--%>
  374. </tr>
  375. <tr>
  376. <c:if test="${order.status ne 0}">
  377. <td>
  378. 收款状态:
  379. <c:if test="${order.receiptStatus == 1}">
  380. <font color="red">待收款</font>
  381. </c:if>
  382. <c:if test="${order.receiptStatus == 2}">
  383. <font color="#ff8c00">部分收款</font>
  384. </c:if>
  385. <c:if test="${order.receiptStatus == 3}">
  386. <font color="green">已收款</font>
  387. </c:if>
  388. <%--抹平明细 主订单不显示抹平,关联子订单--%>
  389. <%--<c:if test="${order.confirmType eq 1}">
  390. <c:if test="${order.receiptOrderFlag}">
  391. <font color="red">(一款多单:少收抹平金额未知)</font>
  392. </c:if>
  393. <c:if test="${!order.receiptOrderFlag}">
  394. <font color="red">(少收抹平:
  395. ¥<fmt:formatNumber
  396. value="${order.payableAmount - (empty order.orderReceivedAmount ? 0 : order.orderReceivedAmount)}"
  397. pattern="#0.00"/>)
  398. </font>
  399. </c:if>
  400. </c:if>
  401. <c:if test="${order.confirmType eq 2}">
  402. <c:if test="${order.receiptOrderFlag}">
  403. <font color="red">(一款多单:多收抹平金额未知)</font>
  404. </c:if>
  405. <c:if test="${!order.receiptOrderFlag}">
  406. <font color="red">(多收抹平:
  407. ¥<fmt:formatNumber
  408. value="${(empty order.orderReceivedAmount ? 0 : order.orderReceivedAmount) - order.payableAmount}"
  409. pattern="#0.00"/>)
  410. </font>
  411. </c:if>
  412. </c:if>
  413. <c:if test="${order.confirmType eq 3}">
  414. <c:if test="${order.receiptOrderFlag}">
  415. <font color="red">(一款多单:多收退余额)</font>
  416. </c:if>
  417. <c:if test="${!order.receiptOrderFlag}">
  418. <font color="red">(多收退余额&nbsp;&nbsp;${order.associationType eq 2 ? "(自动)" : ""}:
  419. ¥<fmt:formatNumber
  420. value="${(empty order.returnBalanceAmount ? 0 : order.returnBalanceAmount)}"
  421. pattern="#0.00"/>)
  422. </font>
  423. </c:if>
  424. </c:if>--%>
  425. </td>
  426. <td>发货状态:
  427. <c:if test="${order.sendOutStatus == 1}">
  428. <font color="red">待发货</font>
  429. </c:if>
  430. <c:if test="${order.sendOutStatus == 2}">
  431. <font color="#ff8c00">部分发货</font>
  432. </c:if>
  433. <c:if test="${order.sendOutStatus == 3}">
  434. <font color="green">已发货</font>
  435. </c:if></td>
  436. <td>付款状态:
  437. <c:if test="${order.payStatus == 1}">
  438. <font color="red">待付款</font>
  439. </c:if>
  440. <c:if test="${order.payStatus == 2}">
  441. <font color="#ff8c00">部分付款</font>
  442. </c:if>
  443. <c:if test="${order.payStatus == 3}">
  444. <font color="green">已付款</font>
  445. </c:if></td>
  446. </td>
  447. </c:if>
  448. </tr>
  449. <tr>
  450. <c:if test="${order.status ne 0}">
  451. <td>
  452. 退款状态:
  453. <c:if test="${order.refundType == 0}">
  454. <font>无退款</font>
  455. </c:if>
  456. <c:if test="${order.refundType == 1}">
  457. <font>部分退款</font>
  458. </c:if>
  459. <c:if test="${order.refundType == 2}">
  460. <font>已退款</font>
  461. </c:if>
  462. </td>
  463. </c:if>
  464. <td>机构:${order.buyer}
  465. <font id="svipFlagLabel" style="margin-left:0px" color="red">
  466. <c:if test="${order.bpOrderUserinfo.firstClubType eq 1 and order.bpOrderUserinfo.svipFlag eq 1}">
  467. (医美机构,超级会员)
  468. </c:if>
  469. <c:if test="${order.bpOrderUserinfo.firstClubType eq 1 and order.bpOrderUserinfo.svipFlag eq null}">
  470. ${order.bpOrderUserinfo.firstClubType eq 1?'(医美机构)':''}
  471. </c:if>
  472. <c:if test="${order.bpOrderUserinfo.firstClubType eq null and order.bpOrderUserinfo.svipFlag eq 1}">
  473. ${order.bpOrderUserinfo.svipFlag eq 1?'(超级会员)':''}
  474. </c:if>
  475. <c:if test="${order.organizeID == 4}">(联合丽格)</c:if>
  476. </font>
  477. </td>
  478. <td>收货人: ${order.bpOrderUserinfo.shouHuoRen}</td>
  479. </tr>
  480. <tr>
  481. <td>手机: ${order.bpOrderUserinfo.mobile}</td>
  482. <td>
  483. 地址: ${fns:appendLast(fns:appendLast1(order.bpOrderUserinfo.province,order.bpOrderUserinfo.city,order.bpOrderUserinfo.town), order.bpOrderUserinfo.address)}</td>
  484. <fmt:setLocale value="zh_CN" scope="session"/>
  485. <td>
  486. 订单金额:<fmt:formatNumber value="${order.payTotalFee}" type="currency"/>&nbsp;
  487. <c:if test="${not empty order.couponOrderRecord}">
  488. <c:if test="${order.couponOrderRecord.couponType eq 0}">
  489. <a href="${ctx}/coupon/cmCouponClub/couponDetails?userId=${order.userID}"><font
  490. color="red">(活动券抵扣¥${order.couponOrderRecord.couponAmount},满${order.couponOrderRecord.touchPrice}减${order.couponOrderRecord.couponAmount})</font></a>
  491. </c:if>
  492. <c:if test="${order.couponOrderRecord.couponType eq 1}">
  493. <a href="${ctx}/coupon/cmCouponClub/couponDetails?userId=${order.userID}"><font
  494. color="red">(品类券抵扣¥${order.couponOrderRecord.couponAmount},满${order.couponOrderRecord.touchPrice}减${order.couponOrderRecord.couponAmount})</font></a>
  495. </c:if>
  496. <c:if test="${order.couponOrderRecord.couponType eq 2}">
  497. <a href="${ctx}/coupon/cmCouponClub/couponDetails?userId=${order.userID}"><font color="red">(用户专享券抵扣¥${order.couponOrderRecord.couponAmount},满${order.couponOrderRecord.touchPrice}减${order.couponOrderRecord.couponAmount})</font></a>
  498. </c:if>
  499. <c:if test="${order.couponOrderRecord.couponType eq 3}">
  500. <a href="${ctx}/coupon/cmCouponClub/couponDetails?userId=${order.userID}"><font
  501. color="red">(店铺券抵扣¥${order.couponOrderRecord.couponAmount},满${order.couponOrderRecord.touchPrice}减${order.couponOrderRecord.couponAmount})</font></a>
  502. </c:if>
  503. <c:if test="${order.couponOrderRecord.couponType eq 4}">
  504. <a href="${ctx}/coupon/cmCouponClub/couponDetails?userId=${order.userID}"><font
  505. color="red">(新用户券抵扣¥${order.couponOrderRecord.couponAmount},满${order.couponOrderRecord.touchPrice}减${order.couponOrderRecord.couponAmount})</font></a>
  506. </c:if>
  507. </c:if>
  508. </td>
  509. </tr>
  510. <tr>
  511. <td>
  512. 应收金额:<fmt:formatNumber value="${order.payableAmount}" type="currency"/>
  513. <c:if test="${order.organizeID != 4}">
  514. <span style="color: red">
  515. <c:if test="${order.balancePayFee gt 0}">
  516. <a href="${ctx}/user/cmUserBalanceRecord/userBalanceRecord?userId=${order.userID}"
  517. style="color: red;text-decoration: underline">
  518. (账户余额抵扣: <fmt:formatNumber value="${order.balancePayFee}" type="currency"/>)
  519. </a>
  520. </c:if>
  521. <c:if test="${order.balancePayFee le 0}">
  522. (账户余额抵扣: <fmt:formatNumber value="${order.balancePayFee}" type="currency"/>)
  523. </c:if>
  524. </span>
  525. </c:if>
  526. </td>
  527. <td>
  528. 已收金额:
  529. <c:if test="${order.receiptStatus eq 1}">
  530. ¥0.00
  531. </c:if>
  532. <c:if test="${order.receiptStatus ne 1}">
  533. <fmt:formatNumber value="${receiptAmount}" type="currency"/>
  534. </c:if>
  535. <c:if test="${order.receiptStatus == 3 && order.confirmType != null && order.confirmType != ''}">
  536. <%-- <span style='color:#FF0000'>(已抹平收款)</span>--%>
  537. </c:if>
  538. </td>
  539. <td>
  540. 退款金额(已完成):<fmt:formatNumber value="${returnValue}" type="currency"/>
  541. <c:if test="${order.organizeID != 4}">
  542. <span style="color: red">
  543. (原<fmt:formatNumber value="${returnedPurchaseFee}" type="currency"/>,折扣取消
  544. <c:if test="${order.discountFee gt returnedPurchaseFee}"><fmt:formatNumber
  545. value="${returnedPurchaseFee}" type="currency"/></c:if>
  546. <c:if test="${order.discountFee le returnedPurchaseFee}"><fmt:formatNumber
  547. value="${order.discountFee}" type="currency"/></c:if>)
  548. </span>
  549. </c:if>
  550. </td>
  551. </tr>
  552. <tr>
  553. <%-- <c:if test="${order.organizeID != 4}">--%>
  554. <%-- <td>--%>
  555. <%-- 经理折扣:--%>
  556. <%-- <c:if test="${order.discountFee gt 0}">--%>
  557. <%-- <c:if test="${order.discountFee gt returnedPurchaseFee}">--%>
  558. <%-- <fmt:formatNumber value="${order.discountFee - returnedPurchaseFee}" type="currency"/>--%>
  559. <%-- </c:if>--%>
  560. <%-- <c:if test="${order.discountFee le returnedPurchaseFee}">--%>
  561. <%-- ¥0.00--%>
  562. <%-- </c:if>--%>
  563. <%-- <span style="color: red">--%>
  564. <%-- (原<fmt:formatNumber value="${order.discountFee}" type="currency"/>,折扣取消--%>
  565. <%-- <c:if test="${order.discountFee gt returnedPurchaseFee}">--%>
  566. <%-- <fmt:formatNumber value="${returnedPurchaseFee}" type="currency"/>--%>
  567. <%-- </c:if>--%>
  568. <%-- <c:if test="${order.discountFee le returnedPurchaseFee}">--%>
  569. <%-- <fmt:formatNumber value="${order.discountFee}" type="currency"/>--%>
  570. <%-- </c:if>)--%>
  571. <%-- </span>--%>
  572. <%-- </c:if>--%>
  573. <%-- <c:if test="${order.discountFee le 0}">¥0.00</c:if>--%>
  574. <%-- </td>--%>
  575. <%-- </c:if>--%>
  576. <%-- <td>运费:--%>
  577. <%-- <c:if test="${order.organizeID != 4}">--%>
  578. <%-- <c:if test="${order.freePostFlag == 0}">--%>
  579. <%-- 包邮--%>
  580. <%-- </c:if>--%>
  581. <%-- <c:if test="${order.freePostFlag == -1}">--%>
  582. <%-- 到付--%>
  583. <%-- </c:if>--%>
  584. <%-- <c:if test="${order.freePostFlag == -2}">--%>
  585. <%-- 仪器到付-产品包邮--%>
  586. <%-- </c:if>--%>
  587. <%-- <c:if test="${order.freePostFlag != -1 && order.freePostFlag != 0 && order.freePostFlag != -2}">--%>
  588. <%-- <fmt:formatNumber value="${order.freight}" type="currency"/>--%>
  589. <%-- </c:if>--%>
  590. <%-- <c:if test="${order.userBeans > 0}">--%>
  591. <%-- <font color="red">(采美豆抵用:${order.userBeans})</font>--%>
  592. <%-- </c:if>--%>
  593. <%-- </c:if>--%>
  594. <%-- <c:if test="${order.organizeID == 4}">--%>
  595. <%-- ${postageInfo}--%>
  596. <%-- </c:if>--%>
  597. <%-- </td>--%>
  598. <%-- <td style="position: relative;"><a class="operation-btn btn">功能</a>--%>
  599. <%-- <div class="operation-block">--%>
  600. <%-- <shiro:hasPermission name="order:order:edit">--%>
  601. <%-- &lt;%&ndash;包含订单充值商品就不显示&ndash;%&gt;--%>
  602. <%-- <c:if test="${order.rechargeGoods ne 1 and order.rechargeGoods ne 2}">--%>
  603. <%-- <c:if test="${order.status == 11 || order.status == 12 || order.status == 21 || order.status == 22 || order.status == 31 || order.status == 32}">--%>
  604. <%-- <a href="${ctx}/order/toDeliveryPage?id=${order.orderID}">发货</a>--%>
  605. <%-- </c:if>--%>
  606. <%-- <c:if test="${order.receiptStatus == 2 && order.status != 6 && order.status != 7&& order.organizeID != 4}">--%>
  607. <%-- <a href="javascript:void(0);" onclick="collection(${order.orderID})">抹平收款</a>--%>
  608. <%-- </c:if>--%>
  609. <%-- </c:if>--%>
  610. <%-- <c:if test="${order.organizeID != 4}">--%>
  611. <%-- <c:if test="${order.organizeID == 0}">--%>
  612. <%-- <c:if test="${order.status == 0}">--%>
  613. <%-- <a href="${ctx}/order/confirmOrder?orderID=${order.orderID}"--%>
  614. <%-- onclick="return confirmx('是否确认订单?', this.href)">确认订单</a>--%>
  615. <%-- </c:if>--%>
  616. <%-- <c:if test="${order.status == 0 || order.status == 11}">--%>
  617. <%-- <a href="${ctx}/order/cancelOrder?orderID=${order.orderID}"--%>
  618. <%-- onclick="return confirmx('是否取消订单?', this.href)">取消订单</a>--%>
  619. <%-- </c:if>--%>
  620. <%-- <c:if test="${order.status eq 11 || order.status eq 12 || order.status eq 13 ||order.status eq 21 ||order.status eq 22 ||--%>
  621. <%-- order.status eq 23 || order.status eq 0}">--%>
  622. <%-- <c:if test="${order.rechargeGoods ne 1 && order.rechargeGoods ne 2 && (order.ableUserMoney > 0 || order.status eq 0)}">--%>
  623. <%-- <c:if test="${order.postageOrderFlag == 0 && order.secondHandOrderFlag != 1}">--%>
  624. <%-- <a href="${ctx}/order/form?id=${order.orderID}">修改订单</a>--%>
  625. <%-- </c:if>--%>
  626. <%-- <c:if test="${order.postageOrderFlag == 0 && order.secondHandOrderFlag == 1}">--%>
  627. <%-- <a href="${ctx}/order/secondeProductOrderForm?id=${order.orderID}">修改订单</a>--%>
  628. <%-- </c:if>--%>
  629. <%-- </c:if>--%>
  630. <%-- </c:if>--%>
  631. <%-- <c:if test="${order.status == 0}">--%>
  632. <%-- <c:if test="${order.postageOrderFlag == 1}">--%>
  633. <%-- <a href="${ctx}/order/postageOrderForm?id=${order.orderID}">修改邮费订单</a>--%>
  634. <%-- </c:if>--%>
  635. <%-- </c:if>--%>
  636. <%-- </c:if>--%>
  637. <%-- <c:if test="${(order.organizeID == 0 or order.organizeID > 2) && order.status == 11 && order.payStatus == 1}">--%>
  638. <%-- <a href="javascript:void(0);"--%>
  639. <%-- onclick="modelShow('${order.orderID}')">编辑经理折扣</a>--%>
  640. <%-- </c:if>--%>
  641. <%-- <c:if test="${order.secondHandOrderFlag ne 1 && order.rebateFlag ne 1 && order.status != 0 && order.status != 6 && order.status != 7 && empty order.rechargeGoods}">--%>
  642. <%-- <a href="javascript:void(0);"--%>
  643. <%-- onclick="rebateFeeEdit('${order.orderID}')">编辑返佣服务费</a>--%>
  644. <%-- </c:if>--%>
  645. <%-- <c:if test="${order.orderType != 1 && order.rebateFlag eq 0 && order.receiptStatus eq 1 && order.payStatus eq 1 && order.secondHandOrderFlag ne 1 && order.rechargeGoods ne 1 && order.rechargeGoods ne 3}">--%>
  646. <%-- <a href="${ctx}/order/modifyRebate?orderId=${order.orderID}"--%>
  647. <%-- onclick="return confirmx('确定将订单转为返佣订单吗?', this.href)">转为返佣订单</a>--%>
  648. <%-- </c:if>--%>
  649. <%-- <c:if test="${order.orderType != 1 && order.rebateFlag eq 0 && order.receiptStatus eq 1 && order.payStatus eq 1 && order.secondHandOrderFlag eq 1}">--%>
  650. <%-- <a href="${ctx}/order/modifyRebate?orderId=${order.orderID}"--%>
  651. <%-- onclick="return confirmx('确定将订单转为返佣订单吗?', this.href)">转为二手返佣订单</a>--%>
  652. <%-- </c:if>--%>
  653. <%-- </c:if>--%>
  654. <%-- </shiro:hasPermission>--%>
  655. <%-- <shiro:hasPermission name="order:order:applyrefound">--%>
  656. <%-- &lt;%&ndash;线下订单以主订单为单位退款&ndash;%&gt;--%>
  657. <%-- <c:if test="${order.onlinePayFlag == 1}">--%>
  658. <%-- <c:if test="${order.status == 12 || order.status == 13 || order.status == 21 || order.status == 22 || order.status == 23 || order.status == 31 || order.status == 32 || order.status == 33 || order.status == 4 || order.status == 5}">--%>
  659. <%-- &lt;%&ndash; 返佣订单不能申请退款(退货) &ndash;%&gt;--%>
  660. <%-- <c:if test="${order.rebateOrder == '0'}">--%>
  661. <%-- <c:if test="${order.toAudit eq 1}">--%>
  662. <%-- &lt;%&ndash;如果存在审核收款则不允许申请:1不能申请,其它可以申请&ndash;%&gt;--%>
  663. <%-- <c:if test="${order.toAudit eq 1}">--%>
  664. <%-- &lt;%&ndash;弹窗提示&ndash;%&gt;--%>
  665. <%-- <a href="#" onclick="return alertx('订单存在未审核的收款,暂不能退款。请将收款审核通过后再操作退款。')">申请退款</a>--%>
  666. <%-- </c:if>--%>
  667. <%-- </c:if>--%>
  668. <%-- <c:if test="${order.toAudit ne 1}">--%>
  669. <%-- <c:if test="${order.applyReturnedPurchaseFlag eq 1}">--%>
  670. <%-- <a href="${ctx}/bulkpurchase/cmRefundsProduct/applyRefound.rpc?orderID=${order.orderID}&refundType=1&returnGoodsStutas=${order.returnGoodsStutas}"--%>
  671. <%-- <c:if test="${order.status == 21 || order.status == 22 || order.status == 23}">onclick="return confirmx('部分收款的订单、申请退款只能申请全部退款!', this.href)"--%>
  672. <%-- </c:if>--%>
  673. <%-- >申请退款</a>--%>
  674. <%-- </c:if>--%>
  675. <%-- <c:if test="${order.applyReturnedPurchaseFlag ne 1}">--%>
  676. <%-- <font title="存在未处理完的申请,请前往退款列表处理!">申请退款</font>--%>
  677. <%-- </c:if>--%>
  678. <%-- </c:if>--%>
  679. <%-- </c:if>--%>
  680. <%-- </c:if>--%>
  681. <%-- </c:if>--%>
  682. <%-- </shiro:hasPermission>--%>
  683. <%-- <shiro:hasPermission name="order:order:edit">--%>
  684. <%-- <c:if test="${order.organizeID != 4}">--%>
  685. <%-- <c:if test="${(order.rebateOrder == '1' ) && (brokerage == 0) && (order.status != 0)}">--%>
  686. <%-- <a href="${ctx}/order/toChangePay?orderId=${order.orderID}"--%>
  687. <%-- onclick="return confirmx('确定将该返佣订单直接置为已收款和已付款状态吗?', this.href)">置为已收款已付款</a>--%>
  688. <%-- </c:if>--%>
  689. <%-- <c:if test="${order.organizeID == 0}">--%>
  690. <%-- <c:if test="${order.status == 11}">--%>
  691. <%-- <c:if test="${order.splitFlag == 1}">--%>
  692. <%-- <a href="${ctx}/order/toSplit?id=${order.orderID}">--%>
  693. <%-- 拆分订单--%>
  694. <%-- </a>--%>
  695. <%-- </c:if>--%>
  696. <%-- </c:if>--%>
  697. <%-- <a href="javascript:" onclick="QRCodewin(${order.orderID},'${order.orderNo}')">分享二维码</a>--%>
  698. <%-- <c:if test="${order.status ne 6 && order.status ne 7}">--%>
  699. <%-- <a href="${ctx}/order/editclausecontent?id=${order.orderID}">修改售后条款</a>--%>
  700. <%-- </c:if>--%>
  701. <%-- </c:if>--%>
  702. <%-- <c:if test="${order.status ne 0}">--%>
  703. <%-- <a href="${ctx}/order/printOrder?orderID=${order.orderID}">打印发货单</a>--%>
  704. <%-- </c:if>--%>
  705. <%-- <a href="${ctx}/order/exportOrder?id=${order.orderID}">订单导出</a>--%>
  706. <%-- &lt;%&ndash; <a href="javascript:void(0);" onclick="remarks('${order.orderID}','')">备注</a>&ndash;%&gt;--%>
  707. <%-- <c:if test="${order.orderType ==0}">--%>
  708. <%-- <a href="${ctx}/bulkpurchase/commissions?orderId=${order.orderID}">销售提成记录</a>--%>
  709. <%-- </c:if>--%>
  710. <%-- <c:if test="${order.orderType !=0}">--%>
  711. <%-- <c:if test="${order.spID!=null}">--%>
  712. <%-- <a href="${ctx}/bulkpurchase/commissions?orderId=${order.orderID}">销售提成记录</a>--%>
  713. <%-- </c:if>--%>
  714. <%-- </c:if>--%>
  715. <%-- </c:if>--%>
  716. <%-- &lt;%&ndash;包含订单充值商品就不显示&ndash;%&gt;--%>
  717. <%-- <c:if test="${order.rechargeGoods ne 1 and order.rechargeGoods ne 2}">--%>
  718. <%-- <c:if test="${order.status ne 0 && order.status ne 11 && order.status ne 21 && order.status ne 6}">--%>
  719. <%-- <a href="${ctx}/order/logisticsDetails?orderID=${order.orderID}">发货记录</a>--%>
  720. <%-- </c:if>--%>
  721. <%-- <c:if test="${order.status ne 0 && order.status ne 11 && order.status ne 6}">--%>
  722. <%-- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${order.orderID}&from=2">收付款记录--%>
  723. <%-- </a>--%>
  724. <%-- </c:if>--%>
  725. <%-- <c:if test="${order.status ne 0 && order.status ne 11 && order.status ne 6}">--%>
  726. <%-- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRecturnRecordByOrderID.rpc?orderID=${order.orderID}">退款(退货)记录--%>
  727. <%-- </a>--%>
  728. <%-- </c:if>--%>
  729. <%-- </c:if>--%>
  730. <%-- <a href="${ctx}/order/cmOrderRemark/remarksViewNew.rpc?orderID=${order.orderID}&source=2">订单备注</a>--%>
  731. <%-- </shiro:hasPermission>--%>
  732. <%-- </div>--%>
  733. <%-- </td>--%>
  734. </tr>
  735. <c:if test="${order.svipFullReduction gt 0}">
  736. <tr>
  737. <td>超级会员优惠:¥${order.svipFullReduction}</td>
  738. </tr>
  739. </c:if>
  740. <c:if test="${order.promotionFullReduction gt 0 || order.promotionalGiftsCount gt 0}">
  741. <tr>
  742. <c:if test="${order.promotionFullReduction gt 0}">
  743. <td>促销满减:¥${order.promotionFullReduction}</td>
  744. </c:if>
  745. <c:if test="${order.promotionalGiftsCount gt 0}">
  746. <td>赠品总数:${order.promotionalGiftsCount}</td>
  747. </c:if>
  748. </tr>
  749. </c:if>
  750. <c:if test="${order.discountFee gt 0 and returnedPurchaseFee gt 0}">
  751. <tr>
  752. <td style="color: red">说明:因退货,经理折扣收回,用于抵扣退款。</td>
  753. </tr>
  754. </c:if>
  755. </table>
  756. <textarea id="copyValue" style="display: none"></textarea>
  757. <c:forEach items="${order.newShopOrders}" var="shopOrder">
  758. <div class="order-rows">
  759. <span><label>下单时间:</label>${order.orderTime}</span>
  760. <span><label>子订单ID(子订单编号):</label><b style="font-size: 17px;">${shopOrder.shopOrderID}</b>(${shopOrder.shopOrderNo})</span>
  761. <span><label>子订单金额:</label><fmt:formatNumber
  762. value="${order.onlinePayFlag eq 0?shopOrder.realPay:shopOrder.needPayAmount}" type="currency"/></span>
  763. <td style="position: relative;"><a class="operation-btn btn"
  764. onclick="operation(${shopOrder.shopOrderID})">功能</a>
  765. <div style="position: relative;">
  766. <div class="operation-block ${shopOrder.shopOrderID}">
  767. <shiro:hasPermission name="order:order:edit">
  768. <%--包含订单充值商品就不显示--%>
  769. <c:if test="${shopOrder.status == 0}">
  770. <a href="${ctx}/order/confirmOrder?orderID=${order.orderID}&shopOrderID=${shopOrder.shopOrderID}"
  771. onclick="return confirmx('是否确认订单?', this.href)">确认订单</a>
  772. </c:if>
  773. </shiro:hasPermission>
  774. <shiro:hasPermission name="order:order:edit">
  775. <%--包含订单充值商品就不显示--%>
  776. <a href="${ctx}/order/logisticsDetails?orderID=${order.orderID}&shopOrderID=${shopOrder.shopOrderID}">发货记录</a>
  777. <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${order.orderID}&shopOrderID=${shopOrder.shopOrderID}&from=2">收付款记录</a>
  778. <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRecturnRecordByOrderID.rpc?orderID=${order.orderID}&shopOrderID=${shopOrder.shopOrderID}">退款(退货)记录</a>
  779. <a href="${ctx}/order/cmOrderRemark/remarksViewNew.rpc?orderID=${order.orderID}&source=2&shopOrderID=${shopOrder.shopOrderID}">订单备注</a>
  780. </shiro:hasPermission>
  781. </div>
  782. </div>
  783. </td>
  784. </tr>
  785. <span>商品总额:<fmt:formatNumber value="${shopOrder.productAmount}" type="currency"/></span>
  786. <span>运费:
  787. ${shopOrder.postageInfo}
  788. </span>
  789. <span>子订单总额:<fmt:formatNumber value="${shopOrder.totalAmount}" type="currency"/></span>
  790. <%-- <span>优惠:<fmt:formatNumber value="${shopOrder.eachDiscount}" type="currency"/></span>--%>
  791. <span>应收金额:
  792. <c:if test="${shopOrder.realPay!=null}"><fmt:formatNumber value="${shopOrder.realPay}"
  793. type="currency"/></c:if>
  794. <c:if test="${shopOrder.realPay==null}"><fmt:formatNumber value="${shopOrder.needPayAmount}"
  795. type="currency"/></c:if>
  796. </span>
  797. <span>
  798. 已收金额:<fmt:formatNumber value="${shopOrder.receiptAmount}" type="currency"/>
  799. <c:if test="${shopOrder.useBalanceFlag eq 1 and shopOrder.accountAmount ne null}">(余额抵扣¥${shopOrder.accountAmount})</c:if>
  800. <%-- <c:if test="${order.organizeID != 4&&shopOrder.commercialCode eq 'E1807059160' && (order.receiptStatus == 2 || order.receiptStatus == 3)}">--%>
  801. <%-- <font color="red">(采美信息线上收款)</font>--%>
  802. <%-- </c:if>--%>
  803. </span>
  804. <span>待收金额:<fmt:formatNumber value="${shopOrder.restAmount}" type="currency"/></span>
  805. <br/>
  806. <span>子订单状态:
  807. <c:if test="${shopOrder.status eq 11 || shopOrder.status eq 12 || shopOrder.status eq 13 ||shopOrder.status eq 21 ||shopOrder.status eq 22 ||
  808. shopOrder.status eq 23 || shopOrder.status eq 31 ||shopOrder.status eq 32 ||shopOrder.status eq 33}">
  809. 交易中
  810. </c:if>
  811. <%-- <c:if test="${shopOrder.status eq 0 || shopOrder.status eq 4 || shopOrder.status eq 5 || shopOrder.status eq 6 || shopOrder.status eq 7}">--%>
  812. <%-- ${fns:getDictLabel(shopOrder.status,"order_status","" )}--%>
  813. <%-- <c:if test="${shopOrder.status eq 0}">--%>
  814. <%-- <span id="time" style="color: red"></span>--%>
  815. <%-- </c:if>--%>
  816. <%-- <c:if test="${shopOrder.status eq 6}">--%>
  817. <%-- <font color="red">(--%>
  818. <%-- <c:if test="${shopOrder.closeTime ne null}">--%>
  819. <%-- ${shopOrder.closeTime}--%>
  820. <%-- </c:if>--%>
  821. <%-- <c:if test="${shopOrder.closeReason ne null}">--%>
  822. <%-- , ${shopOrder.closeReason}--%>
  823. <%-- </c:if>--%>
  824. <%-- )</font>--%>
  825. <%-- </c:if>--%>
  826. <%-- </c:if>--%>
  827. <%-- 订单状态 0:待确认 1:已确认 2:交易完成 3:订单完成 4:已关闭 5:交易全退--%>
  828. <c:if test="${shopOrder.status == 0}">
  829. <font color="red">待确认</font>
  830. </c:if>
  831. <c:if test="${shopOrder.status == 1}">
  832. <font color="red">已确认</font>
  833. </c:if>
  834. <c:if test="${shopOrder.status == 2}">
  835. <font color="red">交易完成</font>
  836. </c:if>
  837. <c:if test="${shopOrder.status == 3}">
  838. <font color="red">订单完成</font>
  839. </c:if>
  840. <c:if test="${shopOrder.status == 4}">
  841. <font color="red">已关闭</font>
  842. </c:if>
  843. <c:if test="${shopOrder.status == 5}">
  844. <font color="red">交易全退</font>
  845. </c:if>
  846. </span>
  847. <span>收款状态:
  848. <c:if test="${shopOrder.shopReceiptStatus == 1}">
  849. <font color="red">待收款</font>
  850. </c:if>
  851. <c:if test="${shopOrder.shopReceiptStatus == 2}">
  852. <font color="#ff8c00">部分收款</font>
  853. </c:if>
  854. <c:if test="${shopOrder.shopReceiptStatus == 3}">
  855. <font color="green">已收款</font>
  856. </c:if>
  857. <%--抹平明细--%>
  858. <c:if test="${shopOrder.confirmType eq 1}">
  859. <c:if test="${shopOrder.receiptOrderFlag}">
  860. <font color="red">(一款多单:少收抹平金额未知)</font>
  861. </c:if>
  862. <c:if test="${!shopOrder.receiptOrderFlag}">
  863. <font color="red">(少收抹平:
  864. ¥<fmt:formatNumber
  865. value="${shopOrder.needPayAmount - (empty shopOrder.orderReceivedAmount ? 0 : shopOrder.orderReceivedAmount)}"
  866. pattern="#0.00"/>)
  867. </font>
  868. </c:if>
  869. </c:if>
  870. <c:if test="${shopOrder.confirmType eq 2}">
  871. <c:if test="${shopOrder.receiptOrderFlag}">
  872. <font color="red">(一款多单:多收抹平金额未知)</font>
  873. </c:if>
  874. <c:if test="${!shopOrder.receiptOrderFlag}">
  875. <font color="red">(多收抹平:
  876. ¥<fmt:formatNumber
  877. value="${(empty shopOrder.receiptAmount ? 0 : shopOrder.orderReceivedAmount) - shopOrder.payableAmount}"
  878. pattern="#0.00"/>)
  879. </font>
  880. </c:if>
  881. </c:if>
  882. <c:if test="${shopOrder.confirmType eq 3}">
  883. <c:if test="${shopOrder.receiptOrderFlag}">
  884. <font color="red">(一款多单:多收退余额)</font>
  885. </c:if>
  886. <c:if test="${!shopOrder.receiptOrderFlag}">
  887. <font color="red">(多收退余额&nbsp;&nbsp;${shopOrder.associationType eq 2 ? "(自动)" : ""}:
  888. ¥<fmt:formatNumber
  889. value="${(empty shopOrder.returnBalanceAmount ? 0 : shopOrder.returnBalanceAmount)}"
  890. pattern="#0.00"/>)
  891. </font>
  892. </c:if>
  893. </c:if>
  894. </span>
  895. <span>发货状态:
  896. <c:if test="${shopOrder.sendOutStatus == 1}">
  897. <font color="red">待发货</font>
  898. </c:if>
  899. <c:if test="${shopOrder.sendOutStatus == 2}">
  900. <font color="#ff8c00">部分发货</font>
  901. </c:if>
  902. <c:if test="${shopOrder.sendOutStatus == 3}">
  903. <font color="green">已发货</font>
  904. </c:if>
  905. </span>
  906. <span>付款状态:
  907. <c:if test="${shopOrder.payStatus == 1}">
  908. <font color="red">待付款</font>
  909. </c:if>
  910. <c:if test="${shopOrder.payStatus == 2}">
  911. <font color="#ff8c00">部分付款</font>
  912. </c:if>
  913. <c:if test="${shopOrder.payStatus == 3}">
  914. <font color="green">已付款</font>
  915. </c:if>
  916. </span>
  917. <span>
  918. 退款状态:
  919. <c:if test="${shopOrder.refundStatus == 1}">
  920. <font>无退款</font>
  921. </c:if>
  922. <%-- <c:if test="${shopOrder.refundStatus == 2}">--%>
  923. <%-- <font>退款中</font>--%>
  924. <%-- </c:if>--%>
  925. <%-- <c:if test="${shopOrder.orderStatusFlag == 2}">--%>
  926. <%-- <font>部分退款</font>--%>
  927. <%-- </c:if>--%>
  928. <c:if test="${shopOrder.refundStatus == 3}">
  929. <font>已退款</font>
  930. </c:if>
  931. </span>
  932. <c:if test="${not empty shopOrder.note}">
  933. <span>留言:${shopOrder.note}</span>
  934. </c:if>
  935. <%-- </c:if>--%>
  936. </div>
  937. <div class="order-rows">
  938. <span><label>供应商:</label>${shopOrder.shopName}</span>
  939. <c:if test="${shopOrder.contactName ne null}">
  940. <span><label>供应商联系人:</label>${shopOrder.contactName}</span>
  941. </c:if>
  942. <c:if test="${shopOrder.dockingPeopleName ne null}">
  943. <span><label>采美对接人:</label>${shopOrder.dockingPeopleName}</span>
  944. </c:if>
  945. <c:if test="${shopOrder.shopPromotion ne null && shopOrder.shopPromotion.type eq 3}">
  946. <c:if test="${shopOrder.shopPromotion.mode eq 2}">
  947. <span><label
  948. style="background-color: #F60;color: white">${shopOrder.shopPromotion.name}</label> 满<fmt:formatNumber
  949. value="${shopOrder.shopPromotion.touchPrice}" pattern="#,##0.00"
  950. maxFractionDigits="2"/>,减<fmt:formatNumber value="${shopOrder.shopPromotion.reducedPrice}"
  951. pattern="#,##0.00" maxFractionDigits="2"/></span>
  952. </c:if>
  953. <c:if test="${shopOrder.shopPromotion.mode eq 3}">
  954. <span><label
  955. style="background-color: purple;color: white">${shopOrder.shopPromotion.name}</label> 满<fmt:formatNumber
  956. value="${shopOrder.shopPromotion.touchPrice}" pattern="#,##0.00"
  957. maxFractionDigits="2"/>,赠送商品</span>
  958. </c:if>
  959. </c:if>
  960. <div>
  961. <c:forEach items="${shopOrder.newOrderProducts}" var="op" varStatus="varIndex">
  962. <c class="supplier-product-item" style="z-index:${100000 - varIndex.index};position:relative;">
  963. <%--二手订单详情--%>
  964. <c:if test="${order.secondHandOrderFlag eq 1}">
  965. <a href="${fns:getConfig('wwwServer')}flea-market-${op.productID}.html" target="_blank">
  966. <img class="supplier-img" src="${op.image}" style="width: 100px"/>
  967. </a>
  968. </c:if>
  969. <%--正常订单详情--%>
  970. <c:if test="${order.secondHandOrderFlag ne 1}">
  971. <a href="${fns:getConfig('wwwServer')}product-${op.productID}.html" target="_blank">
  972. <img class="supplier-img" src="${op.image}" style="width: 100px"/>
  973. </a>
  974. </c:if>
  975. <c:if test="${order.organizeID != 4}">
  976. <div class="supplier-name">
  977. <c:if test="${op.name eq op.aliasName || op.productID eq 6060}">
  978. <div class="supplier-product-name">${op.name}</div>
  979. </c:if>
  980. <c:if test="${op.name ne op.aliasName && op.productID ne 6060}">
  981. <div class="supplier-product-name">${op.name}</div>
  982. <div class="supplier-product-alias">${op.aliasName}</div>
  983. </c:if>
  984. <c:if test="${op.productType eq 1}">
  985. <div class="supplier-product-name"><label style="color: red">协商赠品</label></div>
  986. </c:if>
  987. <c:if test="${op.productType eq 2}">
  988. <div class="supplier-product-name"><label style="color: red">促销赠品</label></div>
  989. </c:if>
  990. <c:if test="${op.includedTax eq 1}">
  991. <div class="supplier-product-name"><label style="color: red">(含税)</label></div>
  992. </c:if>
  993. <c:if test="${op.includedTax ne '' and op.includedTax eq 0}">
  994. <c:if test="${op.invoiceType eq 3 }">
  995. <div class="supplier-product-name"><label style="color: red">(不含税-不能开票)</label></div>
  996. </c:if>
  997. <c:if test="${op.invoiceType eq 2 or op.invoiceType eq 1}">
  998. <div class="supplier-product-name"><label style="color: red">(不含税-能开票)</label></div>
  999. </c:if>
  1000. </c:if>
  1001. <%-- <c:if test="${order.returnGoodsStutas==2}">--%>
  1002. <%-- <div class="supplier-product-name"><label style="color: red">(不能退货)</label></div>--%>
  1003. <%-- </c:if>--%>
  1004. <%-- <c:if test="${order.returnGoodsStutas==1}">--%>
  1005. <%-- <div class="supplier-product-name"><label style="color: red">(能退货)</label></div>--%>
  1006. <%-- </c:if>--%>
  1007. <c:if test="${op.machineType eq 3}">
  1008. <div class="supplier-product-name"><font style="font-size: 16px" color="red">械字号三类</font></div>
  1009. </c:if>
  1010. </div>
  1011. </c:if>
  1012. <c:if test="${op.productID ne 999}">
  1013. <div class="supplier-product-info">
  1014. <span>
  1015. 规格:
  1016. <label>${op.unit}</label>
  1017. </span>
  1018. <span>单价:
  1019. <c:if test="${op.svipPriceFlag eq 1 or op.productPromotion.mode eq 1}">
  1020. <label style="text-decoration: line-through"><fmt:formatNumber value="${op.price}"
  1021. type="currency"/></label>
  1022. </c:if>
  1023. <c:if test="${op.svipPriceFlag ne 1 and op.productPromotion.mode ne 1}">
  1024. <fmt:formatNumber value="${op.price}" type="currency"/>
  1025. </c:if>
  1026. <c:if test="${op.svipPriceFlag eq 1}">
  1027. <label style="margin-left:5px"><fmt:formatNumber value="${op.discountPrice}"
  1028. type="currency"/></label>
  1029. <font color="red">(超级会员价)</font></span>
  1030. </c:if>
  1031. <c:if test="${op.ladderPriceFlag eq 1 || op.isActProduct eq 2}">
  1032. <a href="javascript:;" class="ladderPrice"><span> (阶梯价格)</span>
  1033. <c:if test="${not empty op.orderProductLadderPriceList}">
  1034. <div class="list">
  1035. <p><span>起订量</span><span>价格</span></p>
  1036. <c:forEach items="${op.orderProductLadderPriceList}" var="ladderPrice">
  1037. <p data-num="${ladderPrice.buyNum}">
  1038. <span>${ladderPrice.buyNumRangeShow}</span><span
  1039. class="price">${ladderPrice.buyPrice}</span></p>
  1040. </c:forEach>
  1041. </div>
  1042. </c:if>
  1043. </a>
  1044. </c:if>
  1045. </span>
  1046. <%-- <c:if test="${order.organizeID != 4}">--%>
  1047. <%-- <span>折扣: ${op.discount}%</span>--%>
  1048. <%-- <span>折后单价:--%>
  1049. <%-- <c:if test="${op.productPromotion.mode eq 1}">--%>
  1050. <%-- <label style="text-decoration: line-through"><fmt:formatNumber--%>
  1051. <%-- value="${op.discountPrice}" type="currency"/></label></span>--%>
  1052. <%-- </c:if>--%>
  1053. <%-- <c:if test="${op.productPromotion.mode ne 1}">--%>
  1054. <%-- <fmt:formatNumber value="${op.discountPrice}" type="currency"/></span>--%>
  1055. <%-- </c:if>--%>
  1056. <%-- </c:if>--%>
  1057. <span>数量: x${op.num}</span>
  1058. <br>
  1059. <c:if test="${order.organizeID != 4}">
  1060. <span>税率: ${(op.includedTax != '' and op.includedTax eq 0 and op.invoiceType eq 3)?'---': op.taxRate ne null?op.taxRate:0.0}%</span>
  1061. <span>税费: ${(op.includedTax eq 1 or (op.includedTax != '' and op.includedTax eq 0 and op.invoiceType eq 3))?'---': empty op.totalAddedValueTax ?0.00:(op.totalAddedValueTax)}</span>
  1062. </c:if>
  1063. <span>总额: <fmt:formatNumber value="${op.totalFee}" type="currency"/></span>
  1064. <c:if test="${order.sendOutStatus == 2 || order.sendOutStatus == 3}">
  1065. <span>已发/已收 ${(op.num == null ? 0 : op.num)+ (op.presentNum == null ? 0 : op.presentNum)- (op.notOutStore == null ? 0 : op.notOutStore)}/${op.receivedNum}</span>
  1066. </c:if>
  1067. <c:if test="${fns:hasReturn(order.status)}">
  1068. <span>退款(退货)中/已完成 ${op.returningNum}/${op.returnedNum}</span>
  1069. </c:if>
  1070. </div>
  1071. <c:if test="${op.productPromotion ne null}">
  1072. <c:if test="${op.productPromotion.type eq 2}">
  1073. <div class="supplier-product-promotionInfo">
  1074. <table>
  1075. <tr>
  1076. <td rowspan="2">
  1077. <c:if test="${op.productPromotion.mode eq 2}">
  1078. <label style="background-color: #F60;color: white"><label
  1079. class="promotionsName">${op.productPromotion.name}</label></label>
  1080. </c:if>
  1081. <c:if test="${op.productPromotion.mode eq 3}">
  1082. <label style="background-color: purple;color: white"><label
  1083. class="promotionsName">${op.productPromotion.name}</label></label>
  1084. </c:if>
  1085. </td>
  1086. <td>
  1087. <span class="downSpan">${op.productPromotion.description}</span>
  1088. <c:if test="${op.productPromotion.mode eq 2}">
  1089. <span class="upSpan"> 满<fmt:formatNumber
  1090. value="${op.productPromotion.touchPrice}" pattern="#,##0.00"
  1091. maxFractionDigits="2"/>,减<fmt:formatNumber
  1092. value="${op.productPromotion.reducedPrice}"
  1093. pattern="#,##0.00" maxFractionDigits="2"/></span>
  1094. </c:if>
  1095. <c:if test="${op.productPromotion.mode eq 3}">
  1096. <span class="upSpan"> 满<fmt:formatNumber
  1097. value="${op.productPromotion.touchPrice}" pattern="#,##0.00"
  1098. maxFractionDigits="2"/>,赠送商品</span>
  1099. </c:if>
  1100. </td>
  1101. </tr>
  1102. </table>
  1103. </div>
  1104. </c:if>
  1105. <c:if test="${op.productPromotion.type eq 1}">
  1106. <div class="supplier-product-promotionInfo">
  1107. <table>
  1108. <tr>
  1109. <c:if test="${op.productPromotion.mode eq 1}">
  1110. <td><label style="background-color: green;color: white"><label
  1111. class="promotionsName">${op.productPromotion.name}</label></label>
  1112. </td>
  1113. <td> 优惠价: <label style="color: red"><fmt:formatNumber
  1114. value="${op.productPromotion.touchPrice}" pattern="#,##0.00"
  1115. maxFractionDigits="2"/></label></td>
  1116. </c:if>
  1117. <c:if test="${op.productPromotion.mode eq 2}">
  1118. <td><label style="background-color: #F60;color: white"><label
  1119. class="promotionsName">${op.productPromotion.name}</label></label>
  1120. </td>
  1121. <td> 满<fmt:formatNumber value="${op.productPromotion.touchPrice}"
  1122. pattern="#,##0.00"
  1123. maxFractionDigits="2"/>,减<fmt:formatNumber
  1124. value="${op.productPromotion.reducedPrice}" pattern="#,##0.00"
  1125. maxFractionDigits="2"/></td>
  1126. </c:if>
  1127. <c:if test="${op.productPromotion.mode eq 3}">
  1128. <td><label style="background-color: purple;color: white"><label
  1129. class="promotionsName">${op.productPromotion.name}</label></label>
  1130. </td>
  1131. <td> 满<fmt:formatNumber value="${op.productPromotion.touchPrice}"
  1132. pattern="#,##0.00" maxFractionDigits="2"/>,赠送商品
  1133. </td>
  1134. </c:if>
  1135. </tr>
  1136. </table>
  1137. </div>
  1138. </c:if>
  1139. </c:if>
  1140. </c:if>
  1141. <c:if test="${op.productID eq 999}">
  1142. <span>数量: x${op.num}</span>
  1143. </c:if>
  1144. <br>
  1145. </c:forEach>
  1146. </div>
  1147. </div>
  1148. <c:if test="${ shopOrder.voucherVo ne null }">
  1149. <div class="order-rows">
  1150. <label>线下支付凭证:</label>
  1151. <c:forEach items="${shopOrder.voucherVo}" var="voucher">
  1152. <div>
  1153. <p><fmt:formatDate value="${voucher.addTime}" pattern="yyyy-MM-dd HH:mm:ss"/></p>
  1154. <c:if test="${voucher.images ne null }">
  1155. <div>
  1156. <c:forEach items="${voucher.images}" var="items" varStatus="index">
  1157. <c:if test="${items.image ne null }">
  1158. <a href="${items.image}" target="_blank">
  1159. <img class="supplier-img" src="${items.image}"
  1160. style="width: 120px;height: 120px"/>
  1161. </a>
  1162. </c:if>
  1163. </c:forEach>
  1164. </div>
  1165. </c:if>
  1166. <p>备注: ${voucher.remarks}</p>
  1167. </div>
  1168. </c:forEach>
  1169. </div>
  1170. </c:if>
  1171. </c:forEach>
  1172. <%--组织订单暂时不显示发票和条款信息--%>
  1173. <%--<c:if test="${order.organizeID == 0}">--%>
  1174. <c:if test="${order.organizeID != 4}">
  1175. <div class="order-rows">
  1176. <label>订单对机构是否可见:</label>
  1177. <c:if test="${order.orderSeen eq 1}">
  1178. <label>可见</label>
  1179. </c:if>
  1180. <c:if test="${order.orderSeen eq 2}">
  1181. <label>不可见</label>
  1182. </c:if>
  1183. <c:if test="${order.orderSeen ne 1 and order.orderSeen ne 2}">
  1184. <label>未定义</label>
  1185. </c:if>
  1186. </div>
  1187. </c:if>
  1188. <div class="order-rows">
  1189. <label>发票信息:</label>
  1190. <c:if test="${order.orderInvoice.type eq 0}">
  1191. <%-- <input name="invoice" type="radio" checked="checked">--%>
  1192. <label>不需要发票</label>
  1193. </c:if>
  1194. <c:if test="${order.orderInvoice.type eq 1}">
  1195. <%-- <input name="invoice" type="radio" checked="checked">--%>
  1196. <label>增值税普通发票</label>
  1197. </c:if>
  1198. <c:if test="${order.orderInvoice.type eq 2}">
  1199. <%-- <input name="invoice" type="radio" checked="checked">--%>
  1200. <label>增值税专用发票</label>
  1201. </c:if>
  1202. <c:if test="${order.orderInvoice.type eq null}">
  1203. <%-- <input name="invoice" type="radio" checked="checked">--%>
  1204. <label>不需要发票</label>
  1205. </c:if>
  1206. <c:if test="${order.orderInvoice.type == 1}">
  1207. <br>
  1208. <div>
  1209. <span>
  1210. <c:if test="${order.orderInvoice.invoiceTitleType eq 0}">
  1211. 个人抬头:
  1212. <span>${order.orderInvoice.invoiceTitle}</span>
  1213. </c:if>
  1214. <c:if test="${order.orderInvoice.invoiceTitleType eq 1}">
  1215. 企业抬头:
  1216. <span>${order.orderInvoice.invoiceTitle}</span>
  1217. &nbsp;&nbsp;&nbsp;&nbsp;
  1218. 纳税人识别号:
  1219. <span>${order.orderInvoice.corporationTaxNum}</span>
  1220. </c:if>
  1221. </span>
  1222. </div>
  1223. </c:if>
  1224. <c:if test="${order.orderInvoice.type == 2}">
  1225. <table>
  1226. <tr>
  1227. <td><span>单位名称:${order.orderInvoice.invoiceTitle}</span></td>
  1228. <td><span>纳税人识别号:${order.orderInvoice.corporationTaxNum}</span></td>
  1229. <td><span>注册地址:${order.orderInvoice.registeredAddress}</span></td>
  1230. </tr>
  1231. <tr>
  1232. <td><span>注册电话:${order.orderInvoice.registeredPhone}</span></td>
  1233. <td><span>开户银行:${order.orderInvoice.openBank}</span></td>
  1234. <td><span>银行账号:${order.orderInvoice.bankAccountNo}</span></td>
  1235. </tr>
  1236. </table>
  1237. </c:if>
  1238. </div>
  1239. <c:if test="${order.organizeID != 4}">
  1240. <div class="order-rows">
  1241. <label>售后条款:</label>
  1242. <c:forEach items="${bpClauses}" var="items" varStatus="index">
  1243. <c:if test="${items.clauseType ne 0 }">
  1244. <span>
  1245. <input id="clauseId${index.index+1}" class="clauseId" name="clauseID" type="radio"
  1246. value="${items.id}"${(order.clauseID)==(items.id)?'checked="checked"':''}
  1247. class="required" class="clauseId" disabled="disabled">
  1248. <input type="hidden" class="clauseContent" id="clauseContent${index.index+1}"
  1249. value="${fns:escapeHtml(items.content)}">
  1250. <input type="hidden" class="clauseName" id="clauseName${index.index+1}" value="${items.name}">
  1251. <a href="javascript:void(0);"
  1252. onclick="openClauseInfo(${index.index+1});"><label>${items.name}</label></a>
  1253. </span>
  1254. </c:if>
  1255. </c:forEach>
  1256. </div>
  1257. </c:if>
  1258. <%--</c:if>--%>
  1259. <%--<c:if test="${order.organizeID == 4&& voucherVo ne null }">--%>
  1260. <%-- <div class="order-rows">--%>
  1261. <%-- <label>线下支付凭证:</label>--%>
  1262. <%-- <c:forEach items="${voucherVo}" var="voucher">--%>
  1263. <%-- <div>--%>
  1264. <%-- <p><fmt:formatDate value="${voucher.addTime}" pattern="yyyy-MM-dd HH:mm:ss"/></p>--%>
  1265. <%-- <c:if test="${voucher.images ne null }">--%>
  1266. <%-- <div>--%>
  1267. <%-- <c:forEach items="${voucher.images}" var="items" varStatus="index">--%>
  1268. <%-- <c:if test="${items.image ne null }">--%>
  1269. <%-- <a href="${items.image}" target="_blank">--%>
  1270. <%-- <img class="supplier-img" src="${items.image}" style="width: 120px;height: 120px"/>--%>
  1271. <%-- </a>--%>
  1272. <%-- </c:if>--%>
  1273. <%-- </c:forEach>--%>
  1274. <%-- </div>--%>
  1275. <%-- </c:if>--%>
  1276. <%-- <p>备注: ${voucher.remarks}</p>--%>
  1277. <%-- </div>--%>
  1278. <%-- </c:forEach>--%>
  1279. <%-- </div>--%>
  1280. <%--</c:if>--%>
  1281. <script type="text/javascript">
  1282. (function () {
  1283. // $('body').click(function (e) {
  1284. // var target = $(e.target),
  1285. // $block = $('.operation-block');
  1286. // if (target.is('.operation-btn')) {
  1287. // if ($block.css('display') === 'none') {
  1288. // $block.show();
  1289. // } else {
  1290. // $block.hide();
  1291. // }
  1292. // }
  1293. // if (!target.is('.operation-block') && !target.is('.operation-btn')) {
  1294. // $block.hide();
  1295. // }
  1296. // });
  1297. $('.clauseId').each(function () {
  1298. var self = $(this);
  1299. if (!self.prop("checked")) {
  1300. self.parent().hide();
  1301. } else {
  1302. self.hide();
  1303. }
  1304. });
  1305. $('#invoice1, #invoice2, #invoice3').each(function () {
  1306. var self = $(this);
  1307. if (!self.prop("checked")) {
  1308. self.next().remove();
  1309. self.remove();
  1310. } else {
  1311. self.remove();
  1312. }
  1313. })
  1314. })();
  1315. function operation(shopOrderID) {
  1316. var operationBlok = $('.' + shopOrderID)
  1317. if (operationBlok.css('display') == 'none') {
  1318. $('.operation-block').hide()
  1319. operationBlok.show()
  1320. } else {
  1321. operationBlok.hide()
  1322. }
  1323. }
  1324. function openClauseInfo(index) {
  1325. var content = $("#clauseContent" + index).val();
  1326. if (content == '') {
  1327. return false;
  1328. }
  1329. $.jBox(content, {
  1330. title: $("#clauseName" + index).val(),
  1331. width: $(top.document).width() - 440,
  1332. height: $(top.document).height() - 240,
  1333. buttons: {'关闭': true}
  1334. });
  1335. }
  1336. //编辑经理折扣
  1337. function modelShow(orderID) {
  1338. top.$.jBox("iframe:${ctx}/order/DiscountFee?orderID=" + orderID, {
  1339. iframeScrolling: 'yes',
  1340. top: 150,
  1341. width: 480,
  1342. height: 250,
  1343. persistent: true,
  1344. title: "编辑经理折扣",
  1345. buttons: {"确认": '1', "取消": '-1'},
  1346. submit: function (v, h, f) {
  1347. //确定
  1348. var $jboxFrame = top.$('#jbox-iframe');
  1349. var $mainFrame = top.$('#mainFrame');
  1350. if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
  1351. var rechargeInfo = $jboxFrame[0].contentWindow.submit();
  1352. var split = rechargeInfo.split(",");
  1353. var payTotalFee = split[0];
  1354. var discountFee = split[1];
  1355. //取值,然后调用后台接口传入参数,最后刷新页面
  1356. if (payTotalFee <= 0) {
  1357. return false;
  1358. }
  1359. $.post("${ctx}/order/saveDiscountFee", {
  1360. 'discountFee': discountFee,
  1361. 'orderID': orderID,
  1362. 'payTotalFee': payTotalFee
  1363. }, function (data) {
  1364. if (true == data.success) {
  1365. refresh(data.msg);
  1366. } else {
  1367. alertx(data.msg, 1000);
  1368. }
  1369. }, "JSON");//这里返回的类型有:json,html,xml,text
  1370. }
  1371. return true;
  1372. }, closed: function () {/* 窗口关闭后执行的函数 */
  1373. }
  1374. });
  1375. }
  1376. function rebateFeeEdit(orderID) {
  1377. top.$.jBox("iframe:${ctx}/order/RebateFee?orderID=" + orderID, {
  1378. iframeScrolling: 'yes',
  1379. top: 150,
  1380. width: 480,
  1381. height: 250,
  1382. persistent: true,
  1383. title: "编辑返佣服务费",
  1384. buttons: {"确认": '1', "取消": '-1'},
  1385. submit: function (v, h, f) {
  1386. //确定
  1387. var $jboxFrame = top.$('#jbox-iframe');
  1388. var $mainFrame = top.$('#mainFrame');
  1389. if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
  1390. var rebateFee = $jboxFrame[0].contentWindow.submit();
  1391. if (!rebateFee) {
  1392. return false;
  1393. }
  1394. $.post("${ctx}/order/saveRebateFee", {
  1395. 'rebateFee': rebateFee,
  1396. 'orderID': orderID
  1397. }, function (data) {
  1398. if (true == data.success) {
  1399. refresh(data.msg);
  1400. } else {
  1401. alertx(data.msg, 1000);
  1402. }
  1403. }, "JSON");//这里返回的类型有:json,html,xml,text
  1404. }
  1405. return true;
  1406. }, closed: function () {/* 窗口关闭后执行的函数 */
  1407. }
  1408. });
  1409. }
  1410. //订单商品备注
  1411. function remarks(orderID, shopOrderID) {
  1412. top.$.jBox("iframe:${ctx}/order/cmOrderRemark/remarksView?orderID=" + orderID + "&shopOrderID=" + shopOrderID, {
  1413. iframeScrolling: 'yes',
  1414. top: 150,
  1415. width: 400,
  1416. height: 480,
  1417. persistent: true,
  1418. title: "订单备注信息",
  1419. buttons: {"确认": '1', "关闭": '-1'},
  1420. submit: function (v, h, f) {
  1421. //确定
  1422. var $jboxFrame = top.$('#jbox-iframe');
  1423. var $mainFrame = top.$('#mainFrame');
  1424. if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
  1425. var remarks = $jboxFrame[0].contentWindow.submit();
  1426. // var arr = item.split(",");
  1427. // var remarks = arr[0];
  1428. if ('' == remarks) {
  1429. alertx("备注信息不能为空!!!")
  1430. return false;
  1431. }
  1432. saveRemarks(remarks, orderID, shopOrderID);
  1433. return true;
  1434. }
  1435. return true;
  1436. },
  1437. loaded: function (h) { //隐藏滚动条
  1438. $(".jbox-content", top.document).css("overflow-y", "hidden");
  1439. }
  1440. });
  1441. }
  1442. function saveRemarks(remarks, orderID, shopOrderID) {
  1443. $.post("${ctx}/order/cmOrderRemark/addRemarks", {
  1444. "remarks": remarks, "orderID": orderID, "shopOrderID": shopOrderID
  1445. }, function (data) {
  1446. if (true == data.success) {
  1447. refresh(data.msg);
  1448. } else {
  1449. $.jBox.tip(data.msg, 'error');
  1450. }
  1451. }, "JSON");//这里返回的类型有:json,html,xml,text
  1452. }
  1453. // 二维码分享
  1454. function QRCodewin(orderId, orderNo) {
  1455. var html = '<div style="padding:10px;">订单号:' + orderNo + '' +
  1456. '<div class="code" style="text-align: center;"></div>' +
  1457. '</div>';
  1458. $.jBox(html, {
  1459. title: "订单二维码分享",
  1460. width: $(top.document).width() - 1700,
  1461. height: $(top.document).height() - 1600,
  1462. buttons: {'关闭': true}
  1463. });
  1464. var enCodeRedirectUrl;
  1465. var redirectUrl = '${fns:getConfig('caimei.crm.server')}oauth.action?orderId=' + orderId;
  1466. $.ajax({
  1467. url: "${ctx}/bulkpurchase/contractOrder/enCode",
  1468. data: {"redirectUrl": redirectUrl},
  1469. type: "POST",
  1470. async: false,
  1471. success: function (data) {
  1472. enCodeRedirectUrl = data.enCodeRedirectUrl;
  1473. }
  1474. });
  1475. var shareUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=${fns:getConfig('weixin.appId')}&redirect_uri=' + enCodeRedirectUrl + '&response_type=code&scope=snsapi_base&state=bulkpurchase#wechat_redirect';
  1476. $('.code').qrcode({
  1477. width: 150,
  1478. height: 150,
  1479. text: shareUrl
  1480. });
  1481. }
  1482. //刷新页面
  1483. function refresh(msg) {
  1484. $.jBox.tip(msg, 'info', {timeout: 1000});
  1485. setTimeout(function () {
  1486. window.location.href = "${ctx}/order/detail?id=${order.orderID}"
  1487. }, 1000)
  1488. }
  1489. </script>
  1490.  
  1491. <script>
  1492. if ("${time}" != "") {
  1493. window.onload = clock;
  1494. function clock() {
  1495. var today = new Date(),//当前时间
  1496. h = today.getHours(),
  1497. m = today.getMinutes(),
  1498. s = today.getSeconds();
  1499. var stopTime = new Date("${time}"),//结束时间
  1500. stopH = stopTime.getHours(),
  1501. stopM = stopTime.getMinutes(),
  1502. stopS = stopTime.getSeconds();
  1503. var shenyu = stopTime.getTime() - today.getTime(),//倒计时毫秒数
  1504. shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)),//转换为天
  1505. D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000),//除去天的毫秒数
  1506. shengyuH = parseInt(D / (60 * 60 * 1000)),//除去天的毫秒数转换成小时
  1507. H = D - shengyuH * 60 * 60 * 1000,//除去天、小时的毫秒数
  1508. shengyuM = parseInt(H / (60 * 1000)),//除去天的毫秒数转换成分钟
  1509. M = H - shengyuM * 60 * 1000;//除去天、小时、分的毫秒数
  1510. S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)//除去天、小时、分的毫秒数转化为秒
  1511. document.getElementById("time").innerHTML = ("(剩余" + shengyuD + "天" + shengyuH + "小时" + shengyuM + "分" + S + "秒)" + "<br>");
  1512. setTimeout(clock, 500);
  1513. }
  1514. }
  1515. function copyText(shopOrderID) {
  1516. $.post("${ctx}/order/shopOrderLink", {'shopOrderId': shopOrderID}, function (data) {
  1517. if (data.success) {
  1518. var imageSrc = "data:image/jpeg|png|gif;base64," + data.imageBuffer;
  1519. top.$.jBox.info('<img width="150px" height="150px" style="margin-left: 65px;" src=' + imageSrc + '>', '小程序扫码发货');
  1520. } else {
  1521. alertx(data.msg);
  1522. }
  1523. });
  1524. }
  1525. $(document).ready(function () {
  1526. if ($(".operation-block").length > 0) {
  1527. var length = $(".operation-block").length;
  1528. for (var i = 0; i < length; i++) {
  1529. var b = $(".operation-block").get(i);
  1530. if ($(b).html().trim() == '') {
  1531. $(b).hide();
  1532. $(b).prev().hide();
  1533. }
  1534. }
  1535. }
  1536. if ($('.supplier-product-name').html() == $('.supplier-product-alias').html()) {
  1537. $('.supplier-product-alias').remove();
  1538. }
  1539. })
  1540. //抹平收款
  1541. function collection(orderId) {
  1542. $.post("${ctx}/order/gatheringData", {
  1543. 'orderId': orderId
  1544. }, function (data) {
  1545. if (true == data.success) {
  1546. var html = "<div id='auditBox'>" +
  1547. "<P>确定抹平收款吗?抹平后该订单将变为已收款状态</p>" +
  1548. "<P><span>订单金额:<b>¥" + Number(data.payTotalFee).toFixed(2) + "</b></span></p>" +
  1549. "<P><span>应收金额:<b>¥" + Number(data.payableAmount).toFixed(2) + "</b><span style='color:#FF0000'>(账户余额抵扣: ¥<b>" + Number(data.balancePayFee).toFixed(2) + "</b>)</span></span></p>" +
  1550. "<P><span>已收金额:<b>¥" + Number(data.associateAmount).toFixed(2) + "</b></span></p>" +
  1551. "<div><div class='note-div'><span style='color:#FF0000'>*</span>备注</div></div>" +
  1552. "<textarea name='auditNote' style='width: 100%;min-height:60px;'></textarea>" +
  1553. "<div class='note-div' style='display: none' id='noteError'><span style='color:#FF0000'>请填写备注</span> </div>" +
  1554. "</div>";
  1555. $.jBox(html, {
  1556. title: "确认提示", width: 500, height: 400, buttons: {"确定": '1', "取消": '-1'},
  1557. submit: function (v, h, f) {
  1558. if ('1' == v) {
  1559. if ((Number(data.payTotalFee) - Number(data.associateAmount)) > 10) {
  1560. alertx("订单剩余应收金额大于¥10.00,不能抹平!");
  1561. return false;
  1562. }
  1563. var content = document.getElementsByName("auditNote")[0].value;
  1564. if (content == '' || content == null) {
  1565. document.getElementById('noteError').style.display = 'block';
  1566. return false;
  1567. }
  1568. $.post("${ctx}/order/smoothOutCollection", {
  1569. 'orderID': orderId,
  1570. 'balanceAccountsRemark': content
  1571. });
  1572. window.location.href = "${ctx}/order/detail?id=" + orderId;
  1573. }
  1574. }
  1575. });
  1576. } else {
  1577. $.jBox.tip(data.msg, 'error');
  1578. }
  1579. }, "JSON");//这里返回的类型有:json,html,xml,text
  1580. };
  1581. </script>
  1582. </body>
  1583. </html>