cmSpClubTrackList.jsp 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <%@ page import="java.util.Date" %><%--
  2. Created by IntelliJ IDEA.
  3. User: Administrator
  4. Date: 2020/4/12
  5. Time: 12:01
  6. To change this template use File | Settings | File Templates.
  7. --%>
  8. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  9. <%@ page contentType="text/html;charset=UTF-8" %>
  10. <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
  11. <html>
  12. <head>
  13. <title>机构活跃分析管理</title>
  14. <meta name="decorator" content="default"/>
  15. <style type="text/css">
  16. .table th {
  17. text-align: center;
  18. }
  19. .table td {
  20. text-align: center;
  21. }
  22. .livelyProportion {
  23. background: #f5f5f5;
  24. height: 150px;
  25. display: flex;
  26. list-style: none;
  27. }
  28. .livelyProportion > li {
  29. flex: 1;
  30. text-align: center;
  31. margin: auto 0;
  32. font-size: 20px;
  33. font-weight: bold;
  34. }
  35. </style>
  36. <script type="text/javascript">
  37. $(document).ready(function () {
  38. let date = new Date().getTime()
  39. let date0 = formatDate(date)
  40. let date1 = formatDate(date - 24 * 60 * 60 * 1000)
  41. let date2 = formatDate(date - 24 * 60 * 60 * 1000 * 2)
  42. let date3 = formatDate(${newCmClub.providerTime.getTime()})
  43. if (date0 == date3) {
  44. $("#conlog").text("(今天)")
  45. } else if (date1 == date3) {
  46. $("#conlog").text("(昨天)")
  47. } else if (date2 == date3) {
  48. $("#conlog").text("(前天)")
  49. }
  50. })
  51. function formatDate(date) {
  52. //date为时间戳
  53. var date = new Date(date);
  54. var Y = date.getFullYear() + '-';
  55. var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
  56. var D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate());
  57. var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
  58. var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':';
  59. var s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
  60. return Y + M + D;
  61. }
  62. function checkProviderTime(type) {
  63. var date = new Date($("#providerTime").val()).getTime()
  64. if (formatDate(new Date()) != formatDate(date)||type == 1) {
  65. if (type != 1) {
  66. date = date + 24 * 60 * 60 * 1000
  67. } else {
  68. date = date - 24 * 60 * 60 * 1000
  69. }
  70. $("#providerTime").val(formatDate(date))
  71. $("#searchForm").submit()
  72. }else {
  73. $.jBox.tip("当前已经是最新的记录了!", 'info');
  74. }
  75. }
  76. /**
  77. * @param obj
  78. * jquery控制input只能输入数字
  79. */
  80. function onlynum(obj) {
  81. obj.value = obj.value.replace(/[^\d]/g, ""); //清除"数字"以外的字符
  82. }
  83. function page(n, s) {
  84. $("#pageNo").val(n);
  85. $("#pageSize").val(s);
  86. $("#searchForm").submit();
  87. return false;
  88. }
  89. </script>
  90. </head>
  91. <body>
  92. <ul class="nav nav-tabs">
  93. <li><a href="${ctx}/new/user/agency/clubSales">机构-协销列表</a></li>
  94. <li><a href="${ctx}/new/user/agency/list">机构基本资料列表</a></li>
  95. <li><a href="${ctx}/new/user/agency/statisticsList">机构分析统计列表</a></li>
  96. <li class="active"><a href="${ctx}/new/user/agency/cmSpClubTrackList">新分配机构跟踪管理</a></li>
  97. <li><a href="${ctx}/new/user/cmSp/cmSpLivelyClubList/">机构活跃分析</a></li>
  98. <li><a href="${ctx}/user/clubTemporary/">未确认机构</a></li>
  99. <li><a href="${ctx}/user/cmOperational/">操作日志</a></li>
  100. </ul>
  101. <ul class="breadcrumb livelyProportion">
  102. <li>
  103. <div>
  104. <img src="/static/images/left.png" style="width: 50px" border="none" onclick="checkProviderTime(1)">
  105. <span><fmt:formatDate value="${Date(newCmClub.providerTime.getTime()- 24 * 60 * 60 * 1000)}"
  106. pattern="yyyy年M月dd日 "></fmt:formatDate></span>
  107. </div>
  108. </li>
  109. <li>
  110. <div style="font-size: 40px;">
  111. <fmt:formatDate value="${newCmClub.providerTime}"
  112. pattern="yyyy年M月dd日 "></fmt:formatDate>
  113. <span style="font-size: 20px;color:#0bbbee;position: relative;bottom: 5px" id="conlog"></span>
  114. </div>
  115. </li>
  116. <li>
  117. <div>
  118. <span><fmt:formatDate value="${Date(newCmClub.providerTime.getTime()+ 24 * 60 * 60 * 1000)}"
  119. pattern="yyyy年M月dd日 "></fmt:formatDate></span>
  120. <img src="/static/images/right.png" border="none" style="width: 50px" onclick="checkProviderTime(0)">
  121. </div>
  122. </li>
  123. </ul>
  124. <form:form id="searchForm" modelAttribute="newCmClub" action="${ctx}/new/user/agency/cmSpClubTrackList/" method="post"
  125. class="breadcrumb form-search">
  126. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  127. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  128. <input id="providerTime" name="providerTime" type="hidden" value="<fmt:formatDate value="${newCmClub.providerTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
  129. <div class="flex-wrap">
  130. <div class="item">
  131. <label>机构ID:</label>
  132. <form:input path="clubID" onkeyup="onlynum(this)" htmlEscape="false"
  133. maxlength="50" class="input-medium"/>
  134. </div>
  135. <div class="item">
  136. <label>机构名称:</label>
  137. <form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/>
  138. </div>
  139. <div class="item">
  140. <label>联系人:</label>
  141. <form:input path="linkMan" htmlEscape="false" maxlength="50" class="input-medium"/>
  142. </div>
  143. <div class="item">
  144. <label>手机号:</label>
  145. <form:input path="bindMobile" htmlEscape="false" maxlength="50" class="input-medium"/>
  146. </div>
  147. <div class="item">
  148. <label>协销:</label>
  149. <form:select path="spID" class="input-medium">
  150. <form:option value="" label="全部"/>
  151. <form:options items="${spNameList}" itemLabel="name" itemValue="serviceProviderID" htmlEscape="false"/>
  152. </form:select>
  153. </div>
  154. <div class="item">
  155. <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  156. </div>
  157. </div>
  158. </form:form>
  159. <sys:message content="${message}"/>
  160. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  161. <thead>
  162. <tr>
  163. <th>机构ID</th>
  164. <th>机构名称</th>
  165. <th>协销</th>
  166. <th>分配时间</th>
  167. <th>联系人</th>
  168. <th>手机号</th>
  169. <th>机构级别</th>
  170. <th>状态</th>
  171. <th>注册时间</th>
  172. <th>上次登录时间</th>
  173. <th>操作</th>
  174. </tr>
  175. </thead>
  176. <tbody>
  177. <c:forEach items="${page.list}" var="newCmClubList">
  178. <tr>
  179. <td>${newCmClubList.clubID}</td>
  180. <td>
  181. <a href="${ctx}/new/user/agency/clubPortrait?clubID=${newCmClubList.clubID}&clubName=${newCmClubList.name}&dateType=0&type=4">${newCmClubList.name}</a>
  182. </td>
  183. <td>
  184. ${newCmClubList.spName}
  185. </td>
  186. <td><fmt:formatDate value="${newCmClubList.providerTime}"
  187. pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
  188. <td>${newCmClubList.userName}</td>
  189. <td>${newCmClubList.bindMobile}</td>
  190. <td>
  191. <c:if test="${newCmClubList.userIdentity eq 4}">
  192. 个人机构
  193. <c:if test="${newCmClubList.svipUserFlag eq 1}">
  194. <font color="red">(超级会员)</font>
  195. </c:if>
  196. <c:if test="${newCmClubList.svipUserFlag ne 1}">
  197. <font color="black">(普通会员)</font>
  198. </c:if>
  199. </c:if>
  200. <c:if test="${newCmClubList.userIdentity eq 2}">
  201. 资质机构
  202. <c:if test="${newCmClubList.svipUserFlag eq 1}">
  203. <font color="red">(超级会员)</font>
  204. </c:if>
  205. <c:if test="${empty newCmClubList.medicalPracticeLicenseImg and newCmClubList.svipUserFlag ne 1}">
  206. <font color="red">(高级会员)</font>
  207. </c:if>
  208. <c:if test="${!empty newCmClubList.medicalPracticeLicenseImg and newCmClubList.svipUserFlag ne 1}">
  209. <font color="red">(医美会员)</font>
  210. </c:if>
  211. </c:if>
  212. </td>
  213. <td>
  214. <c:choose>
  215. <c:when test="${newCmClubList.status eq 90}">
  216. <font color="green">已上线</font>
  217. </c:when>
  218. <c:when test="${newCmClubList.status eq 91}">
  219. <font color="red">已下线</font>
  220. </c:when>
  221. <c:when test="${newCmClubList.status eq 92}">
  222. <a href="JavaScript:;" onclick="return alertx('不通过原因:${newCmClubList.auditNote}')"
  223. style="text-decoration:underline;"><font color="red">审核未通过</font></a>
  224. </c:when>
  225. <c:when test="${newCmClubList.status eq 93}">
  226. <font color="#BF826C">已确认</font>
  227. </c:when>
  228. <c:when test="${newCmClubList.status eq 94}">
  229. <font color="red">已冻结</font>
  230. </c:when>
  231. <c:otherwise>
  232. ${fns:getDictLabel(newCmClubList.status, 'club_status', newCmClubList.status)}
  233. </c:otherwise>
  234. </c:choose>
  235. </td>
  236. <td>
  237. <fmt:formatDate value="${newCmClubList.registerTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
  238. </td>
  239. <td>
  240. <fmt:formatDate value="${newCmClubList.loginTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
  241. </td>
  242. <td>
  243. <a href="${ctx}/new/user/agency/regist?clubId=${newCmClubList.clubID}&clubName=${newCmClubList.name}">咨询记录</a>
  244. <a href="${ctx}/new/user/agency/spLogs?clubID=${newCmClubList.clubID}">协销更换记录</a>
  245. </td>
  246. </tr>
  247. </c:forEach>
  248. </tbody>
  249. </table>
  250. <div class="pagination">${page}</div>
  251. <script>
  252. </script>
  253. </body>
  254. </html>