cmAgencyStatisticsList.jsp 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  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/">机构基本资料列表</a></li>
  58. <li class="active"><a href="${ctx}/new/user/agency/statisticsList">机构分析统计列表</a></li>
  59. <li><a href="${ctx}/new/user/agency/cmSpClubTrackList">新分配机构跟踪管理</a></li>
  60. <li><a href="${ctx}/user/clubTemporary/">未确认机构</a></li>
  61. <li><a href="${ctx}/user/cmOperational/">操作日志</a></li>
  62. </ul>
  63. <form:form id="searchForm" modelAttribute="statistics" action="${ctx}/new/user/agency/statisticsList" method="post"
  64. class="breadcrumb form-search">
  65. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  66. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  67. <input id="payTotalMonthType" name="payTotalMonthType" type="hidden" value="${statistics.payTotalMonthType}"/>
  68. <input id="orderCountMonthType" name="orderCountMonthType" type="hidden" value="${statistics.orderCountMonthType}"/>
  69. <input id="payTotalYearType" name="payTotalYearType" type="hidden" value="${statistics.payTotalYearType}"/>
  70. <input id="orderCountYearType" name="orderCountYearType" type="hidden" value="${statistics.orderCountYearType}"/>
  71. <input id="payTotalType" name="payTotalType" type="hidden" value="${statistics.payTotalType}"/>
  72. <div class="flex-wrap">
  73. <div id="items" class="flex-wrap">
  74. <div class="item">
  75. <label>注册时间:</label>
  76. <form:input path="registerStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${registerStartTime}"
  77. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  78. -
  79. <form:input path="registerEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${registerEndTime}"
  80. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  81. </div>
  82. <div class="item">
  83. <label>最近下单时间:</label>
  84. <form:input path="searchStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${searchStartTime}"
  85. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  86. -
  87. <form:input path="searchEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${searchEndTime}"
  88. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  89. </div>
  90. <label class="control-label">机构类型:</label>
  91. <form:select path="customerValue" class="input-medium">
  92. <form:option value="" label="请选择"/>
  93. <form:option value="1" label="医美"/>
  94. <form:option value="2" label="生美"/>
  95. <form:option value="3" label="项目公司"/>
  96. <form:option value="4" label="个人"/>
  97. <form:option value="0" label="其他"/>
  98. </form:select>
  99. <div class="item">
  100. <label>机构级别:</label>
  101. <form:select path="searchUserIdentity" class="input-medium">
  102. <form:option value="" label="请选择"/>
  103. <form:option value="4" label="个人机构"/>
  104. <form:option value="2" label="资质机构"/>
  105. <form:option value="8" label="超级会员"/>
  106. </form:select>
  107. </div>
  108. <div class="item">
  109. <label> 状态:</label>
  110. <form:select path="searchStatus" class="input-medium">
  111. <form:option value="" label="请选择"/>
  112. <form:options items="${fns:getDictList('club_status')}" itemLabel="label" itemValue="value"
  113. htmlEscape="false"/>
  114. </form:select>
  115. </div>
  116. <label class="control-label">联系人身份:</label>
  117. <form:select path="linkManIdentity" class="input-medium">
  118. <form:option value="" label="请选择"/>
  119. <form:option value="1" label="老板"/>
  120. <form:option value="2" label="采购"/>
  121. <form:option value="3" label="运营"/>
  122. <form:option value="4" label="其他"/>
  123. </form:select>
  124. <label class="control-label">资料完整度:</label>
  125. <form:select path="clubDataIntegrity" class="input-medium">
  126. <form:option value="" label="请选择"/>
  127. <form:option value="1" label="20%至70%"/>
  128. <form:option value="2" label="70%以上"/>
  129. </form:select>
  130. </div><br/><br/>
  131. <div class="viewDiv">
  132. <input id="btnSubmit" class="btn autoView btn-primary" type="button" value="查询"/>
  133. <input id="export" class="btn autoView btn-primary" type="button" value="导出"/>
  134. <%-- <a href="${ctx}/new/user/agency/club/export?" class="btn autoView btn-primary" value="导出"></a>--%>
  135. <%-- <a id="export" href="${ctx}/new/user/agency/club/export?" class="btn autoView btn-primary" onclick="reExport()">导出</a>--%>
  136. </div><br/>
  137. <div class="flex-wrap">
  138. <label class="control-label">近一个月购买额:</label>
  139. <form:select id="payTotalMonth" path="payTotalMonth" class="input-medium">
  140. <form:option value="" label="请选择"/>
  141. <form:option value="1" label="小于1万"/>
  142. <form:option value="2" label="1万至10万"/>
  143. <form:option value="3" label="10万至100万"/>
  144. <form:option value="4" label="大于100万"/>
  145. </form:select>
  146. <label class="control-label">近一年购买额:</label>
  147. <form:select id ="payTotalYear" path="payTotalYear" class="input-medium">
  148. <form:option value="" label="请选择"/>
  149. <form:option value="1" label="小于1万"/>
  150. <form:option value="2" label="1万至10万"/>
  151. <form:option value="3" label="10万至100万"/>
  152. <form:option value="4" label="大于100万"/>
  153. </form:select>
  154. <div class="item">
  155. <label>自定义统计时间:</label>
  156. <form:input id="customStartTime" path="customStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${customStartTime}"
  157. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  158. -
  159. <form:input id="customEndTime" path="customEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${customEndTime}"
  160. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  161. </div>
  162. <label class="control-label">总购买额:</label>
  163. <form:select id="payTotal" path="payTotal" class="input-medium">
  164. <form:option value="" label="请选择"/>
  165. <form:option value="1" label="小于1万"/>
  166. <form:option value="2" label="1万至10万"/>
  167. <form:option value="3" label="10万至100万"/>
  168. <form:option value="4" label="大于100万"/>
  169. </form:select>
  170. </div>
  171. </div>
  172. </form:form>
  173. <sys:message content="${message}"/>
  174. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  175. <thead>
  176. <tr>
  177. <th>机构ID</th>
  178. <th>机构名称</th>
  179. <th>联系人</th>
  180. <th>联系人身份</th>
  181. <th>手机号</th>
  182. <th>协销人员</th>
  183. <th>状态</th>
  184. <th>机构类型</th>
  185. <th>机构级别</th>
  186. <th>资料完整度</th>
  187. <th>注册时间</th>
  188. <th class="th-sort">
  189. 近一个月订单数
  190. <div class="sort sort-button" id="sort-button1">
  191. <a href="${ctx}/new/user/agency/statisticsList?orderCountMonthType=0" class="icon icon-up"></a>
  192. <a href="${ctx}/new/user/agency/statisticsList?orderCountMonthType=1" class="icon icon-down"></a>
  193. </div>
  194. </th>
  195. <th class="th-sort">
  196. 近一年订单数
  197. <div class="sort sort-button" id="sort-button2">
  198. <a href="${ctx}/new/user/agency/statisticsList?orderCountYearType=0" class="icon icon-up"></a>
  199. <a href="${ctx}/new/user/agency/statisticsList?orderCountYearType=1" class="icon icon-down"></a>
  200. </div>
  201. </th>
  202. <th class="th-sort">
  203. 近一个月购买额
  204. <div class="sort sort-button" id="sort-button3">
  205. <a href="${ctx}/new/user/agency/statisticsList?payTotalMonthType=0" class="icon icon-up"></a>
  206. <a href="${ctx}/new/user/agency/statisticsList?payTotalMonthType=1" class="icon icon-down"></a>
  207. </div>
  208. </th>
  209. <th class="th-sort">
  210. 近一年购买额
  211. <div class="sort sort-button" id="sort-button4">
  212. <a href="${ctx}/new/user/agency/statisticsList?payTotalYearType=0" class="icon icon-up"></a>
  213. <a href="${ctx}/new/user/agency/statisticsList?payTotalYearType=1" class="icon icon-down"></a>
  214. </div>
  215. </th>
  216. <th class="th-sort">
  217. 总购买额
  218. <div class="sort sort-button" id="sort-button5">
  219. <a href="${ctx}/new/user/agency/statisticsList?payTotalType=0" class="icon icon-up"></a>
  220. <a href="${ctx}/new/user/agency/statisticsList?payTotalType=1" class="icon icon-down"></a>
  221. </div>
  222. </th>
  223. <th>最常搜索词</th>
  224. <th>最近下单时间</th>
  225. <th>操作</th>
  226. </tr>
  227. </thead>
  228. <tbody>
  229. <c:forEach items="${page.list}" var="clubList">
  230. <tr>
  231. <td>${clubList.clubID}</td>
  232. <td>
  233. ${clubList.name}
  234. </td>
  235. <td>
  236. ${clubList.linkMan}
  237. </td>
  238. <td>
  239. <c:if test="${clubList.linkManStatus ne null}">
  240. ${clubList.linkManStatus}
  241. </c:if>
  242. <c:if test="${clubList.linkManStatus eq null}">
  243. ---
  244. </c:if>
  245. </td>
  246. <td>
  247. ${clubList.contractMobile}
  248. </td>
  249. <td>
  250. ${clubList.spName}
  251. </td>
  252. <td>${clubList.clubStatus}</td>
  253. <td>
  254. <c:if test="${clubList.firstClubType != null || clubList.firstClubType != ''}">
  255. ${clubList.firstClubType}
  256. </c:if>
  257. <c:if test="${clubList.classify ne null}">
  258. - ${clubList.classify}
  259. </c:if>
  260. <c:if test="${clubList.firstClubType == null and clubList.firstClubType == '' and clubList.classify == null and clubList.classify == ''}">
  261. ---
  262. </c:if>
  263. </td>
  264. <td>
  265. <c:if test="${clubList.userIdentity eq 4}">
  266. 个人机构
  267. </c:if>
  268. <c:if test="${clubList.userIdentity eq 2}">
  269. 资质机构
  270. </c:if>
  271. <c:if test="${clubList.svipUserFlag eq 1}">
  272. <font color="red">(超级会员)</font>
  273. </c:if>
  274. <c:if test="${clubList.userIdentity eq 2 and clubList.svipUserFlag eq 0}">
  275. <font color="red">(普通会员)</font>
  276. </c:if>
  277. </td>
  278. <td>${clubList.clubDataIntegrity}</td>
  279. <td>
  280. <c:if test="${clubList.addTime != null || clubList.addTime != '' || clubList.addTime ne null}">
  281. ${clubList.addTime}
  282. <%--<fmt:formatDate value="${clubList.addTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>--%>
  283. </c:if>
  284. <c:if test="${clubList.addTime == null || clubList.addTime == '' || clubList.addTime eq null}">
  285. ---
  286. </c:if>
  287. </td>
  288. <td class="td-none">${clubList.orderCountMonth}</td>
  289. <td class="td-none">${clubList.orderCountYear}</td>
  290. <td class="td-none">${clubList.payTotalMonth}</td>
  291. <td class="td-none">${clubList.payTotalYear}</td>
  292. <td class="td-none">${clubList.payTotal}</td>
  293. <td class="td-none">
  294. <c:if test="${clubList.pageLabel ne null}">
  295. ${clubList.pageLabel}
  296. </c:if>
  297. <c:if test="${clubList.pageLabel eq null}">
  298. ---
  299. </c:if>
  300. </td>
  301. <td class="td-none">${clubList.lastOrderTime}</td>
  302. <td>
  303. <a href="${ctx}/new/user/agency/clubPortrait?clubID=${clubList.clubID}&clubName=${clubList.name}&dateType=0&type=4">查看详情</a>
  304. </td>
  305. </tr>
  306. </c:forEach>
  307. </tbody>
  308. </table>
  309. <div class="pagination">${page}</div>
  310. <script type="text/javascript">
  311. function page(n,s) {
  312. $('#pageNo').val(n);
  313. $('#pageSize').val(s);
  314. $('#searchForm').submit();
  315. return false;
  316. }
  317. $(function () {
  318. const typeMap = {
  319. 1: {
  320. val: $("#orderCountMonthType").val() ? $("#orderCountMonthType").val() * 1 : null,
  321. dom: $('#sort-button1')
  322. },
  323. 2: {
  324. val: $("#orderCountYearType").val() ? $("#orderCountYearType").val() * 1 : null,
  325. dom: $('#sort-button2')
  326. },
  327. 3: {
  328. val: $("#payTotalMonthType").val() ? $("#payTotalMonthType").val() * 1 : null,
  329. dom: $('#sort-button3')
  330. },
  331. 4: {
  332. val: $("#payTotalYearType").val() ? $("#payTotalYearType").val() * 1 : null,
  333. dom: $('#sort-button4')
  334. },
  335. 5: {
  336. val: $("#payTotalType").val() ? $("#payTotalType").val() * 1 : null,
  337. dom: $('#sort-button5')
  338. }
  339. }
  340. const setActiveFn = function (type,num){
  341. if( type === 0){
  342. typeMap[num].dom.find('.icon-up').addClass('active');
  343. }else{
  344. typeMap[num].dom.find('.icon-down').addClass('active');
  345. }
  346. }
  347. // 每月订单数 1 降序 0 升序
  348. if(typeMap[1].val || typeMap[1].val === 0) {
  349. setActiveFn(typeMap[1].val,1)
  350. }
  351. // 每年订单总数 1 降序 0 升序
  352. if(typeMap[2].val || typeMap[2].val === 0) {
  353. setActiveFn(typeMap[2].val,2)
  354. }
  355. // 每月总额 1 降序 0 升序
  356. if(typeMap[3].val || typeMap[3].val === 0) {
  357. setActiveFn(typeMap[3].val,3)
  358. }
  359. // 每年总额 1 降序 0 升序
  360. if(typeMap[4].val || typeMap[4].val === 0) {
  361. setActiveFn(typeMap[4].val,4)
  362. }
  363. // 总金额 1 降序 0 升序
  364. if(typeMap[5].val || typeMap[5].val === 0) {
  365. setActiveFn(typeMap[5].val,5)
  366. }
  367. $("#export").click(function () {
  368. var formData = $('#searchForm').serialize()
  369. window.location.href= "${ctx}/new/user/agency/club/export?"+formData
  370. })
  371. $('#btnSubmit').click(function () {
  372. const payTotalMonth = $('#payTotalMonth').val();
  373. const payTotalYear = $('#payTotalYear').val();
  374. const customStartTime = $('#customStartTime').val();
  375. const customEndTime = $('#customEndTime').val();
  376. const payTotal = $('#payTotal').val();
  377. console.log(customStartTime+'----'+customEndTime);
  378. if ((customStartTime.length !== 0 || customStartTime !== '') && (customEndTime.length !== 0 || customEndTime !== '')) {
  379. if (payTotalMonth.length !== 0 || payTotalMonth !== '') {
  380. $.jBox.confirm("自定义统计时间不能与近一个月/近一年购买额联动查询", "提示");
  381. return;
  382. }
  383. if (payTotalYear.length !== 0 || payTotalYear !== '') {
  384. $.jBox.confirm("自定义统计时间不能与近一个月/近一年购买额联动查询", "提示");
  385. return;
  386. }
  387. if (payTotal.length === 0 || payTotal === '') {
  388. $.jBox.confirm("自定义统计时间需要与总购买额一起联动查询", "提示");
  389. return;
  390. }
  391. }
  392. $('#searchForm').submit();
  393. })
  394. })
  395. /*function reExport() {
  396. var formData = $('#searchForm').serialize()
  397. this.href()+formData
  398. }*/
  399. </script>
  400. </body>
  401. </html>