|
@@ -0,0 +1,366 @@
|
|
|
+<%@ page import="java.util.Date" %>
|
|
|
+<%@ 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 type="text/css">
|
|
|
+ .table th{text-align:center}
|
|
|
+ .table td{text-align:center}
|
|
|
+ .data-title{width:100%;display:table}
|
|
|
+ .data-title ul li{word-break:break-all;display:table-cell;width:100px;border:1px solid #000;text-align:center;height:35px;vertical-align:middle;border-right:0;border-bottom:0}
|
|
|
+ .data-title ul{margin-bottom:0 !important;display:table-row}
|
|
|
+ .data-title ul li:last-of-type{width:120px;border-right:1px solid #000000}
|
|
|
+ .data-title ul:last-of-type li{border-bottom:1px solid #000000}
|
|
|
+ .data-title ul li:nth-child(6){width:80px}
|
|
|
+ .spileOrder li:nth-of-type(1){position:relative}
|
|
|
+ .san{width:10px;height:10px;border-top:2px solid #000;border-right:2px solid #000;transform:rotate(45deg);position:absolute;right:-2px;top:50%;margin-top:-5px;cursor:pointer}
|
|
|
+ .red-waring{margin:0 !important;background-color:#f3f3f3 !important}
|
|
|
+ .red-waring li{border-color:red !important}
|
|
|
+ #biao1{position:absolute;left:-9999px;top:-9999px;z-index:-99;width:1px;height:1px}
|
|
|
+ #searchForm{line-height:40px}
|
|
|
+ #searchForm .ul-form{overflow:visible}
|
|
|
+ #searchForm{white-space:nowrap}
|
|
|
+ #searchForm label{margin-top:15px}
|
|
|
+ .ul-form{white-space:nowrap;margin-left:-10px !important}
|
|
|
+ .ul-form label{width:90px;text-align:right}
|
|
|
+ #btnSubmit{width:128px;margin-left:152px}
|
|
|
+ .select-ele{width:177px}
|
|
|
+ </style>
|
|
|
+ <script type="text/javascript">
|
|
|
+ function page(n, s) {
|
|
|
+ $("#pageNo").val(n);
|
|
|
+ $("#pageSize").val(s);
|
|
|
+ $("#searchForm").submit();
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ function checkfun() {
|
|
|
+ var orderID = $('#orderID').val();
|
|
|
+ var reg = /^[0-9]*$/;
|
|
|
+ if (!reg.test(orderID) && orderID.trim() != "") {
|
|
|
+ alertx("请输入正确的订单ID!");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<textarea cols="20" rows="10" id="biao1"></textarea>
|
|
|
+<ul class="nav nav-tabs">
|
|
|
+<shiro:hasPermission name="order:order:view">
|
|
|
+ <li><a href="${ctx}/order/orderList">订单列表</a></li>
|
|
|
+</shiro:hasPermission>
|
|
|
+<shiro:hasPermission name="order:order:secondhandOrder">
|
|
|
+ <li class="active"><a href="${ctx}/order/secondhandOrderList">二手订单列表</a></li>
|
|
|
+</shiro:hasPermission>
|
|
|
+ <shiro:hasPermission name="order:order:form">
|
|
|
+ <li><a href="${ctx}/order/form">添加订单</a></li>
|
|
|
+ </shiro:hasPermission>
|
|
|
+<shiro:hasPermission name="order:order:postageOrderForm">
|
|
|
+ <li><a href="${ctx}/order/postageOrderForm">添加运费订单</a></li>
|
|
|
+</shiro:hasPermission>
|
|
|
+<shiro:hasPermission name="order:order:secondeProductOrderForm">
|
|
|
+ <li><a href="${ctx}/order/secondeProductOrderForm">添加二手订单</a></li>
|
|
|
+</shiro:hasPermission>
|
|
|
+
|
|
|
+</ul>
|
|
|
+<sys:message content="${message}"/>
|
|
|
+<form:form id="searchForm" modelAttribute="newOrder" onsubmit="return checkfun()" action="${ctx}/order/secondhandOrderList"
|
|
|
+ method="post" class="breadcrumb form-search">
|
|
|
+ <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
|
+ <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
|
+ <div class="ul-form">
|
|
|
+ <div class="flex-wrap">
|
|
|
+ <div class="item">
|
|
|
+ <label>订单ID:</label>
|
|
|
+ <form:input path="orderID" id="orderID" htmlEscape="false" maxlength="30" class="input-medium"/>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>订单号:</label>
|
|
|
+ <form:input path="orderNo" htmlEscape="false" maxlength="30" class="input-medium"/>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>机构:</label>
|
|
|
+ <form:input path="buyer" maxlength="20" class="input-medium"/>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>收货人:</label>
|
|
|
+ <form:input path="receiver" maxlength="20" class="input-medium"/>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>商品名称:</label>
|
|
|
+ <form:input path="productName" class="input-large"/>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>订单状态:</label>
|
|
|
+ <form:select path="status" class="select-ele input-medium required">
|
|
|
+ <form:option value="" label="所有"/>
|
|
|
+ <form:options items="${fns:getDictList('order_status')}" itemLabel="label" itemValue="value"
|
|
|
+ htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>收款状态:</label>
|
|
|
+ <form:select path="receiptStatus" class="select-ele input-medium required">
|
|
|
+ <form:option value="" label="所有"/>
|
|
|
+ <form:options items="${fns:getDictList('receiptStatus')}" itemLabel="label" itemValue="value"
|
|
|
+ htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>发货状态:</label>
|
|
|
+ <form:select path="sendOutStatus" class="select-ele input-medium required">
|
|
|
+ <form:option value="" label="所有"/>
|
|
|
+ <form:options items="${fns:getDictList('sendOutStatus')}" itemLabel="label" itemValue="value"
|
|
|
+ htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>付款状态:</label>
|
|
|
+ <form:select path="payStatus" class="select-ele input-medium required">
|
|
|
+ <form:option value="" label="所有"/>
|
|
|
+ <form:options items="${fns:getDictList('payStatus')}" itemLabel="label" itemValue="value"
|
|
|
+ htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="item">
|
|
|
+ <label>退款状态:</label>
|
|
|
+ <form:select path="refundType" class="select-ele input-medium required">
|
|
|
+ <form:option value="" label="所有"/>
|
|
|
+ <form:option value="0" label="无退款"/>
|
|
|
+ <form:option value="1" label="部分退款"/>
|
|
|
+ <form:option value="2" label="已退款"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>待审核退款:</label>
|
|
|
+ <form:select path="returnedPurchaseStatus" class="select-ele input-medium required">
|
|
|
+ <form:option value="" label="所有"/>
|
|
|
+ <form:option value="1" label="有"/>
|
|
|
+ <form:option value="0" label="无"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="item">
|
|
|
+ <label>协销人员:</label>
|
|
|
+ <form:select path="serviceProviderId" class="select-ele input-medium required">
|
|
|
+ <form:option value="" label="所有"/>
|
|
|
+ <form:options items="${serviceProviderList}" itemLabel="linkMan" itemValue="serviceProviderID"
|
|
|
+ htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="item">
|
|
|
+ <label class="control-label">下单时间:</label>
|
|
|
+ <form:input path="startTime" type="text" maxlength="10" class="input-medium Wdate" value="${startTime}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd ',isShowClear:false});"/>
|
|
|
+ 至
|
|
|
+ <form:input path="endTime" type="text" maxlength="10" class="input-medium Wdate" value="${endTime}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd ',isShowClear:false});"/>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label class="control-label">确认时间:</label>
|
|
|
+ <form:input path="startConfirmTime" type="text" maxlength="10" class="input-medium Wdate"
|
|
|
+ value="${startConfirmTime}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd ',isShowClear:false});"/>
|
|
|
+ 至
|
|
|
+ <form:input path="endConfirmTime" type="text" maxlength="10" class="input-medium Wdate"
|
|
|
+ value="${endConfirmTime}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd ',isShowClear:false});"/>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" style="margin-left: 20px;"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</form:form>
|
|
|
+
|
|
|
+<fmt:formatDate value="<%=new Date()%>" var="currDate" pattern="yyyy-MM-dd"/>
|
|
|
+<fmt:formatDate value="<%=new Date()%>" var="monthFirst" pattern="yyyy-MM-01"/>
|
|
|
+<div class="data-title">
|
|
|
+ <ul>
|
|
|
+ <li>订单ID</li>
|
|
|
+ <li>订单编号</li>
|
|
|
+ <li>订单类型</li>
|
|
|
+<%-- <li>返佣订单</li>--%>
|
|
|
+<%-- <li>二手订单</li>--%>
|
|
|
+ <li>机构</li>
|
|
|
+ <li>收货人</li>
|
|
|
+ <li>订单来源</li>
|
|
|
+ <li>订单状态</li>
|
|
|
+ <li>收款状态</li>
|
|
|
+ <li>付款状态</li>
|
|
|
+ <li>发货状态</li>
|
|
|
+ <li>退款状态</li>
|
|
|
+ <li>待审核退款</li>
|
|
|
+ <li>订单金额</li>
|
|
|
+ <li>下单时间</li>
|
|
|
+ <li>确认时间</li>
|
|
|
+ <li>操作</li>
|
|
|
+ </ul>
|
|
|
+ <c:forEach items="${page.list}" var="order">
|
|
|
+ <%--颜色区分分期不分期订单以及终止订单--%>
|
|
|
+ <ul class="spileOrder" data-id="${order.orderNo}">
|
|
|
+ <li>${order.orderID}</li>
|
|
|
+ <li style="position: relative">${order.orderNo}
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <c:if test="${order.orderType == 1}">
|
|
|
+ 自主订单
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.orderType == 0}">
|
|
|
+ 协销订单
|
|
|
+ <c:if test="${not empty order.spName}">
|
|
|
+ <br>${fns:appendLast1('(',order.spName,')')}
|
|
|
+ </c:if>
|
|
|
+ </c:if>
|
|
|
+ </li>
|
|
|
+<%-- <li>--%>
|
|
|
+<%-- <c:if test="${order.rebateOrder == '0'}">--%>
|
|
|
+<%-- 否--%>
|
|
|
+<%-- </c:if>--%>
|
|
|
+<%-- <c:if test="${order.rebateOrder ne '0'}">--%>
|
|
|
+<%-- 是--%>
|
|
|
+<%-- </c:if>--%>
|
|
|
+<%-- </li>--%>
|
|
|
+<%-- <li>--%>
|
|
|
+<%-- <c:if test="${order.secondHandOrderFlag == '1'}">--%>
|
|
|
+<%-- 是--%>
|
|
|
+<%-- </c:if>--%>
|
|
|
+<%-- <c:if test="${order.secondHandOrderFlag ne '1'}">--%>
|
|
|
+<%-- 否--%>
|
|
|
+<%-- </c:if>--%>
|
|
|
+<%-- </li>--%>
|
|
|
+ <li>
|
|
|
+
|
|
|
+ <c:if test="${order.organizeID == 1}">
|
|
|
+ <span class="org-note">星范</span>
|
|
|
+ </c:if>
|
|
|
+
|
|
|
+ ${order.buyer}
|
|
|
+ </li>
|
|
|
+ <li>${order.receiver}</li>
|
|
|
+ <li>${fns:getDictLabel(order.orderSource,"bp_orderSource","" )}</li>
|
|
|
+ <li class="sd-li">
|
|
|
+ <c:if test="${order.status eq 11 || order.status eq 12 || order.status eq 13 ||order.status eq 21 ||order.status eq 22 ||
|
|
|
+ order.status eq 23 || order.status eq 31 ||order.status eq 32 ||order.status eq 33}">
|
|
|
+ 交易中<br>(${fns:getDictLabel(order.status,"order_detail_status","" )})
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.status eq 0 || order.status eq 4 || order.status eq 5 || order.status eq 6 || order.status eq 7}">${fns:getDictLabel(order.status,"order_detail_status","" )}</c:if>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <c:if test="${order.receiptStatus == 1}">
|
|
|
+ <font color="red">待收款</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.receiptStatus == 2}">
|
|
|
+ <font color="#ff8c00">部分收款</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.receiptStatus == 3}">
|
|
|
+ <font color="green">已收款</font>
|
|
|
+ </c:if>
|
|
|
+ <br>
|
|
|
+ <%--抹平明细--%>
|
|
|
+ <c:if test="${order.confirmType eq 1}">
|
|
|
+ <c:if test="${order.receiptOrderFlag}">
|
|
|
+ 一款多单:少收抹平金额未知
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${!order.receiptOrderFlag}">
|
|
|
+ <font>少收抹平:<br>
|
|
|
+ ¥<fmt:formatNumber
|
|
|
+ value="${order.payableAmount - (empty order.orderReceivedAmount ? 0 : order.orderReceivedAmount)}"
|
|
|
+ pattern="#0.00"/>
|
|
|
+ </font>
|
|
|
+ </c:if>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.confirmType eq 2}">
|
|
|
+ <c:if test="${order.receiptOrderFlag}">
|
|
|
+ 一款多单:多收抹平金额未知
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${!order.receiptOrderFlag}">
|
|
|
+ <font>多收抹平:<br>
|
|
|
+ ¥<fmt:formatNumber
|
|
|
+ value="${(empty order.orderReceivedAmount ? 0 : order.orderReceivedAmount) - order.payableAmount}"
|
|
|
+ pattern="#0.00"/>
|
|
|
+ </font>
|
|
|
+ </c:if>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.confirmType eq 3}">
|
|
|
+ <c:if test="${order.receiptOrderFlag}">
|
|
|
+ 一款多单:多收退余额
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${!order.receiptOrderFlag}">
|
|
|
+ <font>多收退余额 ${order.associationType eq 2 ? "(自动)" : ""}:<br>
|
|
|
+ ¥<fmt:formatNumber
|
|
|
+ value="${(empty order.returnBalanceAmount ? 0 : order.returnBalanceAmount)}"
|
|
|
+ pattern="#0.00"/>
|
|
|
+ </font>
|
|
|
+ </c:if>
|
|
|
+ </c:if>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <c:if test="${order.payStatus == 1}">
|
|
|
+ <font color="red">待付款</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.payStatus == 2}">
|
|
|
+ <font color="#ff8c00">部分付款</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.payStatus == 3}">
|
|
|
+ <font color="green">已付款</font>
|
|
|
+ </c:if>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <c:if test="${order.sendOutStatus == 1}">
|
|
|
+ <font color="red">待发货</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.sendOutStatus == 2}">
|
|
|
+ <font color="#ff8c00">部分发货</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.sendOutStatus == 3}">
|
|
|
+ <font color="green">已发货</font>
|
|
|
+ </c:if>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <c:if test="${order.refundType == 1}">
|
|
|
+ <font>部分退款</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.refundType == 2}">
|
|
|
+ <font>已退款</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.refundType ne 1 and order.refundType ne 2 }">
|
|
|
+ <font>无退款</font>
|
|
|
+ </c:if>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <c:if test="${order.returnedPurchaseStatus == 1}">
|
|
|
+ <a href="${ctx}/bulkpurchase/cmRefundsProduct/toRecturnRecordByOrderID.rpc?orderID=${order.orderID}">
|
|
|
+ 有
|
|
|
+ </a>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${order.returnedPurchaseStatus == 0}">
|
|
|
+ 无
|
|
|
+ </c:if>
|
|
|
+ </li>
|
|
|
+ <li><fmt:formatNumber value="${order.payTotalFee}" type="currency"/></li>
|
|
|
+ <%-- 订单金额 --%>
|
|
|
+ <li>${order.orderTime}</li>
|
|
|
+ <li>
|
|
|
+ <c:if test="${empty order.confirmTime}">
|
|
|
+ ---
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${not empty order.confirmTime}">
|
|
|
+ ${order.confirmTime}
|
|
|
+ </c:if>
|
|
|
+ </li>
|
|
|
+ <li class="operation-wrap">
|
|
|
+ <a href="${ctx}/order/detail?id=${order.orderID}">查看详情</a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </c:forEach>
|
|
|
+</div>
|
|
|
+
|
|
|
+<div class="pagination">${page}</div>
|
|
|
+</body>
|
|
|
+</html>
|