cmOrganizeBuyerList.jsp 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>采购人员管理</title>
  6. <meta name="decorator" content="default"/>
  7. <style type="text/css">
  8. .table th{text-align: center;}
  9. .table td{text-align: center;}
  10. </style>
  11. <script type="text/javascript">
  12. $(document).ready(function() {
  13. });
  14. function page(n,s){
  15. $("#pageNo").val(n);
  16. $("#pageSize").val(s);
  17. $("#searchForm").submit();
  18. return false;
  19. }
  20. </script>
  21. </head>
  22. <body>
  23. <ul class="nav nav-tabs">
  24. <li><a href="${ctx}/weisha/cmMallOrganize">组织列表</a></li>
  25. <li class="active"><a href="${ctx}/weisha/cmOrganizeBuyer?organizeId=${cmOrganizeBuyer.organizeId}">采购员列表</a></li>
  26. </ul>
  27. <form:form id="searchForm" modelAttribute="cmOrganizeBuyer" action="${ctx}/weisha/cmOrganizeBuyer/" method="post" class="breadcrumb form-search">
  28. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  29. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  30. <form:hidden path="organizeId"/>
  31. <div class="ul-form">
  32. <label>姓名:</label>
  33. <form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/>
  34. <label>手机号:</label>
  35. <form:input path="mobile" htmlEscape="false" maxlength="20" class="input-medium"/>
  36. <label>状态:</label>
  37. <form:select path="status" class="input-medium">
  38. <form:option value="" label="请选择"/>
  39. <form:option value="1" label="未绑定"/>
  40. <form:option value="2" label="已绑定"/>
  41. </form:select>
  42. <label>添加时间:</label>
  43. <input name="startTime" type="text" maxlength="20" class="input-mini Wdate"
  44. value="<fmt:formatDate value="${cmOrganizeBuyer.startTime}" pattern="yyyy-MM-dd"/>"
  45. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/> 至
  46. <input name="endTime" type="text" maxlength="20" class="input-mini Wdate"
  47. value="<fmt:formatDate value="${cmOrganizeBuyer.endTime}" pattern="yyyy-MM-dd"/>"
  48. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  49. &nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  50. &nbsp;&nbsp;<input class="btn btn-primary" style="width: 80px" onclick="window.location='${ctx}/weisha/cmOrganizeBuyer/form?organizeId=${cmOrganizeBuyer.organizeId}'" value="添加采购员"/>
  51. <div class="clearfix"></div>
  52. </div>
  53. </form:form>
  54. <sys:message content="${message}"/>
  55. <font color="blue">当前组织:${mallOrganize.organizeName}</font>
  56. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  57. <thead>
  58. <tr>
  59. <th>姓名</th>
  60. <th>手机号</th>
  61. <th>邀请码</th>
  62. <th>状态</th>
  63. <th>微信昵称</th>
  64. <th>openID</th>
  65. <th>添加时间</th>
  66. <th>绑定时间</th>
  67. <th>操作</th>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. <c:forEach items="${page.list}" var="cmOrganizeBuyer">
  72. <tr>
  73. <td>
  74. ${cmOrganizeBuyer.name}
  75. </td>
  76. <td>
  77. ${cmOrganizeBuyer.mobile}
  78. </td>
  79. <td>
  80. ${cmOrganizeBuyer.invitationCode}<br>
  81. <c:if test="${cmOrganizeBuyer.effectiveState eq 1}">
  82. <font color="green">已使用</font>
  83. </c:if>
  84. <c:if test="${cmOrganizeBuyer.effectiveState eq 2}">
  85. <font color="red">已失效</font>
  86. </c:if>
  87. <c:if test="${cmOrganizeBuyer.effectiveState eq 3}">
  88. <font color="blue">有效</font>
  89. </c:if>
  90. </td>
  91. <td>
  92. <c:if test="${cmOrganizeBuyer.status eq 1}">
  93. <font color="red">未绑定</font>
  94. </c:if>
  95. <c:if test="${cmOrganizeBuyer.status eq 2}">
  96. <font color="green">已绑定</font>
  97. </c:if>
  98. </td>
  99. <td>
  100. ${cmOrganizeBuyer.nickName}
  101. </td>
  102. <td>
  103. ${cmOrganizeBuyer.openid}
  104. </td>
  105. <td>
  106. <fmt:formatDate value="${cmOrganizeBuyer.addTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
  107. </td>
  108. <td>
  109. <fmt:formatDate value="${cmOrganizeBuyer.bindTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
  110. </td>
  111. <td>
  112. <a href="${ctx}/weisha/cmOrganizeBuyer/form?id=${cmOrganizeBuyer.id}">编辑</a>
  113. <c:if test="${cmOrganizeBuyer.status ne 2}">
  114. <a href="${ctx}/weisha/cmOrganizeBuyer/updateInvitationCode?id=${cmOrganizeBuyer.id}" onclick="return confirmx('确定更新邀请码吗?更新后将会短信通知采购员', this.href)">更新邀请码</a>
  115. </c:if>
  116. <c:if test="${cmOrganizeBuyer.status eq 2}">
  117. <a href="${ctx}/weisha/cmOrganizeBuyer/untieBuyer?id=${cmOrganizeBuyer.id}" onclick="return confirmx('确定解绑该采购员吗?解绑后需要重新添加', this.href)">解绑</a>
  118. </c:if>
  119. </td>
  120. </tr>
  121. </c:forEach>
  122. </tbody>
  123. </table>
  124. <div class="pagination">${page}</div>
  125. </body>
  126. </html>