123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- <%@ 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;}
- </style>
- <script type="text/javascript">
- $(document).ready(function() {
-
- });
- function page(n,s){
- $("#pageNo").val(n);
- $("#pageSize").val(s);
- $("#searchForm").submit();
- return false;
- }
- </script>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li class="active"><a href="${ctx}/hehe/cmHeheCollage/">拼团记录</a></li>
- </ul>
- <form:form id="searchForm" modelAttribute="cmHeheCollage" action="${ctx}/hehe/cmHeheCollage/" 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">
- <label>ID:</label>
- <form:input path="id" htmlEscape="false" class="input-medium"/>
- <label>商品名称:</label>
- <form:input path="productName" htmlEscape="false" class="input-medium"/>
- <label>供应商名称:</label>
- <form:input path="shopName" htmlEscape="false" class="input-medium"/>
- <label>状态:</label>
- <form:select path="status" class="input-medium">
- <form:option value="" label="请选择"/>
- <form:option value="1" label="拼团中"/>
- <form:option value="2" label="已拼成"/>
- </form:select>
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
- <div class="clearfix"></div>
- </div>
- </form:form>
- <sys:message content="${message}"/>
- <table id="contentTable" class="table table-striped table-bordered table-condensed">
- <thead>
- <tr>
- <th>ID</th>
- <th>商品名称</th>
- <th>供应商名称</th>
- <th>拼团价格</th>
- <th>拼团人数</th>
- <th>开始时间</th>
- <th>结束时间</th>
- <th>已拼人数</th>
- <th>关联订单</th>
- <th>状态</th>
- <th>成团时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${page.list}" var="cmHeheCollage">
- <tr>
- <td>
- ${cmHeheCollage.id}
- </td>
- <td>
- ${cmHeheCollage.productName}
- </td>
- <td>
- ${cmHeheCollage.shopName}
- </td>
- <td>
- ${cmHeheCollage.price}
- </td>
- <td>
- ${cmHeheCollage.memberNum}
- </td>
- <td>
- <fmt:formatDate value="${cmHeheCollage.startTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
- </td>
- <td>
- <fmt:formatDate value="${cmHeheCollage.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
- </td>
- <td>
- ${cmHeheCollage.status eq 2?cmHeheCollage.memberNum:cmHeheCollage.orderIdList.size()}
- </td>
- <td>
- <c:forEach items="${cmHeheCollage.orderIdList}" var="orderId" varStatus="index">
- <a href="${ctx}/hehe/new/order/detail?id=${orderId}">${orderId}${index.index lt (cmHeheCollage.orderIdList.size()-1)?',':''}</a>
- </c:forEach>
- </td>
- <td>
- <c:if test="${cmHeheCollage.status eq 1}">
- <font color="#00CC00">拼团中</font>
- </c:if>
- <c:if test="${cmHeheCollage.status ne 1}">
- <font color="red">已拼成</font>
- </c:if>
- </td>
- <td>
- <c:if test="${cmHeheCollage.status eq 1}">
- -
- </c:if>
- <c:if test="${cmHeheCollage.status ne 1}">
- <fmt:formatDate value="${cmHeheCollage.completeTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
- </c:if>
- </td>
- <td>
- <c:if test="${cmHeheCollage.status eq 1}">
- <a href="${ctx}/hehe/cmHeheCollage/complete?id=${cmHeheCollage.id}">一键成团<a>
- </c:if>
- <a href="${ctx}/hehe/cmHeheCollage/memberList?collageId=${cmHeheCollage.id}">拼团成员</a>
- </td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- <div class="pagination">${page}</div>
- </body>
- </html>
|