activeClubInfoList.jsp 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  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. .reg-row .new-tag.active{border:1px solid #de5801}
  9. .reg-row{margin-bottom:20px}
  10. .reg-row .reg-label{display:inline-block;width:120px;text-align:right;font-size:13px}
  11. .the-oradio{display:inline-block;vertical-align:top}
  12. .the-oradio div{width:85px;display:inline-block;font-size:12px;color:#666}
  13. .the-oradio div input[type="radio"]{width:17px;height:17px;margin-right:5px;vertical-align:text-top}
  14. .med-option{display:block;margin:10px 0 0 125px}
  15. .reg-row .business-license{position:relative;display:inline-block;width:166px;height:123px;border-radius:6px;margin:18px 0 0 125px}
  16. #medicalPracticeLicenseImgPreview{display:inline-block}
  17. .qualification{margin-top:20px}
  18. .reg-row .tags-area{display:inline-block;width:420px}
  19. .reg-row .new-tag{display:inline-block;width:70px;border:1px solid #e5e5e5;border-radius:6px;padding:5px;margin-right:14px;margin-bottom:14px;text-align:center;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
  20. .reg-row .tags-operate{margin-left:125px}
  21. .reg-row .reg-input{width:336px;height:32px;padding:0 8px;margin-right:20px;border:1px solid #dcdcdc;border-radius:6px}
  22. .reg-row .tags-operate .tag-input{width:159px;margin-right:13px;display:none;vertical-align:top}
  23. .reg-row .tags-operate .tag-add{line-height:20px;vertical-align:middle;margin-bottom:0;vertical-align:top}
  24. .reg-row .tags-area{vertical-align:top}
  25. .tag-add{display:none}
  26. .table th{text-align:center}
  27. .table td{text-align:center}
  28. .modal{width:700px;margin-left:-350px}
  29. #myModal{display:none}
  30. .modal-body{max-height:300px !important}
  31. .modal.fade.in{top:0 !important}
  32. #btnSubmit{margin-left:20px}
  33. .flex-wrap .item{margin-right:20px}
  34. #auditBox{padding:20px;line-height:30px}
  35. #auditBox .bd-row{display:flex;margin-bottom:15px}
  36. #auditBox .bd-row > span{display:inline-block;width:60px}
  37. #auditBox .auditCheckBox{width:250px}
  38. #auditBox .auditCheckBox label{margin:0 5px 5px 0}
  39. #auditBox .auditCheckBox input{display:none}
  40. #auditBox .auditCheckBox input + span{display:inline-block;line-height:24px;padding:0 12px;border:1px solid #666;border-radius:5px}
  41. #auditBox .auditCheckBox input:checked + span{background-color:#E6633A}
  42. #alertModal{width:300px;height:200px;border:1px solid #ebebeb;border-radius:10px;position:fixed;top:0;bottom:0;left:0;right:0;margin:auto;background:#FFFFFF;display:none}
  43. #alertModal .title{height:50px;line-height:50px;font-size:14px;font-weight:bold;text-align:center;position:relative;border-bottom:1px solid #EBEBEB}
  44. #alertModal .close{width:50px;height:50px;display:block;position:absolute;right:0;top:0;line-height:50px;color:#000;font-weight:bold;text-align:center;font-style:normal;font-size:18px}
  45. #alertModal .alert-content{width:260px;height:60px;padding:20px}
  46. #alertModal .alertModal-btn{width:260px;height:49px;padding:0 20px;border-top:1px solid #EBEBEB}
  47. #alertModal .alertModal-btn button{float:right;margin:5px}
  48. .acticer_span{display: inline-block;width: 14px;height: 14px;border-radius: 50%;box-sizing: border-box;border: 1px solid #999999;text-align: center;color: #333333;font-size: 12px;line-height: 14px;float: none;margin-left: 3px;}
  49. /*#items{border-bottom: #0d0d0d 1px dashed}*/
  50. .viewDiv{position: relative; margin: 0 auto;margin-top: 10px; width: 100%; height: 1px; background-color: #d4d4d4; text-align: center; font-size: 16px; color: rgba(101, 101, 101, 1);}
  51. .autoView{position: absolute; left: 90%; background-color: #ffffff;margin-left: 100px; padding: 0 15px; transform: translateX(-30%) translateY(-30%);}
  52. </style>
  53. <link href="${ctxStatic}/modules/cmAgencyStatisticsList/cmAgencyStatisticsList.css" rel="stylesheet">
  54. </head>
  55. <body>
  56. <ul class="nav nav-tabs">
  57. <li><a href="${ctx}/new/user/agency/clubSales">机构-协销列表</a></li>
  58. <li><a href="${ctx}/new/user/agency/">机构基本资料列表</a></li>
  59. <li class="active"><a href="${ctx}/new/user/agency/statisticsList">机构分析统计列表</a></li>
  60. <li><a href="${ctx}/new/user/agency/cmSpClubTrackList">新分配机构跟踪管理</a></li>
  61. <li><a href="${ctx}/new/user/cmSp/cmSpLivelyClubList/">机构活跃分析</a></li>
  62. <li><a href="${ctx}/user/clubTemporary/">未确认机构</a></li>
  63. <li><a href="${ctx}/user/cmOperational/">操作日志</a></li>
  64. </ul>
  65. <form:form id="searchForm" modelAttribute="statistics" action="${ctx}/new/user/agency/statisticsList" method="post"
  66. class="breadcrumb form-search">
  67. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  68. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  69. <input id="payTotalMonthType" name="payTotalMonthType" type="hidden" value="${statistics.payTotalMonthType}"/>
  70. <input id="orderCountMonthType" name="orderCountMonthType" type="hidden" value="${statistics.orderCountMonthType}"/>
  71. <input id="payTotalYearType" name="payTotalYearType" type="hidden" value="${statistics.payTotalYearType}"/>
  72. <input id="orderCountYearType" name="orderCountYearType" type="hidden" value="${statistics.orderCountYearType}"/>
  73. <input id="payTotalType" name="payTotalType" type="hidden" value="${statistics.payTotalType}"/>
  74. <div class="flex-wrap">
  75. <div id="items" class="flex-wrap">
  76. <div class="item">
  77. <label>注册时间:</label>
  78. <form:input path="registerStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${registerStartTime}"
  79. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  80. -
  81. <form:input path="registerEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${registerEndTime}"
  82. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  83. </div>
  84. <div class="item">
  85. <label>最近下单时间:</label>
  86. <form:input path="searchStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${searchStartTime}"
  87. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  88. -
  89. <form:input path="searchEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${searchEndTime}"
  90. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  91. </div>
  92. <label class="control-label">机构类型:</label>
  93. <form:select path="customerValue" class="input-medium">
  94. <form:option value="" label="请选择"/>
  95. <form:option value="1" label="医美"/>
  96. <form:option value="2" label="生美"/>
  97. <form:option value="3" label="项目公司"/>
  98. <form:option value="4" label="个人"/>
  99. <form:option value="0" label="其他"/>
  100. </form:select>
  101. <div class="item">
  102. <label>机构级别:</label>
  103. <form:select path="searchUserIdentity" class="input-medium">
  104. <form:option value="" label="请选择"/>
  105. <form:option value="4" label="个人机构"/>
  106. <form:option value="2" label="资质机构"/>
  107. <form:option value="8" label="超级会员"/>
  108. </form:select>
  109. </div>
  110. <div class="item">
  111. <label> 状态:</label>
  112. <form:select path="searchStatus" class="input-medium">
  113. <form:option value="" label="请选择"/>
  114. <form:options items="${fns:getDictList('club_status')}" itemLabel="label" itemValue="value"
  115. htmlEscape="false"/>
  116. </form:select>
  117. </div>
  118. <label class="control-label">联系人身份:</label>
  119. <form:select path="linkManIdentity" class="input-medium">
  120. <form:option value="" label="请选择"/>
  121. <form:option value="1" label="老板"/>
  122. <form:option value="2" label="采购"/>
  123. <form:option value="3" label="运营"/>
  124. <form:option value="4" label="其他"/>
  125. </form:select>
  126. <div class="viewDiv">
  127. <input id="btnSubmit" class="btn autoView btn-primary" type="button" value="查询"/>
  128. <input id="export" class="btn autoView btn-primary" type="button" value="导出"/>
  129. </div><br/>
  130. <div class="flex-wrap">
  131. <label class="control-label">近一个月购买额:</label>
  132. <form:select id="payTotalMonth" path="payTotalMonth" class="input-medium">
  133. <form:option value="" label="请选择"/>
  134. <form:option value="1" label="小于1万"/>
  135. <form:option value="2" label="1万至10万"/>
  136. <form:option value="3" label="10万至100万"/>
  137. <form:option value="4" label="大于100万"/>
  138. </form:select>
  139. <label class="control-label">近一年购买额:</label>
  140. <form:select id ="payTotalYear" path="payTotalYear" class="input-medium">
  141. <form:option value="" label="请选择"/>
  142. <form:option value="1" label="小于1万"/>
  143. <form:option value="2" label="1万至10万"/>
  144. <form:option value="3" label="10万至100万"/>
  145. <form:option value="4" label="大于100万"/>
  146. </form:select>
  147. <div class="item">
  148. <label>自定义统计时间:</label>
  149. <form:input id="customStartTime" path="customStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${customStartTime}"
  150. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  151. -
  152. <form:input id="customEndTime" path="customEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${customEndTime}"
  153. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  154. </div>
  155. <label class="control-label">总购买额:</label>
  156. <form:select id="payTotal" path="payTotal" class="input-medium">
  157. <form:option value="" label="请选择"/>
  158. <form:option value="1" label="小于1万"/>
  159. <form:option value="2" label="1万至10万"/>
  160. <form:option value="3" label="10万至100万"/>
  161. <form:option value="4" label="大于100万"/>
  162. </form:select>
  163. </div>
  164. </div>
  165. </form:form>
  166. <sys:message content="${message}"/>
  167. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  168. <thead>
  169. <tr>
  170. <th>机构ID</th>
  171. <th>机构名称</th>
  172. <th>联系人</th>
  173. <th>联系人身份</th>
  174. <th>手机号</th>
  175. <th>协销人员</th>
  176. <th>状态</th>
  177. <th>机构类型</th>
  178. <th>机构级别</th>
  179. <th>注册时间</th>
  180. <th class="th-sort">
  181. 近一个月订单数
  182. <div class="sort sort-button" id="sort-button1">
  183. <a href="${ctx}/new/user/agency/statisticsList?orderByType=0" class="icon icon-up"></a>
  184. <a href="${ctx}/new/user/agency/statisticsList?orderByType=1" class="icon icon-down"></a>
  185. </div>
  186. </th>
  187. <th>最常搜索词</th>
  188. <th>最近下单时间</th>
  189. <th>操作</th>
  190. </tr>
  191. </thead>
  192. <tbody>
  193. <c:forEach items="${page.list}" var="clubList">
  194. <tr>
  195. <td>${clubList.clubID}</td>
  196. <td>
  197. ${clubList.name}
  198. </td>
  199. <td>
  200. ${clubList.linkMan}
  201. </td>
  202. <td>
  203. <c:if test="${clubList.linkManStatus ne null}">
  204. ${clubList.linkManStatus}
  205. </c:if>
  206. <c:if test="${clubList.linkManStatus eq null}">
  207. ---
  208. </c:if>
  209. </td>
  210. <td>
  211. ${clubList.contractMobile}
  212. </td>
  213. <td>
  214. ${clubList.spName}
  215. </td>
  216. <td>${clubList.clubStatus}</td>
  217. <td>
  218. <c:if test="${clubList.firstClubType != null || clubList.firstClubType != ''}">
  219. ${clubList.firstClubType}
  220. </c:if>
  221. <c:if test="${clubList.classify ne null}">
  222. - ${clubList.classify}
  223. </c:if>
  224. <c:if test="${clubList.firstClubType == null and clubList.firstClubType == '' and clubList.classify == null and clubList.classify == ''}">
  225. ---
  226. </c:if>
  227. </td>
  228. <td>
  229. <c:if test="${clubList.userIdentity eq 4}">
  230. 个人机构
  231. </c:if>
  232. <c:if test="${clubList.userIdentity eq 2}">
  233. 资质机构
  234. </c:if>
  235. <c:if test="${clubList.svipUserFlag eq 1}">
  236. <font color="red">(超级会员)</font>
  237. </c:if>
  238. <c:if test="${clubList.userIdentity eq 2 and clubList.svipUserFlag eq 0}">
  239. <font color="red">(普通会员)</font>
  240. </c:if>
  241. </td>
  242. <td>
  243. <c:if test="${clubList.addTime != null || clubList.addTime != '' || clubList.addTime ne null}">
  244. ${clubList.addTime}
  245. <%--<fmt:formatDate value="${clubList.addTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>--%>
  246. </c:if>
  247. <c:if test="${clubList.addTime == null || clubList.addTime == '' || clubList.addTime eq null}">
  248. ---
  249. </c:if>
  250. </td>
  251. <td class="td-none">${clubList.orderCountMonth}</td>
  252. <td class="td-none">${clubList.orderCountYear}</td>
  253. <td class="td-none">${clubList.payTotalMonth}</td>
  254. <td class="td-none">${clubList.payTotalYear}</td>
  255. <td class="td-none">${clubList.payTotal}</td>
  256. <td class="td-none">
  257. <c:if test="${clubList.pageLabel ne null}">
  258. ${clubList.pageLabel}
  259. </c:if>
  260. <c:if test="${clubList.pageLabel eq null}">
  261. ---
  262. </c:if>
  263. </td>
  264. <td class="td-none">${clubList.lastOrderTime}</td>
  265. <td>
  266. <a href="${ctx}/new/user/agency/clubPortrait?clubID=${clubList.clubID}&clubName=${clubList.name}&dateType=0&type=4">查看详情</a>
  267. </td>
  268. </tr>
  269. </c:forEach>
  270. </tbody>
  271. </table>
  272. <div class="pagination">${page}</div>
  273. <script type="text/javascript">
  274. function page(n,s) {
  275. $('#pageNo').val(n);
  276. $('#pageSize').val(s);
  277. $('#searchForm').submit();
  278. return false;
  279. }
  280. $(function () {
  281. const typeMap = {
  282. 1: {
  283. val: $("#orderCountMonthType").val() ? $("#orderCountMonthType").val() * 1 : null,
  284. dom: $('#sort-button1')
  285. },
  286. 2: {
  287. val: $("#orderCountYearType").val() ? $("#orderCountYearType").val() * 1 : null,
  288. dom: $('#sort-button2')
  289. }
  290. }
  291. const setActiveFn = function (type,num){
  292. if( type === 0){
  293. typeMap[num].dom.find('.icon-up').addClass('active');
  294. }else{
  295. typeMap[num].dom.find('.icon-down').addClass('active');
  296. }
  297. }
  298. // 最近访问时间 1 降序 2 升序
  299. if(typeMap[1].val || typeMap[1].val === 0) {
  300. setActiveFn(typeMap[1].val,1)
  301. }
  302. // 最近访问时间 1 降序 2 升序
  303. if(typeMap[2].val || typeMap[2].val === 0) {
  304. setActiveFn(typeMap[2].val,2)
  305. }
  306. $("#export").click(function () {
  307. var formData = $('#searchForm').serialize()
  308. window.location.href= "${ctx}/new/user/agency/club/export?"+formData
  309. })
  310. $('#btnSubmit').click(function () {
  311. const payTotalMonth = $('#payTotalMonth').val();
  312. const payTotalYear = $('#payTotalYear').val();
  313. const customStartTime = $('#customStartTime').val();
  314. const customEndTime = $('#customEndTime').val();
  315. const payTotal = $('#payTotal').val();
  316. $('#searchForm').submit();
  317. })
  318. })
  319. </script>
  320. </body>
  321. </html>