123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
- <html>
- <head>
- <title>收款详情</title>
- <meta name="decorator" content="default"/>
- <style>
- body, label, input, button, select, textarea, .uneditable-input, .navbar-search .search-query {
- font-size: 16px;
- }
- .receipt-order-details {
- padding: 0 15px;
- }
- h5 {
- font-size: 17px;
- padding-bottom: 5px;
- }
- .receipt-title {
- border-bottom: 1px solid #eee;
- }
- .receipt-title h5 {
- display: inline-block;
- }
- .receipt-title a {
- margin-left: 700px;
- }
- .receipt-order-row4 h5 {
- border-bottom: none;
- margin-bottom: 10px;
- }
- .receipt-order-title {
- line-height: 30px;
- margin: 10px 0;
- white-space: nowrap;
- }
- .receipt-order-title span, .receipt-order-form span, .not-order-type span {
- margin-left: 30px;
- }
- .receipt-order-title > span:first-child, .not-order-type span:first-child {
- margin-left: 0px;
- }
- .receipt-order-recall {
- margin-left: 100px;
- }
- .receipt-order-details label {
- color: #666;
- font-weight: 600;
- cursor: default;
- }
- .receipt-suborder-title {
- border-bottom: 1px dashed #555;
- padding-bottom: 10px;
- }
- .receipt-order-form {
- border: 1px solid #eee;
- padding: 5px;
- margin-top: 10px;
- }
- .receipt-order-form > div span:first-child {
- margin-left: 0;
- }
- .receipt-order-form > div {
- margin: 5px 0;
- white-space: nowrap;
- }
- .receipt-order-row4 span {
- margin-left: 60px;
- }
- .receipt-order-row2 {
- margin-top: 10px !important;
- }
- .row4-order-no, .row4-time {
- margin-left: 0 !important;
- }
- .row4-wrapper {
- margin-bottom: 10px;
- }
- .font-blue {
- color: #2fa4e7;
- }
- .not-order-reason {
- margin-top: 15px;
- display: inline-block;
- margin-left: 0 !important;
- }
- .receipt-details-new-row {
- margin-left: 0 !important;
- }
- .receipt-msg-wrapper {
- display: block;
- }
- .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">
- $(document).ready(function () {
- });
- // 发送消息
- function cancel(id) {
- var html = "<div style='padding:20px;'>" +
- "<textarea placeholder='请填写撤销收款的说明' name='content' id='content' rows='5' cols='12'/>" +
- "</div>";
- var submit = function (v, h, f) {
- window.location.href = "${ctx}/order/cmDiscernReceipt/cancel?id=" + id + "¬e=" + f.content + "&orderID=${vo.orderInfos[0].orderID}"
- };
- $.jBox(html, {title: "确定撤销收款吗?", submit: submit});
- }
- </script>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li><a href="${ctx}/order/cmDiscernReceipt/">收款列表</a></li>
- <li class="active"><a href="${ctx}/order/cmDiscernReceipt/detail?id=${cmDiscernReceipt.id}">收款详情</a></li>
- </ul>
- <br/>
- <div class="receipt-order-details">
- <sys:message content="${message}"/>
- <div>
- <div class="receipt-title">
- <h5>收款信息</h5>
- <c:if test="${vo.receiptStatus != 5 && vo.payWay eq 2}">
- <a href="#" onclick="cancel(${vo.receiptID})" class="receipt-order-recall">撤销收款</a>
- </c:if>
- </div>
- <div class="receipt-order-title">
- <span><label>收款ID:</label>${vo.receiptID}</span>
- <span><label>收款类别:</label>
- <c:if test="${vo.receiptType == 1}">
- 订单款
- </c:if>
- <c:if test="${vo.receiptType == 2}">
- 非订单款
- </c:if>
- <c:if test="${vo.receiptType == 3}">
- <c:if test="${vo.payType == 10}">
- 口头返佣
- </c:if>
- <c:if test="${vo.payType != 10}">
- 转账返佣
- </c:if>
- </c:if>
- <c:if test="${vo.receiptType == 5}">
- 供应商退款
- </c:if>
- <c:if test="${vo.receiptType == 6}">
- 超级会员款
- </c:if>
- <c:if test="${vo.receiptType == 7}">
- 二手商品上架费
- </c:if>
- </span>
- <span><label>收款类型:</label>${fns:getPayTypeStr(vo.payType)}</span>
- <span><label>收款金额:</label>${vo.receiptAmount}</span>
- <span><label>收款时间:</label>${vo.receiptDate}</span>
- <span><label>收款状态:</label>
- <c:if test="${vo.payWay ne 3}">
- <c:if test="${vo.receiptStatus == 1}">
- 待确认
- </c:if>
- <c:if test="${vo.receiptStatus == 2}">
- 已确认
- </c:if>
- <c:if test="${vo.receiptStatus == 3}">
- 审核通过
- </c:if>
- <c:if test="${vo.receiptStatus == 4}">
- 审核未通过
- </c:if>
- <c:if test="${vo.receiptStatus == 5}">
- <font color="red">收款撤销</font>
- </c:if>
- </c:if>
- <c:if test="${vo.payWay eq 3}">
- ----------
- </c:if>
- </span>
- <span class="receipt-details-new-row receipt-msg-wrapper"><label>收款短信:</label>${vo.smsContent eq null ? "无" : vo.smsContent eq "" ? "无" : vo.smsContent}</span>
- <c:if test="${vo.receiptType == 3 && not empty vo.rebateRemarks}">
- <span class="receipt-details-new-row receipt-msg-wrapper"><label>备注:</label>${vo.rebateRemarks}</span>
- </c:if>
- <c:if test="${vo.receiptStatus == 5}">
- <span class="receipt-details-new-row"><label>撤销说明:</label>${vo.cancelReason eq null ? "无" : vo.cancelReason eq "" ? "无" : vo.cancelReason}</span>
- </c:if>
- </div>
- <c:if test="${vo.receiptType == 2}">
- <div class="not-order-type">
- <span><label>确认人:</label> ${vo.confirmer}</span>
- <span><label>确认时间: </label>${vo.confirmTime}</span>
- <br>
- <span class="not-order-reason"><label>确认原因:</label>${vo.noOrderReason}</span>
- </div>
- </c:if>
- </div>
- <c:if test="${vo.receiptType != 2 and vo.receiptType != 6 and vo.receiptType != 7}">
- <h5>关联订单</h5>
- <div class="receipt-order-form">
- <c:forEach items="${vo.orderInfos}" var="orderInfo">
- <div class="receipt-order-form">
- <c:if test="${vo.receiptType == 3 || vo.receiptType == 5}">
- <div class="receipt-suborder-title">
- <span class="font-blue"><label>子订单编号:</label><a
- href="${ctx}/order/detail?id=${orderInfo.orderID}">${orderInfo.shopOrderNo}(${orderInfo.shopOrderID})</a></span>
- <span><label>订单金额:</label>¥<fmt:formatNumber value="${orderInfo.shopOrderAmount}"
- pattern="#0.00"/></span>
- <span><label>供应商:</label>${orderInfo.shopName}</span>
- <c:if test="${vo.receiptType == 5}">
- <span><label>应付金额:</label>¥<fmt:formatNumber value="${orderInfo.shouldPayShopAmount}"
- pattern="#0.00"/></span>
- <span><label>已付金额:</label>¥<fmt:formatNumber value="${orderInfo.payedShopAmount}"
- pattern="#0.00"/></span>
- <span><label>已退金额:</label>¥<fmt:formatNumber value="${orderInfo.refundsAmount}"
- pattern="#0.00"/></span>
- </c:if>
- </div>
- </c:if>
- <div class="receipt-order-row2">
- <span class="font-blue"><label>订单编号:</label><a
- href="${ctx}/order/detail?id=${orderInfo.orderID}">${orderInfo.orderNo}(${orderInfo.orderID})</a></span>
- <span><label>订单金额:</label>¥<fmt:formatNumber
- value="${orderInfo.orderAmount}"
- pattern="#0.00"/></span>
- <span>
- <label>已收金额:</label>¥<fmt:formatNumber
- value="${empty orderInfo.receiptAmount ? 0 : orderInfo.receiptAmount}"
- pattern="#0.00"/>
- <span>
- <c:forEach items="${orderInfo.receiptRecordVo}" var="receiptRecord"
- varStatus="index">
- <c:if test="${receiptRecord.confirmType eq 1 || receiptRecord.confirmType eq 2 || receiptRecord.confirmType eq 3}">
- <label>抹平明细:</label>
- <c:if test="${receiptRecord.confirmType eq 1}">
- <c:if test="${vo.receiptOrderFlag}">
- <font color="red">(一款多单:少收抹平金额未知)</font>
- </c:if>
- <c:if test="${!vo.receiptOrderFlag}">
- <font color="red">(少收抹平:
- ¥<fmt:formatNumber
- value="${orderInfo.payableAmount - (empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount)}"
- pattern="#0.00"/>元)
- </font>
- </c:if>
- </c:if>
- <c:if test="${receiptRecord.confirmType eq 2}">
- <c:if test="${vo.receiptOrderFlag}">
- <font color="red">(一款多单:多收抹平金额未知)</font>
- </c:if>
- <c:if test="${!vo.receiptOrderFlag}">
- <font color="red">(多收抹平:
- ¥<fmt:formatNumber
- value="${(empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount) - orderInfo.payableAmount}"
- pattern="#0.00"/>元)
- </font>
- </c:if>
- </c:if>
- <c:if test="${receiptRecord.confirmType eq 3}">
- <c:if test="${vo.receiptOrderFlag}">
- <font color="red">(一款多单:多收退余额)</font>
- </c:if>
- <c:if test="${!vo.receiptOrderFlag}">
- <font color="red">(多收退余额${receiptRecord.associationType eq 2 ? "(自动)" : ""}:
- ¥<fmt:formatNumber
- value="${(empty receiptRecord.returnBalanceAmount ? 0 : receiptRecord.returnBalanceAmount)}"
- pattern="#0.00"/>元)
- </font>
- </c:if>
- </c:if>
- </c:if>
- </c:forEach>
- </span>
- </span>
- <span><label>机构名称:</label>
- <c:if test="${orderInfo.organizeID == 1}">
- <span class="org-note">星范</span>
- </c:if>
- ${orderInfo.customerName}
- <c:if test="${orderInfo.organizeID == 3}">
- </c:if>
- </span>
- <span><label>订单状态:</label>
- <c:if test="${orderInfo.receiptStatus == 1}">待收款</c:if>
- <c:if test="${orderInfo.receiptStatus == 2}">部分收款</c:if>
- <c:if test="${orderInfo.receiptStatus == 3}">已收款</c:if>
- </span>
- </div>
- <div class="receipt-order-row3">
- <span><label>订单类型:</label><c:if test="${orderInfo.orderType == 0}">协销订单</c:if>
- <c:if test="${orderInfo.orderType == 1}">自主订单</c:if></span>
- <span><label>下单日期:</label>${orderInfo.orderTime}</span>
- </div>
- <div class="receipt-order-row4">
- <div><h5><label>订单收款记录:</label></h5></div>
- <c:forEach items="${orderInfo.receiptRecordVo}" var="receiptRecord" varStatus="index">
- <div class="row4-wrapper">
- <span class="row4-order-no">${index.index + 1}、</span>
- <span class="row4-time">${receiptRecord.receiptTime}</span>
- <c:if test="${receiptRecord.payWay == 1}">
- <%--线上收款--%>
- <span>线上 ${fns:getPayTypeStr(receiptRecord.payType)}</span>
- <span>${receiptRecord.receiptAmount}</span>
- <span><label>交易号:</label>${receiptRecord.mbOrderId}</span>
- </c:if>
- <c:if test="${receiptRecord.payWay == 2}">
- <span>线下 ${fns:getPayTypeStr(receiptRecord.payType)}</span>
- <span>${receiptRecord.receiptAmount}</span>
- <c:if test="${not empty receiptRecord.confirmUserPermissionID}">
- <span>${receiptRecord.confirmUserName}确认(${receiptRecord.confirmDate})</span>
- </c:if>
- <c:if test="${not empty receiptRecord.reviewUserPermissionID}">
- <span>
- <c:if test="${receiptRecord.receiptStatus eq 4}">
- ${receiptRecord.reviewUserName}审核不通过(${receiptRecord.reviewDate})
- </c:if>
- <c:if test="${receiptRecord.receiptStatus ne 4}">
- ${receiptRecord.reviewUserName}审核通过(${receiptRecord.reviewDate})
- </c:if>
- </span>
- </c:if>
- </c:if>
- <c:if test="${receiptRecord.payWay == 3}">
- <%--余额抵扣--%>
- <span><a
- href="${ctx}/user/cmUserBalanceRecord/userBalanceRecord?userId=${orderInfo.userID}"
- style="text-decoration: underline">${fns:getPayTypeStr(receiptRecord.payType)}</a></span>
- <span><a
- href="${ctx}/user/cmUserBalanceRecord/userBalanceRecord?userId=${orderInfo.userID}"
- style="text-decoration: underline">${receiptRecord.receiptAmount}</a></span>
- (其中线下余额¥${receiptRecord.userMoney},线上余额¥${receiptRecord.onlineMoney})
- </c:if>
- <span>
- <%-- 一款多单的时候直接显示再订单上即可,无需收款记录显示--%>
- <c:if test="${!vo.receiptOrderFlag}">
- <c:if test="${receiptRecord.confirmType eq 1 || receiptRecord.confirmType eq 2 || receiptRecord.confirmType eq 3}">
- <label>抹平明细:</label>
- <c:if test="${receiptRecord.confirmType eq 1}">
- <font color="red">(少收抹平:
- ¥<fmt:formatNumber
- value="${orderInfo.payableAmount - (empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount)}"
- pattern="#0.00"/>元)
- </font>
- </c:if>
- <c:if test="${receiptRecord.confirmType eq 2}">
- <font color="red">(多收抹平:
- ¥<fmt:formatNumber
- value="${(empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount) - orderInfo.payableAmount}"
- pattern="#0.00"/>元)
- </font>
- </c:if>
- <c:if test="${receiptRecord.confirmType eq 3}">
- <font color="red">(多收退余额${receiptRecord.associationType eq 2 ? "(自动)" : ""}:
- ¥<fmt:formatNumber
- value="${(empty receiptRecord.returnBalanceAmount ? 0 : receiptRecord.returnBalanceAmount)}"
- pattern="#0.00"/>元)
- </font>
- </c:if>
- </c:if>
- </c:if>
- </span>
- </div>
- </c:forEach>
- </div>
- </div>
- <br>
- </c:forEach>
- </div>
- </c:if>
- <c:if test="${vo.receiptType == 6}">
- <h5>关联超级会员记录</h5>
- <div class="receipt-order-form">
- <div>
- <c:if test="${not empty vo.vipInfo}">
- <span>会员套餐:${vo.vipInfo.duration}个月</span>
- <span>交易号:${vo.vipInfo.orderRequestNo}</span>
- </c:if>
- </div>
- </div>
- </c:if>
- <c:if test="${vo.receiptType == 7}">
- <h5>二手商品上架费</h5>
- <div class="receipt-order-form">
- <div>
- <span>交易号:${receiptRecord.mbOrderId}</span>
- </div>
- </div>
- </c:if>
- </div>
- <script>
- (function () {
- var row4_wrapper = $('.row4-wrapper');
- row4_wrapper.each(function (index) {
- if (index % 2 !== 0) {
- row4_wrapper.eq(index).css('color', '#2fa4e7');
- }
- })
- })()
- </script>
- </body>
- </html>
|