|
@@ -0,0 +1,334 @@
|
|
|
+<%@ 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
|
|
|
+ }
|
|
|
+
|
|
|
+ #searchForm {
|
|
|
+ white-space: nowrap
|
|
|
+ }
|
|
|
+
|
|
|
+ .ul-form {
|
|
|
+ white-space: nowrap;
|
|
|
+ margin-left: -10px !important
|
|
|
+ }
|
|
|
+
|
|
|
+ .ul-form label {
|
|
|
+ width: 90px;
|
|
|
+ text-align: left;
|
|
|
+ margin-top: 15px
|
|
|
+ }
|
|
|
+
|
|
|
+ .time-space-symbols {
|
|
|
+ width: 100px;
|
|
|
+ display: inline-block;
|
|
|
+ text-align: center
|
|
|
+ }
|
|
|
+
|
|
|
+ #btnSubmit {
|
|
|
+ width: 128px;
|
|
|
+ margin-left: 80%
|
|
|
+ }
|
|
|
+
|
|
|
+ .td-a {
|
|
|
+ width: 100%;
|
|
|
+ float: left;
|
|
|
+ display: block;
|
|
|
+ text-align: center
|
|
|
+ }
|
|
|
+
|
|
|
+ @media screen and (max-width: 1300px) {
|
|
|
+ #searchForm {
|
|
|
+ width: 1460px !important
|
|
|
+ }
|
|
|
+
|
|
|
+ .nav-tabs, #contentTable {
|
|
|
+ width: 1490px !important
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .weishaIcon {
|
|
|
+ background: darkorange;
|
|
|
+ color: white;
|
|
|
+ margin: 0 0px;
|
|
|
+ padding: 0 3px;
|
|
|
+ font-style: normal;
|
|
|
+ font-size: 12px;
|
|
|
+ display: inline-block;
|
|
|
+ border-radius: 2px
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+ <script type="text/javascript">
|
|
|
+ $(document).ready(function () {
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ function page(n, s) {
|
|
|
+ $("#pageNo").val(n);
|
|
|
+ $("#pageSize").val(s);
|
|
|
+ $("#searchForm").submit();
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ $(function () {
|
|
|
+ $('#export').click(function () {
|
|
|
+ var formData = $('#searchForm').serialize();
|
|
|
+ window.location.href = "${ctx}/order/cmPayShop/export?" + formData;
|
|
|
+ });
|
|
|
+ })
|
|
|
+ </script>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<ul class="nav nav-tabs">
|
|
|
+ <li class="active"><a href="${ctx}/order/cmPayShop/payOtherList">付款列表</a></li>
|
|
|
+ <li><a href="${ctx}/shopOrder/payOtherList">申请付第三方-线下订单</a></li>
|
|
|
+</ul>
|
|
|
+<form:form id="searchForm" modelAttribute="cmPayShop" action="${ctx}/order/cmPayShop/" 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>
|
|
|
+ <label>子订单ID:</label>
|
|
|
+ <form:input path="shopOrderID" htmlEscape="false" maxlength="20" class="input-medium"/>
|
|
|
+ <label>子订单编号:</label>
|
|
|
+ <form:input path="shopOrderNo" htmlEscape="false" maxlength="20" class="input-medium"/>
|
|
|
+ <label>订单ID:</label>
|
|
|
+ <form:input path="orderID" htmlEscape="false" maxlength="20" class="input-medium"/>
|
|
|
+ <label>订单编号:</label>
|
|
|
+ <form:input path="orderNo" htmlEscape="false" maxlength="20" class="input-medium"/>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label>付款单ID:</label>
|
|
|
+ <form:input path="id" htmlEscape="false" maxlength="50" class="input-medium"/>
|
|
|
+ <label>供应商:</label>
|
|
|
+ <form:input path="shopName" htmlEscape="false" maxlength="50" class="input-medium"/>
|
|
|
+
|
|
|
+ <label>付款单名称:</label>
|
|
|
+ <form:input path="name" htmlEscape="false" maxlength="250" class="input-medium"/>
|
|
|
+ <label>付款审核状态:</label>
|
|
|
+ <form:select path="status" class="input-medium">
|
|
|
+ <form:option value="" label="所有"/>
|
|
|
+ <form:options items="${fns:getDictList('pay_shop_status')}" itemLabel="label" itemValue="value"
|
|
|
+ htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label>申请时间:</label>
|
|
|
+ <form:input path="startTime" type="text" maxlength="20" class="input-medium Wdate" value="${startTime}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ <span class="time-space-symbols">至</span>
|
|
|
+ <form:input path="endTime" type="text" maxlength="20" class="input-medium Wdate" value="${endTime}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ <label>付款时间:</label>
|
|
|
+ <form:input path="startTime2" type="text" maxlength="20" class="input-medium Wdate" value="${startTime2}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ <span class="time-space-symbols">至</span>
|
|
|
+ <form:input path="endTime2" type="text" maxlength="20" class="input-medium Wdate" value="${endTime2}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label>组织:</label>
|
|
|
+ <form:select path="organizeID" class="input-medium">
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
+ <form:option value="0" label="采美"/>
|
|
|
+ <form:option value="9999" label="呵呵商城"/>
|
|
|
+ <c:forEach items="${cmUserOrganizeList}" var="organize">
|
|
|
+ <c:if test="${organize.id!=4}">
|
|
|
+ <form:option value="${organize.id}" label="${organize.organizeName}"/>
|
|
|
+ </c:if>
|
|
|
+ </c:forEach>
|
|
|
+ <%-- <form:options items="${cmUserOrganizeList}" itemLabel="organizeName" itemValue="id"--%>
|
|
|
+ <%-- htmlEscape="false"/>--%>
|
|
|
+ </form:select>
|
|
|
+ <label>付款类型:</label>
|
|
|
+ <form:select path="paymentType" class="input-medium">
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
+ <form:option value="1" label="付款子订单"/>
|
|
|
+ <form:option value="2" label="供应商差价"/>
|
|
|
+ <form:option value="3" label="付第三方"/>
|
|
|
+ </form:select>
|
|
|
+ <label><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></label>
|
|
|
+ <label><input
|
|
|
+ id="export" class="btn btn-primary" value="导出筛选结果"/></label>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <div class="clearfix"></div>
|
|
|
+ </div>
|
|
|
+</form:form>
|
|
|
+<sys:message content="${message}"/>
|
|
|
+<table id="contentTable" class="table table-striped table-bordered table-condensed">
|
|
|
+ <thead>
|
|
|
+ <tr style="width:30%">
|
|
|
+ <th>付款单ID</th>
|
|
|
+ <th style="width:150px">付款单名称</th>
|
|
|
+ <th>付款类型</th>
|
|
|
+ <th>供应商</th>
|
|
|
+ <th>付款金额</th>
|
|
|
+ <th>子订单编号(ID)</th>
|
|
|
+ <th>订单编号(ID)</th>
|
|
|
+ <th>机构</th>
|
|
|
+ <th>申请人</th>
|
|
|
+ <th>申请日期</th>
|
|
|
+ <th>审核人</th>
|
|
|
+ <th>审核时间</th>
|
|
|
+ <th>付款审核状态</th>
|
|
|
+ <shiro:hasPermission name="order:cmPayShop:edit">
|
|
|
+ <th>操作</th>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <c:forEach items="${page.list}" var="cmPayShop">
|
|
|
+ <tr>
|
|
|
+ <td>${cmPayShop.id}</td>
|
|
|
+ <td>${cmPayShop.name}</td>
|
|
|
+ <td>
|
|
|
+ ${cmPayShop.paymentType eq 2 ? "供应商差价":(cmPayShop.paymentType eq 3 ? "付第三方":"子订单付款")}
|
|
|
+ </td>
|
|
|
+ <td>${cmPayShop.shopName}</td>
|
|
|
+ <td>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${cmPayShop.paymentType eq 3}">
|
|
|
+ ${cmPayShop.cmShopOtherFee + cmPayShop.totalAmount}
|
|
|
+ <font color="red">
|
|
|
+ <c:if test="${not empty cmPayShop.cmShopOtherFee and cmPayShop.cmShopOtherFee > 0 and not empty cmPayShop.totalAmount and cmPayShop.totalAmount > 0}">
|
|
|
+ (采美中介费¥${cmPayShop.cmShopOtherFee},第三方中介费¥${cmPayShop.totalAmount})
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${(empty cmPayShop.cmShopOtherFee or cmPayShop.cmShopOtherFee eq 0) and not empty cmPayShop.totalAmount and cmPayShop.totalAmount > 0}">
|
|
|
+ (第三方中介费¥${cmPayShop.totalAmount})
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${(not empty cmPayShop.cmShopOtherFee and cmPayShop.cmShopOtherFee > 0) and (empty cmPayShop.totalAmount or cmPayShop.totalAmount eq 0)}">
|
|
|
+ (采美中介费¥${cmPayShop.cmShopOtherFee})
|
|
|
+ </c:if>
|
|
|
+ </font>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <fmt:formatNumber value="${cmPayShop.totalAmount}" type="number" pattern="#,##0.00"/>
|
|
|
+ <c:if test="${cmPayShop.wipePayment > 0}">
|
|
|
+ <br><font color="red">付款抹平¥<fmt:formatNumber value="${cmPayShop.wipePayment}" type="number"
|
|
|
+ pattern="#,##0.00"/></font>
|
|
|
+ </c:if>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <c:forEach items="${cmPayShop.shopOrders}" var="shopOrder">
|
|
|
+ <a href="${ctx}/order/detail?id=${shopOrder.orderID}">${shopOrder.shopOrderNo}(${shopOrder.shopOrderID})</a><br>
|
|
|
+ </c:forEach>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <c:forEach items="${cmPayShop.shopOrders}" var="shopOrder">
|
|
|
+ <a href="${ctx}/order/detail?id=${shopOrder.orderID}">${shopOrder.orderNo}(${shopOrder.orderID})</a><br>
|
|
|
+ </c:forEach>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <c:forEach items="${cmPayShop.shopOrders}" var="shopOrder">
|
|
|
+ <c:if test="${shopOrder.organizeID eq 1}">
|
|
|
+ <span class="org-note">星范</span>
|
|
|
+ </c:if>
|
|
|
+ ${shopOrder.clubName}
|
|
|
+ <c:if test="${shopOrder.orderType eq 2}">
|
|
|
+ <span><font color="red">(呵呵商城)</font></span>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${shopOrder.organizeID == 3}">
|
|
|
+
|
|
|
+ </c:if><br>
|
|
|
+ </c:forEach>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td>
|
|
|
+ ${cmPayShop.payType eq '6'? '系统自动':cmPayShop.applicantName}
|
|
|
+ </td>
|
|
|
+ <td>${cmPayShop.applyTime}</td>
|
|
|
+ <td>
|
|
|
+ ${cmPayShop.payType eq '6'? '系统自动':cmPayShop.reviewerName}
|
|
|
+ </td>
|
|
|
+ <td>${cmPayShop.reviewTime}</td>
|
|
|
+ <td>
|
|
|
+ <c:if test="${cmPayShop.status == '0'}">
|
|
|
+ <font color="red">
|
|
|
+ <strong>待审核</strong>
|
|
|
+ </font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmPayShop.status == '1'}">
|
|
|
+ 审核通过
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmPayShop.status == '2'}">
|
|
|
+ 审核不通过<br><font color="red">原因: ${cmPayShop.reason}</font>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <c:if test="${cmPayShop.payType ne '6' && cmPayShop.status == '1'}">
|
|
|
+ <shiro:hasPermission name="order:cmPayShop:check">
|
|
|
+ <a class="td-a" href="${ctx}/order/cmPayShop/applyCompile?id=${cmPayShop.id}">编辑</a>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ </c:if>
|
|
|
+ <shiro:hasPermission name="order:cmPayShop:detail">
|
|
|
+ <a class="td-a" href="${ctx}/order/cmPayShop/applyDetail?id=${cmPayShop.id}">查看详情</a>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ <c:if test="${cmPayShop.status == '0'}">
|
|
|
+ <shiro:hasPermission name="order:cmPayShop:apply">
|
|
|
+ <c:if test="${cmPayShop.paymentType ne 3 && cmPayShop.paymentType ne 2}">
|
|
|
+ <a class="td-a" href="${ctx}/order/cmPayShop/applyEdit?id=${cmPayShop.id}">申请付款</a>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmPayShop.paymentType eq 3 && cmPayShop.paymentType ne 2}">
|
|
|
+ <a class="td-a" href="${ctx}/order/cmPayShop/shopOtherApplyEdit?payShopId=${cmPayShop.id}">申请付款</a>
|
|
|
+ </c:if>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ <shiro:hasPermission name="order:cmPayShop:cancel">
|
|
|
+ <a class="td-a" href="${ctx}/order/cmPayShop/cancel?id=${cmPayShop.id}"
|
|
|
+ onclick="return confirmx('确定要取消此次付款申请吗?', this.href)">取消付款</a>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ <shiro:hasPermission name="order:cmPayShop:check">
|
|
|
+ <a class="td-a" href="${ctx}/order/cmPayShop/toCheck?id=${cmPayShop.id}">付款审核</a>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmPayShop.payType ne '6' && cmPayShop.status == '1'}">
|
|
|
+ <shiro:hasPermission name="order:cmPayShop:rollBack">
|
|
|
+ <a class="td-a" href="${ctx}/order/cmPayShop/rollBackApply?id=${cmPayShop.id}&redirectType=1"
|
|
|
+ onclick="return confirmx('确定要撤销审核流程,重新来过吗?', this.href)">撤销重来</a>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmPayShop.status == '2'}">
|
|
|
+ <shiro:hasPermission name="order:cmPayShop:apply">
|
|
|
+ <c:if test="${cmPayShop.rePayment == '1' && cmPayShop.paymentType ne 2}">
|
|
|
+ <c:if test="${cmPayShop.paymentType ne 3}">
|
|
|
+ <a class="td-a" href="${ctx}/order/cmPayShop/applyEdit?id=${cmPayShop.id}">重申付款</a>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmPayShop.paymentType eq 3}">
|
|
|
+ <a class="td-a"
|
|
|
+ href="${ctx}/order/cmPayShop/shopOtherApplyEdit?payShopId=${cmPayShop.id}">重申付款</a>
|
|
|
+ </c:if>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmPayShop.rePayment == '2'}">重申付款</c:if>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ <shiro:hasPermission name="order:cmPayShop:cancel">
|
|
|
+ <a class="td-a" href="${ctx}/order/cmPayShop/cancel?id=${cmPayShop.id}"
|
|
|
+ onclick="return confirmx('确定要取消此次付款申请吗?', this.href)">取消付款</a>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${cmPayShop.status == '1'}">
|
|
|
+ <shiro:hasPermission name="order:cmPayShop:detail">
|
|
|
+ <a class="td-a" href="${ctx}/order/cmPayShop/printDetail?id=${cmPayShop.id}">打印</a>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </c:forEach>
|
|
|
+ </tbody>
|
|
|
+</table>
|
|
|
+<div class="pagination">${page}</div>
|
|
|
+</body>
|
|
|
+</html>
|