orderDetail.jsp 80 KB

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