|
@@ -0,0 +1,1234 @@
|
|
|
+<%@ page contentType="text/html;charset=UTF-8" %>
|
|
|
+<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
|
|
|
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <title>订单列表</title>
|
|
|
+ <meta name="decorator" content="default"/>
|
|
|
+ <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: 826px;
|
|
|
+ top: 5px;
|
|
|
+ padding: 10px;
|
|
|
+ border: 1px solid #666;
|
|
|
+ -webkit-border-radius: 5px;
|
|
|
+ -moz-border-radius: 5px;
|
|
|
+ border-radius: 5px;
|
|
|
+ z-index: 100001;
|
|
|
+ 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: 55%;
|
|
|
+ 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
|
|
|
+ }
|
|
|
+
|
|
|
+ .acticer_span {
|
|
|
+ display: inline-block;
|
|
|
+ width: 14px;
|
|
|
+ height: 14px;
|
|
|
+ border-radius: 50%;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border: 1px solid #999999;
|
|
|
+ text-align: center;
|
|
|
+ color: #333333;
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 14px;
|
|
|
+ float: none;
|
|
|
+ margin-left: 3px;
|
|
|
+ }
|
|
|
+ </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 class="active"><a href="${ctx}/shopOrder/detail?id=${order.shopOrderID}">订单详情</a></li>
|
|
|
+ <shiro:hasPermission name="order:order:view">
|
|
|
+ <li><a href="${ctx}/order/orderList">订单列表</a></li>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ <shiro:hasPermission name="order:order:secondhandOrder">
|
|
|
+ <li><a href="${ctx}/order/secondhandOrderList">二手订单列表</a></li>
|
|
|
+ </shiro:hasPermission>
|
|
|
+</ul>
|
|
|
+<sys:message content="${message}"/>
|
|
|
+<table class="order-details-heading">
|
|
|
+ <tr>
|
|
|
+ <td>下单时间: ${order.orderTime}</td>
|
|
|
+ <td>子订单ID(子订单编号): <b style="font-size: 15px;">${order.shopOrderID}</b>(${order.shopOrderNo})</td>
|
|
|
+ <td>订单ID(订单编号): <b style="font-size: 15px;">${order.orderID}</b>(${order.orderNo})</td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td>订单类型: <c:if test="${order.orderType == 1}">自主订单</c:if><c:if test="${order.orderType == 0}">协销订单</c:if></td>
|
|
|
+ <td>订单来源: ${fns:getDictLabel(order.orderSource,"bp_orderSource","" )}</td>
|
|
|
+ <td>返佣订单: ${(order.rebateOrder ne '0' || order.rebateFlag eq '1')?'是':'否'}</td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td>机构:${order.buyer}
|
|
|
+ <font id="svipFlagLabel" style="margin-left:0px" color="red">
|
|
|
+ <%-- <c:if test="${order.bpOrderUserinfo.firstClubType eq 1 and order.bpOrderUserinfo.svipFlag eq 1}">--%>
|
|
|
+ <%-- (医美机构,超级会员)--%>
|
|
|
+ <%-- </c:if>--%>
|
|
|
+ <%-- <c:if test="${order.bpOrderUserinfo.firstClubType eq 1 and order.bpOrderUserinfo.svipFlag eq null}">--%>
|
|
|
+ <%-- ${order.bpOrderUserinfo.firstClubType eq 1?'(医美机构)':''}--%>
|
|
|
+ <%-- </c:if>--%>
|
|
|
+ <%-- <c:if test="${order.bpOrderUserinfo.firstClubType eq null and order.bpOrderUserinfo.svipFlag eq 1}">--%>
|
|
|
+ <%-- ${order.bpOrderUserinfo.svipFlag eq 1?'(超级会员)':''}--%>
|
|
|
+ <%-- </c:if>--%>
|
|
|
+ <c:if test="${order.organizeID == 4}">(联合丽格)</c:if>
|
|
|
+ </font>
|
|
|
+ </td>
|
|
|
+ <td>收货人: ${order.receiver}</td>
|
|
|
+ <td>手机: ${order.mobile}</td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <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>
|
|
|
+ </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>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ 退款状态:
|
|
|
+ <c:if test="${order.refundStatus == 1}">
|
|
|
+ <font>无退款</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.refundStatus == 3}">
|
|
|
+ <font>有退款</font>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>机构:${order.buyer}
|
|
|
+ <font id="svipFlagLabel" style="margin-left:0px" color="red">
|
|
|
+ <%-- <c:if test="${order.bpOrderUserinfo.firstClubType eq 1 and order.bpOrderUserinfo.svipFlag eq 1}">--%>
|
|
|
+ <%-- (医美机构,超级会员)--%>
|
|
|
+ <%-- </c:if>--%>
|
|
|
+ <%-- <c:if test="${order.bpOrderUserinfo.firstClubType eq 1 and order.bpOrderUserinfo.svipFlag eq null}">--%>
|
|
|
+ <%-- ${order.bpOrderUserinfo.firstClubType eq 1?'(医美机构)':''}--%>
|
|
|
+ <%-- </c:if>--%>
|
|
|
+ <%-- <c:if test="${order.bpOrderUserinfo.firstClubType eq null and order.bpOrderUserinfo.svipFlag eq 1}">--%>
|
|
|
+ <%-- ${order.bpOrderUserinfo.svipFlag eq 1?'(超级会员)':''}--%>
|
|
|
+ <%-- </c:if>--%>
|
|
|
+ <c:if test="${order.organizeID == 4}">(联合丽格)</c:if>
|
|
|
+ </font>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <%-- 地址: ${fns:appendLast(fns:appendLast1(order.bpOrderUserinfo.province,order.bpOrderUserinfo.city,order.bpOrderUserinfo.town), order.bpOrderUserinfo.address)}--%>
|
|
|
+ </td>
|
|
|
+ <td>订单可见度:</td>
|
|
|
+ <td style="position: relative;"><a class="operation-btn btn"
|
|
|
+ onclick="operation(${order.shopOrderID})">功能</a>
|
|
|
+ <div style="position: relative;">
|
|
|
+ <div class="operation-block ${order.shopOrderID}">
|
|
|
+ <shiro:hasPermission name="order:order:edit">
|
|
|
+ <%--包含订单充值商品就不显示--%>
|
|
|
+ <c:if test="${order.status == 0}">
|
|
|
+ <a href="${ctx}/order/confirmOrder?orderID=${order.orderID}&shopOrderID=${order.shopOrderID}"
|
|
|
+ onclick="return confirmx('是否确认订单?', this.href)">确认订单</a>
|
|
|
+ </c:if>
|
|
|
+ </shiro:hasPermission>
|
|
|
+
|
|
|
+
|
|
|
+ <shiro:hasPermission name="order:order:edit">
|
|
|
+ <%--包含订单充值商品就不显示--%>
|
|
|
+ <a href="${ctx}/order/logisticsDetails?orderID=${order.orderID}&shopOrderID=${order.shopOrderID}">发货记录</a>
|
|
|
+ <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${order.orderID}&shopOrderID=${order.shopOrderID}&from=2">收付款记录</a>
|
|
|
+ <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRecturnRecordByOrderID.rpc?orderID=${order.orderID}&shopOrderID=${order.shopOrderID}">退款(退货)记录</a>
|
|
|
+ <a href="${ctx}/order/cmOrderRemark/remarksViewNew.rpc?orderID=${order.orderID}&source=2&shopOrderID=${order.shopOrderID}">订单备注</a>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <fmt:setLocale value="zh_CN" scope="session"/>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+</table>
|
|
|
+<textarea id="copyValue" style="display: none"></textarea>
|
|
|
+
|
|
|
+<div class="order-rows">
|
|
|
+ <tr>
|
|
|
+ <span><label>子订单状态:</label>${fns:getDictLabel(order.status,"shopStatus","" )}</span>
|
|
|
+
|
|
|
+ <span>运费:${order.postageInfo}</span>
|
|
|
+
|
|
|
+ <span>子订单总额:<fmt:formatNumber value="${order.totalAmount}" type="currency"/></span>
|
|
|
+
|
|
|
+ <span>应收金额:
|
|
|
+ <c:if test="${order.realPay!=null}"><fmt:formatNumber value="${order.realPay}"
|
|
|
+ type="currency"/></c:if>
|
|
|
+ <c:if test="${order.realPay==null}"><fmt:formatNumber value="${order.needPayAmount}"
|
|
|
+ type="currency"/></c:if>
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <span>
|
|
|
+ 已收金额:<fmt:formatNumber value="${order.receiptAmount}" type="currency"/>
|
|
|
+ <c:if test="${order.useBalanceFlag eq 1 and order.accountAmount ne null}">(余额抵扣¥${order.accountAmount})</c:if>
|
|
|
+ </span>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <span>商品总额:<fmt:formatNumber value="${order.productAmount}" type="currency"/></span>
|
|
|
+ <span>
|
|
|
+ 收款状态:
|
|
|
+ <c:if test="${order.shopReceiptStatus == 1}">
|
|
|
+ <font color="red">待收款</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.shopReceiptStatus == 2}">
|
|
|
+ <font color="#ff8c00">部分收款</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.shopReceiptStatus == 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.needPayAmount - (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.receiptAmount ? 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>
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <span>发货状态:
|
|
|
+ <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>
|
|
|
+ </span>
|
|
|
+ <span>付款状态:
|
|
|
+ <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>
|
|
|
+ </span>
|
|
|
+ <span>退款状态:
|
|
|
+ <c:if test="${order.refundStatus == 1}">
|
|
|
+ <font>无退款</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.refundStatus == 3}">
|
|
|
+ <font>已退款</font>
|
|
|
+ </c:if>
|
|
|
+ </span>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <span>待收金额:<fmt:formatNumber value="${order.restAmount}" type="currency"/></span>
|
|
|
+ </tr>
|
|
|
+</div>
|
|
|
+<div class="order-rows">
|
|
|
+ <span><label>供应商:</label>${order.shopName}</span>
|
|
|
+ <c:if test="${order.contactName ne null}">
|
|
|
+ <span><label>供应商联系人:</label>${order.contactName}</span>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.dockingPeopleName ne null}">
|
|
|
+ <span><label>采美对接人:</label>${order.dockingPeopleName}</span>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.shopPromotion ne null && order.shopPromotion.type eq 3}">
|
|
|
+ <c:if test="${order.shopPromotion.mode eq 2}">
|
|
|
+ <span><label
|
|
|
+ style="background-color: #F60;color: white">${order.shopPromotion.name}</label> 满<fmt:formatNumber
|
|
|
+ value="${order.shopPromotion.touchPrice}" pattern="#,##0.00"
|
|
|
+ maxFractionDigits="2"/>,减<fmt:formatNumber value="${order.shopPromotion.reducedPrice}"
|
|
|
+ pattern="#,##0.00" maxFractionDigits="2"/></span>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.shopPromotion.mode eq 3}">
|
|
|
+ <span><label
|
|
|
+ style="background-color: purple;color: white">${order.shopPromotion.name}</label> 满<fmt:formatNumber
|
|
|
+ value="${order.shopPromotion.touchPrice}" pattern="#,##0.00"
|
|
|
+ maxFractionDigits="2"/>,赠送商品</span>
|
|
|
+ </c:if>
|
|
|
+ </c:if>
|
|
|
+ <div>
|
|
|
+ <c:forEach items="${order.newOrderProducts}" var="op" varStatus="varIndex">
|
|
|
+ <c class="supplier-product-item" style="z-index:${100000 - varIndex.index};position:relative;">
|
|
|
+ <%--二手订单详情--%>
|
|
|
+ <c:if test="${order.secondHandOrderFlag eq 1}">
|
|
|
+ <a href="${fns:getConfig('wwwServer')}flea-market-${op.productID}.html" target="_blank">
|
|
|
+ <img class="supplier-img" src="${op.image}" style="width: 100px"/>
|
|
|
+ </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}" style="width: 100px"/>
|
|
|
+ </a>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.organizeID != 4}">
|
|
|
+ <div class="supplier-name">
|
|
|
+ <c:if test="${op.name eq op.aliasName || op.productID eq 6060}">
|
|
|
+ <div class="supplier-product-name">${op.name}</div>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${op.name ne op.aliasName && op.productID ne 6060}">
|
|
|
+ <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>
|
|
|
+ <c:if test="${op.machineType eq 3}">
|
|
|
+ <div class="supplier-product-name"><font style="font-size: 16px" color="red">械字号三类</font></div>
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${op.productID ne 999}">
|
|
|
+ <div class="supplier-product-info">
|
|
|
+ <span>
|
|
|
+ 规格:
|
|
|
+ <label>${op.unit}</label>
|
|
|
+ </span>
|
|
|
+ <span>单价:
|
|
|
+ <c:if test="${op.svipPriceFlag eq 1 or op.productPromotion.mode eq 1}">
|
|
|
+ <label style="text-decoration: line-through"><fmt:formatNumber value="${op.price}"
|
|
|
+ type="currency"/></label>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${op.svipPriceFlag ne 1 and op.productPromotion.mode ne 1}">
|
|
|
+ <fmt:formatNumber value="${op.price}" type="currency"/>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${op.svipPriceFlag eq 1}">
|
|
|
+ <label style="margin-left:5px"><fmt:formatNumber value="${op.discountPrice}"
|
|
|
+ type="currency"/></label>
|
|
|
+ <font color="red">(超级会员价)</font></span>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${op.ladderPriceFlag eq 1 || op.isActProduct eq 2}">
|
|
|
+ <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>
|
|
|
+ </span>
|
|
|
+ <span>数量: x${op.num}</span>
|
|
|
+
|
|
|
+ <br>
|
|
|
+ <c:if test="${order.organizeID != 4}">
|
|
|
+ <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>
|
|
|
+ </c:if>
|
|
|
+ <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>
|
|
|
+ </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>
|
|
|
+ </c:forEach>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<%--组织订单暂时不显示发票和条款信息--%>
|
|
|
+<%--<c:if test="${order.organizeID == 0}">--%>
|
|
|
+<c:if test="${order.organizeID != 4}">
|
|
|
+ <div class="order-rows">
|
|
|
+ <label>订单对机构是否可见:</label>
|
|
|
+ <c:if test="${order.orderSeen eq 1}">
|
|
|
+ <label>可见</label>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.orderSeen eq 2}">
|
|
|
+ <label>不可见</label>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.orderSeen ne 1 and order.orderSeen ne 2}">
|
|
|
+ <label>未定义</label>
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+</c:if>
|
|
|
+<div class="order-rows">
|
|
|
+ <label>发票信息:</label>
|
|
|
+ <c:if test="${order.orderInvoice.type eq 0}">
|
|
|
+ <%-- <input name="invoice" type="radio" checked="checked">--%>
|
|
|
+ <label>不需要发票</label>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.orderInvoice.type eq 1}">
|
|
|
+ <%-- <input name="invoice" type="radio" checked="checked">--%>
|
|
|
+ <label>增值税普通发票</label>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.orderInvoice.type eq 2}">
|
|
|
+ <%-- <input name="invoice" type="radio" checked="checked">--%>
|
|
|
+ <label>增值税专用发票</label>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.orderInvoice.type eq null}">
|
|
|
+ <%-- <input name="invoice" type="radio" checked="checked">--%>
|
|
|
+ <label>不需要发票</label>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.orderInvoice.type == 1}">
|
|
|
+ <br>
|
|
|
+ <div>
|
|
|
+ <span>
|
|
|
+ <c:if test="${order.orderInvoice.invoiceTitleType eq 0}">
|
|
|
+ 个人抬头:
|
|
|
+ <span>${order.orderInvoice.invoiceTitle}</span>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.orderInvoice.invoiceTitleType eq 1}">
|
|
|
+ 企业抬头:
|
|
|
+ <span>${order.orderInvoice.invoiceTitle}</span>
|
|
|
+
|
|
|
+ 纳税人识别号:
|
|
|
+ <span>${order.orderInvoice.corporationTaxNum}</span>
|
|
|
+ </c:if>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.orderInvoice.type == 2}">
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <td><span>单位名称:${order.orderInvoice.invoiceTitle}</span></td>
|
|
|
+ <td><span>纳税人识别号:${order.orderInvoice.corporationTaxNum}</span></td>
|
|
|
+ <td><span>注册地址:${order.orderInvoice.registeredAddress}</span></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td><span>注册电话:${order.orderInvoice.registeredPhone}</span></td>
|
|
|
+ <td><span>开户银行:${order.orderInvoice.openBank}</span></td>
|
|
|
+ <td><span>银行账号:${order.orderInvoice.bankAccountNo}</span></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </c:if>
|
|
|
+</div>
|
|
|
+<c:if test="${order.organizeID != 4}">
|
|
|
+ <div class="order-rows">
|
|
|
+ <label>售后条款:</label>
|
|
|
+ <c:forEach items="${bpClauses}" var="items" varStatus="index">
|
|
|
+ <c:if test="${items.clauseType ne 0 }">
|
|
|
+ <span>
|
|
|
+ <input id="clauseId${index.index+1}" class="clauseId" name="clauseID" type="radio"
|
|
|
+ value="${items.id}"${(order.clauseID)==(items.id)?'checked="checked"':''}
|
|
|
+ class="required" class="clauseId" disabled="disabled">
|
|
|
+ <input type="hidden" class="clauseContent" id="clauseContent${index.index+1}"
|
|
|
+ value="${fns:escapeHtml(items.content)}">
|
|
|
+ <input type="hidden" class="clauseName" id="clauseName${index.index+1}" value="${items.name}">
|
|
|
+ <a href="javascript:void(0);"
|
|
|
+ onclick="openClauseInfo(${index.index+1});"><label>${items.name}</label></a>
|
|
|
+ </span>
|
|
|
+ </c:if>
|
|
|
+ </c:forEach>
|
|
|
+ </div>
|
|
|
+</c:if>
|
|
|
+<script type="text/javascript">
|
|
|
+ (function () {
|
|
|
+
|
|
|
+ $('.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 operation(shopOrderID) {
|
|
|
+ var operationBlok = $('.' + shopOrderID)
|
|
|
+ if (operationBlok.css('display') == 'none') {
|
|
|
+ $('.operation-block').hide()
|
|
|
+ operationBlok.show()
|
|
|
+ } else {
|
|
|
+ operationBlok.hide()
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ 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 rebateFeeEdit(orderID) {
|
|
|
+ top.$.jBox("iframe:${ctx}/order/RebateFee?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 rebateFee = $jboxFrame[0].contentWindow.submit();
|
|
|
+ if (!rebateFee) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ $.post("${ctx}/order/saveRebateFee", {
|
|
|
+ 'rebateFee': rebateFee,
|
|
|
+ 'orderID': orderID
|
|
|
+ }, 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) {
|
|
|
+ if ((Number(data.payTotalFee) - Number(data.associateAmount)) > 10) {
|
|
|
+ alertx("订单剩余应收金额大于¥10.00,不能抹平!");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ 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>
|