123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <%@ 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><a href="${ctx}/weisha/cmMallOrganize">组织列表</a></li>
- <li class="active"><a href="${ctx}/weisha/cmOrganizeBuyer?organizeId=${cmOrganizeBuyer.organizeId}">采购员列表</a></li>
- </ul>
- <form:form id="searchForm" modelAttribute="cmOrganizeBuyer" action="${ctx}/weisha/cmOrganizeBuyer/" 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}"/>
- <form:hidden path="organizeId"/>
- <div class="ul-form">
- <label>姓名:</label>
- <form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/>
- <label>手机号:</label>
- <form:input path="mobile" htmlEscape="false" maxlength="20" 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>
- <label>添加时间:</label>
- <input name="startTime" type="text" maxlength="20" class="input-mini Wdate"
- value="<fmt:formatDate value="${cmOrganizeBuyer.startTime}" pattern="yyyy-MM-dd"/>"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/> 至
- <input name="endTime" type="text" maxlength="20" class="input-mini Wdate"
- value="<fmt:formatDate value="${cmOrganizeBuyer.endTime}" pattern="yyyy-MM-dd"/>"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
- <input class="btn btn-primary" style="width: 80px" onclick="window.location='${ctx}/weisha/cmOrganizeBuyer/form?organizeId=${cmOrganizeBuyer.organizeId}'" value="添加采购员"/>
- <div class="clearfix"></div>
- </div>
- </form:form>
- <sys:message content="${message}"/>
- <font color="blue">当前组织:${mallOrganize.organizeName}</font>
- <table id="contentTable" class="table table-striped table-bordered table-condensed">
- <thead>
- <tr>
- <th>姓名</th>
- <th>手机号</th>
- <th>邀请码</th>
- <th>状态</th>
- <th>微信昵称</th>
- <th>openID</th>
- <th>添加时间</th>
- <th>绑定时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${page.list}" var="cmOrganizeBuyer">
- <tr>
- <td>
- ${cmOrganizeBuyer.name}
- </td>
- <td>
- ${cmOrganizeBuyer.mobile}
- </td>
- <td>
- ${cmOrganizeBuyer.invitationCode}<br>
- <c:if test="${cmOrganizeBuyer.effectiveState eq 1}">
- <font color="green">已使用</font>
- </c:if>
- <c:if test="${cmOrganizeBuyer.effectiveState eq 2}">
- <font color="red">已失效</font>
- </c:if>
- <c:if test="${cmOrganizeBuyer.effectiveState eq 3}">
- <font color="blue">有效</font>
- </c:if>
- </td>
- <td>
- <c:if test="${cmOrganizeBuyer.status eq 1}">
- <font color="red">未绑定</font>
- </c:if>
- <c:if test="${cmOrganizeBuyer.status eq 2}">
- <font color="green">已绑定</font>
- </c:if>
- </td>
- <td>
- ${cmOrganizeBuyer.nickName}
- </td>
- <td>
- ${cmOrganizeBuyer.openid}
- </td>
- <td>
- <fmt:formatDate value="${cmOrganizeBuyer.addTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
- </td>
- <td>
- <fmt:formatDate value="${cmOrganizeBuyer.bindTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
- </td>
- <td>
- <a href="${ctx}/weisha/cmOrganizeBuyer/form?id=${cmOrganizeBuyer.id}">编辑</a>
- <c:if test="${cmOrganizeBuyer.status ne 2}">
- <a href="${ctx}/weisha/cmOrganizeBuyer/updateInvitationCode?id=${cmOrganizeBuyer.id}" onclick="return confirmx('确定更新邀请码吗?更新后将会短信通知采购员', this.href)">更新邀请码</a>
- </c:if>
- <c:if test="${cmOrganizeBuyer.status eq 2}">
- <a href="${ctx}/weisha/cmOrganizeBuyer/untieBuyer?id=${cmOrganizeBuyer.id}" onclick="return confirmx('确定解绑该采购员吗?解绑后需要重新添加', this.href)">解绑</a>
- </c:if>
- </td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- <div class="pagination">${page}</div>
- </body>
- </html>
|