orderDetail.jsp 83 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680
  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(订单编号): <b style="font-size: 17px;">${order.orderID}</b>(${order.orderNo})</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><b style="font-size: 17px;">${shopOrder.shopOrderID}</b>(${shopOrder.shopOrderNo})</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. <%--抹平明细--%>
  857. <c:if test="${shopOrder.confirmType eq 1}">
  858. <c:if test="${shopOrder.receiptOrderFlag}">
  859. <font color="red">(一款多单:少收抹平金额未知)</font>
  860. </c:if>
  861. <c:if test="${!shopOrder.receiptOrderFlag}">
  862. <font color="red">(少收抹平:
  863. ¥<fmt:formatNumber
  864. value="${shopOrder.needPayAmount - (empty shopOrder.orderReceivedAmount ? 0 : shopOrder.orderReceivedAmount)}"
  865. pattern="#0.00"/>)
  866. </font>
  867. </c:if>
  868. </c:if>
  869. <c:if test="${shopOrder.confirmType eq 2}">
  870. <c:if test="${shopOrder.receiptOrderFlag}">
  871. <font color="red">(一款多单:多收抹平金额未知)</font>
  872. </c:if>
  873. <c:if test="${!shopOrder.receiptOrderFlag}">
  874. <font color="red">(多收抹平:
  875. ¥<fmt:formatNumber
  876. value="${(empty shopOrder.receiptAmount ? 0 : shopOrder.orderReceivedAmount) - shopOrder.payableAmount}"
  877. pattern="#0.00"/>)
  878. </font>
  879. </c:if>
  880. </c:if>
  881. <c:if test="${shopOrder.confirmType eq 3}">
  882. <c:if test="${shopOrder.receiptOrderFlag}">
  883. <font color="red">(一款多单:多收退余额)</font>
  884. </c:if>
  885. <c:if test="${!shopOrder.receiptOrderFlag}">
  886. <font color="red">(多收退余额&nbsp;&nbsp;${shopOrder.associationType eq 2 ? "(自动)" : ""}:
  887. ¥<fmt:formatNumber
  888. value="${(empty shopOrder.returnBalanceAmount ? 0 : shopOrder.returnBalanceAmount)}"
  889. pattern="#0.00"/>)
  890. </font>
  891. </c:if>
  892. </c:if>
  893. </span>
  894. <span>发货状态:
  895. <c:if test="${shopOrder.sendOutStatus == 1}">
  896. <font color="red">待发货</font>
  897. </c:if>
  898. <c:if test="${shopOrder.sendOutStatus == 2}">
  899. <font color="#ff8c00">部分发货</font>
  900. </c:if>
  901. <c:if test="${shopOrder.sendOutStatus == 3}">
  902. <font color="green">已发货</font>
  903. </c:if>
  904. </span>
  905. <span>付款状态:
  906. <c:if test="${shopOrder.payStatus == 1}">
  907. <font color="red">待付款</font>
  908. </c:if>
  909. <c:if test="${shopOrder.payStatus == 2}">
  910. <font color="#ff8c00">部分付款</font>
  911. </c:if>
  912. <c:if test="${shopOrder.payStatus == 3}">
  913. <font color="green">已付款</font>
  914. </c:if>
  915. </span>
  916. <span>
  917. 退款状态:
  918. <c:if test="${shopOrder.refundStatus == 1}">
  919. <font>无退款</font>
  920. </c:if>
  921. <%-- <c:if test="${shopOrder.refundStatus == 2}">--%>
  922. <%-- <font>退款中</font>--%>
  923. <%-- </c:if>--%>
  924. <%-- <c:if test="${shopOrder.orderStatusFlag == 2}">--%>
  925. <%-- <font>部分退款</font>--%>
  926. <%-- </c:if>--%>
  927. <c:if test="${shopOrder.refundStatus == 3}">
  928. <font>已退款</font>
  929. </c:if>
  930. </span>
  931. <c:if test="${not empty shopOrder.note}">
  932. <span>留言:${shopOrder.note}</span>
  933. </c:if>
  934. <%-- </c:if>--%>
  935. </div>
  936. <div class="order-rows">
  937. <span><label>供应商:</label>${shopOrder.shopName}</span>
  938. <c:if test="${shopOrder.contactName ne null}">
  939. <span><label>供应商联系人:</label>${shopOrder.contactName}</span>
  940. </c:if>
  941. <c:if test="${shopOrder.dockingPeopleName ne null}">
  942. <span><label>采美对接人:</label>${shopOrder.dockingPeopleName}</span>
  943. </c:if>
  944. <c:if test="${shopOrder.shopPromotion ne null && shopOrder.shopPromotion.type eq 3}">
  945. <c:if test="${shopOrder.shopPromotion.mode eq 2}">
  946. <span><label
  947. style="background-color: #F60;color: white">${shopOrder.shopPromotion.name}</label> 满<fmt:formatNumber
  948. value="${shopOrder.shopPromotion.touchPrice}" pattern="#,##0.00"
  949. maxFractionDigits="2"/>,减<fmt:formatNumber value="${shopOrder.shopPromotion.reducedPrice}"
  950. pattern="#,##0.00" maxFractionDigits="2"/></span>
  951. </c:if>
  952. <c:if test="${shopOrder.shopPromotion.mode eq 3}">
  953. <span><label
  954. style="background-color: purple;color: white">${shopOrder.shopPromotion.name}</label> 满<fmt:formatNumber
  955. value="${shopOrder.shopPromotion.touchPrice}" pattern="#,##0.00"
  956. maxFractionDigits="2"/>,赠送商品</span>
  957. </c:if>
  958. </c:if>
  959. <div>
  960. <c:forEach items="${shopOrder.newOrderProducts}" var="op" varStatus="varIndex">
  961. <c class="supplier-product-item" style="z-index:${100000 - varIndex.index};position:relative;">
  962. <%--二手订单详情--%>
  963. <c:if test="${order.secondHandOrderFlag eq 1}">
  964. <a href="${fns:getConfig('wwwServer')}flea-market-${op.productID}.html" target="_blank">
  965. <img class="supplier-img" src="${op.image}" style="width: 100px"/>
  966. </a>
  967. </c:if>
  968. <%--正常订单详情--%>
  969. <c:if test="${order.secondHandOrderFlag ne 1}">
  970. <a href="${fns:getConfig('wwwServer')}product-${op.productID}.html" target="_blank">
  971. <img class="supplier-img" src="${op.image}" style="width: 100px"/>
  972. </a>
  973. </c:if>
  974. <c:if test="${order.organizeID != 4}">
  975. <div class="supplier-name">
  976. <c:if test="${op.name eq op.aliasName || op.productID eq 6060}">
  977. <div class="supplier-product-name">${op.name}</div>
  978. </c:if>
  979. <c:if test="${op.name ne op.aliasName && op.productID ne 6060}">
  980. <div class="supplier-product-name">${op.name}</div>
  981. <div class="supplier-product-alias">${op.aliasName}</div>
  982. </c:if>
  983. <c:if test="${op.productType eq 1}">
  984. <div class="supplier-product-name"><label style="color: red">协商赠品</label></div>
  985. </c:if>
  986. <c:if test="${op.productType eq 2}">
  987. <div class="supplier-product-name"><label style="color: red">促销赠品</label></div>
  988. </c:if>
  989. <c:if test="${op.includedTax eq 1}">
  990. <div class="supplier-product-name"><label style="color: red">(含税)</label></div>
  991. </c:if>
  992. <c:if test="${op.includedTax ne '' and op.includedTax eq 0}">
  993. <c:if test="${op.invoiceType eq 3 }">
  994. <div class="supplier-product-name"><label style="color: red">(不含税-不能开票)</label></div>
  995. </c:if>
  996. <c:if test="${op.invoiceType eq 2 or op.invoiceType eq 1}">
  997. <div class="supplier-product-name"><label style="color: red">(不含税-能开票)</label></div>
  998. </c:if>
  999. </c:if>
  1000. <%-- <c:if test="${order.returnGoodsStutas==2}">--%>
  1001. <%-- <div class="supplier-product-name"><label style="color: red">(不能退货)</label></div>--%>
  1002. <%-- </c:if>--%>
  1003. <%-- <c:if test="${order.returnGoodsStutas==1}">--%>
  1004. <%-- <div class="supplier-product-name"><label style="color: red">(能退货)</label></div>--%>
  1005. <%-- </c:if>--%>
  1006. <c:if test="${op.machineType eq 3}">
  1007. <div class="supplier-product-name"><font style="font-size: 16px" color="red">械字号三类</font></div>
  1008. </c:if>
  1009. </div>
  1010. </c:if>
  1011. <c:if test="${op.productID ne 999}">
  1012. <div class="supplier-product-info">
  1013. <span>
  1014. 规格:
  1015. <label>${op.unit}</label>
  1016. </span>
  1017. <span>单价:
  1018. <c:if test="${op.svipPriceFlag eq 1 or op.productPromotion.mode eq 1}">
  1019. <label style="text-decoration: line-through"><fmt:formatNumber value="${op.price}"
  1020. type="currency"/></label>
  1021. </c:if>
  1022. <c:if test="${op.svipPriceFlag ne 1 and op.productPromotion.mode ne 1}">
  1023. <fmt:formatNumber value="${op.price}" type="currency"/>
  1024. </c:if>
  1025. <c:if test="${op.svipPriceFlag eq 1}">
  1026. <label style="margin-left:5px"><fmt:formatNumber value="${op.discountPrice}"
  1027. type="currency"/></label>
  1028. <font color="red">(超级会员价)</font></span>
  1029. </c:if>
  1030. <c:if test="${op.ladderPriceFlag eq 1 || op.isActProduct eq 2}">
  1031. <a href="javascript:;" class="ladderPrice"><span> (阶梯价格)</span>
  1032. <c:if test="${not empty op.orderProductLadderPriceList}">
  1033. <div class="list">
  1034. <p><span>起订量</span><span>价格</span></p>
  1035. <c:forEach items="${op.orderProductLadderPriceList}" var="ladderPrice">
  1036. <p data-num="${ladderPrice.buyNum}">
  1037. <span>${ladderPrice.buyNumRangeShow}</span><span
  1038. class="price">${ladderPrice.buyPrice}</span></p>
  1039. </c:forEach>
  1040. </div>
  1041. </c:if>
  1042. </a>
  1043. </c:if>
  1044. </span>
  1045. <%-- <c:if test="${order.organizeID != 4}">--%>
  1046. <%-- <span>折扣: ${op.discount}%</span>--%>
  1047. <%-- <span>折后单价:--%>
  1048. <%-- <c:if test="${op.productPromotion.mode eq 1}">--%>
  1049. <%-- <label style="text-decoration: line-through"><fmt:formatNumber--%>
  1050. <%-- value="${op.discountPrice}" type="currency"/></label></span>--%>
  1051. <%-- </c:if>--%>
  1052. <%-- <c:if test="${op.productPromotion.mode ne 1}">--%>
  1053. <%-- <fmt:formatNumber value="${op.discountPrice}" type="currency"/></span>--%>
  1054. <%-- </c:if>--%>
  1055. <%-- </c:if>--%>
  1056. <span>数量: x${op.num}</span>
  1057. <br>
  1058. <c:if test="${order.organizeID != 4}">
  1059. <span>税率: ${(op.includedTax != '' and op.includedTax eq 0 and op.invoiceType eq 3)?'---': op.taxRate ne null?op.taxRate:0.0}%</span>
  1060. <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>
  1061. </c:if>
  1062. <span>总额: <fmt:formatNumber value="${op.totalFee}" type="currency"/></span>
  1063. <c:if test="${order.sendOutStatus == 2 || order.sendOutStatus == 3}">
  1064. <span>已发/已收 ${(op.num == null ? 0 : op.num)+ (op.presentNum == null ? 0 : op.presentNum)- (op.notOutStore == null ? 0 : op.notOutStore)}/${op.receivedNum}</span>
  1065. </c:if>
  1066. <c:if test="${fns:hasReturn(order.status)}">
  1067. <span>退款(退货)中/已完成 ${op.returningNum}/${op.returnedNum}</span>
  1068. </c:if>
  1069. </div>
  1070. <c:if test="${op.productPromotion ne null}">
  1071. <c:if test="${op.productPromotion.type eq 2}">
  1072. <div class="supplier-product-promotionInfo">
  1073. <table>
  1074. <tr>
  1075. <td rowspan="2">
  1076. <c:if test="${op.productPromotion.mode eq 2}">
  1077. <label style="background-color: #F60;color: white"><label
  1078. class="promotionsName">${op.productPromotion.name}</label></label>
  1079. </c:if>
  1080. <c:if test="${op.productPromotion.mode eq 3}">
  1081. <label style="background-color: purple;color: white"><label
  1082. class="promotionsName">${op.productPromotion.name}</label></label>
  1083. </c:if>
  1084. </td>
  1085. <td>
  1086. <span class="downSpan">${op.productPromotion.description}</span>
  1087. <c:if test="${op.productPromotion.mode eq 2}">
  1088. <span class="upSpan"> 满<fmt:formatNumber
  1089. value="${op.productPromotion.touchPrice}" pattern="#,##0.00"
  1090. maxFractionDigits="2"/>,减<fmt:formatNumber
  1091. value="${op.productPromotion.reducedPrice}"
  1092. pattern="#,##0.00" maxFractionDigits="2"/></span>
  1093. </c:if>
  1094. <c:if test="${op.productPromotion.mode eq 3}">
  1095. <span class="upSpan"> 满<fmt:formatNumber
  1096. value="${op.productPromotion.touchPrice}" pattern="#,##0.00"
  1097. maxFractionDigits="2"/>,赠送商品</span>
  1098. </c:if>
  1099. </td>
  1100. </tr>
  1101. </table>
  1102. </div>
  1103. </c:if>
  1104. <c:if test="${op.productPromotion.type eq 1}">
  1105. <div class="supplier-product-promotionInfo">
  1106. <table>
  1107. <tr>
  1108. <c:if test="${op.productPromotion.mode eq 1}">
  1109. <td><label style="background-color: green;color: white"><label
  1110. class="promotionsName">${op.productPromotion.name}</label></label>
  1111. </td>
  1112. <td> 优惠价: <label style="color: red"><fmt:formatNumber
  1113. value="${op.productPromotion.touchPrice}" pattern="#,##0.00"
  1114. maxFractionDigits="2"/></label></td>
  1115. </c:if>
  1116. <c:if test="${op.productPromotion.mode eq 2}">
  1117. <td><label style="background-color: #F60;color: white"><label
  1118. class="promotionsName">${op.productPromotion.name}</label></label>
  1119. </td>
  1120. <td> 满<fmt:formatNumber value="${op.productPromotion.touchPrice}"
  1121. pattern="#,##0.00"
  1122. maxFractionDigits="2"/>,减<fmt:formatNumber
  1123. value="${op.productPromotion.reducedPrice}" pattern="#,##0.00"
  1124. maxFractionDigits="2"/></td>
  1125. </c:if>
  1126. <c:if test="${op.productPromotion.mode eq 3}">
  1127. <td><label style="background-color: purple;color: white"><label
  1128. class="promotionsName">${op.productPromotion.name}</label></label>
  1129. </td>
  1130. <td> 满<fmt:formatNumber value="${op.productPromotion.touchPrice}"
  1131. pattern="#,##0.00" maxFractionDigits="2"/>,赠送商品
  1132. </td>
  1133. </c:if>
  1134. </tr>
  1135. </table>
  1136. </div>
  1137. </c:if>
  1138. </c:if>
  1139. </c:if>
  1140. <c:if test="${op.productID eq 999}">
  1141. <span>数量: x${op.num}</span>
  1142. </c:if>
  1143. <br>
  1144. </c:forEach>
  1145. </div>
  1146. </div>
  1147. <c:if test="${ shopOrder.voucherVo ne null }">
  1148. <div class="order-rows">
  1149. <label>线下支付凭证:</label>
  1150. <c:forEach items="${shopOrder.voucherVo}" var="voucher">
  1151. <div>
  1152. <p><fmt:formatDate value="${voucher.addTime}" pattern="yyyy-MM-dd HH:mm:ss"/></p>
  1153. <c:if test="${voucher.images ne null }">
  1154. <div>
  1155. <c:forEach items="${voucher.images}" var="items" varStatus="index">
  1156. <c:if test="${items.image ne null }">
  1157. <a href="${items.image}" target="_blank">
  1158. <img class="supplier-img" src="${items.image}"
  1159. style="width: 120px;height: 120px"/>
  1160. </a>
  1161. </c:if>
  1162. </c:forEach>
  1163. </div>
  1164. </c:if>
  1165. <p>备注: ${voucher.remarks}</p>
  1166. </div>
  1167. </c:forEach>
  1168. </div>
  1169. </c:if>
  1170. </c:forEach>
  1171. <%--组织订单暂时不显示发票和条款信息--%>
  1172. <%--<c:if test="${order.organizeID == 0}">--%>
  1173. <c:if test="${order.organizeID != 4}">
  1174. <div class="order-rows">
  1175. <label>订单对机构是否可见:</label>
  1176. <c:if test="${order.orderSeen eq 1}">
  1177. <label>可见</label>
  1178. </c:if>
  1179. <c:if test="${order.orderSeen eq 2}">
  1180. <label>不可见</label>
  1181. </c:if>
  1182. <c:if test="${order.orderSeen ne 1 and order.orderSeen ne 2}">
  1183. <label>未定义</label>
  1184. </c:if>
  1185. </div>
  1186. </c:if>
  1187. <div class="order-rows">
  1188. <label>发票信息:</label>
  1189. <c:if test="${order.orderInvoice.type eq 0}">
  1190. <%-- <input name="invoice" type="radio" checked="checked">--%>
  1191. <label>不需要发票</label>
  1192. </c:if>
  1193. <c:if test="${order.orderInvoice.type eq 1}">
  1194. <%-- <input name="invoice" type="radio" checked="checked">--%>
  1195. <label>增值税普通发票</label>
  1196. </c:if>
  1197. <c:if test="${order.orderInvoice.type eq 2}">
  1198. <%-- <input name="invoice" type="radio" checked="checked">--%>
  1199. <label>增值税专用发票</label>
  1200. </c:if>
  1201. <c:if test="${order.orderInvoice.type eq null}">
  1202. <%-- <input name="invoice" type="radio" checked="checked">--%>
  1203. <label>不需要发票</label>
  1204. </c:if>
  1205. <c:if test="${order.orderInvoice.type == 1}">
  1206. <br>
  1207. <div>
  1208. <span>
  1209. <c:if test="${order.orderInvoice.invoiceTitleType eq 0}">
  1210. 个人抬头:
  1211. <span>${order.orderInvoice.invoiceTitle}</span>
  1212. </c:if>
  1213. <c:if test="${order.orderInvoice.invoiceTitleType eq 1}">
  1214. 企业抬头:
  1215. <span>${order.orderInvoice.invoiceTitle}</span>
  1216. &nbsp;&nbsp;&nbsp;&nbsp;
  1217. 纳税人识别号:
  1218. <span>${order.orderInvoice.corporationTaxNum}</span>
  1219. </c:if>
  1220. </span>
  1221. </div>
  1222. </c:if>
  1223. <c:if test="${order.orderInvoice.type == 2}">
  1224. <table>
  1225. <tr>
  1226. <td><span>单位名称:${order.orderInvoice.invoiceTitle}</span></td>
  1227. <td><span>纳税人识别号:${order.orderInvoice.corporationTaxNum}</span></td>
  1228. <td><span>注册地址:${order.orderInvoice.registeredAddress}</span></td>
  1229. </tr>
  1230. <tr>
  1231. <td><span>注册电话:${order.orderInvoice.registeredPhone}</span></td>
  1232. <td><span>开户银行:${order.orderInvoice.openBank}</span></td>
  1233. <td><span>银行账号:${order.orderInvoice.bankAccountNo}</span></td>
  1234. </tr>
  1235. </table>
  1236. </c:if>
  1237. </div>
  1238. <c:if test="${order.organizeID != 4}">
  1239. <div class="order-rows">
  1240. <label>售后条款:</label>
  1241. <c:forEach items="${bpClauses}" var="items" varStatus="index">
  1242. <c:if test="${items.clauseType ne 0 }">
  1243. <span>
  1244. <input id="clauseId${index.index+1}" class="clauseId" name="clauseID" type="radio"
  1245. value="${items.id}"${(order.clauseID)==(items.id)?'checked="checked"':''}
  1246. class="required" class="clauseId" disabled="disabled">
  1247. <input type="hidden" class="clauseContent" id="clauseContent${index.index+1}"
  1248. value="${fns:escapeHtml(items.content)}">
  1249. <input type="hidden" class="clauseName" id="clauseName${index.index+1}" value="${items.name}">
  1250. <a href="javascript:void(0);"
  1251. onclick="openClauseInfo(${index.index+1});"><label>${items.name}</label></a>
  1252. </span>
  1253. </c:if>
  1254. </c:forEach>
  1255. </div>
  1256. </c:if>
  1257. <%--</c:if>--%>
  1258. <%--<c:if test="${order.organizeID == 4&& voucherVo ne null }">--%>
  1259. <%-- <div class="order-rows">--%>
  1260. <%-- <label>线下支付凭证:</label>--%>
  1261. <%-- <c:forEach items="${voucherVo}" var="voucher">--%>
  1262. <%-- <div>--%>
  1263. <%-- <p><fmt:formatDate value="${voucher.addTime}" pattern="yyyy-MM-dd HH:mm:ss"/></p>--%>
  1264. <%-- <c:if test="${voucher.images ne null }">--%>
  1265. <%-- <div>--%>
  1266. <%-- <c:forEach items="${voucher.images}" var="items" varStatus="index">--%>
  1267. <%-- <c:if test="${items.image ne null }">--%>
  1268. <%-- <a href="${items.image}" target="_blank">--%>
  1269. <%-- <img class="supplier-img" src="${items.image}" style="width: 120px;height: 120px"/>--%>
  1270. <%-- </a>--%>
  1271. <%-- </c:if>--%>
  1272. <%-- </c:forEach>--%>
  1273. <%-- </div>--%>
  1274. <%-- </c:if>--%>
  1275. <%-- <p>备注: ${voucher.remarks}</p>--%>
  1276. <%-- </div>--%>
  1277. <%-- </c:forEach>--%>
  1278. <%-- </div>--%>
  1279. <%--</c:if>--%>
  1280. <script type="text/javascript">
  1281. (function () {
  1282. // $('body').click(function (e) {
  1283. // var target = $(e.target),
  1284. // $block = $('.operation-block');
  1285. // if (target.is('.operation-btn')) {
  1286. // if ($block.css('display') === 'none') {
  1287. // $block.show();
  1288. // } else {
  1289. // $block.hide();
  1290. // }
  1291. // }
  1292. // if (!target.is('.operation-block') && !target.is('.operation-btn')) {
  1293. // $block.hide();
  1294. // }
  1295. // });
  1296. $('.clauseId').each(function () {
  1297. var self = $(this);
  1298. if (!self.prop("checked")) {
  1299. self.parent().hide();
  1300. } else {
  1301. self.hide();
  1302. }
  1303. });
  1304. $('#invoice1, #invoice2, #invoice3').each(function () {
  1305. var self = $(this);
  1306. if (!self.prop("checked")) {
  1307. self.next().remove();
  1308. self.remove();
  1309. } else {
  1310. self.remove();
  1311. }
  1312. })
  1313. })();
  1314. function operation(shopOrderID) {
  1315. var operationBlok = $('.' + shopOrderID)
  1316. if (operationBlok.css('display') == 'none') {
  1317. $('.operation-block').hide()
  1318. operationBlok.show()
  1319. } else {
  1320. operationBlok.hide()
  1321. }
  1322. }
  1323. function openClauseInfo(index) {
  1324. var content = $("#clauseContent" + index).val();
  1325. if (content == '') {
  1326. return false;
  1327. }
  1328. $.jBox(content, {
  1329. title: $("#clauseName" + index).val(),
  1330. width: $(top.document).width() - 440,
  1331. height: $(top.document).height() - 240,
  1332. buttons: {'关闭': true}
  1333. });
  1334. }
  1335. //编辑经理折扣
  1336. function modelShow(orderID) {
  1337. top.$.jBox("iframe:${ctx}/order/DiscountFee?orderID=" + orderID, {
  1338. iframeScrolling: 'yes',
  1339. top: 150,
  1340. width: 480,
  1341. height: 250,
  1342. persistent: true,
  1343. title: "编辑经理折扣",
  1344. buttons: {"确认": '1', "取消": '-1'},
  1345. submit: function (v, h, f) {
  1346. //确定
  1347. var $jboxFrame = top.$('#jbox-iframe');
  1348. var $mainFrame = top.$('#mainFrame');
  1349. if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
  1350. var rechargeInfo = $jboxFrame[0].contentWindow.submit();
  1351. var split = rechargeInfo.split(",");
  1352. var payTotalFee = split[0];
  1353. var discountFee = split[1];
  1354. //取值,然后调用后台接口传入参数,最后刷新页面
  1355. if (payTotalFee <= 0) {
  1356. return false;
  1357. }
  1358. $.post("${ctx}/order/saveDiscountFee", {
  1359. 'discountFee': discountFee,
  1360. 'orderID': orderID,
  1361. 'payTotalFee': payTotalFee
  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. function rebateFeeEdit(orderID) {
  1376. top.$.jBox("iframe:${ctx}/order/RebateFee?orderID=" + orderID, {
  1377. iframeScrolling: 'yes',
  1378. top: 150,
  1379. width: 480,
  1380. height: 250,
  1381. persistent: true,
  1382. title: "编辑返佣服务费",
  1383. buttons: {"确认": '1', "取消": '-1'},
  1384. submit: function (v, h, f) {
  1385. //确定
  1386. var $jboxFrame = top.$('#jbox-iframe');
  1387. var $mainFrame = top.$('#mainFrame');
  1388. if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
  1389. var rebateFee = $jboxFrame[0].contentWindow.submit();
  1390. if (!rebateFee) {
  1391. return false;
  1392. }
  1393. $.post("${ctx}/order/saveRebateFee", {
  1394. 'rebateFee': rebateFee,
  1395. 'orderID': orderID
  1396. }, function (data) {
  1397. if (true == data.success) {
  1398. refresh(data.msg);
  1399. } else {
  1400. alertx(data.msg, 1000);
  1401. }
  1402. }, "JSON");//这里返回的类型有:json,html,xml,text
  1403. }
  1404. return true;
  1405. }, closed: function () {/* 窗口关闭后执行的函数 */
  1406. }
  1407. });
  1408. }
  1409. //订单商品备注
  1410. function remarks(orderID, shopOrderID) {
  1411. top.$.jBox("iframe:${ctx}/order/cmOrderRemark/remarksView?orderID=" + orderID + "&shopOrderID=" + shopOrderID, {
  1412. iframeScrolling: 'yes',
  1413. top: 150,
  1414. width: 400,
  1415. height: 480,
  1416. persistent: true,
  1417. title: "订单备注信息",
  1418. buttons: {"确认": '1', "关闭": '-1'},
  1419. submit: function (v, h, f) {
  1420. //确定
  1421. var $jboxFrame = top.$('#jbox-iframe');
  1422. var $mainFrame = top.$('#mainFrame');
  1423. if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
  1424. var remarks = $jboxFrame[0].contentWindow.submit();
  1425. // var arr = item.split(",");
  1426. // var remarks = arr[0];
  1427. if ('' == remarks) {
  1428. alertx("备注信息不能为空!!!")
  1429. return false;
  1430. }
  1431. saveRemarks(remarks, orderID, shopOrderID);
  1432. return true;
  1433. }
  1434. return true;
  1435. },
  1436. loaded: function (h) { //隐藏滚动条
  1437. $(".jbox-content", top.document).css("overflow-y", "hidden");
  1438. }
  1439. });
  1440. }
  1441. function saveRemarks(remarks, orderID, shopOrderID) {
  1442. $.post("${ctx}/order/cmOrderRemark/addRemarks", {
  1443. "remarks": remarks, "orderID": orderID, "shopOrderID": shopOrderID
  1444. }, function (data) {
  1445. if (true == data.success) {
  1446. refresh(data.msg);
  1447. } else {
  1448. $.jBox.tip(data.msg, 'error');
  1449. }
  1450. }, "JSON");//这里返回的类型有:json,html,xml,text
  1451. }
  1452. // 二维码分享
  1453. function QRCodewin(orderId, orderNo) {
  1454. var html = '<div style="padding:10px;">订单号:' + orderNo + '' +
  1455. '<div class="code" style="text-align: center;"></div>' +
  1456. '</div>';
  1457. $.jBox(html, {
  1458. title: "订单二维码分享",
  1459. width: $(top.document).width() - 1700,
  1460. height: $(top.document).height() - 1600,
  1461. buttons: {'关闭': true}
  1462. });
  1463. var enCodeRedirectUrl;
  1464. var redirectUrl = '${fns:getConfig('caimei.crm.server')}oauth.action?orderId=' + orderId;
  1465. $.ajax({
  1466. url: "${ctx}/bulkpurchase/contractOrder/enCode",
  1467. data: {"redirectUrl": redirectUrl},
  1468. type: "POST",
  1469. async: false,
  1470. success: function (data) {
  1471. enCodeRedirectUrl = data.enCodeRedirectUrl;
  1472. }
  1473. });
  1474. 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';
  1475. $('.code').qrcode({
  1476. width: 150,
  1477. height: 150,
  1478. text: shareUrl
  1479. });
  1480. }
  1481. //刷新页面
  1482. function refresh(msg) {
  1483. $.jBox.tip(msg, 'info', {timeout: 1000});
  1484. setTimeout(function () {
  1485. window.location.href = "${ctx}/order/detail?id=${order.orderID}"
  1486. }, 1000)
  1487. }
  1488. </script>
  1489.  
  1490. <script>
  1491. if ("${time}" != "") {
  1492. window.onload = clock;
  1493. function clock() {
  1494. var today = new Date(),//当前时间
  1495. h = today.getHours(),
  1496. m = today.getMinutes(),
  1497. s = today.getSeconds();
  1498. var stopTime = new Date("${time}"),//结束时间
  1499. stopH = stopTime.getHours(),
  1500. stopM = stopTime.getMinutes(),
  1501. stopS = stopTime.getSeconds();
  1502. var shenyu = stopTime.getTime() - today.getTime(),//倒计时毫秒数
  1503. shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)),//转换为天
  1504. D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000),//除去天的毫秒数
  1505. shengyuH = parseInt(D / (60 * 60 * 1000)),//除去天的毫秒数转换成小时
  1506. H = D - shengyuH * 60 * 60 * 1000,//除去天、小时的毫秒数
  1507. shengyuM = parseInt(H / (60 * 1000)),//除去天的毫秒数转换成分钟
  1508. M = H - shengyuM * 60 * 1000;//除去天、小时、分的毫秒数
  1509. S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)//除去天、小时、分的毫秒数转化为秒
  1510. document.getElementById("time").innerHTML = ("(剩余" + shengyuD + "天" + shengyuH + "小时" + shengyuM + "分" + S + "秒)" + "<br>");
  1511. setTimeout(clock, 500);
  1512. }
  1513. }
  1514. function copyText(shopOrderID) {
  1515. $.post("${ctx}/order/shopOrderLink", {'shopOrderId': shopOrderID}, function (data) {
  1516. if (data.success) {
  1517. var imageSrc = "data:image/jpeg|png|gif;base64," + data.imageBuffer;
  1518. top.$.jBox.info('<img width="150px" height="150px" style="margin-left: 65px;" src=' + imageSrc + '>', '小程序扫码发货');
  1519. } else {
  1520. alertx(data.msg);
  1521. }
  1522. });
  1523. }
  1524. $(document).ready(function () {
  1525. if ($(".operation-block").length > 0) {
  1526. var length = $(".operation-block").length;
  1527. for (var i = 0; i < length; i++) {
  1528. var b = $(".operation-block").get(i);
  1529. if ($(b).html().trim() == '') {
  1530. $(b).hide();
  1531. $(b).prev().hide();
  1532. }
  1533. }
  1534. }
  1535. if ($('.supplier-product-name').html() == $('.supplier-product-alias').html()) {
  1536. $('.supplier-product-alias').remove();
  1537. }
  1538. })
  1539. //抹平收款
  1540. function collection(orderId) {
  1541. $.post("${ctx}/order/gatheringData", {
  1542. 'orderId': orderId
  1543. }, function (data) {
  1544. if (true == data.success) {
  1545. var html = "<div id='auditBox'>" +
  1546. "<P>确定抹平收款吗?抹平后该订单将变为已收款状态</p>" +
  1547. "<P><span>订单金额:<b>¥" + Number(data.payTotalFee).toFixed(2) + "</b></span></p>" +
  1548. "<P><span>应收金额:<b>¥" + Number(data.payableAmount).toFixed(2) + "</b><span style='color:#FF0000'>(账户余额抵扣: ¥<b>" + Number(data.balancePayFee).toFixed(2) + "</b>)</span></span></p>" +
  1549. "<P><span>已收金额:<b>¥" + Number(data.associateAmount).toFixed(2) + "</b></span></p>" +
  1550. "<div><div class='note-div'><span style='color:#FF0000'>*</span>备注</div></div>" +
  1551. "<textarea name='auditNote' style='width: 100%;min-height:60px;'></textarea>" +
  1552. "<div class='note-div' style='display: none' id='noteError'><span style='color:#FF0000'>请填写备注</span> </div>" +
  1553. "</div>";
  1554. $.jBox(html, {
  1555. title: "确认提示", width: 500, height: 400, buttons: {"确定": '1', "取消": '-1'},
  1556. submit: function (v, h, f) {
  1557. if ('1' == v) {
  1558. if ((Number(data.payTotalFee) - Number(data.associateAmount)) > 10) {
  1559. alertx("订单剩余应收金额大于¥10.00,不能抹平!");
  1560. return false;
  1561. }
  1562. var content = document.getElementsByName("auditNote")[0].value;
  1563. if (content == '' || content == null) {
  1564. document.getElementById('noteError').style.display = 'block';
  1565. return false;
  1566. }
  1567. $.post("${ctx}/order/smoothOutCollection", {
  1568. 'orderID': orderId,
  1569. 'balanceAccountsRemark': content
  1570. });
  1571. window.location.href = "${ctx}/order/detail?id=" + orderId;
  1572. }
  1573. }
  1574. });
  1575. } else {
  1576. $.jBox.tip(data.msg, 'error');
  1577. }
  1578. }, "JSON");//这里返回的类型有:json,html,xml,text
  1579. };
  1580. </script>
  1581. </body>
  1582. </html>