|
@@ -1,487 +1,744 @@
|
|
|
<%@ page contentType="text/html;charset=UTF-8" %>
|
|
|
-<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
|
|
|
+<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
|
|
|
<html>
|
|
|
<head>
|
|
|
- <title>付款单表管理</title>
|
|
|
- <meta name="decorator" content="default"/>
|
|
|
- <style>
|
|
|
- .table th{text-align:center}
|
|
|
- .table td{text-align:center}
|
|
|
- .payment-form h4{width:96%;margin-left:2%;padding-bottom:20px;text-align:center;border-bottom:1px solid #eee}
|
|
|
- .required{color:red}
|
|
|
- .payment-form label{width:100px;text-align:right;vertical-align:middle;font-weight:600}
|
|
|
- .payment-form-top{padding:10px 0}
|
|
|
- .payment-form-top>div,.payment-form-bottom>div{width:94%;margin-left:3%;height:50px;line-height:50px;border-bottom:1px solid #eee;white-space:nowrap}
|
|
|
- .payment-form-top input{vertical-align:baseline}
|
|
|
- .payment-form-top>div:last-child span{margin-left:15px}
|
|
|
- .payment-form-top>div:last-child span:nth-of-type(1){margin-left:0}
|
|
|
- .pay-list-item{margin-bottom:30px}
|
|
|
- .pay-table{width:96%;margin-left:2%;margin-bottom:10px}
|
|
|
- .pay-table th{background:#f9f9f9}
|
|
|
- .pay-table tr:first-child th{background:#eee !important}
|
|
|
- .pay-table td{background:#fff !important}
|
|
|
- .check-btn{width:96%;margin-left:2%;text-align:center;height:60px;line-height:60px;margin-top:30px}
|
|
|
- .check-btn button{width:100px;height:35px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;border:none;border:1px solid #ddd}
|
|
|
- .payment-form-bottom label{width:140px}
|
|
|
- .used-amount{width:80px;margin-top:6px}
|
|
|
- .process-details span{width:140px;margin-left:50px;font-weight:600}
|
|
|
- .process-for-label{margin-left:0 !important}
|
|
|
- .process-details div{display:inline-block}
|
|
|
- .payment-btn{width:96%;margin-left:2%;text-align:center;height:60px;line-height:60px;margin-top:30px}
|
|
|
- .payment-btn button{width:100px;height:35px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;border:none;border:1px solid #ddd}
|
|
|
- .apply-btn{background:#3daae9;color:#fff}
|
|
|
- .cfm-btn:active,.return-btn:active{background:#ddd;color:#fff}
|
|
|
- .mask{width:100%;height:100%;position:fixed;top:0;background:rgba(0,0,0,0.7);display:none}
|
|
|
- .tips-popup-content{width:40%;height:auto;padding-bottom:30px;background:#fff;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
|
|
|
- .tips-popup-content div{width:100%;text-align:center}
|
|
|
- .tips-popup-content{width:30%}
|
|
|
- .tips-popup-content p{text-align:center;padding:80px;font-size:20px}
|
|
|
- .tips-popup-content h4{padding-left:10px;height:40px;line-height:40px;border-bottom:1px solid #eee;margin-bottom:20px}
|
|
|
- .tips-cfm-btn,.tips-cancel-btn,.export{width:100px;height:40px;margin:auto;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;background:#3daae9;color:#fff;border:none}
|
|
|
- .return-btn,.tips-cancel-btn{background:#fff;color:#555;margin-left:50px}
|
|
|
- .tips-cancel-btn{border:1px solid #ddd;margin-left:20px;display:none}
|
|
|
- #close-btn1{top:8px;right:10px;width:18px;position:absolute;cursor:pointer}
|
|
|
- .export{float:right;margin-right:50px}
|
|
|
- .red{color:red;}
|
|
|
- .payment-form-bottom .wipeImgs{height:auto;padding:8px 0;}
|
|
|
- .wipeImgs img{width:120px;height:90px;background-color:#eee;margin-right:15px;}
|
|
|
- .weishaIcon {background:darkorange;color:white;margin:0 0px;padding:0 3px;font-style:normal;font-size: 12px; display:inline-block;border-radius:2px}
|
|
|
- .clubFreight{display: none}
|
|
|
- .discountFee{display: none}
|
|
|
- </style>
|
|
|
- <style media="print">
|
|
|
- .styleWidth{width:6%;word-break:break-all}
|
|
|
- .styleWidth{}
|
|
|
- .styleWidth3{width:10%;word-break:break-all}
|
|
|
- .table{margin-left:0;margin-bottom:20px;padding-bottom:2px;border-bottom:1px solid #ddd;box-sizing:border-box}
|
|
|
- .export{display:none}
|
|
|
- </style>
|
|
|
+ <title>付款单表管理</title>
|
|
|
+ <meta name="decorator" content="default"/>
|
|
|
+ <style>
|
|
|
+ .table th {
|
|
|
+ text-align: center
|
|
|
+ }
|
|
|
+
|
|
|
+ .table td {
|
|
|
+ text-align: center
|
|
|
+ }
|
|
|
+
|
|
|
+ .payment-form h4 {
|
|
|
+ width: 96%;
|
|
|
+ margin-left: 2%;
|
|
|
+ padding-bottom: 20px;
|
|
|
+ text-align: center;
|
|
|
+ border-bottom: 1px solid #eee
|
|
|
+ }
|
|
|
+
|
|
|
+ .required {
|
|
|
+ color: red
|
|
|
+ }
|
|
|
+
|
|
|
+ .payment-form label {
|
|
|
+ width: 100px;
|
|
|
+ text-align: right;
|
|
|
+ vertical-align: middle;
|
|
|
+ font-weight: 600
|
|
|
+ }
|
|
|
+
|
|
|
+ .payment-form-top {
|
|
|
+ padding: 10px 0
|
|
|
+ }
|
|
|
+
|
|
|
+ .payment-form-top > div, .payment-form-bottom > div {
|
|
|
+ width: 94%;
|
|
|
+ margin-left: 3%;
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ border-bottom: 1px solid #eee;
|
|
|
+ white-space: nowrap
|
|
|
+ }
|
|
|
+
|
|
|
+ .payment-form-top input {
|
|
|
+ vertical-align: baseline
|
|
|
+ }
|
|
|
+
|
|
|
+ .payment-form-top > div:last-child span {
|
|
|
+ margin-left: 15px
|
|
|
+ }
|
|
|
+
|
|
|
+ .payment-form-top > div:last-child span:nth-of-type(1) {
|
|
|
+ margin-left: 0
|
|
|
+ }
|
|
|
+
|
|
|
+ .pay-list-item {
|
|
|
+ margin-bottom: 30px
|
|
|
+ }
|
|
|
+
|
|
|
+ .pay-table {
|
|
|
+ width: 96%;
|
|
|
+ margin-left: 2%;
|
|
|
+ margin-bottom: 10px
|
|
|
+ }
|
|
|
+
|
|
|
+ .pay-table th {
|
|
|
+ background: #f9f9f9
|
|
|
+ }
|
|
|
+
|
|
|
+ .pay-table tr:first-child th {
|
|
|
+ background: #eee !important
|
|
|
+ }
|
|
|
+
|
|
|
+ .pay-table td {
|
|
|
+ background: #fff !important
|
|
|
+ }
|
|
|
+
|
|
|
+ .check-btn {
|
|
|
+ width: 96%;
|
|
|
+ margin-left: 2%;
|
|
|
+ text-align: center;
|
|
|
+ height: 60px;
|
|
|
+ line-height: 60px;
|
|
|
+ margin-top: 30px
|
|
|
+ }
|
|
|
+
|
|
|
+ .check-btn button {
|
|
|
+ width: 100px;
|
|
|
+ height: 35px;
|
|
|
+ -webkit-border-radius: 5px;
|
|
|
+ -moz-border-radius: 5px;
|
|
|
+ border-radius: 5px;
|
|
|
+ border: none;
|
|
|
+ border: 1px solid #ddd
|
|
|
+ }
|
|
|
+
|
|
|
+ .payment-form-bottom label {
|
|
|
+ width: 140px
|
|
|
+ }
|
|
|
+
|
|
|
+ .used-amount {
|
|
|
+ width: 80px;
|
|
|
+ margin-top: 6px
|
|
|
+ }
|
|
|
+
|
|
|
+ .process-details span {
|
|
|
+ width: 140px;
|
|
|
+ margin-left: 50px;
|
|
|
+ font-weight: 600
|
|
|
+ }
|
|
|
+
|
|
|
+ .process-for-label {
|
|
|
+ margin-left: 0 !important
|
|
|
+ }
|
|
|
+
|
|
|
+ .process-details div {
|
|
|
+ display: inline-block
|
|
|
+ }
|
|
|
+
|
|
|
+ .payment-btn {
|
|
|
+ width: 96%;
|
|
|
+ margin-left: 2%;
|
|
|
+ text-align: center;
|
|
|
+ height: 60px;
|
|
|
+ line-height: 60px;
|
|
|
+ margin-top: 30px
|
|
|
+ }
|
|
|
+
|
|
|
+ .payment-btn button {
|
|
|
+ width: 100px;
|
|
|
+ height: 35px;
|
|
|
+ -webkit-border-radius: 5px;
|
|
|
+ -moz-border-radius: 5px;
|
|
|
+ border-radius: 5px;
|
|
|
+ border: none;
|
|
|
+ border: 1px solid #ddd
|
|
|
+ }
|
|
|
+
|
|
|
+ .apply-btn {
|
|
|
+ background: #3daae9;
|
|
|
+ color: #fff
|
|
|
+ }
|
|
|
+
|
|
|
+ .cfm-btn:active, .return-btn:active {
|
|
|
+ background: #ddd;
|
|
|
+ color: #fff
|
|
|
+ }
|
|
|
+
|
|
|
+ .mask {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ background: rgba(0, 0, 0, 0.7);
|
|
|
+ display: none
|
|
|
+ }
|
|
|
+
|
|
|
+ .tips-popup-content {
|
|
|
+ width: 40%;
|
|
|
+ height: auto;
|
|
|
+ padding-bottom: 30px;
|
|
|
+ background: #fff;
|
|
|
+ -webkit-border-radius: 5px;
|
|
|
+ -moz-border-radius: 5px;
|
|
|
+ border-radius: 5px;
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, -50%)
|
|
|
+ }
|
|
|
+
|
|
|
+ .tips-popup-content div {
|
|
|
+ width: 100%;
|
|
|
+ text-align: center
|
|
|
+ }
|
|
|
+
|
|
|
+ .tips-popup-content {
|
|
|
+ width: 30%
|
|
|
+ }
|
|
|
+
|
|
|
+ .tips-popup-content p {
|
|
|
+ text-align: center;
|
|
|
+ padding: 80px;
|
|
|
+ font-size: 20px
|
|
|
+ }
|
|
|
+
|
|
|
+ .tips-popup-content h4 {
|
|
|
+ padding-left: 10px;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ border-bottom: 1px solid #eee;
|
|
|
+ margin-bottom: 20px
|
|
|
+ }
|
|
|
+
|
|
|
+ .tips-cfm-btn, .tips-cancel-btn, .export {
|
|
|
+ width: 100px;
|
|
|
+ height: 40px;
|
|
|
+ margin: auto;
|
|
|
+ -webkit-border-radius: 5px;
|
|
|
+ -moz-border-radius: 5px;
|
|
|
+ border-radius: 5px;
|
|
|
+ background: #3daae9;
|
|
|
+ color: #fff;
|
|
|
+ border: none
|
|
|
+ }
|
|
|
+
|
|
|
+ .return-btn, .tips-cancel-btn {
|
|
|
+ background: #fff;
|
|
|
+ color: #555;
|
|
|
+ margin-left: 50px
|
|
|
+ }
|
|
|
+
|
|
|
+ .tips-cancel-btn {
|
|
|
+ border: 1px solid #ddd;
|
|
|
+ margin-left: 20px;
|
|
|
+ display: none
|
|
|
+ }
|
|
|
+
|
|
|
+ #close-btn1 {
|
|
|
+ top: 8px;
|
|
|
+ right: 10px;
|
|
|
+ width: 18px;
|
|
|
+ position: absolute;
|
|
|
+ cursor: pointer
|
|
|
+ }
|
|
|
+
|
|
|
+ .export {
|
|
|
+ float: right;
|
|
|
+ margin-right: 50px
|
|
|
+ }
|
|
|
+
|
|
|
+ .red {
|
|
|
+ color: red;
|
|
|
+ }
|
|
|
+
|
|
|
+ .payment-form-bottom .wipeImgs {
|
|
|
+ height: auto;
|
|
|
+ padding: 8px 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .wipeImgs img {
|
|
|
+ width: 120px;
|
|
|
+ height: 90px;
|
|
|
+ background-color: #eee;
|
|
|
+ margin-right: 15px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .weishaIcon {
|
|
|
+ background: darkorange;
|
|
|
+ color: white;
|
|
|
+ margin: 0 0px;
|
|
|
+ padding: 0 3px;
|
|
|
+ font-style: normal;
|
|
|
+ font-size: 12px;
|
|
|
+ display: inline-block;
|
|
|
+ border-radius: 2px
|
|
|
+ }
|
|
|
+
|
|
|
+ .clubFreight {
|
|
|
+ display: none
|
|
|
+ }
|
|
|
+
|
|
|
+ .discountFee {
|
|
|
+ display: none
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+ <style media="print">
|
|
|
+ .styleWidth {
|
|
|
+ width: 6%;
|
|
|
+ word-break: break-all
|
|
|
+ }
|
|
|
+
|
|
|
+ .styleWidth {
|
|
|
+ }
|
|
|
+
|
|
|
+ .styleWidth3 {
|
|
|
+ width: 10%;
|
|
|
+ word-break: break-all
|
|
|
+ }
|
|
|
+
|
|
|
+ .table {
|
|
|
+ margin-left: 0;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ padding-bottom: 2px;
|
|
|
+ border-bottom: 1px solid #ddd;
|
|
|
+ box-sizing: border-box
|
|
|
+ }
|
|
|
+
|
|
|
+ .export {
|
|
|
+ display: none
|
|
|
+ }
|
|
|
+ </style>
|
|
|
</head>
|
|
|
<body>
|
|
|
- <ul class="nav nav-tabs">
|
|
|
- <li><a href="${ctx}/order/cmPayShop/">付款列表</a></li>
|
|
|
- <li class="active"><a href="${ctx}/order/cmPayShop/applyDetail?id=${cmPayShop.id}">付款单详情</a></li>
|
|
|
- </ul><br/>
|
|
|
- <div class="payment-form">
|
|
|
- <h4>付款单</h4>
|
|
|
- <div class="payment-form-top">
|
|
|
- <div>
|
|
|
- <label><span class="required">* </span>付款单名称:</label>
|
|
|
- <span>${cmPayShop.name}</span>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <label>供应商名称:</label>
|
|
|
- <span>${cmPayShop.shopName}</span>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <label><em class="required">* </em>付款账号:</label>
|
|
|
- <c:if test="${cmPayShop.payType eq '6'}">
|
|
|
- 无
|
|
|
- </c:if>
|
|
|
- <c:if test="${cmPayShop.payType ne '6'}">
|
|
|
- <span>户名:${cmPayShop.bankAccountName}</span>
|
|
|
- <span>账号:${cmPayShop.bankAccount}</span>
|
|
|
- <span>开户行:${cmPayShop.bankName}</span>
|
|
|
- <span>账户类型:
|
|
|
+<ul class="nav nav-tabs">
|
|
|
+ <li><a href="${ctx}/order/cmPayShop/">付款列表</a></li>
|
|
|
+ <li class="active"><a href="${ctx}/order/cmPayShop/applyDetail?id=${cmPayShop.id}">付款单详情</a></li>
|
|
|
+</ul>
|
|
|
+<br/>
|
|
|
+<div class="payment-form">
|
|
|
+ <h4>付款单</h4>
|
|
|
+ <div class="payment-form-top">
|
|
|
+ <div>
|
|
|
+ <label><span class="required">* </span>付款单名称:</label>
|
|
|
+ <span>${cmPayShop.name}</span>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label>供应商名称:</label>
|
|
|
+ <span>${cmPayShop.shopName}</span>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label><em class="required">* </em>付款账号:</label>
|
|
|
+ <c:if test="${cmPayShop.payType eq '6'}">
|
|
|
+ 无
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmPayShop.payType ne '6'}">
|
|
|
+ <span>户名:${cmPayShop.bankAccountName}</span>
|
|
|
+ <span>账号:${cmPayShop.bankAccount}</span>
|
|
|
+ <span>开户行:${cmPayShop.bankName}</span>
|
|
|
+ <span>账户类型:
|
|
|
<c:if test="${cmPayShop.type == '0'}">公帐</c:if>
|
|
|
<c:if test="${cmPayShop.type == '1'}">私帐</c:if>
|
|
|
</span>
|
|
|
- </c:if>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="payment-form-content">
|
|
|
- <%--涛姐遍历下面这个table--%>
|
|
|
- <c:forEach items="${cmPayShop.shopOrders}" var="s">
|
|
|
- <table class="table table-striped table-bordered table-condensed pay-table">
|
|
|
- <tr>
|
|
|
- <th>订单编号(ID)</th>
|
|
|
- <th colspan="3">客户</th>
|
|
|
- <th colspan="2">下单时间</th>
|
|
|
- <th>订单金额</th>
|
|
|
- <th colspan="3">所有子订单</th>
|
|
|
- <th>订单总佣金</th>
|
|
|
- <th>机构运费</th>
|
|
|
- <th>收款状态</th>
|
|
|
- <th colspan="3">收款金额</th>
|
|
|
- <th>经理折扣</th>
|
|
|
- <th>优惠券</th>
|
|
|
- <tr/>
|
|
|
- <tr>
|
|
|
- <td> ${s.orderNo}(${s.orderID})</td>
|
|
|
- <td colspan="3"> ${s.buyer}</td>
|
|
|
- <td colspan="2"> ${s.orderTime}</td>
|
|
|
- <td>${s.payTotalFee}</td>
|
|
|
- <td colspan="3">
|
|
|
- <c:forEach items="${s.shopOrderNos}" var="cs">
|
|
|
- ${cs}<br/>
|
|
|
- </c:forEach>
|
|
|
- </td>
|
|
|
- <td>${s.income}</td>
|
|
|
- <td>
|
|
|
- <label class="clubFreight" style="display: none">
|
|
|
- <c:choose>
|
|
|
- <c:when test="${s.freight != -1 && s.freight != 0 && s.freight != -2 && s.returnedFreightFlag ne true}">
|
|
|
- <fmt:formatNumber value="${s.freight}"/>
|
|
|
- </c:when>
|
|
|
- <c:otherwise>
|
|
|
- <fmt:formatNumber value="0"/>
|
|
|
- </c:otherwise>
|
|
|
- </c:choose>
|
|
|
- </label>
|
|
|
- <c:if test="${s.freight == 0}">
|
|
|
- 包邮
|
|
|
- </c:if>
|
|
|
- <c:if test="${s.freight == -1}">
|
|
|
- 到付
|
|
|
- </c:if>
|
|
|
- <c:if test="${s.freight == -2}">
|
|
|
- 仪器到付-产品包邮
|
|
|
- </c:if>
|
|
|
- <c:if test="${s.freight != -1 && s.freight != 0 && s.freight != -2}">
|
|
|
- <fmt:formatNumber value="${s.freight}" type="currency"/>
|
|
|
- <c:if test="${s.returnedFreightFlag eq true}"><font color="red">(已退)</font></c:if>
|
|
|
- </c:if>
|
|
|
- <c:if test="${s.userBeans gt 0}">
|
|
|
- (采美豆抵用${s.userBeans})
|
|
|
- </c:if>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${s.orderID}&from=1"
|
|
|
- style="text-decoration: underline">
|
|
|
- <c:if test="${s.receiptStatus == 1}"><font color="red">待收款</font></c:if>
|
|
|
- <c:if test="${s.receiptStatus == 2}"><font color="#ff8c00">部分收款</font></c:if>
|
|
|
- <c:if test="${s.receiptStatus == 3}"><font color="green">已收款</font></c:if></a>
|
|
|
- </td>
|
|
|
- <td colspan="3">
|
|
|
- <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${s.orderID}&from=1"
|
|
|
- style="text-decoration: underline">${s.receiptTotalFee}</a>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <label class="discountFee" style="display: none">
|
|
|
- <c:choose>
|
|
|
- <c:when test="${s.discountTotalFee gt 0 && s.discountTotalFee gt s.returnedPurchaseTotalFee}">
|
|
|
- <fmt:formatNumber value="${s.discountTotalFee - s.returnedPurchaseTotalFee}"/>
|
|
|
- </c:when>
|
|
|
- <c:otherwise>
|
|
|
- 0
|
|
|
- </c:otherwise>
|
|
|
- </c:choose>
|
|
|
- </label>
|
|
|
- <c:if test="${s.discountTotalFee gt 0}">
|
|
|
- <c:if test="${s.discountTotalFee gt s.returnedPurchaseTotalFee}">
|
|
|
- <fmt:formatNumber value="${s.discountTotalFee - s.returnedPurchaseTotalFee}"
|
|
|
- type="currency"/>
|
|
|
- </c:if>
|
|
|
- <c:if test="${s.discountTotalFee le s.returnedPurchaseTotalFee}">
|
|
|
- ¥0.00
|
|
|
- </c:if>
|
|
|
- <c:if test="${s.returnedPurchaseTotalFee gt 0}">
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="payment-form-content">
|
|
|
+ <%--涛姐遍历下面这个table--%>
|
|
|
+ <c:forEach items="${cmPayShop.shopOrders}" var="s">
|
|
|
+ <table class="table table-striped table-bordered table-condensed pay-table">
|
|
|
+ <tr>
|
|
|
+ <th>订单编号(ID)</th>
|
|
|
+ <th colspan="3">客户</th>
|
|
|
+ <th colspan="2">下单时间</th>
|
|
|
+ <th>订单金额</th>
|
|
|
+ <th colspan="3">所有子订单</th>
|
|
|
+ <th>订单总佣金</th>
|
|
|
+ <th>机构运费</th>
|
|
|
+ <th>收款状态</th>
|
|
|
+ <th colspan="3">收款金额</th>
|
|
|
+ <th>经理折扣</th>
|
|
|
+ <th>优惠券</th>
|
|
|
+ <tr/>
|
|
|
+ <tr>
|
|
|
+ <td> ${s.orderNo}(${s.orderID})</td>
|
|
|
+ <td colspan="3"> ${s.buyer}</td>
|
|
|
+ <td colspan="2"> ${s.orderTime}</td>
|
|
|
+ <td>${s.payTotalFee}</td>
|
|
|
+ <td colspan="3">
|
|
|
+ <c:forEach items="${s.shopOrderNos}" var="cs">
|
|
|
+ ${cs}<br/>
|
|
|
+ </c:forEach>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ ${s.income}
|
|
|
+ <c:if test="${not empty s.rebateFee}">
|
|
|
+ <span style="color: red">(含返佣服务费¥${s.rebateFee})</span>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <label class="clubFreight" style="display: none">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${s.freight != -1 && s.freight != 0 && s.freight != -2 && s.returnedFreightFlag ne true}">
|
|
|
+ <fmt:formatNumber value="${s.freight}"/>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <fmt:formatNumber value="0"/>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </label>
|
|
|
+ <c:if test="${s.freight == 0}">
|
|
|
+ 包邮
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${s.freight == -1}">
|
|
|
+ 到付
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${s.freight == -2}">
|
|
|
+ 仪器到付-产品包邮
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${s.freight != -1 && s.freight != 0 && s.freight != -2}">
|
|
|
+ <fmt:formatNumber value="${s.freight}" type="currency"/>
|
|
|
+ <c:if test="${s.returnedFreightFlag eq true}"><font color="red">(已退)</font></c:if>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${s.userBeans gt 0}">
|
|
|
+ (采美豆抵用${s.userBeans})
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${s.orderID}&from=1"
|
|
|
+ style="text-decoration: underline">
|
|
|
+ <c:if test="${s.receiptStatus == 1}"><font color="red">待收款</font></c:if>
|
|
|
+ <c:if test="${s.receiptStatus == 2}"><font color="#ff8c00">部分收款</font></c:if>
|
|
|
+ <c:if test="${s.receiptStatus == 3}"><font color="green">已收款</font></c:if></a>
|
|
|
+ </td>
|
|
|
+ <td colspan="3">
|
|
|
+ <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${s.orderID}&from=1"
|
|
|
+ style="text-decoration: underline">${s.receiptTotalFee}</a>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <label class="discountFee" style="display: none">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${s.discountTotalFee gt 0 && s.discountTotalFee gt s.returnedPurchaseTotalFee}">
|
|
|
+ <fmt:formatNumber value="${s.discountTotalFee - s.returnedPurchaseTotalFee}"/>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ 0
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </label>
|
|
|
+ <c:if test="${s.discountTotalFee gt 0}">
|
|
|
+ <c:if test="${s.discountTotalFee gt s.returnedPurchaseTotalFee}">
|
|
|
+ <fmt:formatNumber value="${s.discountTotalFee - s.returnedPurchaseTotalFee}"
|
|
|
+ type="currency"/>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${s.discountTotalFee le s.returnedPurchaseTotalFee}">
|
|
|
+ ¥0.00
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${s.returnedPurchaseTotalFee gt 0}">
|
|
|
<span style="color: red">
|
|
|
(原<fmt:formatNumber value="${s.discountTotalFee}" type="currency"/>,因退货折扣取消
|
|
|
<c:if test="${s.discountTotalFee gt s.returnedPurchaseTotalFee}">
|
|
|
- <fmt:formatNumber value="${s.returnedPurchaseTotalFee}" type="currency"/>
|
|
|
- </c:if>
|
|
|
+ <fmt:formatNumber value="${s.returnedPurchaseTotalFee}" type="currency"/>
|
|
|
+ </c:if>
|
|
|
<c:if test="${s.discountTotalFee le s.returnedPurchaseTotalFee}">
|
|
|
- <fmt:formatNumber value="${s.discountTotalFee}" type="currency"/>
|
|
|
- </c:if>)
|
|
|
+ <fmt:formatNumber value="${s.discountTotalFee}" type="currency"/>
|
|
|
+ </c:if>)
|
|
|
</span>
|
|
|
- </c:if>
|
|
|
- </c:if>
|
|
|
- <c:if test="${s.discountTotalFee le 0}">¥0.00</c:if>
|
|
|
- </td>
|
|
|
- <td>${s.couponAmount} </td>
|
|
|
- <td class="eachDiscount" style="display: none">${s.eachDiscount}</td>
|
|
|
- <tr/>
|
|
|
- <tr>
|
|
|
- <th>子订单编号(ID)</th>
|
|
|
- <th colspan="3"> 供应商</th>
|
|
|
- <th colspan="3">子订单佣金</th>
|
|
|
- <th colspan="3">商品费</th>
|
|
|
- <th>应付税费</th>
|
|
|
- <th>供应商运费</th>
|
|
|
- <th>付款状态</th>
|
|
|
- <th colspan="3">付供应商</th>
|
|
|
- <th>付第三方</th>
|
|
|
- <th>成本类型</th>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>${s.shopOrderNo}(${s.shopOrderID})</td>
|
|
|
- <td colspan="3">${s.shopName}</td>
|
|
|
- <td colspan="3" class="payCm-t">子订单佣金</td>
|
|
|
- <td colspan="3" class="product-fee">${s.shopProductAmount}</td>
|
|
|
- <td class="taxes">
|
|
|
- <fmt:formatNumber value="${s.shopTaxFee}" type="number" pattern="#,##0.00"/>
|
|
|
- </td>
|
|
|
-
|
|
|
- <td class="freight"><fmt:formatNumber value="${s.shopPostFee}" type="number"
|
|
|
- pattern="#,##0.00"/></td>
|
|
|
-
|
|
|
- <td>
|
|
|
- <c:if test="${s.payStatus == 1 || empty s.payStatus || s.payStatus == 0}"><font
|
|
|
- color="red">待付款</font></c:if>
|
|
|
- <c:if test="${s.payStatus == 2}"><font color="#ff8c00">部分付款</font></c:if>
|
|
|
- <c:if test="${s.payStatus == 3}"><font color="green">已付款</font></c:if>
|
|
|
- </td>
|
|
|
-
|
|
|
- <td colspan="3" class="supplier-fee">
|
|
|
- <div><span class="nowrap">
|
|
|
+ </c:if>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${s.discountTotalFee le 0}">¥0.00</c:if>
|
|
|
+ </td>
|
|
|
+ <td>${s.couponAmount} </td>
|
|
|
+ <td class="eachDiscount" style="display: none">${s.eachDiscount}</td>
|
|
|
+ <tr/>
|
|
|
+ <tr>
|
|
|
+ <th>子订单编号(ID)</th>
|
|
|
+ <th colspan="3"> 供应商</th>
|
|
|
+ <th colspan="3">子订单佣金</th>
|
|
|
+ <th colspan="3">商品费</th>
|
|
|
+ <th>应付税费</th>
|
|
|
+ <th>供应商运费</th>
|
|
|
+ <th>付款状态</th>
|
|
|
+ <th colspan="3">付供应商</th>
|
|
|
+ <th>付第三方</th>
|
|
|
+ <th>成本类型</th>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>${s.shopOrderNo}(${s.shopOrderID})</td>
|
|
|
+ <td colspan="3">${s.shopName}</td>
|
|
|
+ <td colspan="3" class="payCm-t">子订单佣金</td>
|
|
|
+ <td colspan="3" class="product-fee">${s.shopProductAmount}</td>
|
|
|
+ <td class="taxes">
|
|
|
+ <fmt:formatNumber value="${s.shopTaxFee}" type="number" pattern="#,##0.00"/>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td class="freight"><fmt:formatNumber value="${s.shopPostFee}" type="number"
|
|
|
+ pattern="#,##0.00"/></td>
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <c:if test="${s.payStatus == 1 || empty s.payStatus || s.payStatus == 0}"><font
|
|
|
+ color="red">待付款</font></c:if>
|
|
|
+ <c:if test="${s.payStatus == 2}"><font color="#ff8c00">部分付款</font></c:if>
|
|
|
+ <c:if test="${s.payStatus == 3}"><font color="green">已付款</font></c:if>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td colspan="3" class="supplier-fee">
|
|
|
+ <div><span class="nowrap">
|
|
|
<c:if test="${s.differenceType ne 1 && s.differenceType ne 2}">
|
|
|
- 应付:<fmt:formatNumber value="${s.shouldPayShopAmount}" type="number" pattern="#,##0.00"/>
|
|
|
- </c:if>
|
|
|
+ 应付:<fmt:formatNumber value="${s.shouldPayShopAmount}" type="number" pattern="#,##0.00"/>
|
|
|
+ </c:if>
|
|
|
<c:if test="${s.differenceType eq 1 && s.differencePrice > 0}">
|
|
|
- <font color="black">${s.shouldPayShopAmount+s.differencePrice}</font><font color="red">(原应付:${s.shouldPayShopAmount},已补差价:${s.differencePrice})</font>
|
|
|
- </c:if>
|
|
|
+ <font color="black">${s.shouldPayShopAmount+s.differencePrice}</font><font color="red">(原应付:${s.shouldPayShopAmount},已补差价:${s.differencePrice})</font>
|
|
|
+ </c:if>
|
|
|
<c:if test="${s.differenceType eq 2 && s.differencePrice > 0}">
|
|
|
- <font color="black">${s.shouldPayShopAmount-s.differencePrice}</font><font color="red">(原应付:${s.shouldPayShopAmount},已退差价:${s.differencePrice})</font>
|
|
|
- </c:if>
|
|
|
+ <font color="black">${s.shouldPayShopAmount-s.differencePrice}</font><font color="red">(原应付:${s.shouldPayShopAmount},已退差价:${s.differencePrice})</font>
|
|
|
+ </c:if>
|
|
|
,</span>
|
|
|
- <span class="nowrap">已付:${s.payedShopAmount},</span></div>
|
|
|
- <div><span class="nowrap">待付:<input type="number"
|
|
|
- value="<fmt:formatNumber value="${s.waitPayShop}" pattern="0.00"/>"
|
|
|
- class="need-to-pay" data-type="${s.differenceType}"
|
|
|
- data-difference="${s.differencePrice}"
|
|
|
- data-pay="${s.shouldPayShopAmount}"
|
|
|
- data-payed="${s.payedShopAmount}"></span></div>
|
|
|
- <input type="hidden" name="payInfo" class="payInfo" data-shoporderid="${s.shopOrderID}"
|
|
|
- value="${s.shopOrderID}_${s.waitPayShop}_0">
|
|
|
- <label class="wipeBtn"><input class="wipeFee" type="checkbox" value="0"><span>付款抹平:<em
|
|
|
- class="red wipeText">¥0.00</em></span></label>
|
|
|
- </td>
|
|
|
-
|
|
|
- <td class="third-party-fee">${s.shopOtherFee}</td>
|
|
|
-
|
|
|
- <td>
|
|
|
- <c:if test="${empty s.costType || s.costType == '1'}">固定成本</c:if>
|
|
|
- <c:if test="${s.costType == '2'}">比例成本</c:if>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>商品名</th>
|
|
|
- <th>规格</th>
|
|
|
- <th>数量<%--(赠品)--%></th>
|
|
|
- <th>退货</th>
|
|
|
- <th colspan="3">单价</th>
|
|
|
- <th colspan="3">机构税率 / 单税费 / 总税费</th>
|
|
|
- <th>总价</th>
|
|
|
- <th>佣金(单)</th>
|
|
|
- <th>佣金(总)</th>
|
|
|
- <th colspan="3">供应商税率 / 单税费 / 总税费</th>
|
|
|
- <th>成本(单)</th>
|
|
|
- <th>成本(总)</th>
|
|
|
- </tr>
|
|
|
- <c:forEach items="${s.newOrderProducts}" var="p" varStatus="pIndex">
|
|
|
- <tr class="pay-product-item">
|
|
|
- <input type="hidden" class="p-copId" value="${p.orderProductID}">
|
|
|
- <td style="width:300px;" class="p-name">
|
|
|
- <c:if test="${p.productType eq 1}"><font color="red">协商赠品:</font></c:if>
|
|
|
- <c:if test="${p.productType eq 2}"><font color="red">促销赠品:</font></c:if>
|
|
|
- ${p.name}
|
|
|
- </td>
|
|
|
- <td style="width:80px;">${p.unit}</td>
|
|
|
- <td class="p-num" data-num="${p.num + p.presentNum}">
|
|
|
- ${p.num}
|
|
|
- <c:if test="${p.presentNum > 0}">(赠:${p.presentNum})</c:if>
|
|
|
- </td>
|
|
|
- <td><font color="${p.returnedNum>0?'red':''}">${p.returnedNum}</font></td>
|
|
|
- <td colspan="3"><fmt:formatNumber value="${empty p.touchPrice?p.discountPrice:p.touchPrice}"
|
|
|
- type="number" pattern="#,##0.00"/>
|
|
|
- <c:if test="${p.includedTax != null and p.includedTax != '' and p.includedTax ne 2}">
|
|
|
- <label style="color: red">
|
|
|
- (${p.includedTax eq 1?'含税':(p.invoiceType eq 1 or p.invoiceType eq 2)?'不含税-能开票':'不含税-不能开票'})
|
|
|
- </label>
|
|
|
- </c:if>
|
|
|
- </td>
|
|
|
- <td>${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'---':empty p.taxRate?0.0:p.taxRate}${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'':'%'}</td>
|
|
|
- <td>${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))?'---': empty p.addedValueTax ?0.00:p.addedValueTax}</td>
|
|
|
- <td><c:choose>
|
|
|
- <c:when test="${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))}">
|
|
|
- ---
|
|
|
- </c:when>
|
|
|
- <c:otherwise>
|
|
|
- <fmt:formatNumber
|
|
|
- value="${empty p.totalAddedValueTax ?0.00:(p.addedValueTax * (p.num+p.presentNum-p.returnedNum))}"
|
|
|
- type="number" pattern="#,##0.00"/>
|
|
|
- </c:otherwise>
|
|
|
- </c:choose></td>
|
|
|
- <td><fmt:formatNumber
|
|
|
- value="${((empty p.touchPrice?p.discountPrice:p.touchPrice) + p.addedValueTax)*(p.num+p.presentNum-p.returnedNum)}"
|
|
|
- type="number" pattern="#,##0.00"/></td>
|
|
|
- <td><fmt:formatNumber
|
|
|
- value="${(empty p.touchPrice?p.discountPrice:p.touchPrice) + p.addedValueTax - p.costPrice - p.singleShouldPayTotalTax}"
|
|
|
- pattern="#,##0.00"/></td>
|
|
|
-
|
|
|
- <td class="payCm"><fmt:formatNumber
|
|
|
- value="${((empty p.touchPrice?p.discountPrice:p.touchPrice) + p.addedValueTax - p.costPrice - p.singleShouldPayTotalTax) * (p.num + p.presentNum - p.returnedNum)}"
|
|
|
- pattern="#,##0.00"/></td>
|
|
|
-
|
|
|
- <td class="p-taxes">${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'---':empty p.supplierTaxRate?0.0:p.supplierTaxRate}${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'':'%'}</td>
|
|
|
- <td class="p-taxes">${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))?'---': empty p.singleShouldPayTotalTax ?0.00:p.singleShouldPayTotalTax}</td>
|
|
|
- <td class="p-taxes-t"><c:choose>
|
|
|
- <c:when test="${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))}">
|
|
|
- ---
|
|
|
- </c:when>
|
|
|
- <c:otherwise>
|
|
|
- <fmt:formatNumber
|
|
|
- value="${empty p.shouldPayTotalTax ?0.00:(p.singleShouldPayTotalTax * (p.num+p.presentNum-p.returnedNum))}"
|
|
|
- type="number" pattern="#,##0.00"/>
|
|
|
- </c:otherwise>
|
|
|
- </c:choose></td>
|
|
|
- <td class="p-costprice"><fmt:formatNumber value="${p.costPrice}" type="number"
|
|
|
- pattern="#,##0.00"/></td>
|
|
|
- <td><fmt:formatNumber value="${p.costPrice * (p.num + p.presentNum - p.returnedNum)}"
|
|
|
- type="number" pattern="#,##0.00"/></td>
|
|
|
- </tr>
|
|
|
- </c:forEach>
|
|
|
- </table>
|
|
|
- </c:forEach>
|
|
|
- </div>
|
|
|
- <div class="payment-form-bottom">
|
|
|
- <div >
|
|
|
- <label style="font-weight: bold; font-size:18px">${cmPayShop.paymentType eq 2 ? "需补供应商差价":"付供应商总金额"}:</label>
|
|
|
- <span id="totalAmount" style="font-weight: bold; font-size:18px"><fmt:formatNumber value="${cmPayShop.totalAmount}" pattern="#,##0.00"/> </span>
|
|
|
- <c:if test="${cmPayShop.wipePayment > 0}">
|
|
|
- <span class="red">(付款抹平总额:¥<fmt:formatNumber value="${cmPayShop.wipePayment}" pattern="#,##0.00"/>)</span>
|
|
|
- </c:if>
|
|
|
- </div>
|
|
|
- <c:if test="${cmPayShop.wipePayment > 0}">
|
|
|
- <div>
|
|
|
- <label>抹平备注:</label>
|
|
|
- <span>${cmPayShop.wipeRemarks}</span>
|
|
|
- </div>
|
|
|
- <c:if test="${not empty cmPayShop.wipeImages}">
|
|
|
- <div class="wipeImgs">
|
|
|
- <label>图片:</label>
|
|
|
- <c:forEach items="${cmPayShop.wipeImages}" var="wi" varStatus="wIndex">
|
|
|
- <img src="${wi}">
|
|
|
- </c:forEach>
|
|
|
- </div>
|
|
|
- </c:if>
|
|
|
- </c:if>
|
|
|
- <div>
|
|
|
- <label>欠款抵扣:</label>
|
|
|
- 总欠款:<span id="rebateAmount">${empty cmPayShop.rebateAmount ? 0 : cmPayShop.rebateAmount }</span>,
|
|
|
- 可抵扣欠款:<span id="ableRebateAmount">${empty cmPayShop.ableRebateAmount ? 0 : cmPayShop.ableRebateAmount }</span>,
|
|
|
- 使用:${cmPayShop.balancePayFee},
|
|
|
- 剩余:<span id="remainingBalance"> ${cmPayShop.status == '2'?((empty cmPayShop.ableRebateAmount ? 0:cmPayShop.ableRebateAmount)-cmPayShop.balancePayFee): (empty cmPayShop.ableRebateAmount ? 0 : cmPayShop.ableRebateAmount)}</span>
|
|
|
- </div>
|
|
|
- <c:if test="${cmPayShop.payType ne '6'}">
|
|
|
- <div>
|
|
|
- <label style="font-weight: bold; font-size:18px">转账支付:</label>
|
|
|
- <span id="transferAmount" style="font-weight: bold; font-size:18px"><fmt:formatNumber value="${cmPayShop.transferPayFee}" pattern="#,##0.00"/></span>
|
|
|
- <c:if test="${cmPayShop.status != '2'}">
|
|
|
- <c:if test="${not empty cmPayShop.payType }">
|
|
|
- <label>付款银行:</label>
|
|
|
- <span id="payType">
|
|
|
+ <span class="nowrap">已付:${s.payedShopAmount},</span></div>
|
|
|
+ <div><span class="nowrap">待付:<input type="number"
|
|
|
+ value="<fmt:formatNumber value="${s.waitPayShop}" pattern="0.00"/>"
|
|
|
+ class="need-to-pay" data-type="${s.differenceType}"
|
|
|
+ data-difference="${s.differencePrice}"
|
|
|
+ data-pay="${s.shouldPayShopAmount}"
|
|
|
+ data-payed="${s.payedShopAmount}"></span></div>
|
|
|
+ <input type="hidden" name="payInfo" class="payInfo" data-shoporderid="${s.shopOrderID}"
|
|
|
+ value="${s.shopOrderID}_${s.waitPayShop}_0">
|
|
|
+ <label class="wipeBtn"><input class="wipeFee" type="checkbox" value="0"><span>付款抹平:<em
|
|
|
+ class="red wipeText">¥0.00</em></span></label>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td class="third-party-fee">${s.shopOtherFee}</td>
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <c:if test="${empty s.costType || s.costType == '1'}">固定成本</c:if>
|
|
|
+ <c:if test="${s.costType == '2'}">比例成本</c:if>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>商品名</th>
|
|
|
+ <th>规格</th>
|
|
|
+ <th>数量<%--(赠品)--%></th>
|
|
|
+ <th>退货</th>
|
|
|
+ <th colspan="3">单价</th>
|
|
|
+ <th colspan="3">机构税率 / 单税费 / 总税费</th>
|
|
|
+ <th>总价</th>
|
|
|
+ <th>佣金(单)</th>
|
|
|
+ <th>佣金(总)</th>
|
|
|
+ <th colspan="3">供应商税率 / 单税费 / 总税费</th>
|
|
|
+ <th>成本(单)</th>
|
|
|
+ <th>成本(总)</th>
|
|
|
+ </tr>
|
|
|
+ <c:forEach items="${s.newOrderProducts}" var="p" varStatus="pIndex">
|
|
|
+ <tr class="pay-product-item">
|
|
|
+ <input type="hidden" class="p-copId" value="${p.orderProductID}">
|
|
|
+ <td style="width:300px;" class="p-name">
|
|
|
+ <c:if test="${p.productType eq 1}"><font color="red">协商赠品:</font></c:if>
|
|
|
+ <c:if test="${p.productType eq 2}"><font color="red">促销赠品:</font></c:if>
|
|
|
+ ${p.name}
|
|
|
+ </td>
|
|
|
+ <td style="width:80px;">${p.unit}</td>
|
|
|
+ <td class="p-num" data-num="${p.num + p.presentNum}">
|
|
|
+ ${p.num}
|
|
|
+ <c:if test="${p.presentNum > 0}">(赠:${p.presentNum})</c:if>
|
|
|
+ </td>
|
|
|
+ <td><font color="${p.returnedNum>0?'red':''}">${p.returnedNum}</font></td>
|
|
|
+ <td colspan="3"><fmt:formatNumber value="${empty p.touchPrice?p.discountPrice:p.touchPrice}"
|
|
|
+ type="number" pattern="#,##0.00"/>
|
|
|
+ <c:if test="${p.includedTax != null and p.includedTax != '' and p.includedTax ne 2}">
|
|
|
+ <label style="color: red">
|
|
|
+ (${p.includedTax eq 1?'含税':(p.invoiceType eq 1 or p.invoiceType eq 2)?'不含税-能开票':'不含税-不能开票'})
|
|
|
+ </label>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'---':empty p.taxRate?0.0:p.taxRate}${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'':'%'}</td>
|
|
|
+ <td>${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))?'---': empty p.addedValueTax ?0.00:p.addedValueTax}</td>
|
|
|
+ <td><c:choose>
|
|
|
+ <c:when test="${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))}">
|
|
|
+ ---
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <fmt:formatNumber
|
|
|
+ value="${empty p.totalAddedValueTax ?0.00:(p.addedValueTax * (p.num+p.presentNum-p.returnedNum))}"
|
|
|
+ type="number" pattern="#,##0.00"/>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose></td>
|
|
|
+ <td><fmt:formatNumber
|
|
|
+ value="${((empty p.touchPrice?p.discountPrice:p.touchPrice) + p.addedValueTax)*(p.num+p.presentNum-p.returnedNum)}"
|
|
|
+ type="number" pattern="#,##0.00"/></td>
|
|
|
+ <td><fmt:formatNumber
|
|
|
+ value="${(empty p.touchPrice?p.discountPrice:p.touchPrice) + p.addedValueTax - p.costPrice - p.singleShouldPayTotalTax}"
|
|
|
+ pattern="#,##0.00"/></td>
|
|
|
+
|
|
|
+ <td class="payCm"><fmt:formatNumber
|
|
|
+ value="${((empty p.touchPrice?p.discountPrice:p.touchPrice) + p.addedValueTax - p.costPrice - p.singleShouldPayTotalTax) * (p.num + p.presentNum - p.returnedNum)}"
|
|
|
+ pattern="#,##0.00"/></td>
|
|
|
+
|
|
|
+ <td class="p-taxes">${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'---':empty p.supplierTaxRate?0.0:p.supplierTaxRate}${(p.includedTax ne '' and p.includedTax eq 0 and p.invoiceType eq 3)?'':'%'}</td>
|
|
|
+ <td class="p-taxes">${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))?'---': empty p.singleShouldPayTotalTax ?0.00:p.singleShouldPayTotalTax}</td>
|
|
|
+ <td class="p-taxes-t"><c:choose>
|
|
|
+ <c:when test="${(p.includedTax ne '' and (p.includedTax eq 1 or (p.includedTax eq 0 and p.invoiceType eq 3)))}">
|
|
|
+ ---
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <fmt:formatNumber
|
|
|
+ value="${empty p.shouldPayTotalTax ?0.00:(p.singleShouldPayTotalTax * (p.num+p.presentNum-p.returnedNum))}"
|
|
|
+ type="number" pattern="#,##0.00"/>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose></td>
|
|
|
+ <td class="p-costprice"><fmt:formatNumber value="${p.costPrice}" type="number"
|
|
|
+ pattern="#,##0.00"/></td>
|
|
|
+ <td><fmt:formatNumber value="${p.costPrice * (p.num + p.presentNum - p.returnedNum)}"
|
|
|
+ type="number" pattern="#,##0.00"/></td>
|
|
|
+ </tr>
|
|
|
+ </c:forEach>
|
|
|
+ </table>
|
|
|
+ </c:forEach>
|
|
|
+ </div>
|
|
|
+ <div class="payment-form-bottom">
|
|
|
+ <div>
|
|
|
+ <label style="font-weight: bold; font-size:18px">${cmPayShop.paymentType eq 2 ? "需补供应商差价":"付供应商总金额"}:</label>
|
|
|
+ <span id="totalAmount" style="font-weight: bold; font-size:18px"><fmt:formatNumber
|
|
|
+ value="${cmPayShop.totalAmount}" pattern="#,##0.00"/> </span>
|
|
|
+ <c:if test="${cmPayShop.wipePayment > 0}">
|
|
|
+ <span class="red">(付款抹平总额:¥<fmt:formatNumber value="${cmPayShop.wipePayment}"
|
|
|
+ pattern="#,##0.00"/>)</span>
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ <c:if test="${cmPayShop.wipePayment > 0}">
|
|
|
+ <div>
|
|
|
+ <label>抹平备注:</label>
|
|
|
+ <span>${cmPayShop.wipeRemarks}</span>
|
|
|
+ </div>
|
|
|
+ <c:if test="${not empty cmPayShop.wipeImages}">
|
|
|
+ <div class="wipeImgs">
|
|
|
+ <label>图片:</label>
|
|
|
+ <c:forEach items="${cmPayShop.wipeImages}" var="wi" varStatus="wIndex">
|
|
|
+ <img src="${wi}">
|
|
|
+ </c:forEach>
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
+ </c:if>
|
|
|
+ <div>
|
|
|
+ <label>欠款抵扣:</label>
|
|
|
+ 总欠款:<span id="rebateAmount">${empty cmPayShop.rebateAmount ? 0 : cmPayShop.rebateAmount }</span>,
|
|
|
+ 可抵扣欠款:<span
|
|
|
+ id="ableRebateAmount">${empty cmPayShop.ableRebateAmount ? 0 : cmPayShop.ableRebateAmount }</span>,
|
|
|
+ 使用:${cmPayShop.balancePayFee},
|
|
|
+ 剩余:<span
|
|
|
+ id="remainingBalance"> ${cmPayShop.status == '2'?((empty cmPayShop.ableRebateAmount ? 0:cmPayShop.ableRebateAmount)-cmPayShop.balancePayFee): (empty cmPayShop.ableRebateAmount ? 0 : cmPayShop.ableRebateAmount)}</span>
|
|
|
+ </div>
|
|
|
+ <c:if test="${cmPayShop.payType ne '6'}">
|
|
|
+ <div>
|
|
|
+ <label style="font-weight: bold; font-size:18px">转账支付:</label>
|
|
|
+ <span id="transferAmount" style="font-weight: bold; font-size:18px"><fmt:formatNumber
|
|
|
+ value="${cmPayShop.transferPayFee}" pattern="#,##0.00"/></span>
|
|
|
+ <c:if test="${cmPayShop.status != '2'}">
|
|
|
+ <c:if test="${not empty cmPayShop.payType }">
|
|
|
+ <label>付款银行:</label>
|
|
|
+ <span id="payType">
|
|
|
<c:if test="${cmPayShop.payType eq 1}">
|
|
|
- 建设银行7297
|
|
|
- </c:if>
|
|
|
+ 建设银行7297
|
|
|
+ </c:if>
|
|
|
<c:if test="${cmPayShop.payType eq 2}">
|
|
|
- 中信银行0897
|
|
|
- </c:if>
|
|
|
+ 中信银行0897
|
|
|
+ </c:if>
|
|
|
<c:if test="${cmPayShop.payType eq 3}">
|
|
|
- 中信银行7172
|
|
|
- </c:if>
|
|
|
+ 中信银行7172
|
|
|
+ </c:if>
|
|
|
<c:if test="${cmPayShop.payType eq 4}">
|
|
|
- 广发银行0115
|
|
|
- </c:if>
|
|
|
+ 广发银行0115
|
|
|
+ </c:if>
|
|
|
<c:if test="${cmPayShop.payType eq 5}">
|
|
|
- 广发银行5461
|
|
|
- </c:if>
|
|
|
+ 广发银行5461
|
|
|
+ </c:if>
|
|
|
</span>
|
|
|
- </c:if>
|
|
|
- <c:if test="${cmPayShop.status != '0'}">
|
|
|
- <label>付款时间:</label>
|
|
|
- <span>${cmPayShop.payTime}</span>
|
|
|
- </c:if>
|
|
|
- </c:if>
|
|
|
- </div>
|
|
|
- </c:if>
|
|
|
- <div class="process-details">
|
|
|
- <label>申请人:</label><div class="process-for-label">${cmPayShop.payType eq '6'? '系统自动':cmPayShop.applicantName}</div>
|
|
|
- <span>申请时间:</span><div>${cmPayShop.applyTime}</div>
|
|
|
- <c:if test="${cmPayShop.status != '0'}">
|
|
|
- <span>审核人:</span><div>
|
|
|
- <c:if test="${cmPayShop.status == 1 || cmPayShop.status == 2}">
|
|
|
- ${cmPayShop.payType eq '6'? '系统自动':cmPayShop.reviewerName}
|
|
|
- </c:if>
|
|
|
- </div>
|
|
|
- <span>审核时间:</span><div>
|
|
|
- <c:if test="${cmPayShop.status == 1 || cmPayShop.status == 2}">
|
|
|
- ${cmPayShop.reviewTime}
|
|
|
- </c:if>
|
|
|
- </div>
|
|
|
- </c:if>
|
|
|
- </div>
|
|
|
- <div class="process-details process-details-last">
|
|
|
- <label>审核状态:</label><div class="process-for-label">
|
|
|
- <c:if test="${cmPayShop.status == '0'}">
|
|
|
- 待审核
|
|
|
- </c:if>
|
|
|
- <c:if test="${cmPayShop.status == '1'}">
|
|
|
- 审核通过
|
|
|
- </c:if>
|
|
|
- <c:if test="${cmPayShop.status == '2'}">
|
|
|
- <font color="red">审核不通过</font>
|
|
|
- </c:if></div>
|
|
|
- <c:if test="${cmPayShop.status == '2'}">
|
|
|
- <span>原因:</span><div>
|
|
|
- ${cmPayShop.reason}
|
|
|
- </div>
|
|
|
- </c:if>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <c:if test="${cmPayShop.status == '1'}">
|
|
|
- <div class="check-btn">
|
|
|
- <button class="apply-btn btn btn-primary" type="button" onclick="window.location.href='${ctx}/order/cmPayShop/printDetail?id=${cmPayShop.id}'">去打印</button>
|
|
|
- </div>
|
|
|
- </c:if>
|
|
|
- </div>
|
|
|
- <script>
|
|
|
- (function(){
|
|
|
- var payTableEle = $('.pay-table'),
|
|
|
- payProductEle = $('.pay-product-item');
|
|
|
- payTableEle.each(function (i,l) {
|
|
|
- var productLength = $(this).find('.pay-product-item').length;
|
|
|
- // 商品列表合并单元格
|
|
|
- $(this).find('.mergeRows').attr('rowspan',productLength);
|
|
|
- });
|
|
|
-
|
|
|
- $('.tips-cancel-btn, #close-btn1').on('click',function() {
|
|
|
- $('.tips-popup').hide();
|
|
|
- })
|
|
|
- $('.tips-cfm-directly').on('click',function() {
|
|
|
- if($('.tips-cfm-btn').hasClass('tips-cfm-directly')) {
|
|
|
- $('.tips-popup').hide();
|
|
|
- }
|
|
|
- })
|
|
|
- $('.pay-table').each(function(){
|
|
|
- var thisEle = $(this),
|
|
|
- totalComissionVal = 0,
|
|
|
- resVal = '';
|
|
|
- totalComissionEle = thisEle.find('.payCm'),
|
|
|
- comissionEle = thisEle.find('.payCm-t'),
|
|
|
- thirdPartyVal = thisEle.find('.third-party-fee').text().replace(',',''),//付第三方
|
|
|
- freightVal = thisEle.find('.freight').text().replace(',',''),
|
|
|
- clubFreight = Number(thisEle.find('.clubFreight').text().replace(',','')),
|
|
|
- discountFee = Number(thisEle.find('.discountFee').text().replace(',','')),
|
|
|
- eachDiscount = Number(thisEle.find('.eachDiscount').text().replace(',',''));//分摊优惠
|
|
|
- totalComissionEle.each(function(){
|
|
|
- totalComissionVal += Number($(this).text().replace(',',''));
|
|
|
- })
|
|
|
- resVal = (totalComissionVal - thirdPartyVal - eachDiscount).toFixed(2);
|
|
|
- comissionEle.text(resVal);
|
|
|
- })
|
|
|
-
|
|
|
- $('.export').on('click',function() {
|
|
|
- window.print();
|
|
|
- })
|
|
|
-
|
|
|
- function showTips(title,text) {
|
|
|
- $('.tips-popup h4').text(title);
|
|
|
- $('.tips-popup p').text(text);
|
|
|
- $('.tips-popup').show();
|
|
|
- }
|
|
|
- })()
|
|
|
- </script>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmPayShop.status != '0'}">
|
|
|
+ <label>付款时间:</label>
|
|
|
+ <span>${cmPayShop.payTime}</span>
|
|
|
+ </c:if>
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
+ <div class="process-details">
|
|
|
+ <label>申请人:</label>
|
|
|
+ <div class="process-for-label">${cmPayShop.payType eq '6'? '系统自动':cmPayShop.applicantName}</div>
|
|
|
+ <span>申请时间:</span>
|
|
|
+ <div>${cmPayShop.applyTime}</div>
|
|
|
+ <c:if test="${cmPayShop.status != '0'}">
|
|
|
+ <span>审核人:</span>
|
|
|
+ <div>
|
|
|
+ <c:if test="${cmPayShop.status == 1 || cmPayShop.status == 2}">
|
|
|
+ ${cmPayShop.payType eq '6'? '系统自动':cmPayShop.reviewerName}
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ <span>审核时间:</span>
|
|
|
+ <div>
|
|
|
+ <c:if test="${cmPayShop.status == 1 || cmPayShop.status == 2}">
|
|
|
+ ${cmPayShop.reviewTime}
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ <div class="process-details process-details-last">
|
|
|
+ <label>审核状态:</label>
|
|
|
+ <div class="process-for-label">
|
|
|
+ <c:if test="${cmPayShop.status == '0'}">
|
|
|
+ 待审核
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmPayShop.status == '1'}">
|
|
|
+ 审核通过
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmPayShop.status == '2'}">
|
|
|
+ <font color="red">审核不通过</font>
|
|
|
+ </c:if></div>
|
|
|
+ <c:if test="${cmPayShop.status == '2'}">
|
|
|
+ <span>原因:</span>
|
|
|
+ <div>
|
|
|
+ ${cmPayShop.reason}
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <c:if test="${cmPayShop.status == '1'}">
|
|
|
+ <div class="check-btn">
|
|
|
+ <button class="apply-btn btn btn-primary" type="button"
|
|
|
+ onclick="window.location.href='${ctx}/order/cmPayShop/printDetail?id=${cmPayShop.id}'">去打印
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
+</div>
|
|
|
+<script>
|
|
|
+ (function () {
|
|
|
+ var payTableEle = $('.pay-table'),
|
|
|
+ payProductEle = $('.pay-product-item');
|
|
|
+ payTableEle.each(function (i, l) {
|
|
|
+ var productLength = $(this).find('.pay-product-item').length;
|
|
|
+ // 商品列表合并单元格
|
|
|
+ $(this).find('.mergeRows').attr('rowspan', productLength);
|
|
|
+ });
|
|
|
+
|
|
|
+ $('.tips-cancel-btn, #close-btn1').on('click', function () {
|
|
|
+ $('.tips-popup').hide();
|
|
|
+ })
|
|
|
+ $('.tips-cfm-directly').on('click', function () {
|
|
|
+ if ($('.tips-cfm-btn').hasClass('tips-cfm-directly')) {
|
|
|
+ $('.tips-popup').hide();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ $('.pay-table').each(function () {
|
|
|
+ var thisEle = $(this),
|
|
|
+ totalComissionVal = 0,
|
|
|
+ resVal = '';
|
|
|
+ totalComissionEle = thisEle.find('.payCm'),
|
|
|
+ comissionEle = thisEle.find('.payCm-t'),
|
|
|
+ thirdPartyVal = thisEle.find('.third-party-fee').text().replace(',', ''),//付第三方
|
|
|
+ freightVal = thisEle.find('.freight').text().replace(',', ''),
|
|
|
+ clubFreight = Number(thisEle.find('.clubFreight').text().replace(',', '')),
|
|
|
+ discountFee = Number(thisEle.find('.discountFee').text().replace(',', '')),
|
|
|
+ eachDiscount = Number(thisEle.find('.eachDiscount').text().replace(',', ''));//分摊优惠
|
|
|
+ totalComissionEle.each(function () {
|
|
|
+ totalComissionVal += Number($(this).text().replace(',', ''));
|
|
|
+ })
|
|
|
+ resVal = (totalComissionVal - thirdPartyVal - eachDiscount).toFixed(2);
|
|
|
+ comissionEle.text(resVal);
|
|
|
+ })
|
|
|
+
|
|
|
+ $('.export').on('click', function () {
|
|
|
+ window.print();
|
|
|
+ })
|
|
|
+
|
|
|
+ function showTips(title, text) {
|
|
|
+ $('.tips-popup h4').text(title);
|
|
|
+ $('.tips-popup p').text(text);
|
|
|
+ $('.tips-popup').show();
|
|
|
+ }
|
|
|
+ })()
|
|
|
+</script>
|
|
|
</body>
|
|
|
</html>
|