orderDetail.jsp 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510
  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 class="active"><a href="${ctx}/order/detail?id=${order.orderID}">订单详情</a></li>
  324. <shiro:hasPermission name="order:order:view">
  325. <li><a href="${ctx}/order/orderList">订单列表</a></li>
  326. </shiro:hasPermission>
  327. <shiro:hasPermission name="order:order:form">
  328. <li><a href="${ctx}/order/form">添加订单</a></li>
  329. </shiro:hasPermission>
  330. <shiro:hasPermission name="order:order:postageOrderForm">
  331. <li><a href="${ctx}/order/postageOrderForm">添加运费订单</a></li>
  332. </shiro:hasPermission>
  333. <shiro:hasPermission name="order:order:secondhandOrder">
  334. <li><a href="${ctx}/order/secondhandOrderList">二手订单列表</a></li>
  335. </shiro:hasPermission>
  336. <shiro:hasPermission name="order:order:secondeProductOrderForm">
  337. <li><a href="${ctx}/order/secondeProductOrderForm">添加二手订单</a></li>
  338. </shiro:hasPermission>
  339. </ul>
  340. <sys:message content="${message}"/>
  341. <table class="order-details-heading">
  342. <tr>
  343. <td>下单时间: ${order.orderTime}</td>
  344. <td>订单号(ID): ${order.orderNo}(${order.orderID})</td>
  345. <td>返佣订单: ${(order.rebateOrder ne '0' || order.rebateFlag eq '1')?'是':'否'}</td>
  346. </tr>
  347. <tr>
  348. <td>订单类型: <c:if test="${order.orderType == 1}">自主订单</c:if><c:if test="${order.orderType == 0}">协销订单</c:if></td>
  349. <td>订单来源: ${fns:getDictLabel(order.orderSource,"bp_orderSource","" )}</td>
  350. <td>订单状态:
  351. <c:if test="${order.status eq 11 || order.status eq 12 || order.status eq 13 ||order.status eq 21 ||order.status eq 22 ||
  352. order.status eq 23 || order.status eq 31 ||order.status eq 32 ||order.status eq 33}">
  353. 交易中
  354. </c:if>
  355. <c:if test="${order.status eq 0 || order.status eq 4 || order.status eq 5 || order.status eq 6 || order.status eq 7}">
  356. ${fns:getDictLabel(order.status,"order_status","" )}
  357. <c:if test="${order.status eq 0}">
  358. <span id="time" style="color: red"></span>
  359. </c:if>
  360. </c:if>
  361. </td>
  362. </tr>
  363. <tr>
  364. <c:if test="${order.status ne 0}">
  365. <td>
  366. 收款状态:
  367. <c:if test="${order.receiptStatus == 1}">
  368. <font color="red">待收款</font>
  369. </c:if>
  370. <c:if test="${order.receiptStatus == 2}">
  371. <font color="#ff8c00">部分收款</font>
  372. </c:if>
  373. <c:if test="${order.receiptStatus == 3}">
  374. <font color="green">已收款</font>
  375. </c:if>
  376. <%--抹平明细--%>
  377. <c:if test="${order.confirmType eq 1}">
  378. <c:if test="${order.receiptOrderFlag}">
  379. <font color="red">(一款多单:少收抹平金额未知)</font>
  380. </c:if>
  381. <c:if test="${!order.receiptOrderFlag}">
  382. <font color="red">(少收抹平:
  383. ¥<fmt:formatNumber
  384. value="${order.payableAmount - (empty order.orderReceivedAmount ? 0 : order.orderReceivedAmount)}"
  385. pattern="#0.00"/>)
  386. </font>
  387. </c:if>
  388. </c:if>
  389. <c:if test="${order.confirmType eq 2}">
  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="${(empty order.orderReceivedAmount ? 0 : order.orderReceivedAmount) - order.payableAmount}"
  397. pattern="#0.00"/>)
  398. </font>
  399. </c:if>
  400. </c:if>
  401. <c:if test="${order.confirmType eq 3}">
  402. <c:if test="${order.receiptOrderFlag}">
  403. <font color="red">(一款多单:多收退余额)</font>
  404. </c:if>
  405. <c:if test="${!order.receiptOrderFlag}">
  406. <font color="red">(多收退余额&nbsp;&nbsp;${order.associationType eq 2 ? "(自动)" : ""}:
  407. ¥<fmt:formatNumber
  408. value="${(empty order.returnBalanceAmount ? 0 : order.returnBalanceAmount)}"
  409. pattern="#0.00"/>)
  410. </font>
  411. </c:if>
  412. </c:if>
  413. </td>
  414. <td>发货状态:
  415. <c:if test="${order.sendOutStatus == 1}">
  416. <font color="red">待发货</font>
  417. </c:if>
  418. <c:if test="${order.sendOutStatus == 2}">
  419. <font color="#ff8c00">部分发货</font>
  420. </c:if>
  421. <c:if test="${order.sendOutStatus == 3}">
  422. <font color="green">已发货</font>
  423. </c:if></td>
  424. <td>付款状态:
  425. <c:if test="${order.payStatus == 1}">
  426. <font color="red">待付款</font>
  427. </c:if>
  428. <c:if test="${order.payStatus == 2}">
  429. <font color="#ff8c00">部分付款</font>
  430. </c:if>
  431. <c:if test="${order.payStatus == 3}">
  432. <font color="green">已付款</font>
  433. </c:if></td>
  434. </td>
  435. </c:if>
  436. </tr>
  437. <tr>
  438. <c:if test="${order.status ne 0}">
  439. <td>
  440. 退款状态:
  441. <c:if test="${order.refundType == 0}">
  442. <font>无退款</font>
  443. </c:if>
  444. <c:if test="${order.refundType == 1}">
  445. <font>部分退款</font>
  446. </c:if>
  447. <c:if test="${order.refundType == 2}">
  448. <font>已退款</font>
  449. </c:if>
  450. </td>
  451. </c:if>
  452. <td>机构:${order.buyer}<font id="svipFlagLabel" style="margin-left:10px"
  453. color="red">${order.bpOrderUserinfo.svipFlag eq 1?'(超级会员)':''}</font>
  454. <c:if test="${order.organizeID >= 3}"><label
  455. style="margin-left: 20px">门店:${order.organizeStoreName}</label> </c:if></td>
  456. <td>收货人: ${order.bpOrderUserinfo.shouHuoRen}</td>
  457. </tr>
  458. <tr>
  459. <td>手机: ${order.bpOrderUserinfo.mobile}</td>
  460. <td>
  461. 地址: ${fns:appendLast(fns:appendLast1(order.bpOrderUserinfo.province,order.bpOrderUserinfo.city,order.bpOrderUserinfo.town), order.bpOrderUserinfo.address)}</td>
  462. <fmt:setLocale value="zh_CN" scope="session"/>
  463. <td>
  464. 订单金额:<fmt:formatNumber value="${order.payTotalFee}" type="currency"/>&nbsp;
  465. <c:if test="${not empty order.couponOrderRecord}">
  466. <c:if test="${order.couponOrderRecord.couponType eq 0}">
  467. <a href="${ctx}/coupon/cmCouponClub/couponDetails?userId=${order.userID}"><font
  468. color="red">(活动券抵扣¥${order.couponOrderRecord.couponAmount},满${order.couponOrderRecord.touchPrice}减${order.couponOrderRecord.couponAmount})</font></a>
  469. </c:if>
  470. <c:if test="${order.couponOrderRecord.couponType eq 1}">
  471. <a href="${ctx}/coupon/cmCouponClub/couponDetails?userId=${order.userID}"><font
  472. color="red">(品类券抵扣¥${order.couponOrderRecord.couponAmount},满${order.couponOrderRecord.touchPrice}减${order.couponOrderRecord.couponAmount})</font></a>
  473. </c:if>
  474. <c:if test="${order.couponOrderRecord.couponType eq 2}">
  475. <a href="${ctx}/coupon/cmCouponClub/couponDetails?userId=${order.userID}"><font color="red">(用户专享券抵扣¥${order.couponOrderRecord.couponAmount},满${order.couponOrderRecord.touchPrice}减${order.couponOrderRecord.couponAmount})</font></a>
  476. </c:if>
  477. <c:if test="${order.couponOrderRecord.couponType eq 3}">
  478. <a href="${ctx}/coupon/cmCouponClub/couponDetails?userId=${order.userID}"><font
  479. color="red">(店铺券抵扣¥${order.couponOrderRecord.couponAmount},满${order.couponOrderRecord.touchPrice}减${order.couponOrderRecord.couponAmount})</font></a>
  480. </c:if>
  481. <c:if test="${order.couponOrderRecord.couponType eq 4}">
  482. <a href="${ctx}/coupon/cmCouponClub/couponDetails?userId=${order.userID}"><font
  483. color="red">(新用户券抵扣¥${order.couponOrderRecord.couponAmount},满${order.couponOrderRecord.touchPrice}减${order.couponOrderRecord.couponAmount})</font></a>
  484. </c:if>
  485. </c:if>
  486. </td>
  487. </tr>
  488. <tr>
  489. <td>
  490. 应收金额:<fmt:formatNumber value="${order.payableAmount}" type="currency"/>
  491. <span style="color: red">
  492. <c:if test="${order.balancePayFee gt 0}">
  493. <a href="${ctx}/user/cmUserBalanceRecord/userBalanceRecord?userId=${order.userID}"
  494. style="color: red;text-decoration: underline">
  495. (账户余额抵扣: <fmt:formatNumber value="${order.balancePayFee}" type="currency"/>)
  496. </a>
  497. </c:if>
  498. <c:if test="${order.balancePayFee le 0}">
  499. (账户余额抵扣: <fmt:formatNumber value="${order.balancePayFee}" type="currency"/>)
  500. </c:if>
  501. </span>
  502. </td>
  503. <td>
  504. 已收金额:
  505. <c:if test="${order.receiptStatus eq 1}">
  506. ¥0.00
  507. </c:if>
  508. <c:if test="${order.receiptStatus ne 1}">
  509. <fmt:formatNumber value="${receiptAmount}" type="currency"/>
  510. </c:if>
  511. <c:if test="${order.receiptStatus == 3 && order.confirmType != null && order.confirmType != ''}">
  512. <%-- <span style='color:#FF0000'>(已抹平收款)</span>--%>
  513. </c:if>
  514. </td>
  515. <td>
  516. 退款金额(已完成):<fmt:formatNumber value="${returnValue}" type="currency"/>
  517. <span style="color: red">
  518. (原<fmt:formatNumber value="${returnedPurchaseFee}" type="currency"/>,折扣取消
  519. <c:if test="${order.discountFee gt returnedPurchaseFee}"><fmt:formatNumber
  520. value="${returnedPurchaseFee}" type="currency"/></c:if>
  521. <c:if test="${order.discountFee le returnedPurchaseFee}"><fmt:formatNumber
  522. value="${order.discountFee}" type="currency"/></c:if>)
  523. </span>
  524. </td>
  525. </tr>
  526. <tr>
  527. <td>
  528. 经理折扣:
  529. <c:if test="${order.discountFee gt 0}">
  530. <c:if test="${order.discountFee gt returnedPurchaseFee}">
  531. <fmt:formatNumber value="${order.discountFee - returnedPurchaseFee}" type="currency"/>
  532. </c:if>
  533. <c:if test="${order.discountFee le returnedPurchaseFee}">
  534. ¥0.00
  535. </c:if>
  536. <span style="color: red">
  537. (原<fmt:formatNumber value="${order.discountFee}" type="currency"/>,折扣取消
  538. <c:if test="${order.discountFee gt returnedPurchaseFee}">
  539. <fmt:formatNumber value="${returnedPurchaseFee}" type="currency"/>
  540. </c:if>
  541. <c:if test="${order.discountFee le returnedPurchaseFee}">
  542. <fmt:formatNumber value="${order.discountFee}" type="currency"/>
  543. </c:if>)
  544. </span>
  545. </c:if>
  546. <c:if test="${order.discountFee le 0}">¥0.00</c:if>
  547. </td>
  548. <td>运费:
  549. <c:if test="${order.freePostFlag == 0}">
  550. 包邮
  551. </c:if>
  552. <c:if test="${order.freePostFlag == -1}">
  553. 到付
  554. </c:if>
  555. <c:if test="${order.freePostFlag == -2}">
  556. 仪器到付-产品包邮
  557. </c:if>
  558. <c:if test="${order.freePostFlag != -1 && order.freePostFlag != 0 && order.freePostFlag != -2}">
  559. <fmt:formatNumber value="${order.freight}" type="currency"/>
  560. </c:if>
  561. <c:if test="${order.userBeans > 0}">
  562. <font color="red">(采美豆抵用:${order.userBeans})</font>
  563. </c:if>
  564. </td>
  565. <td style="position: relative;"><a class="operation-btn btn">功能</a>
  566. <div class="operation-block">
  567. <shiro:hasPermission name="order:order:edit">
  568. <%--包含订单充值商品就不显示--%>
  569. <c:if test="${order.rechargeGoods ne 1 and order.rechargeGoods ne 2}">
  570. <c:if test="${order.status == 11 || order.status == 12 || order.status == 21 || order.status == 22 || order.status == 31 || order.status == 32}">
  571. <a href="${ctx}/order/toDeliveryPage?id=${order.orderID}">发货</a>
  572. </c:if>
  573. <c:if test="${order.receiptStatus == 2 && order.status != 6 && order.status != 7}">
  574. <a href="javascript:void(0);" onclick="collection(${order.orderID})">抹平收款</a>
  575. </c:if>
  576. </c:if>
  577. <c:if test="${order.organizeID == 0}">
  578. <c:if test="${order.status == 0}">
  579. <a href="${ctx}/order/confirmOrder?orderID=${order.orderID}"
  580. onclick="return confirmx('是否确认订单?', this.href)">确认订单</a>
  581. </c:if>
  582. <c:if test="${order.status == 0 || order.status == 11}">
  583. <a href="${ctx}/order/cancelOrder?orderID=${order.orderID}"
  584. onclick="return confirmx('是否取消订单?', this.href)">取消订单</a>
  585. </c:if>
  586. <c:if test="${order.status eq 11 || order.status eq 12 || order.status eq 13 ||order.status eq 21 ||order.status eq 22 ||
  587. order.status eq 23 || order.status eq 0}">
  588. <c:if test="${order.rechargeGoods ne 1 && order.rechargeGoods ne 2 && (order.ableUserMoney > 0 || order.status eq 0)}">
  589. <c:if test="${order.postageOrderFlag == 0 && order.secondHandOrderFlag != 1}">
  590. <a href="${ctx}/order/form?id=${order.orderID}">修改订单</a>
  591. </c:if>
  592. <c:if test="${order.postageOrderFlag == 0 && order.secondHandOrderFlag == 1}">
  593. <a href="${ctx}/order/secondeProductOrderForm?id=${order.orderID}">修改订单</a>
  594. </c:if>
  595. </c:if>
  596. </c:if>
  597. <c:if test="${order.status == 0}">
  598. <c:if test="${order.postageOrderFlag == 1}">
  599. <a href="${ctx}/order/postageOrderForm?id=${order.orderID}">修改邮费订单</a>
  600. </c:if>
  601. </c:if>
  602. </c:if>
  603. <c:if test="${(order.organizeID == 0 or order.organizeID > 2) && order.status == 11 && order.payStatus == 1}">
  604. <a href="javascript:void(0);"
  605. onclick="modelShow('${order.orderID}')">编辑经理折扣</a>
  606. </c:if>
  607. <c:if test="${order.secondHandOrderFlag ne 1 && order.rebateFlag ne 1 && order.status != 0 && order.status != 6 && order.status != 7 && empty order.rechargeGoods}">
  608. <a href="javascript:void(0);"
  609. onclick="rebateFeeEdit('${order.orderID}')">编辑返佣服务费</a>
  610. </c:if>
  611. <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}">
  612. <a href="${ctx}/order/modifyRebate?orderId=${order.orderID}"
  613. onclick="return confirmx('确定将订单转为返佣订单吗?', this.href)">转为返佣订单</a>
  614. </c:if>
  615. <c:if test="${order.orderType != 1 && order.rebateFlag eq 0 && order.receiptStatus eq 1 && order.payStatus eq 1 && order.secondHandOrderFlag eq 1}">
  616. <a href="${ctx}/order/modifyRebate?orderId=${order.orderID}"
  617. onclick="return confirmx('确定将订单转为返佣订单吗?', this.href)">转为二手返佣订单</a>
  618. </c:if>
  619. </shiro:hasPermission>
  620. <shiro:hasPermission name="order:order:applyrefound">
  621. <%--线下订单以主订单为单位退款--%>
  622. <c:if test="${order.onlinePayFlag == 1}">
  623. <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}">
  624. <%-- 返佣订单不能申请退款(退货) --%>
  625. <c:if test="${order.rebateOrder == '0'}">
  626. <c:if test="${order.toAudit eq 1}">
  627. <%--如果存在审核收款则不允许申请:1不能申请,其它可以申请--%>
  628. <c:if test="${order.toAudit eq 1}">
  629. <%--弹窗提示--%>
  630. <a href="#" onclick="return alertx('订单存在未审核的收款,暂不能退款。请将收款审核通过后再操作退款。')">申请退款</a>
  631. </c:if>
  632. </c:if>
  633. <c:if test="${order.toAudit ne 1}">
  634. <c:if test="${order.applyReturnedPurchaseFlag eq 1}">
  635. <a href="${ctx}/bulkpurchase/cmRefundsProduct/applyRefound.rpc?orderID=${order.orderID}&refundType=1"
  636. <c:if test="${order.status == 21 || order.status == 22 || order.status == 23}">onclick="return confirmx('部分收款的订单、申请退款只能申请全部退款!', this.href)"
  637. </c:if>
  638. >申请退款</a>
  639. </c:if>
  640. <c:if test="${order.applyReturnedPurchaseFlag ne 1}">
  641. <font title="存在未处理完的申请,请前往退款列表处理!">申请退款</font>
  642. </c:if>
  643. </c:if>
  644. </c:if>
  645. </c:if>
  646. </c:if>
  647. </shiro:hasPermission>
  648. <shiro:hasPermission name="order:order:edit">
  649. <c:if test="${(order.rebateOrder == '1' ) && (brokerage == 0) && (order.status != 0)}">
  650. <a href="${ctx}/order/toChangePay?orderId=${order.orderID}"
  651. onclick="return confirmx('确定将该返佣订单直接置为已收款和已付款状态吗?', this.href)">置为已收款已付款</a>
  652. </c:if>
  653. <c:if test="${order.organizeID == 0}">
  654. <c:if test="${order.status == 11}">
  655. <c:if test="${order.splitFlag == 1}">
  656. <a href="${ctx}/order/toSplit?id=${order.orderID}">
  657. 拆分订单
  658. </a>
  659. </c:if>
  660. </c:if>
  661. <a href="javascript:" onclick="QRCodewin(${order.orderID},'${order.orderNo}')">分享二维码</a>
  662. <c:if test="${order.status ne 6 && order.status ne 7}">
  663. <a href="${ctx}/order/editclausecontent?id=${order.orderID}">修改售后条款</a>
  664. </c:if>
  665. </c:if>
  666. <c:if test="${order.status ne 0}">
  667. <a href="${ctx}/order/printOrder?orderID=${order.orderID}">打印发货单</a>
  668. </c:if>
  669. <a href="${ctx}/order/exportOrder?id=${order.orderID}">订单导出</a>
  670. <%-- <a href="javascript:void(0);" onclick="remarks('${order.orderID}','')">备注</a>--%>
  671. <a href="${ctx}/order/cmOrderRemark/remarksViewNew.rpc?orderID=${order.orderID}&source=2">订单备注</a>
  672. <c:if test="${order.orderType ==0}" >
  673. <a href="${ctx}/bulkpurchase/commissions?orderId=${order.orderID}">销售提成记录</a>
  674. </c:if>
  675. <c:if test="${order.orderType !=0}" >
  676. <c:if test="${order.spID!=null}">
  677. <a href="${ctx}/bulkpurchase/commissions?orderId=${order.orderID}">销售提成记录</a>
  678. </c:if>
  679. </c:if>
  680. <%--包含订单充值商品就不显示--%>
  681. <c:if test="${order.rechargeGoods ne 1 and order.rechargeGoods ne 2}">
  682. <c:if test="${order.status ne 0 && order.status ne 11 && order.status ne 21 && order.status ne 6}">
  683. <a href="${ctx}/order/logisticsDetails?orderID=${order.orderID}">发货记录</a>
  684. </c:if>
  685. <c:if test="${order.status ne 0 && order.status ne 11 && order.status ne 6}">
  686. <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${order.orderID}&from=2">收退款记录
  687. </a>
  688. </c:if>
  689. <c:if test="${order.status ne 0 && order.status ne 11 && order.status ne 6}">
  690. <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRecturnRecordByOrderID.rpc?orderID=${order.orderID}">退款(退货)记录
  691. </a>
  692. </c:if>
  693. </c:if>
  694. </shiro:hasPermission>
  695. </div>
  696. </td>
  697. </tr>
  698. <c:if test="${order.svipFullReduction gt 0}">
  699. <tr>
  700. <td>超级会员优惠:¥${order.svipFullReduction}</td>
  701. </tr>
  702. </c:if>
  703. <c:if test="${order.promotionFullReduction gt 0 || order.promotionalGiftsCount gt 0}">
  704. <tr>
  705. <c:if test="${order.promotionFullReduction gt 0}">
  706. <td>促销满减:¥${order.promotionFullReduction}</td>
  707. </c:if>
  708. <c:if test="${order.promotionalGiftsCount gt 0}">
  709. <td>赠品总数:${order.promotionalGiftsCount}</td>
  710. </c:if>
  711. </tr>
  712. </c:if>
  713. <c:if test="${order.discountFee gt 0 and returnedPurchaseFee gt 0}">
  714. <tr>
  715. <td style="color: red">说明:因退货,经理折扣收回,用于抵扣退款。</td>
  716. </tr>
  717. </c:if>
  718. </table>
  719. <textarea id="copyValue" style="display: none"></textarea>
  720. <c:forEach items="${order.newShopOrders}" var="shopOrder">
  721. <div class="order-rows">
  722. <span><label>下单时间:</label>${order.orderTime}</span>
  723. <span><label>子订单号(ID):</label>${shopOrder.shopOrderNo}(${shopOrder.shopOrderID})</span>
  724. <span><label>子订单金额:</label><fmt:formatNumber value="${order.onlinePayFlag eq 0?shopOrder.realPay:shopOrder.needPayAmount}" type="currency"/></span>
  725. <c:if test="${shopOrder.postFeeCos eq '0'}">
  726. <div class="print-wrapper">
  727. <a href="${ctx}/order/printOrder?shopOrderID=${shopOrder.shopOrderID}">打印</a>
  728. <a href="${ctx}/order/exportSubOrder?shopOrderID=${shopOrder.shopOrderID}">导出</a>
  729. <c:if test="${order.status ne '0'}">
  730. <a onclick="copyText('${shopOrder.shopOrderID}')" style="cursor:pointer;">供应商订单二维码</a>
  731. </c:if>
  732. <c:if test="${order.onlinePayFlag eq 0}">
  733. <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}">
  734. <%-- 返佣订单不能申请退款(退货) --%>
  735. <c:if test="${order.rebateOrder == '0'}">
  736. <c:if test="${order.toAudit eq 1}">
  737. <%--如果存在审核收款则不允许申请:1不能申请,其它可以申请--%>
  738. <c:if test="${order.toAudit eq 1}">
  739. <%--弹窗提示--%>
  740. <a href="#" onclick="return alertx('订单存在未审核的收款,暂不能退款。请将收款审核通过后再操作退款。')">申请退款</a>
  741. </c:if>
  742. </c:if>
  743. <c:if test="${order.toAudit ne 1}">
  744. <c:if test="${order.applyReturnedPurchaseFlag eq 1}">
  745. <a href="${ctx}/bulkpurchase/cmRefundsProduct/applyRefound.rpc?orderID=${order.orderID}&onlineShopOrderId=${shopOrder.shopOrderID}&refundType=1"
  746. <c:if test="${order.status == 21 || order.status == 22 || order.status == 23}">onclick="return confirmx('部分收款的订单、申请退款只能申请全部退款!', this.href)"
  747. </c:if>
  748. >申请退款</a>
  749. </c:if>
  750. <c:if test="${order.applyReturnedPurchaseFlag ne 1}">
  751. <font title="存在未处理完的申请,请前往退款列表处理!">申请退款</font>
  752. </c:if>
  753. </c:if>
  754. </c:if>
  755. </c:if>
  756. </c:if>
  757. <c:if test="${shopOrder.orderArchiveId ne null}">
  758. <a href="${ctx}/archive/cmOrderArchive/form?id=${shopOrder.orderArchiveId}">查看订单资料</a>
  759. </c:if>
  760. </div>
  761. </c:if>
  762. <c:if test="${order.onlinePayFlag eq 0}">
  763. <br/>
  764. <span>商品总额:<fmt:formatNumber value="${shopOrder.needPayAmount}" type="currency"/></span>
  765. <span>优惠:<fmt:formatNumber value="${shopOrder.eachDiscount}" type="currency"/></span>
  766. <span>应付金额:<fmt:formatNumber value="${shopOrder.realPay}" type="currency"/></span>
  767. <span>
  768. 已付金额:<fmt:formatNumber value="${shopOrder.receiptAmount}" type="currency"/>
  769. <c:if test="${shopOrder.commercialCode eq 'E1807059160' && (order.receiptStatus == 2 || order.receiptStatus == 3)}">
  770. <font color="red">(采美信息线上收款)</font>
  771. </c:if>
  772. </span>
  773. <span>待付金额:<fmt:formatNumber value="${shopOrder.restAmount}" type="currency"/></span>
  774. <br/>
  775. <span>收款状态:
  776. <c:if test="${shopOrder.shopReceiptStatus == 1}">
  777. <font color="red">待收款</font>
  778. </c:if>
  779. <c:if test="${shopOrder.shopReceiptStatus == 2}">
  780. <font color="#ff8c00">部分收款</font>
  781. </c:if>
  782. <c:if test="${shopOrder.shopReceiptStatus == 3}">
  783. <font color="green">已收款</font>
  784. </c:if>
  785. </span>
  786. <span>付款状态:
  787. <c:if test="${shopOrder.payStatus == 1}">
  788. <font color="red">待付款</font>
  789. </c:if>
  790. <c:if test="${shopOrder.payStatus == 2}">
  791. <font color="#ff8c00">部分付款</font>
  792. </c:if>
  793. <c:if test="${shopOrder.payStatus == 3}">
  794. <font color="green">已付款</font>
  795. </c:if>
  796. </span>
  797. <span>发货状态:
  798. <c:if test="${shopOrder.sendOutStatus == 1}">
  799. <font color="red">待发货</font>
  800. </c:if>
  801. <c:if test="${shopOrder.sendOutStatus == 2}">
  802. <font color="#ff8c00">部分发货</font>
  803. </c:if>
  804. <c:if test="${shopOrder.sendOutStatus == 3}">
  805. <font color="green">已发货</font>
  806. </c:if>
  807. </span>
  808. <c:if test="${not empty shopOrder.note}">
  809. <span>留言:${shopOrder.note}</span>
  810. </c:if>
  811. </c:if>
  812. <c:if test="${order.onlinePayFlag eq 1}">
  813. <c:if test="${shopOrder.postFeeCos eq '0'}">
  814. <c:if test="${order.status ne 0 && order.status ne 11}">
  815. <div class="delivery-wrapper">
  816. <span>发货状态:
  817. <c:if test="${shopOrder.sendOutStatus == 1}">
  818. <font color="red">待发货</font>
  819. </c:if>
  820. <c:if test="${shopOrder.sendOutStatus == 2}">
  821. <font color="#ff8c00">部分发货</font>
  822. </c:if>
  823. <c:if test="${shopOrder.sendOutStatus == 3}">
  824. <font color="green">已发货</font>
  825. </c:if>
  826. </span>
  827. <span>付款状态:<c:if test="${shopOrder.payStatus == 1}">
  828. <font color="red">待付款</font>
  829. </c:if>
  830. <c:if test="${shopOrder.payStatus == 2}">
  831. <font color="#ff8c00">部分付款</font>
  832. </c:if>
  833. <c:if test="${shopOrder.payStatus == 3}">
  834. <font color="green">已付款</font>
  835. </c:if></span>
  836. <c:if test="${shopOrder.payStatus == 3 or shopOrder.payStatus == 2}">
  837. <span>
  838. 已付金额: <fmt:formatNumber value="${shopOrder.payed}" type="currency"/>
  839. </span>
  840. </c:if>
  841. </div>
  842. </c:if>
  843. <c:if test="${not empty shopOrder.note}">
  844. <div><label>留言:</label>${shopOrder.note}</div>
  845. </c:if>
  846. </c:if>
  847. </c:if>
  848. </div>
  849. <div class="order-rows">
  850. <span><label>供应商:</label>${shopOrder.shopName}</span>
  851. <c:if test="${shopOrder.contactName ne null}">
  852. <span><label>供应商联系人:</label>${shopOrder.contactName}</span>
  853. </c:if>
  854. <c:if test="${shopOrder.dockingPeopleName ne null}">
  855. <span><label>采美对接人:</label>${shopOrder.dockingPeopleName}</span>
  856. </c:if>
  857. <c:if test="${shopOrder.shopPromotion ne null && shopOrder.shopPromotion.type eq 3}">
  858. <c:if test="${shopOrder.shopPromotion.mode eq 2}">
  859. <span><label
  860. style="background-color: #F60;color: white">${shopOrder.shopPromotion.name}</label> 满<fmt:formatNumber
  861. value="${shopOrder.shopPromotion.touchPrice}" pattern="#,##0.00"
  862. maxFractionDigits="2"/>,减<fmt:formatNumber value="${shopOrder.shopPromotion.reducedPrice}"
  863. pattern="#,##0.00" maxFractionDigits="2"/></span>
  864. </c:if>
  865. <c:if test="${shopOrder.shopPromotion.mode eq 3}">
  866. <span><label
  867. style="background-color: purple;color: white">${shopOrder.shopPromotion.name}</label> 满<fmt:formatNumber
  868. value="${shopOrder.shopPromotion.touchPrice}" pattern="#,##0.00"
  869. maxFractionDigits="2"/>,赠送商品</span>
  870. </c:if>
  871. </c:if>
  872. <div>
  873. <c:forEach items="${shopOrder.newOrderProducts}" var="op" varStatus="varIndex">
  874. <div class="supplier-product-item" style="z-index:${100000 - varIndex.index};position:relative;">
  875. <%--二手订单详情--%>
  876. <c:if test="${order.secondHandOrderFlag eq 1}">
  877. <a href="${fns:getConfig('wwwServer')}flea-market-${op.productID}.html" target="_blank">
  878. <img class="supplier-img" src="${op.image}"/>
  879. </a>
  880. </c:if>
  881. <%--正常订单详情--%>
  882. <c:if test="${order.secondHandOrderFlag ne 1}">
  883. <a href="${fns:getConfig('wwwServer')}product-${op.productID}.html" target="_blank">
  884. <img class="supplier-img" src="${op.image}"/>
  885. </a>
  886. </c:if>
  887. <div class="supplier-name">
  888. <c:if test="${op.name eq op.aliasName || op.productID eq 6060}">
  889. <div class="supplier-product-name">${op.name}</div>
  890. </c:if>
  891. <c:if test="${op.name ne op.aliasName && op.productID ne 6060}">
  892. <div class="supplier-product-name">${op.name}</div>
  893. <div class="supplier-product-alias">${op.aliasName}</div>
  894. </c:if>
  895. <c:if test="${op.productType eq 1}">
  896. <div class="supplier-product-name"><label style="color: red">协商赠品</label></div>
  897. </c:if>
  898. <c:if test="${op.productType eq 2}">
  899. <div class="supplier-product-name"><label style="color: red">促销赠品</label></div>
  900. </c:if>
  901. <c:if test="${op.includedTax eq 1}">
  902. <div class="supplier-product-name"><label style="color: red">(含税)</label></div>
  903. </c:if>
  904. <c:if test="${op.includedTax ne '' and op.includedTax eq 0}">
  905. <c:if test="${op.invoiceType eq 3}">
  906. <div class="supplier-product-name"><label style="color: red">(不含税-不能开票)</label></div>
  907. </c:if>
  908. <c:if test="${op.invoiceType eq 2 or op.invoiceType eq 1}">
  909. <div class="supplier-product-name"><label style="color: red">(不含税-能开票)</label></div>
  910. </c:if>
  911. </c:if>
  912. </div>
  913. <c:if test="${op.productID ne 999}">
  914. <div class="supplier-product-info">
  915. <span>
  916. 规格:
  917. <label>${op.unit}</label>
  918. </span>
  919. <span>单价:
  920. <c:if test="${op.svipPriceFlag eq 1 or op.productPromotion.mode eq 1}">
  921. <label style="text-decoration: line-through"><fmt:formatNumber value="${op.price}"
  922. type="currency"/></label>
  923. </c:if>
  924. <c:if test="${op.svipPriceFlag ne 1 and op.productPromotion.mode ne 1}">
  925. <fmt:formatNumber value="${op.price}" type="currency"/>
  926. </c:if>
  927. <c:if test="${op.svipPriceFlag eq 1}">
  928. <label style="margin-left:5px"><fmt:formatNumber value="${op.discountPrice}"
  929. type="currency"/></label>
  930. <font color="red">(超级会员价)</font></span>
  931. </c:if>
  932. <c:if test="${op.ladderPriceFlag eq 1 || op.isActProduct eq 2}">
  933. <a href="javascript:;" class="ladderPrice"><span> (阶梯价格)</span>
  934. <c:if test="${not empty op.orderProductLadderPriceList}">
  935. <div class="list">
  936. <p><span>起订量</span><span>价格</span></p>
  937. <c:forEach items="${op.orderProductLadderPriceList}" var="ladderPrice">
  938. <p data-num="${ladderPrice.buyNum}">
  939. <span>${ladderPrice.buyNumRangeShow}</span><span
  940. class="price">${ladderPrice.buyPrice}</span></p>
  941. </c:forEach>
  942. </div>
  943. </c:if>
  944. </a>
  945. </c:if>
  946. </span>
  947. <span>折扣: ${op.discount}%</span>
  948. <span>折后单价:
  949. <c:if test="${op.productPromotion.mode eq 1}">
  950. <label style="text-decoration: line-through"><fmt:formatNumber
  951. value="${op.discountPrice}" type="currency"/></label></span>
  952. </c:if>
  953. <c:if test="${op.productPromotion.mode ne 1}">
  954. <fmt:formatNumber value="${op.discountPrice}" type="currency"/></span>
  955. </c:if>
  956. <span>数量: x${op.num}</span>
  957. <br>
  958. <span>税率: ${(op.includedTax != '' and op.includedTax eq 0 and op.invoiceType eq 3)?'---': op.taxRate ne null?op.taxRate:0.0}%</span>
  959. <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>
  960. <span>总额: <fmt:formatNumber value="${op.totalFee}" type="currency"/></span>
  961. <c:if test="${order.sendOutStatus == 2 || order.sendOutStatus == 3}">
  962. <span>已发/已收 ${(op.num == null ? 0 : op.num)+ (op.presentNum == null ? 0 : op.presentNum)- (op.notOutStore == null ? 0 : op.notOutStore)}/${op.receivedNum}</span>
  963. </c:if>
  964. <c:if test="${fns:hasReturn(order.status)}">
  965. <span>退款(退货)中/已完成 ${op.returningNum}/${op.returnedNum}</span>
  966. </c:if>
  967. </div>
  968. <c:if test="${op.productPromotion ne null}">
  969. <c:if test="${op.productPromotion.type eq 2}">
  970. <div class="supplier-product-promotionInfo">
  971. <table>
  972. <tr>
  973. <td rowspan="2">
  974. <c:if test="${op.productPromotion.mode eq 2}">
  975. <label style="background-color: #F60;color: white"><label
  976. class="promotionsName">${op.productPromotion.name}</label></label>
  977. </c:if>
  978. <c:if test="${op.productPromotion.mode eq 3}">
  979. <label style="background-color: purple;color: white"><label
  980. class="promotionsName">${op.productPromotion.name}</label></label>
  981. </c:if>
  982. </td>
  983. <td>
  984. <span class="downSpan">${op.productPromotion.description}</span>
  985. <c:if test="${op.productPromotion.mode eq 2}">
  986. <span class="upSpan"> 满<fmt:formatNumber
  987. value="${op.productPromotion.touchPrice}" pattern="#,##0.00"
  988. maxFractionDigits="2"/>,减<fmt:formatNumber
  989. value="${op.productPromotion.reducedPrice}"
  990. pattern="#,##0.00" maxFractionDigits="2"/></span>
  991. </c:if>
  992. <c:if test="${op.productPromotion.mode eq 3}">
  993. <span class="upSpan"> 满<fmt:formatNumber
  994. value="${op.productPromotion.touchPrice}" pattern="#,##0.00"
  995. maxFractionDigits="2"/>,赠送商品</span>
  996. </c:if>
  997. </td>
  998. </tr>
  999. </table>
  1000. </div>
  1001. </c:if>
  1002. <c:if test="${op.productPromotion.type eq 1}">
  1003. <div class="supplier-product-promotionInfo">
  1004. <table>
  1005. <tr>
  1006. <c:if test="${op.productPromotion.mode eq 1}">
  1007. <td><label style="background-color: green;color: white"><label
  1008. class="promotionsName">${op.productPromotion.name}</label></label>
  1009. </td>
  1010. <td> 优惠价: <label style="color: red"><fmt:formatNumber
  1011. value="${op.productPromotion.touchPrice}" pattern="#,##0.00"
  1012. maxFractionDigits="2"/></label></td>
  1013. </c:if>
  1014. <c:if test="${op.productPromotion.mode eq 2}">
  1015. <td><label style="background-color: #F60;color: white"><label
  1016. class="promotionsName">${op.productPromotion.name}</label></label>
  1017. </td>
  1018. <td> 满<fmt:formatNumber value="${op.productPromotion.touchPrice}"
  1019. pattern="#,##0.00"
  1020. maxFractionDigits="2"/>,减<fmt:formatNumber
  1021. value="${op.productPromotion.reducedPrice}" pattern="#,##0.00"
  1022. maxFractionDigits="2"/></td>
  1023. </c:if>
  1024. <c:if test="${op.productPromotion.mode eq 3}">
  1025. <td><label style="background-color: purple;color: white"><label
  1026. class="promotionsName">${op.productPromotion.name}</label></label>
  1027. </td>
  1028. <td> 满<fmt:formatNumber value="${op.productPromotion.touchPrice}"
  1029. pattern="#,##0.00" maxFractionDigits="2"/>,赠送商品
  1030. </td>
  1031. </c:if>
  1032. </tr>
  1033. </table>
  1034. </div>
  1035. </c:if>
  1036. </c:if>
  1037. </c:if>
  1038. <c:if test="${op.productID eq 999}">
  1039. <span>数量: x${op.num}</span>
  1040. </c:if>
  1041. <br>
  1042. </div>
  1043. </c:forEach>
  1044. </div>
  1045. </div>
  1046. </c:forEach>
  1047. <%--组织订单暂时不显示发票和条款信息--%>
  1048. <c:if test="${order.organizeID == 0}">
  1049. <div class="order-rows">
  1050. <label>订单对机构是否可见:</label>
  1051. <c:if test="${order.orderSeen eq 1}">
  1052. <label>可见</label>
  1053. </c:if>
  1054. <c:if test="${order.orderSeen eq 2}">
  1055. <label>不可见</label>
  1056. </c:if>
  1057. <c:if test="${order.orderSeen ne 1 and order.orderSeen ne 2}">
  1058. <label>未定义</label>
  1059. </c:if>
  1060. </div>
  1061. <div class="order-rows">
  1062. <label>发票信息:</label>
  1063. <c:if test="${order.orderInvoice.type eq 0}">
  1064. <%-- <input name="invoice" type="radio" checked="checked">--%>
  1065. <label>不需要发票</label>
  1066. </c:if>
  1067. <c:if test="${order.orderInvoice.type eq 1}">
  1068. <%-- <input name="invoice" type="radio" checked="checked">--%>
  1069. <label>增值税普通发票</label>
  1070. </c:if>
  1071. <c:if test="${order.orderInvoice.type eq 2}">
  1072. <%-- <input name="invoice" type="radio" checked="checked">--%>
  1073. <label>增值税专用发票</label>
  1074. </c:if>
  1075. <c:if test="${order.orderInvoice.type eq null}">
  1076. <%-- <input name="invoice" type="radio" checked="checked">--%>
  1077. <label>不需要发票</label>
  1078. </c:if>
  1079. <c:if test="${order.orderInvoice.type == 1}">
  1080. <br>
  1081. <div>
  1082. <span>
  1083. <c:if test="${order.orderInvoice.invoiceTitleType eq 0}">
  1084. 个人抬头:
  1085. <span>${order.orderInvoice.invoiceTitle}</span>
  1086. </c:if>
  1087. <c:if test="${order.orderInvoice.invoiceTitleType eq 1}">
  1088. 企业抬头:
  1089. <span>${order.orderInvoice.invoiceTitle}</span>
  1090. &nbsp;&nbsp;&nbsp;&nbsp;
  1091. 纳税人识别号:
  1092. <span>${order.orderInvoice.corporationTaxNum}</span>
  1093. </c:if>
  1094. </span>
  1095. </div>
  1096. </c:if>
  1097. <c:if test="${order.orderInvoice.type == 2}">
  1098. <table>
  1099. <tr>
  1100. <td><span>单位名称:${order.orderInvoice.invoiceTitle}</span></td>
  1101. <td><span>纳税人识别号:${order.orderInvoice.corporationTaxNum}</span></td>
  1102. <td><span>注册地址:${order.orderInvoice.registeredAddress}</span></td>
  1103. </tr>
  1104. <tr>
  1105. <td><span>注册电话:${order.orderInvoice.registeredPhone}</span></td>
  1106. <td><span>开户银行:${order.orderInvoice.openBank}</span></td>
  1107. <td><span>银行账号:${order.orderInvoice.bankAccountNo}</span></td>
  1108. </tr>
  1109. </table>
  1110. </c:if>
  1111. </div>
  1112. <div class="order-rows">
  1113. <label>售后条款:</label>
  1114. <c:forEach items="${bpClauses}" var="items" varStatus="index">
  1115. <c:if test="${items.clauseType ne 0 }">
  1116. <span>
  1117. <input id="clauseId${index.index+1}" class="clauseId" name="clauseID" type="radio"
  1118. value="${items.id}"${(order.clauseID)==(items.id)?'checked="checked"':''}
  1119. class="required" class="clauseId" disabled="disabled">
  1120. <input type="hidden" class="clauseContent" id="clauseContent${index.index+1}"
  1121. value="${fns:escapeHtml(items.content)}">
  1122. <input type="hidden" class="clauseName" id="clauseName${index.index+1}" value="${items.name}">
  1123. <a href="javascript:void(0);"
  1124. onclick="openClauseInfo(${index.index+1});"><label>${items.name}</label></a>
  1125. </span>
  1126. </c:if>
  1127. </c:forEach>
  1128. </div>
  1129. </c:if>
  1130. <script type="text/javascript">
  1131. (function () {
  1132. $('body').click(function (e) {
  1133. var target = $(e.target),
  1134. $block = $('.operation-block');
  1135. if (target.is('.operation-btn')) {
  1136. if ($block.css('display') === 'none') {
  1137. $block.show();
  1138. } else {
  1139. $block.hide();
  1140. }
  1141. }
  1142. if (!target.is('.operation-block') && !target.is('.operation-btn')) {
  1143. $block.hide();
  1144. }
  1145. });
  1146. $('.clauseId').each(function () {
  1147. var self = $(this);
  1148. if (!self.prop("checked")) {
  1149. self.parent().hide();
  1150. } else {
  1151. self.hide();
  1152. }
  1153. });
  1154. $('#invoice1, #invoice2, #invoice3').each(function () {
  1155. var self = $(this);
  1156. if (!self.prop("checked")) {
  1157. self.next().remove();
  1158. self.remove();
  1159. } else {
  1160. self.remove();
  1161. }
  1162. })
  1163. })();
  1164. function openClauseInfo(index) {
  1165. var content = $("#clauseContent" + index).val();
  1166. if (content == '') {
  1167. return false;
  1168. }
  1169. $.jBox(content, {
  1170. title: $("#clauseName" + index).val(),
  1171. width: $(top.document).width() - 440,
  1172. height: $(top.document).height() - 240,
  1173. buttons: {'关闭': true}
  1174. });
  1175. }
  1176. //编辑经理折扣
  1177. function modelShow(orderID) {
  1178. top.$.jBox("iframe:${ctx}/order/DiscountFee?orderID=" + orderID, {
  1179. iframeScrolling: 'yes',
  1180. top: 150,
  1181. width: 480,
  1182. height: 250,
  1183. persistent: true,
  1184. title: "编辑经理折扣",
  1185. buttons: {"确认": '1', "取消": '-1'},
  1186. submit: function (v, h, f) {
  1187. //确定
  1188. var $jboxFrame = top.$('#jbox-iframe');
  1189. var $mainFrame = top.$('#mainFrame');
  1190. if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
  1191. var rechargeInfo = $jboxFrame[0].contentWindow.submit();
  1192. var split = rechargeInfo.split(",");
  1193. var payTotalFee = split[0];
  1194. var discountFee = split[1];
  1195. //取值,然后调用后台接口传入参数,最后刷新页面
  1196. if (payTotalFee <= 0) {
  1197. return false;
  1198. }
  1199. $.post("${ctx}/order/saveDiscountFee", {
  1200. 'discountFee': discountFee,
  1201. 'orderID': orderID,
  1202. 'payTotalFee': payTotalFee
  1203. }, function (data) {
  1204. if (true == data.success) {
  1205. refresh(data.msg);
  1206. } else {
  1207. alertx(data.msg, 1000);
  1208. }
  1209. }, "JSON");//这里返回的类型有:json,html,xml,text
  1210. }
  1211. return true;
  1212. }, closed: function () {/* 窗口关闭后执行的函数 */
  1213. }
  1214. });
  1215. }
  1216. function rebateFeeEdit(orderID) {
  1217. top.$.jBox("iframe:${ctx}/order/RebateFee?orderID=" + orderID, {
  1218. iframeScrolling: 'yes',
  1219. top: 150,
  1220. width: 480,
  1221. height: 250,
  1222. persistent: true,
  1223. title: "编辑返佣服务费",
  1224. buttons: {"确认": '1', "取消": '-1'},
  1225. submit: function (v, h, f) {
  1226. //确定
  1227. var $jboxFrame = top.$('#jbox-iframe');
  1228. var $mainFrame = top.$('#mainFrame');
  1229. if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
  1230. var rebateFee = $jboxFrame[0].contentWindow.submit();
  1231. if (!rebateFee) {
  1232. return false;
  1233. }
  1234. $.post("${ctx}/order/saveRebateFee", {
  1235. 'rebateFee': rebateFee,
  1236. 'orderID': orderID
  1237. }, function (data) {
  1238. if (true == data.success) {
  1239. refresh(data.msg);
  1240. } else {
  1241. alertx(data.msg, 1000);
  1242. }
  1243. }, "JSON");//这里返回的类型有:json,html,xml,text
  1244. }
  1245. return true;
  1246. }, closed: function () {/* 窗口关闭后执行的函数 */
  1247. }
  1248. });
  1249. }
  1250. //订单商品备注
  1251. function remarks(orderID, shopOrderID) {
  1252. top.$.jBox("iframe:${ctx}/order/cmOrderRemark/remarksView?orderID=" + orderID + "&shopOrderID=" + shopOrderID, {
  1253. iframeScrolling: 'yes',
  1254. top: 150,
  1255. width: 400,
  1256. height: 480,
  1257. persistent: true,
  1258. title: "订单备注信息",
  1259. buttons: {"确认": '1', "关闭": '-1'},
  1260. submit: function (v, h, f) {
  1261. //确定
  1262. var $jboxFrame = top.$('#jbox-iframe');
  1263. var $mainFrame = top.$('#mainFrame');
  1264. if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
  1265. var remarks = $jboxFrame[0].contentWindow.submit();
  1266. // var arr = item.split(",");
  1267. // var remarks = arr[0];
  1268. if ('' == remarks) {
  1269. alertx("备注信息不能为空!!!")
  1270. return false;
  1271. }
  1272. saveRemarks(remarks, orderID, shopOrderID);
  1273. return true;
  1274. }
  1275. return true;
  1276. },
  1277. loaded: function (h) { //隐藏滚动条
  1278. $(".jbox-content", top.document).css("overflow-y", "hidden");
  1279. }
  1280. });
  1281. }
  1282. function saveRemarks(remarks, orderID, shopOrderID) {
  1283. $.post("${ctx}/order/cmOrderRemark/addRemarks", {
  1284. "remarks": remarks, "orderID": orderID, "shopOrderID": shopOrderID
  1285. }, function (data) {
  1286. if (true == data.success) {
  1287. refresh(data.msg);
  1288. } else {
  1289. $.jBox.tip(data.msg, 'error');
  1290. }
  1291. }, "JSON");//这里返回的类型有:json,html,xml,text
  1292. }
  1293. // 二维码分享
  1294. function QRCodewin(orderId, orderNo) {
  1295. var html = '<div style="padding:10px;">订单号:' + orderNo + '' +
  1296. '<div class="code" style="text-align: center;"></div>' +
  1297. '</div>';
  1298. $.jBox(html, {
  1299. title: "订单二维码分享",
  1300. width: $(top.document).width() - 1700,
  1301. height: $(top.document).height() - 1600,
  1302. buttons: {'关闭': true}
  1303. });
  1304. var enCodeRedirectUrl;
  1305. var redirectUrl = '${fns:getConfig('caimei.crm.server')}oauth.action?orderId=' + orderId;
  1306. $.ajax({
  1307. url: "${ctx}/bulkpurchase/contractOrder/enCode",
  1308. data: {"redirectUrl": redirectUrl},
  1309. type: "POST",
  1310. async: false,
  1311. success: function (data) {
  1312. enCodeRedirectUrl = data.enCodeRedirectUrl;
  1313. }
  1314. });
  1315. 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';
  1316. $('.code').qrcode({
  1317. width: 150,
  1318. height: 150,
  1319. text: shareUrl
  1320. });
  1321. }
  1322. //刷新页面
  1323. function refresh(msg) {
  1324. $.jBox.tip(msg, 'info', {timeout: 1000});
  1325. setTimeout(function () {
  1326. window.location.href = "${ctx}/order/detail?id=${order.orderID}"
  1327. }, 1000)
  1328. }
  1329. </script>
  1330.  
  1331. <script>
  1332. if ("${time}" != "") {
  1333. window.onload = clock;
  1334. function clock() {
  1335. var today = new Date(),//当前时间
  1336. h = today.getHours(),
  1337. m = today.getMinutes(),
  1338. s = today.getSeconds();
  1339. var stopTime = new Date("${time}"),//结束时间
  1340. stopH = stopTime.getHours(),
  1341. stopM = stopTime.getMinutes(),
  1342. stopS = stopTime.getSeconds();
  1343. var shenyu = stopTime.getTime() - today.getTime(),//倒计时毫秒数
  1344. shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)),//转换为天
  1345. D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000),//除去天的毫秒数
  1346. shengyuH = parseInt(D / (60 * 60 * 1000)),//除去天的毫秒数转换成小时
  1347. H = D - shengyuH * 60 * 60 * 1000,//除去天、小时的毫秒数
  1348. shengyuM = parseInt(H / (60 * 1000)),//除去天的毫秒数转换成分钟
  1349. M = H - shengyuM * 60 * 1000;//除去天、小时、分的毫秒数
  1350. S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)//除去天、小时、分的毫秒数转化为秒
  1351. document.getElementById("time").innerHTML = ("(剩余" + shengyuD + "天" + shengyuH + "小时" + shengyuM + "分" + S + "秒)" + "<br>");
  1352. setTimeout(clock, 500);
  1353. }
  1354. }
  1355. function copyText(shopOrderID) {
  1356. $.post("${ctx}/order/shopOrderLink", {'shopOrderId': shopOrderID}, function (data) {
  1357. if (data.success) {
  1358. var imageSrc = "data:image/jpeg|png|gif;base64," + data.imageBuffer;
  1359. top.$.jBox.info('<img width="150px" height="150px" style="margin-left: 65px;" src=' + imageSrc + '>', '小程序扫码发货');
  1360. } else {
  1361. alertx(data.msg);
  1362. }
  1363. });
  1364. }
  1365. $(document).ready(function () {
  1366. if ($(".operation-block").length > 0) {
  1367. var length = $(".operation-block").length;
  1368. for (var i = 0; i < length; i++) {
  1369. var b = $(".operation-block").get(i);
  1370. if ($(b).html().trim() == '') {
  1371. $(b).hide();
  1372. $(b).prev().hide();
  1373. }
  1374. }
  1375. }
  1376. if ($('.supplier-product-name').html() == $('.supplier-product-alias').html()) {
  1377. $('.supplier-product-alias').remove();
  1378. }
  1379. })
  1380. //抹平收款
  1381. function collection(orderId) {
  1382. $.post("${ctx}/order/gatheringData", {
  1383. 'orderId': orderId
  1384. }, function (data) {
  1385. if (true == data.success) {
  1386. var html = "<div id='auditBox'>" +
  1387. "<P>确定抹平收款吗?抹平后该订单将变为已收款状态</p>" +
  1388. "<P><span>订单金额:<b>¥" + Number(data.payTotalFee).toFixed(2) + "</b></span></p>" +
  1389. "<P><span>应收金额:<b>¥" + Number(data.payableAmount).toFixed(2) + "</b><span style='color:#FF0000'>(账户余额抵扣: ¥<b>" + Number(data.balancePayFee).toFixed(2) + "</b>)</span></span></p>" +
  1390. "<P><span>已收金额:<b>¥" + Number(data.associateAmount).toFixed(2) + "</b></span></p>" +
  1391. "<div><div class='note-div'><span style='color:#FF0000'>*</span>备注</div></div>" +
  1392. "<textarea name='auditNote' style='width: 100%;min-height:60px;'></textarea>" +
  1393. "<div class='note-div' style='display: none' id='noteError'><span style='color:#FF0000'>请填写备注</span> </div>" +
  1394. "</div>";
  1395. $.jBox(html, {
  1396. title: "确认提示", width: 500, height: 400, buttons: {"确定": '1', "取消": '-1'},
  1397. submit: function (v, h, f) {
  1398. if ('1' == v) {
  1399. if ((Number(data.payTotalFee) - Number(data.associateAmount)) > 10) {
  1400. alertx("订单剩余应收金额大于¥10.00,不能抹平!");
  1401. return false;
  1402. }
  1403. var content = document.getElementsByName("auditNote")[0].value;
  1404. if (content == '' || content == null) {
  1405. document.getElementById('noteError').style.display = 'block';
  1406. return false;
  1407. }
  1408. $.post("${ctx}/order/smoothOutCollection", {
  1409. 'orderID': orderId,
  1410. 'balanceAccountsRemark': content
  1411. });
  1412. window.location.href = "${ctx}/order/detail?id=" + orderId;
  1413. }
  1414. }
  1415. });
  1416. } else {
  1417. $.jBox.tip(data.msg, 'error');
  1418. }
  1419. }, "JSON");//这里返回的类型有:json,html,xml,text
  1420. };
  1421. </script>
  1422. </body>
  1423. </html>