|
@@ -210,137 +210,139 @@
|
|
<h5>关联订单</h5>
|
|
<h5>关联订单</h5>
|
|
<div class="receipt-order-form">
|
|
<div class="receipt-order-form">
|
|
<c:forEach items="${vo.orderInfos}" var="orderInfo">
|
|
<c:forEach items="${vo.orderInfos}" var="orderInfo">
|
|
- <c:if test="${vo.receiptType == 3}">
|
|
|
|
- <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>
|
|
|
|
|
|
+ <div class="receipt-order-form">
|
|
|
|
+ <c:if test="${vo.receiptType == 3}">
|
|
|
|
+ <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>
|
|
|
|
+ </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
|
|
<span><label>订单金额:</label>¥<fmt:formatNumber
|
|
- value="${orderInfo.shopOrderAmount}"
|
|
|
|
|
|
+ value="${orderInfo.orderAmount}"
|
|
pattern="#0.00"/></span>
|
|
pattern="#0.00"/></span>
|
|
- <span><label>供应商:</label>${orderInfo.shopName}</span>
|
|
|
|
- </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>
|
|
<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>
|
|
|
|
|
|
+ <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>
|
|
- <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 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:if>
|
|
</c:if>
|
|
- <c:if test="${receiptRecord.confirmType eq 2}">
|
|
|
|
- <c:if test="${vo.receiptOrderFlag}">
|
|
|
|
- <font color="red">(一款多单:多收抹平金额未知)</font>
|
|
|
|
|
|
+ </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}">
|
|
|
|
+ <em class="weishaIcon">维沙</em>
|
|
|
|
+ </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>${receiptRecord.reviewUserName}审核通过(${receiptRecord.reviewDate})</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>
|
|
|
|
+ </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>
|
|
- <c:if test="${!vo.receiptOrderFlag}">
|
|
|
|
|
|
+ <c:if test="${receiptRecord.confirmType eq 2}">
|
|
<font color="red">(多收抹平:
|
|
<font color="red">(多收抹平:
|
|
- ¥<fmt:formatNumber value="${(empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount) - orderInfo.payableAmount}" pattern="#0.00"/>元)
|
|
|
|
|
|
+ ¥<fmt:formatNumber value="${(empty receiptRecord.orderReceivedAmount ? 0 : receiptRecord.orderReceivedAmount) - orderInfo.payableAmount}" pattern="#0.00"/>元)
|
|
</font>
|
|
</font>
|
|
</c:if>
|
|
</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}">
|
|
|
|
|
|
+ <c:if test="${receiptRecord.confirmType eq 3}">
|
|
<font color="red">(多收退余额${receiptRecord.associationType eq 2 ? "(自动)" : ""}:
|
|
<font color="red">(多收退余额${receiptRecord.associationType eq 2 ? "(自动)" : ""}:
|
|
- ¥<fmt:formatNumber value="${(empty receiptRecord.returnBalanceAmount ? 0 : receiptRecord.returnBalanceAmount)}" pattern="#0.00"/>元)
|
|
|
|
|
|
+ ¥<fmt:formatNumber value="${(empty receiptRecord.returnBalanceAmount ? 0 : receiptRecord.returnBalanceAmount)}" pattern="#0.00"/>元)
|
|
</font>
|
|
</font>
|
|
</c:if>
|
|
</c:if>
|
|
</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>
|
|
</c:if>
|
|
- ${orderInfo.customerName}
|
|
|
|
- <c:if test="${orderInfo.organizeID == 3}">
|
|
|
|
- <em class="weishaIcon">维沙</em>
|
|
|
|
- </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>${receiptRecord.reviewUserName}审核通过(${receiptRecord.reviewDate})</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>
|
|
|
|
- </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>
|
|
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </div>
|
|
|
|
+ </div><br>
|
|
</c:forEach>
|
|
</c:forEach>
|
|
</c:if>
|
|
</c:if>
|
|
</div>
|
|
</div>
|