|
@@ -93,92 +93,99 @@
|
|
|
</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: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="3">下单时间</th>
|
|
|
+ <th colspan="2">子订单金额</th>
|
|
|
+ <%-- <th colspan="3">所有子订单</th>--%>
|
|
|
+ <%-- <th>订单总佣金</th>--%>
|
|
|
+ <th colspan="4">总平台服务费</th>
|
|
|
+ <%-- <th>机构运费</th>--%>
|
|
|
+ <th colspan="2">收款状态</th>
|
|
|
+ <th colspan="3">收款金额</th>
|
|
|
+ <th colspan="2">经理折扣</th>
|
|
|
+ <th colspan="2">优惠券</th>
|
|
|
+ <tr/>
|
|
|
+ <tr>
|
|
|
+ <%-- <td> ${s.orderNo}(${s.orderID})</td>--%>
|
|
|
+ <td>${s.shopOrderNo}(${s.shopOrderID})</td>
|
|
|
+ <%-- <td colspan="3"> ${s.buyer}</td>--%>
|
|
|
+ <td colspan="3"> ${s.orderTime}</td>
|
|
|
+ <td colspan="2">${s.totalAmount}</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 colspan="4">${s.allServeAmount}</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 colspan="2">
|
|
|
+ <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRefundRecord.rpc?orderID=${s.orderID}&from=1"
|
|
|
+ style="text-decoration: underline">
|
|
|
+ <c:if test="${s.shopReceiptStatus == 1}"><font color="red">待收款</font></c:if>
|
|
|
+ <c:if test="${s.shopReceiptStatus == 2}"><font color="#ff8c00">部分收款</font></c:if>
|
|
|
+ <c:if test="${s.shopReceiptStatus == 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.receiptAmount}</a>
|
|
|
+ </td>
|
|
|
+ <td colspan="2">
|
|
|
+ <label class="discountFee">
|
|
|
+ <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}">
|
|
@@ -188,46 +195,77 @@
|
|
|
<fmt:formatNumber value="${s.discountTotalFee}" type="currency"/>
|
|
|
</c:if>)
|
|
|
</span>
|
|
|
+ </c:if>
|
|
|
</c:if>
|
|
|
- </c:if>
|
|
|
- <c:if test="${s.discountTotalFee le 0}">¥0.00</c:if>
|
|
|
- </td>
|
|
|
- <td>${s.couponAmount} </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 colspan="2">付第三方</th>
|
|
|
- <th colspan="2">成本类型</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>
|
|
|
+ <c:if test="${s.discountTotalFee le 0}">¥0.00</c:if>
|
|
|
+ </td>
|
|
|
+ <td class="couponAmount" colspan="2">${s.couponAmount} </td>
|
|
|
+ <td class="eachDiscount" style="display: none">${s.eachDiscount}</td>
|
|
|
+ <tr/>
|
|
|
+ <tr>
|
|
|
+ <th>客户</th>
|
|
|
+ <th colspan="3"> 供应商</th>
|
|
|
+ <th colspan="3">子订单利润</th>
|
|
|
+ <th colspan="3">商品费</th>
|
|
|
+ <th>应付税费</th>
|
|
|
+ <th>机构运费</th>
|
|
|
+ <th>供应商运费</th>
|
|
|
+ <th>付款状态</th>
|
|
|
+ <th colspan="3">付供应商</th>
|
|
|
+ <th>付第三方</th>
|
|
|
+ <th>成本类型</th>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td> ${s.buyer}</td>
|
|
|
+ <td colspan="3">${s.shopName}</td>
|
|
|
+ <c:if test="${empty s.brokerage}"><td colspan="3" class="payCm-t"></td></c:if>
|
|
|
+ <c:if test="${not empty s.brokerage}"><td colspan="3" class="">${s.brokerage}</td></c:if>
|
|
|
+ <%-- 子订单佣金=商品总佣金+机构运费-付第三方-供应商运费-分摊优惠--%>
|
|
|
+ <td colspan="3" class="product-fee">${s.shopProductAmount}</td>
|
|
|
|
|
|
- <td class="freight"><fmt:formatNumber value="${s.shopPostFee}" type="number"
|
|
|
- pattern="#,##0.00"/></td>
|
|
|
+ <td class="taxes">
|
|
|
+ <fmt:formatNumber value="${s.shopTaxFee}" type="number" pattern="#,##0.00"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <label class="clubFreight" style="display: none">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${s.shopPostFlag != 2 && s.shopPostFlag != 0 && s.shopPostFlag != -2 && s.returnedFreightFlag ne true}">
|
|
|
+ <fmt:formatNumber value="${s.shopPostFee}"/>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <fmt:formatNumber value="0"/>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </label>
|
|
|
+ <c:if test="${s.shopPostFlag == 0}">
|
|
|
+ 包邮
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${s.shopPostFlag == 2}">
|
|
|
+ 到付
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${s.shopPostFlag == -2}">
|
|
|
+ 仪器到付-产品包邮
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${s.shopPostFlag != 2 && s.shopPostFlag != 0 && s.shopPostFlag != -2}">
|
|
|
+ <fmt:formatNumber value="${s.shopPostFee}" 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 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>
|
|
|
+ <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">
|
|
|
+ <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>
|
|
@@ -238,105 +276,106 @@
|
|
|
<font color="black"><fmt:formatNumber value="${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 colspan="2" class="third-party-fee">${s.shopOtherFee}</td>
|
|
|
-
|
|
|
- <td colspan="2">
|
|
|
- <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="6">供应商税率 / 单税费 / 总税费</th>
|
|
|
- <th colspan="3">成本(单)</th>
|
|
|
- <th colspan="4">成本(总)</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>
|
|
|
+ <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><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="third-party-fee">${s.shopOtherFee}</td>
|
|
|
|
|
|
- <td colspan="2" 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 colspan="2" 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 colspan="2" 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 colspan="3" class="p-costprice"><fmt:formatNumber value="${p.costPrice}" type="number"
|
|
|
- pattern="#,##0.00"/></td>
|
|
|
- <td colspan="4"><fmt:formatNumber value="${p.costPrice * (p.num + p.presentNum - p.returnedNum)}"
|
|
|
- type="number" pattern="#,##0.00"/></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="2">单价</th>
|
|
|
+ <th colspan="3">机构税率 / 单税费 / 总税费</th>
|
|
|
+ <th colspan="2">总价</th>
|
|
|
+ <th>利润(单)</th>
|
|
|
+ <th>利润(总)</th>
|
|
|
+ <th>平台服务费</th>
|
|
|
+ <th colspan="3">供应商税率 / 单税费 / 总税费</th>
|
|
|
+ <th>成本(单)</th>
|
|
|
+ <th>成本(总)</th>
|
|
|
</tr>
|
|
|
- </c:forEach>
|
|
|
- </table>
|
|
|
- </c:forEach>
|
|
|
+ <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="2"><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 colspan="2"><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>${p.cmCostPrice}</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>
|