orderDetail.jsp 80 KB

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