orderDetail.jsp 75 KB

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