12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
- <html>
- <head>
- <title>订单列表</title>
- <meta name="decorator" content="default"/>
- <%--<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>--%>
- <style type="text/css">
- * {
- margin: 0;
- padding: 0
- }
- a {
- list-style: none;
- text-decoration: none
- }
- body {
- background-color: rgb(255, 255, 255)
- }
- h3 {
- line-height: 20px;
- padding: 20px 0 20px 15px;
- border-bottom: 1px solid #CCCCCC
- }
- .now-status p {
- padding: 20px
- }
- .now-status span {
- display: inline-block;
- width: 160px;
- line-height: 35px;
- margin-right: 15px;
- cursor: pointer;
- border: 1px solid #CCCCCC;
- text-align: center;
- border-radius: 5px
- }
- .buyInfo p {
- padding: 15px 5px 0
- }
- .buyInfo p label {
- width: 60px;
- display: inline-block
- }
- .buyInfo p span {
- padding-left: 10px
- }
- .table th {
- background-color: #CCCCCC
- }
- .table th, .table td {
- font-weight: normal;
- border: 1px solid #CCCCCC;
- height: 35px;
- text-align: center
- }
- .table td .div-img {
- box-sizing: border-box
- }
- .table td .div-img img {
- width: 100px;
- height: 100px;
- vertical-align: middle
- }
- .table td .div-img span {
- }
- .div-order span {
- width: 260px;
- display: inline-block;
- margin-right: 50px
- }
- .text-result p {
- padding-top: 15px
- }
- .text-cost p {
- padding: 20px 0
- }
- .moeny-cost p {
- padding: 10px 0 0 0;
- text-align: left
- }
- .moeny-cost p label {
- display: inline-block
- }
- .Staging table {
- width: 100%;
- border-collapse: collapse;
- margin-top: 20px
- }
- .Staging table th, .Staging table td {
- font-weight: normal;
- border: 1px solid #000;
- height: 35px;
- text-align: center;
- width: 10%
- }
- .change-info {
- position: fixed;
- top: 0%;
- left: 50%;
- transform: translateX(-50%);
- z-index: 999;
- width: 800px;
- background-color: #fff;
- box-shadow: 0px 0px 15px #ccc
- }
- .item-div label {
- width: 260px;
- text-align: right;
- display: inline-block;
- margin-right: 50px
- }
- .item-div input {
- width: 300px;
- line-height: 35px;
- height: 35px;
- box-sizing: border-box;
- border: 1px solid #CCCCCC;
- display: inline-block
- }
- .item-div select {
- width: 90px;
- height: 35px;
- margin-right: 10px
- }
- .item-div textarea {
- border: 1px solid #CCCCCC;
- margin-top: 20px;
- width: 300px;
- height: 80px;
- resize: none;
- display: block
- }
- .layer-status span {
- display: inline-block;
- width: 80px;
- line-height: 35px;
- background-color: #00A6C7;
- text-align: center;
- color: #fff;
- cursor: pointer
- }
- .layer-status span:nth-of-type(1) {
- }
- .layer-status span:nth-of-type(2) {
- margin-left: 72px
- }
- .same-style {
- position: fixed;
- top: 20%;
- left: 50%;
- transform: translateX(-50%);
- width: 500px;
- background-color: #fff;
- z-index: 999;
- box-shadow: 0 0 15px #666
- }
- .reason-cancel label {
- margin-right: 20px
- }
- .reason-cancel textarea {
- width: 270px;
- height: 80px;
- resize: none;
- vertical-align: text-top;
- border: 1px solid #CCCCCC
- }
- .order-details-heading {
- background: #eee
- }
- .order-details-heading td {
- white-space: nowrap;
- padding: 0 10px
- }
- .order-rows, .order-details-heading {
- width: 100%;
- border-bottom: 1px solid #ccc;
- border-left: 1px solid #ccc;
- border-right: 1px solid #ccc;
- color: #666;
- padding: 10px;
- line-height: 30px
- }
- .order-details-heading {
- border-top: 1px solid #ccc
- }
- .order-details-heading span, .order-rows span {
- margin-right: 80px
- }
- .order-details-heading span {
- width: 230px;
- margin-right: 0px;
- display: inline-block
- }
- .order-details-heading span label, .order-rows span label {
- font-weight: bold
- }
- .order-rows .supplier-img {
- width: 100px
- }
- .operation-wrapper {
- position: relative
- }
- .operation-btn {
- cursor: pointer
- }
- .operation-block {
- background: #fff;
- width: 125px;
- position: absolute;
- left: 35px;
- top: 30px;
- padding: 10px;
- border: 1px solid #666;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- z-index: 999;
- display: none
- }
- .operation-block a {
- display: block;
- padding: 3px 0
- }
- .print-wrapper {
- display: inline-block
- }
- .supplier-product-name, .supplier-product-alias {
- width: 200px;
- line-height: 20px
- }
- .supplier-product-info {
- width: 50%;
- display: inline-block;
- position: relative;
- top: 50%;
- transform: translateY(30%)
- }
- .supplier-product-promotionInfo {
- width: 20%;
- display: inline-block;
- position: relative;
- top: 50%;
- transform: translateY(30%)
- }
- .supplier-product-item {
- margin-bottom: 10px
- }
- .supplier-product-alias {
- display: inline-block;
- margin-top: 5px
- }
- .supplier-name {
- display: inline-block;
- vertical-align: middle;
- margin: 0 10px
- }
- #auditBox {
- padding: 20px;
- line-height: 30px
- }
- #auditBox p {
- font-size: 16px;
- margin: 0 0 0 0
- }
- #auditBox .note-div {
- font-size: 16px
- }
- .downSpan {
- display: block;
- margin-left: 5px;
- margin-bottom: -8px
- }
- .upSpan {
- display: block;
- margin-left: 5px;
- margin-top: -8px
- }
- .promotionsName {
- margin: 2px
- }
- .ladderPrice > span {
- text-decoration: underline;
- color: red
- }
- .ladderPrice .list {
- display: none;
- position: absolute;
- z-index: 999;
- background: #FFF;
- white-space: nowrap;
- border: 1px solid #EEE;
- padding: 10px 0;
- color: #333
- }
- .ladderPrice:hover .list {
- display: block
- }
- .ladderPrice .list span {
- margin: 0 20px;
- width: 60px;
- text-align: center;
- display: inline-block
- }
- .ladderPrice .list span.price {
- color: red
- }
- .weishaIcon {
- background: darkorange;
- color: white;
- margin: 0 0px;
- padding: 0 3px;
- font-style: normal;
- font-size: 12px;
- display: inline-block;
- border-radius: 2px
- }
- </style>
- <script type="text/javascript" src="${ctxStatic}/QRCode/jquery.qrcode.min.js"></script>
- <script type="text/javascript" src="static/common/clipboard.min.js"></script>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li><a href="${ctx}/hehe/new/order/orderList">订单列表</a></li>
- <li class="active"><a href="${ctx}/hehe/new/order/detail?id=${order.orderID}">订单详情</a></li>
- </ul>
- <sys:message content="${message}"/>
- <table class="order-details-heading">
- <tr>
- <td>下单时间: ${order.orderTime}</td>
- <td>订单号(ID): ${order.orderNo}(${order.orderID})</td>
- <td>返佣订单: ${(order.rebateOrder ne '0' || order.rebateFlag eq '1')?'是':'否'}</td>
- </tr>
- <tr>
- <td>订单类型: ${order.collageFlag eq 1?'拼团订单':'独立订单'}</td>
- <td>订单来源: ${fns:getDictLabel(order.orderSource,"bp_orderSource","" )}</td>
- <td>订单状态:
- <c:if test="${order.status eq 11 || order.status eq 12 || order.status eq 13 ||order.status eq 21 ||order.status eq 22 ||
- order.status eq 23 || order.status eq 31 ||order.status eq 32 ||order.status eq 33}">
- 交易中
- </c:if>
- <c:if test="${order.status eq 0 || order.status eq 4 || order.status eq 5 || order.status eq 6 || order.status eq 7}">
- ${fns:getDictLabel(order.status,"order_status","" )}
- <c:if test="${order.status eq 0}">
- <span id="time" style="color: red"></span>
- </c:if>
- </c:if>
- </td>
- </tr>
- <tr>
- <c:if test="${order.status ne 0}">
- <td>
- 收款状态:
- <c:if test="${order.receiptStatus == 1}">
- <font color="red">待收款</font>
- </c:if>
- <c:if test="${order.receiptStatus == 2}">
- <font color="#ff8c00">部分收款</font>
- </c:if>
- <c:if test="${order.receiptStatus == 3}">
- <font color="green">已收款</font>
- </c:if>
- <%--抹平明细--%>
- <c:if test="${order.confirmType eq 1}">
- <c:if test="${order.receiptOrderFlag}">
- <font color="red">(一款多单:少收抹平金额未知)</font>
- </c:if>
- <c:if test="${!order.receiptOrderFlag}">
- <font color="red">(少收抹平:
- ¥<fmt:formatNumber
- value="${order.payableAmount - (empty order.orderReceivedAmount ? 0 : order.orderReceivedAmount)}"
- pattern="#0.00"/>)
- </font>
- </c:if>
- </c:if>
- <c:if test="${order.confirmType eq 2}">
- <c:if test="${order.receiptOrderFlag}">
- <font color="red">(一款多单:多收抹平金额未知)</font>
- </c:if>
- <c:if test="${!order.receiptOrderFlag}">
- <font color="red">(多收抹平:
- ¥<fmt:formatNumber
- value="${(empty order.orderReceivedAmount ? 0 : order.orderReceivedAmount) - order.payableAmount}"
- pattern="#0.00"/>)
- </font>
- </c:if>
- </c:if>
- <c:if test="${order.confirmType eq 3}">
- <c:if test="${order.receiptOrderFlag}">
- <font color="red">(一款多单:多收退余额)</font>
- </c:if>
- <c:if test="${!order.receiptOrderFlag}">
- <font color="red">(多收退余额 ${order.associationType eq 2 ? "(自动)" : ""}:
- ¥<fmt:formatNumber
- value="${(empty order.returnBalanceAmount ? 0 : order.returnBalanceAmount)}"
- pattern="#0.00"/>)
- </font>
- </c:if>
- </c:if>
- </td>
- <td>发货状态:
- <c:if test="${order.sendOutStatus == 1}">
- <font color="red">待发货</font>
- </c:if>
- <c:if test="${order.sendOutStatus == 2}">
- <font color="#ff8c00">部分发货</font>
- </c:if>
- <c:if test="${order.sendOutStatus == 3}">
- <font color="green">已发货</font>
- </c:if></td>
- <td>付款状态:
- <c:if test="${order.payStatus == 1}">
- <font color="red">待付款</font>
- </c:if>
- <c:if test="${order.payStatus == 2}">
- <font color="#ff8c00">部分付款</font>
- </c:if>
- <c:if test="${order.payStatus == 3}">
- <font color="green">已付款</font>
- </c:if></td>
- </td>
- </c:if>
- </tr>
- <tr>
- <c:if test="${order.status ne 0}">
- <td>
- 退款状态:
- <c:if test="${order.refundType == 0}">
- 无退款
- </c:if>
- <c:if test="${order.refundType == 1}">
- 部分退款
- </c:if>
- <c:if test="${order.refundType == 2}">
- 已退款
- </c:if>
- </td>
- </c:if>
- <td>机构:${order.buyer}<c:if test="${order.organizeID == 3}"></c:if></td>
- <td>收货人: ${order.bpOrderUserinfo.shouHuoRen}</td>
- </tr>
- <tr>
- <td>手机: ${order.bpOrderUserinfo.mobile}</td>
- <td>
- 地址: ${fns:appendLast(fns:appendLast1(order.bpOrderUserinfo.province,order.bpOrderUserinfo.city,order.bpOrderUserinfo.town), order.bpOrderUserinfo.address)}</td>
- <fmt:setLocale value="zh_CN" scope="session"/>
- <td>
- 订单金额:<fmt:formatNumber value="${order.payTotalFee}" type="currency"/>
- <c:if test="${not empty order.heheCouponRecord}">
- <a href="${ctx}/hehe/cmHeheCoupon/receiveDetails?userId=${order.userID}">
- <font color="red">
- (${order.heheCouponRecord.couponType eq 1 ? '活动':order.heheCouponRecord.couponType eq 2?'专享':order.heheCouponRecord.couponType eq 3?'新人':order.heheCouponRecord.couponType eq 4?'好友分享':order.heheCouponRecord.couponType eq 5?'好友消费':'消费分享'}券抵扣¥${order.heheCouponRecord.couponAmount},满${order.heheCouponRecord.touchPrice}减${order.heheCouponRecord.couponAmount})
- </font>
- </a>
- </c:if>
- <c:if test="${order.reductionAmount > 0}">
- <font color="red">
- (分享减免¥${order.reductionAmount},满${order.reductionTouchPrice}减${order.reductionAmount})
- </font>
- </c:if>
- </td>
- </tr>
- <tr>
- <td>
- 应收金额:<fmt:formatNumber value="${order.payableAmount}" type="currency"/>
- <span style="color: red">
- <c:if test="${order.balancePayFee gt 0}">
- <a href="${ctx}/user/cmUserBalanceRecord/userBalanceRecord?userId=${order.userID}"
- style="color: red;text-decoration: underline">
- (账户余额抵扣: <fmt:formatNumber value="${order.balancePayFee}" type="currency"/>)
- </a>
- </c:if>
- <c:if test="${order.balancePayFee le 0}">
- (账户余额抵扣: <fmt:formatNumber value="${order.balancePayFee}" type="currency"/>)
- </c:if>
- </span>
- </td>
- <td>
- 已收金额:
- <c:if test="${order.receiptStatus eq 1}">
- ¥0.00
- </c:if>
- <c:if test="${order.receiptStatus ne 1}">
- <fmt:formatNumber value="${receiptAmount}" type="currency"/>
- </c:if>
- <c:if test="${order.receiptStatus == 3 && order.confirmType != null && order.confirmType != ''}">
- </c:if>
- </td>
- <td>
- 退款金额(已完成):<fmt:formatNumber value="${returnValue}" type="currency"/>
- <span style="color: red">
- (原<fmt:formatNumber value="${returnedPurchaseFee}" type="currency"/>,折扣取消
- <c:if test="${order.discountFee gt returnedPurchaseFee}"><fmt:formatNumber
- value="${returnedPurchaseFee}" type="currency"/></c:if>
- <c:if test="${order.discountFee le returnedPurchaseFee}"><fmt:formatNumber
- value="${order.discountFee}" type="currency"/></c:if>)
- </span>
- </td>
- </tr>
- <tr>
- <td>
- 经理折扣:
- <c:if test="${order.discountFee gt 0}">
- <c:if test="${order.discountFee gt returnedPurchaseFee}">
- <fmt:formatNumber value="${order.discountFee - returnedPurchaseFee}" type="currency"/>
- </c:if>
- <c:if test="${order.discountFee le returnedPurchaseFee}">
- ¥0.00
- </c:if>
- <span style="color: red">
- (原<fmt:formatNumber value="${order.discountFee}" type="currency"/>,折扣取消
- <c:if test="${order.discountFee gt returnedPurchaseFee}">
- <fmt:formatNumber value="${returnedPurchaseFee}" type="currency"/>
- </c:if>
- <c:if test="${order.discountFee le returnedPurchaseFee}">
- <fmt:formatNumber value="${order.discountFee}" type="currency"/>
- </c:if>)
- </span>
- </c:if>
- <c:if test="${order.discountFee le 0}">¥0.00</c:if>
- </td>
- <td>运费:
- <c:if test="${order.freight == 0}">
- 包邮
- </c:if>
- <c:if test="${order.freight == -1}">
- 到付
- </c:if>
- <c:if test="${order.freight == -2}">
- 仪器到付-产品包邮
- </c:if>
- <c:if test="${order.freight != -1 && order.freight != 0 && order.freight != -2}">
- <fmt:formatNumber value="${order.freight}" type="currency"/>
- </c:if>
- </td>
- <td style="position: relative;"><a class="operation-btn btn">功能</a>
- <div class="operation-block">
- <shiro:hasPermission name="order:order:edit">
- <%--包含订单充值商品就不显示--%>
- <c:if test="${order.rechargeGoods ne 1 and order.rechargeGoods ne 2}">
- <c:if test="${order.status == 11 || order.status == 12 || order.status == 21 || order.status == 22 || order.status == 31 || order.status == 32}">
- <a href="${ctx}/order/toDeliveryPage?id=${order.orderID}">发货</a>
- </c:if>
- <c:if test="${order.receiptStatus == 2 && order.status != 6 && order.status != 7}">
- <a href="javascript:void(0);" onclick="collection(${order.orderID})">抹平收款</a>
- </c:if>
- </c:if>
- <c:if test="${(order.organizeID == 0 or order.organizeID > 2) && order.status == 11 && order.payStatus == 1}">
- <a href="javascript:void(0);"
- onclick="modelShow('${order.orderID}')">编辑经理折扣</a>
- </c:if>
- </shiro:hasPermission>
- <shiro:hasPermission name="order:order:applyrefound">
- <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}">
- <%-- 返佣订单不能申请退款(退货) --%>
- <c:if test="${order.rebateOrder == '0'}">
- <c:if test="${order.toAudit eq 1}">
- <%--如果存在审核收款则不允许申请:1不能申请,其它可以申请--%>
- <c:if test="${order.toAudit eq 1}">
- <%--弹窗提示--%>
- <a href="#" onclick="return alertx('订单存在未审核的收款,暂不能退款。请将收款审核通过后再操作退款。')">申请退款</a>
- </c:if>
- </c:if>
- <c:if test="${order.toAudit ne 1}">
- <c:if test="${order.applyReturnedPurchaseFlag eq 1}">
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/applyRefound.rpc?orderID=${order.orderID}"
- <c:if test="${order.status == 21 || order.status == 22 || order.status == 23}">onclick="return confirmx('部分收款的订单、申请退款只能申请全部退款!', this.href)"
- </c:if>
- >申请退款</a>
- </c:if>
- <c:if test="${order.applyReturnedPurchaseFlag ne 1}">
- <font title="存在未处理完的申请,请前往退款列表处理!">申请退款</font>
- </c:if>
- </c:if>
- </c:if>
- </c:if>
- </shiro:hasPermission>
- <shiro:hasPermission name="order:order:edit">
- <c:if test="${order.status ne 0}">
- <a href="${ctx}/order/printOrder?orderID=${order.orderID}">打印发货单</a>
- </c:if>
- <a href="${ctx}/order/exportOrder?id=${order.orderID}">订单导出</a>
- <a href="${ctx}/order/cmOrderRemark/remarksViewNew.rpc?orderID=${order.orderID}&source=2&orderType=2">订单备注</a>
- <%--包含订单充值商品就不显示--%>
- <c:if test="${empty order.rechargeGoods}">
- <c:if test="${order.status ne 0 && order.status ne 11 && order.status ne 21 && order.status ne 6 && order.status ne 4}">
- <a href="${ctx}/order/logisticsDetails?orderID=${order.orderID}">发货记录</a>
- </c:if>
- <c:if test="${order.status ne 0 && order.status ne 11 && order.status ne 6}">
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${order.orderID}&from=2">收退款记录
- </a>
- </c:if>
- <c:if test="${order.status ne 0 && order.status ne 11 && order.status ne 6}">
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRecturnRecordByOrderID.rpc?orderID=${order.orderID}">退款(退货)记录
- </a>
- </c:if>
- </c:if>
- </shiro:hasPermission>
- </div>
- </td>
- </tr>
- <tr>
- <td>拼团状态:
- <c:choose>
- <c:when test="${order.collageFlag eq 1 && (order.status eq 31 || order.status eq 32 || order.status eq 33)}">
- <font color="${order.collageStatus eq 1?'#00CC66':(order.collageStatus eq 2?'red':'')}">
- ${order.collageStatus eq 1?'拼团中':(order.collageStatus eq 2?'已拼成':'-')}
- </font>
- </c:when>
- <c:otherwise>
- -
- </c:otherwise>
- </c:choose>
- </td>
- </tr>
- <c:if test="${order.promotionFullReduction gt 0 || order.promotionalGiftsCount gt 0}">
- <tr>
- <c:if test="${order.promotionFullReduction gt 0}">
- <td>促销满减:¥${order.promotionFullReduction}</td>
- </c:if>
- <c:if test="${order.promotionalGiftsCount gt 0}">
- <td>赠品总数:${order.promotionalGiftsCount}</td>
- </c:if>
- </tr>
- </c:if>
- <c:if test="${order.discountFee gt 0 and returnedPurchaseFee gt 0}">
- <tr>
- <td style="color: red">说明:因退货,经理折扣收回,用于抵扣退款。</td>
- </tr>
- </c:if>
- </table>
- <textarea id="copyValue" style="display: none"></textarea>
- <c:forEach items="${order.newShopOrders}" var="shopOrder">
- <div class="order-rows">
- <span><label>下单时间:</label>${order.orderTime}</span>
- <span><label>子订单号(ID):</label>${shopOrder.shopOrderNo}(${shopOrder.shopOrderID})</span>
- <span><label>子订单金额:</label><fmt:formatNumber value="${shopOrder.realPay}" type="currency"/></span>
- <c:if test="${shopOrder.postFeeCos eq '0'}">
- <div class="print-wrapper">
- <a href="${ctx}/order/printOrder?shopOrderID=${shopOrder.shopOrderID}">打印</a>
- <a href="${ctx}/order/exportSubOrder?shopOrderID=${shopOrder.shopOrderID}">导出</a>
- <c:if test="${order.status ne '0'}">
- <a onclick="copyText('${shopOrder.shopOrderID}')" style="cursor:pointer;">供应商订单二维码</a>
- </c:if>
- <c:if test="${shopOrder.orderArchiveId ne null}">
- <a href="${ctx}/archive/cmOrderArchive/form?id=${shopOrder.orderArchiveId}">查看订单资料</a>
- </c:if>
- <c:if test="${order.onlinePayFlag eq 0}">
- <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}">
- <%-- 返佣订单不能申请退款(退货) --%>
- <c:if test="${order.rebateOrder == '0'}">
- <c:if test="${order.toAudit eq 1}">
- <%--如果存在审核收款则不允许申请:1不能申请,其它可以申请--%>
- <c:if test="${order.toAudit eq 1}">
- <%--弹窗提示--%>
- <a href="#" onclick="return alertx('订单存在未审核的收款,暂不能退款。请将收款审核通过后再操作退款。')">申请退款</a>
- </c:if>
- </c:if>
- <c:if test="${order.toAudit ne 1}">
- <c:if test="${order.applyReturnedPurchaseFlag eq 1}">
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/applyRefound.rpc?orderID=${order.orderID}&onlineShopOrderId=${shopOrder.shopOrderID}&refundType=1"
- <c:if test="${order.status == 21 || order.status == 22 || order.status == 23}">onclick="return confirmx('部分收款的订单、申请退款只能申请全部退款!', this.href)"
- </c:if>
- >申请退款</a>
- </c:if>
- <c:if test="${order.applyReturnedPurchaseFlag ne 1}">
- <font title="存在未处理完的申请,请前往退款列表处理!">申请退款</font>
- </c:if>
- </c:if>
- </c:if>
- </c:if>
- </c:if>
- </div>
- </c:if>
- <c:if test="${order.onlinePayFlag eq 0}">
- <br/>
- <span><label>商品总额:</label><fmt:formatNumber value="${shopOrder.needPayAmount}" type="currency"/></span>
- <span><label>优惠:</label><fmt:formatNumber value="${shopOrder.eachDiscount}" type="currency"/></span>
- <span><label>应付金额:</label><fmt:formatNumber value="${shopOrder.realPay}" type="currency"/></span>
- <span><label>已付金额:</label><fmt:formatNumber value="${shopOrder.receiptAmount}" type="currency"/></span>
- <span><label>待付金额:</label><fmt:formatNumber value="${shopOrder.restAmount}" type="currency"/></span>
- <br/>
- <span><label>收款状态:</label>
- <c:if test="${shopOrder.shopReceiptStatus == 1}">
- <font color="red">待收款</font>
- </c:if>
- <c:if test="${shopOrder.shopReceiptStatus == 2}">
- <font color="#ff8c00">部分收款</font>
- </c:if>
- <c:if test="${shopOrder.shopReceiptStatus == 3}">
- <font color="green">已收款</font>
- </c:if>
- </span>
- <span><label>付款状态:</label>
- <c:if test="${shopOrder.payStatus == 1}">
- <font color="red">待付款</font>
- </c:if>
- <c:if test="${shopOrder.payStatus == 2}">
- <font color="#ff8c00">部分付款</font>
- </c:if>
- <c:if test="${shopOrder.payStatus == 3}">
- <font color="green">已付款</font>
- </c:if>
- </span>
- <span><label>发货状态:</label>
- <c:if test="${shopOrder.sendOutStatus == 1}">
- <font color="red">待发货</font>
- </c:if>
- <c:if test="${shopOrder.sendOutStatus == 2}">
- <font color="#ff8c00">部分发货</font>
- </c:if>
- <c:if test="${shopOrder.sendOutStatus == 3}">
- <font color="green">已发货</font>
- </c:if>
- </span>
- <c:if test="${not empty shopOrder.note}">
- <span>留言:${shopOrder.note}</span>
- </c:if>
- </c:if>
- <c:if test="${order.onlinePayFlag eq 1}">
- <c:if test="${shopOrder.postFeeCos eq '0'}">
- <c:if test="${order.status ne 0 && order.status ne 11}">
- <div class="delivery-wrapper">
- <span>发货状态:
- <c:if test="${shopOrder.sendOutStatus == 1}">
- <font color="red">待发货</font>
- </c:if>
- <c:if test="${shopOrder.sendOutStatus == 2}">
- <font color="#ff8c00">部分发货</font>
- </c:if>
- <c:if test="${shopOrder.sendOutStatus == 3}">
- <font color="green">已发货</font>
- </c:if>
- </span>
- <span>付款状态:<c:if test="${shopOrder.payStatus == 1}">
- <font color="red">待付款</font>
- </c:if>
- <c:if test="${shopOrder.payStatus == 2}">
- <font color="#ff8c00">部分付款</font>
- </c:if>
- <c:if test="${shopOrder.payStatus == 3}">
- <font color="green">已付款</font>
- </c:if></span>
- <c:if test="${shopOrder.payStatus == 3 or shopOrder.payStatus == 2}">
- <span>已付金额: <fmt:formatNumber value="${shopOrder.payed}" type="currency"/>
- </span>
- </c:if>
- </div>
- </c:if>
- <c:if test="${not empty shopOrder.note}">
- <div><label>留言:</label>${shopOrder.note}</div>
- </c:if>
- </c:if>
- </c:if>
- </div>
- <div class="order-rows">
- <span><label>供应商:</label>${shopOrder.shopName}</span>
- <c:if test="${shopOrder.shopPromotion ne null && shopOrder.shopPromotion.type eq 3}">
- <c:if test="${shopOrder.shopPromotion.mode eq 2}">
- <span><label
- style="background-color: #F60;color: white">${shopOrder.shopPromotion.name}</label> 满<fmt:formatNumber
- value="${shopOrder.shopPromotion.touchPrice}" pattern="#,##0.00"
- maxFractionDigits="2"/>,减<fmt:formatNumber value="${shopOrder.shopPromotion.reducedPrice}"
- pattern="#,##0.00" maxFractionDigits="2"/></span>
- </c:if>
- <c:if test="${shopOrder.shopPromotion.mode eq 3}">
- <span><label
- style="background-color: purple;color: white">${shopOrder.shopPromotion.name}</label> 满<fmt:formatNumber
- value="${shopOrder.shopPromotion.touchPrice}" pattern="#,##0.00"
- maxFractionDigits="2"/>,赠送商品</span>
- </c:if>
- </c:if>
- <div>
- <c:forEach items="${shopOrder.newOrderProducts}" var="op">
- <div class="supplier-product-item">
- <%--二手订单详情--%>
- <c:if test="${order.secondHandOrderFlag eq 1}">
- <a href="${fns:getConfig('wwwServer')}product-${op.productID}.html" target="_blank">
- <img class="supplier-img" src="${op.image}"/>
- </a>
- </c:if>
- <%--正常订单详情--%>
- <c:if test="${order.secondHandOrderFlag ne 1}">
- <a href="${fns:getConfig('wwwServer')}product-${op.productID}.html" target="_blank">
- <img class="supplier-img" src="${op.image}"/>
- </a>
- </c:if>
- <div class="supplier-name">
- <c:if test="${op.name eq op.aliasName}">
- <div class="supplier-product-name">${op.name}</div>
- </c:if>
- <c:if test="${op.name ne op.aliasName}">
- <div class="supplier-product-name">${op.name}</div>
- <div class="supplier-product-alias">${op.aliasName}</div>
- </c:if>
- <c:if test="${op.productType eq 1}">
- <div class="supplier-product-name"><label style="color: red">协商赠品</label></div>
- </c:if>
- <c:if test="${op.productType eq 2}">
- <div class="supplier-product-name"><label style="color: red">促销赠品</label></div>
- </c:if>
- <c:if test="${op.includedTax eq 1}">
- <div class="supplier-product-name"><label style="color: red">(含税)</label></div>
- </c:if>
- <c:if test="${op.includedTax ne '' and op.includedTax eq 0}">
- <c:if test="${op.invoiceType eq 3}">
- <div class="supplier-product-name"><label style="color: red">(不含税-不能开票)</label></div>
- </c:if>
- <c:if test="${op.invoiceType eq 2 or op.invoiceType eq 1}">
- <div class="supplier-product-name"><label style="color: red">(不含税-能开票)</label></div>
- </c:if>
- </c:if>
- </div>
- <c:if test="${op.productID ne 999}">
- <div class="supplier-product-info">
- <span style="color: red">规格:${op.productUnit}</span>
- <span>单价:
- <c:if test="${op.productPromotion.mode eq 1}">
- <label style="text-decoration: line-through"><fmt:formatNumber value="${op.price}"
- type="currency"/></label></span>
- </c:if>
- <c:if test="${op.productPromotion.mode ne 1}">
- <fmt:formatNumber value="${op.price}" type="currency"/>
- </c:if>
- <c:if test="${op.ladderPriceFlag eq 1 || op.isActProduct eq 1}">
- <a href="javascript:;" class="ladderPrice"><span> (阶梯价格)</span>
- <c:if test="${not empty op.orderProductLadderPriceList}">
- <div class="list">
- <p><span>起订量</span><span>价格</span></p>
- <c:forEach items="${op.orderProductLadderPriceList}" var="ladderPrice">
- <p data-num="${ladderPrice.buyNum}">
- <span>${ladderPrice.buyNumRangeShow}</span><span
- class="price">${ladderPrice.buyPrice}</span></p>
- </c:forEach>
- </div>
- </c:if>
- </a>
- </c:if>
- <c:if test="${order.collageFlag eq 1}"><font color="red">(拼团价)</font></c:if>
- </span>
- <span>折扣: ${op.discount}%</span>
- <span>折后单价:
- <c:if test="${op.productPromotion.mode eq 1}">
- <label style="text-decoration: line-through"><fmt:formatNumber
- value="${op.discountPrice}" type="currency"/></label></span>
- </c:if>
- <c:if test="${op.productPromotion.mode ne 1}">
- <fmt:formatNumber value="${op.discountPrice}" type="currency"/></span>
- </c:if>
- <span>数量: x${op.num}</span>
- <br>
- <span>税率: ${(op.includedTax != '' and op.includedTax eq 0 and op.invoiceType eq 3)?'---': op.taxRate ne null?op.taxRate:0.0}%</span>
- <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>
- <span>总额: <fmt:formatNumber value="${op.totalFee}" type="currency"/></span>
- <c:if test="${order.sendOutStatus == 2 || order.sendOutStatus == 3}">
- <span>已发/已收 ${(op.num == null ? 0 : op.num)+ (op.presentNum == null ? 0 : op.presentNum)- (op.notOutStore == null ? 0 : op.notOutStore)}/${op.receivedNum}</span>
- </c:if>
- <c:if test="${fns:hasReturn(order.status)}">
- <span>退款(退货)中/已完成 ${op.returningNum}/${op.returnedNum}</span>
- </c:if>
- <c:if test="${op.heUserId > 0}">
- <span><font color="red">分销者: ${op.heUserName}</font></span>
- </c:if>
- </div>
- <c:if test="${op.productPromotion ne null}">
- <c:if test="${op.productPromotion.type eq 2}">
- <div class="supplier-product-promotionInfo">
- <table>
- <tr>
- <td rowspan="2">
- <c:if test="${op.productPromotion.mode eq 2}">
- <label style="background-color: #F60;color: white"><label
- class="promotionsName">${op.productPromotion.name}</label></label>
- </c:if>
- <c:if test="${op.productPromotion.mode eq 3}">
- <label style="background-color: purple;color: white"><label
- class="promotionsName">${op.productPromotion.name}</label></label>
- </c:if>
- </td>
- <td>
- <span class="downSpan">${op.productPromotion.description}</span>
- <c:if test="${op.productPromotion.mode eq 2}">
- <span class="upSpan"> 满<fmt:formatNumber
- value="${op.productPromotion.touchPrice}" pattern="#,##0.00"
- maxFractionDigits="2"/>,减<fmt:formatNumber
- value="${op.productPromotion.reducedPrice}"
- pattern="#,##0.00" maxFractionDigits="2"/></span>
- </c:if>
- <c:if test="${op.productPromotion.mode eq 3}">
- <span class="upSpan"> 满<fmt:formatNumber
- value="${op.productPromotion.touchPrice}" pattern="#,##0.00"
- maxFractionDigits="2"/>,赠送商品</span>
- </c:if>
- </td>
- </tr>
- </table>
- </div>
- </c:if>
- <c:if test="${op.productPromotion.type eq 1}">
- <div class="supplier-product-promotionInfo">
- <table>
- <tr>
- <c:if test="${op.productPromotion.mode eq 1}">
- <td><label style="background-color: green;color: white"><label
- class="promotionsName">${op.productPromotion.name}</label></label>
- </td>
- <td> 优惠价: <label style="color: red"><fmt:formatNumber
- value="${op.productPromotion.touchPrice}" pattern="#,##0.00"
- maxFractionDigits="2"/></label></td>
- </c:if>
- <c:if test="${op.productPromotion.mode eq 2}">
- <td><label style="background-color: #F60;color: white"><label
- class="promotionsName">${op.productPromotion.name}</label></label>
- </td>
- <td> 满<fmt:formatNumber value="${op.productPromotion.touchPrice}"
- pattern="#,##0.00"
- maxFractionDigits="2"/>,减<fmt:formatNumber
- value="${op.productPromotion.reducedPrice}" pattern="#,##0.00"
- maxFractionDigits="2"/></td>
- </c:if>
- <c:if test="${op.productPromotion.mode eq 3}">
- <td><label style="background-color: purple;color: white"><label
- class="promotionsName">${op.productPromotion.name}</label></label>
- </td>
- <td> 满<fmt:formatNumber value="${op.productPromotion.touchPrice}"
- pattern="#,##0.00" maxFractionDigits="2"/>,赠送商品
- </td>
- </c:if>
- </tr>
- </table>
- </div>
- </c:if>
- </c:if>
- </c:if>
- <c:if test="${op.productID eq 999}">
- <span>数量: x${op.num}</span>
- </c:if>
- <br>
- </div>
- </c:forEach>
- </div>
- </div>
- </c:forEach>
- <script type="text/javascript">
- (function () {
- $('body').click(function (e) {
- var target = $(e.target),
- $block = $('.operation-block');
- if (target.is('.operation-btn')) {
- if ($block.css('display') === 'none') {
- $block.show();
- } else {
- $block.hide();
- }
- }
- if (!target.is('.operation-block') && !target.is('.operation-btn')) {
- $block.hide();
- }
- });
- $('.clauseId').each(function () {
- var self = $(this);
- if (!self.prop("checked")) {
- self.parent().hide();
- } else {
- self.hide();
- }
- });
- $('#invoice1, #invoice2, #invoice3').each(function () {
- var self = $(this);
- if (!self.prop("checked")) {
- self.next().remove();
- self.remove();
- } else {
- self.remove();
- }
- })
- })();
- function openClauseInfo(index) {
- var content = $("#clauseContent" + index).val();
- if (content == '') {
- return false;
- }
- $.jBox(content, {
- title: $("#clauseName" + index).val(),
- width: $(top.document).width() - 440,
- height: $(top.document).height() - 240,
- buttons: {'关闭': true}
- });
- }
- //编辑经理折扣
- function modelShow(orderID) {
- top.$.jBox("iframe:${ctx}/order/DiscountFee?orderID=" + orderID, {
- iframeScrolling: 'yes',
- top: 150,
- width: 480,
- height: 250,
- persistent: true,
- title: "编辑经理折扣",
- buttons: {"确认": '1', "取消": '-1'},
- submit: function (v, h, f) {
- //确定
- var $jboxFrame = top.$('#jbox-iframe');
- var $mainFrame = top.$('#mainFrame');
- if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
- var rechargeInfo = $jboxFrame[0].contentWindow.submit();
- var split = rechargeInfo.split(",");
- var payTotalFee = split[0];
- var discountFee = split[1];
- //取值,然后调用后台接口传入参数,最后刷新页面
- if (payTotalFee <= 0) {
- return false;
- }
- $.post("${ctx}/order/saveDiscountFee", {
- 'discountFee': discountFee,
- 'orderID': orderID,
- 'payTotalFee': payTotalFee
- }, function (data) {
- if (true == data.success) {
- refresh(data.msg);
- } else {
- alertx(data.msg, 1000);
- }
- }, "JSON");//这里返回的类型有:json,html,xml,text
- }
- return true;
- }, closed: function () {/* 窗口关闭后执行的函数 */
- }
- });
- }
- //订单商品备注
- function remarks(orderID, shopOrderID) {
- top.$.jBox("iframe:${ctx}/order/cmOrderRemark/remarksView?orderID=" + orderID + "&shopOrderID=" + shopOrderID, {
- iframeScrolling: 'yes',
- top: 150,
- width: 400,
- height: 480,
- persistent: true,
- title: "订单备注信息",
- buttons: {"确认": '1', "关闭": '-1'},
- submit: function (v, h, f) {
- //确定
- var $jboxFrame = top.$('#jbox-iframe');
- var $mainFrame = top.$('#mainFrame');
- if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
- var remarks = $jboxFrame[0].contentWindow.submit();
- if ('' == remarks) {
- alertx("备注信息不能为空!!!")
- return false;
- }
- saveRemarks(remarks, orderID, shopOrderID);
- return true;
- }
- return true;
- },
- loaded: function (h) { //隐藏滚动条
- $(".jbox-content", top.document).css("overflow-y", "hidden");
- }
- });
- }
- function saveRemarks(remarks, orderID, shopOrderID) {
- $.post("${ctx}/order/cmOrderRemark/addRemarks", {
- "remarks": remarks, "orderID": orderID, "shopOrderID": shopOrderID
- }, function (data) {
- if (true == data.success) {
- refresh(data.msg);
- } else {
- $.jBox.tip(data.msg, 'error');
- }
- }, "JSON");//这里返回的类型有:json,html,xml,text
- }
- // 二维码分享
- function QRCodewin(orderId, orderNo) {
- var html = '<div style="padding:10px;">订单号:' + orderNo + '' +
- '<div class="code" style="text-align: center;"></div>' +
- '</div>';
- $.jBox(html, {
- title: "订单二维码分享",
- width: $(top.document).width() - 1700,
- height: $(top.document).height() - 1600,
- buttons: {'关闭': true}
- });
- var enCodeRedirectUrl;
- var redirectUrl = '${fns:getConfig('caimei.crm.server')}oauth.action?orderId=' + orderId;
- $.ajax({
- url: "${ctx}/bulkpurchase/contractOrder/enCode",
- data: {"redirectUrl": redirectUrl},
- type: "POST",
- async: false,
- success: function (data) {
- enCodeRedirectUrl = data.enCodeRedirectUrl;
- }
- });
- 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';
- $('.code').qrcode({
- width: 150,
- height: 150,
- text: shareUrl
- });
- }
- //刷新页面
- function refresh(msg) {
- $.jBox.tip(msg, 'info', {timeout: 1000});
- setTimeout(function () {
- window.location.href = "${ctx}/order/detail?id=${order.orderID}"
- }, 1000)
- }
- </script>
-
- <script>
- if ("${time}" != "") {
- window.onload = clock;
- function clock() {
- var today = new Date(),//当前时间
- h = today.getHours(),
- m = today.getMinutes(),
- s = today.getSeconds();
- var stopTime = new Date("${time}"),//结束时间
- stopH = stopTime.getHours(),
- stopM = stopTime.getMinutes(),
- stopS = stopTime.getSeconds();
- var shenyu = stopTime.getTime() - today.getTime(),//倒计时毫秒数
- shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)),//转换为天
- D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000),//除去天的毫秒数
- shengyuH = parseInt(D / (60 * 60 * 1000)),//除去天的毫秒数转换成小时
- H = D - shengyuH * 60 * 60 * 1000,//除去天、小时的毫秒数
- shengyuM = parseInt(H / (60 * 1000)),//除去天的毫秒数转换成分钟
- M = H - shengyuM * 60 * 1000;//除去天、小时、分的毫秒数
- S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)//除去天、小时、分的毫秒数转化为秒
- document.getElementById("time").innerHTML = ("(剩余" + shengyuD + "天" + shengyuH + "小时" + shengyuM + "分" + S + "秒)" + "<br>");
- setTimeout(clock, 500);
- }
- }
- function copyText(shopOrderID) {
- $.post("${ctx}/order/shopOrderLink", {'shopOrderId': shopOrderID}, function (data) {
- if (data.success) {
- var imageSrc = "data:image/jpeg|png|gif;base64," + data.imageBuffer;
- top.$.jBox.info('<img width="150px" height="150px" style="margin-left: 65px;" src=' + imageSrc + '>', '小程序扫码发货');
- } else {
- alertx(data.msg);
- }
- });
- }
- $(document).ready(function () {
- if ($(".operation-block").length > 0) {
- var length = $(".operation-block").length;
- for (var i = 0; i < length; i++) {
- var b = $(".operation-block").get(i);
- if ($(b).html().trim() == '') {
- $(b).hide();
- $(b).prev().hide();
- }
- }
- }
- if ($('.supplier-product-name').html() == $('.supplier-product-alias').html()) {
- $('.supplier-product-alias').remove();
- }
- })
- //抹平收款
- function collection(orderId) {
- $.post("${ctx}/order/gatheringData", {
- 'orderId': orderId
- }, function (data) {
- if (true == data.success) {
- var html = "<div id='auditBox'>" +
- "<P>确定抹平收款吗?抹平后该订单将变为已收款状态</p>" +
- "<P><span>订单金额:<b>¥" + Number(data.payTotalFee).toFixed(2) + "</b></span></p>" +
- "<P><span>应收金额:<b>¥" + Number(data.payableAmount).toFixed(2) + "</b><span style='color:#FF0000'>(账户余额抵扣: ¥<b>" + Number(data.balancePayFee).toFixed(2) + "</b>)</span></span></p>" +
- "<P><span>已收金额:<b>¥" + Number(data.associateAmount).toFixed(2) + "</b></span></p>" +
- "<div><div class='note-div'><span style='color:#FF0000'>*</span>备注</div></div>" +
- "<textarea name='auditNote' style='width: 100%;min-height:60px;'></textarea>" +
- "<div class='note-div' style='display: none' id='noteError'><span style='color:#FF0000'>请填写备注</span> </div>" +
- "</div>";
- $.jBox(html, {
- title: "确认提示", width: 500, height: 400, buttons: {"确定": '1', "取消": '-1'},
- submit: function (v, h, f) {
- if ('1' == v) {
- var content = document.getElementsByName("auditNote")[0].value;
- if (content == '' || content == null) {
- document.getElementById('noteError').style.display = 'block';
- return false;
- }
- $.post("${ctx}/order/smoothOutCollection", {
- 'orderID': orderId,
- 'balanceAccountsRemark': content
- });
- window.location.href = "${ctx}/order/detail?id=" + orderId;
- }
- }
- });
- } else {
- $.jBox.tip(data.msg, 'error');
- }
- }, "JSON");//这里返回的类型有:json,html,xml,text
- };
- </script>
- </body>
- </html>
|