orderDetail.jsp 67 KB

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