123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400 |
- <%@ 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">
- .reg-row .new-tag.active{border:1px solid #de5801}
- .reg-row{margin-bottom:20px}
- .reg-row .reg-label{display:inline-block;width:120px;text-align:right;font-size:13px}
- .the-oradio{display:inline-block;vertical-align:top}
- .the-oradio div{width:85px;display:inline-block;font-size:12px;color:#666}
- .the-oradio div input[type="radio"]{width:17px;height:17px;margin-right:5px;vertical-align:text-top}
- .med-option{display:block;margin:10px 0 0 125px}
- .reg-row .business-license{position:relative;display:inline-block;width:166px;height:123px;border-radius:6px;margin:18px 0 0 125px}
- #medicalPracticeLicenseImgPreview{display:inline-block}
- .qualification{margin-top:20px}
- .reg-row .tags-area{display:inline-block;width:420px}
- .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}
- .reg-row .tags-operate{margin-left:125px}
- .reg-row .reg-input{width:336px;height:32px;padding:0 8px;margin-right:20px;border:1px solid #dcdcdc;border-radius:6px}
- .reg-row .tags-operate .tag-input{width:159px;margin-right:13px;display:none;vertical-align:top}
- .reg-row .tags-operate .tag-add{line-height:20px;vertical-align:middle;margin-bottom:0;vertical-align:top}
- .reg-row .tags-area{vertical-align:top}
- .tag-add{display:none}
- .table th{text-align:center}
- .table td{text-align:center}
- .modal{width:700px;margin-left:-350px}
- #myModal{display:none}
- .modal-body{max-height:300px !important}
- .modal.fade.in{top:0 !important}
- #btnSubmit{margin-left:20px}
- .flex-wrap .item{margin-right:20px}
- #auditBox{padding:20px;line-height:30px}
- #auditBox .bd-row{display:flex;margin-bottom:15px}
- #auditBox .bd-row > span{display:inline-block;width:60px}
- #auditBox .auditCheckBox{width:250px}
- #auditBox .auditCheckBox label{margin:0 5px 5px 0}
- #auditBox .auditCheckBox input{display:none}
- #auditBox .auditCheckBox input + span{display:inline-block;line-height:24px;padding:0 12px;border:1px solid #666;border-radius:5px}
- #auditBox .auditCheckBox input:checked + span{background-color:#E6633A}
- #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}
- #alertModal .title{height:50px;line-height:50px;font-size:14px;font-weight:bold;text-align:center;position:relative;border-bottom:1px solid #EBEBEB}
- #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}
- #alertModal .alert-content{width:260px;height:60px;padding:20px}
- #alertModal .alertModal-btn{width:260px;height:49px;padding:0 20px;border-top:1px solid #EBEBEB}
- #alertModal .alertModal-btn button{float:right;margin:5px}
- .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;}
- /*#items{border-bottom: #0d0d0d 1px dashed}*/
- .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);}
- .autoView{position: absolute; left: 90%; background-color: #ffffff;margin-left: 100px; padding: 0 15px; transform: translateX(-30%) translateY(-30%);}
- </style>
- <link href="${ctxStatic}/modules/cmAgencyStatisticsList/cmAgencyStatisticsList.css" rel="stylesheet">
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li><a href="${ctx}/new/user/agency/">机构基本资料列表</a></li>
- <li class="active"><a href="${ctx}/new/user/agency/statisticsList">机构分析统计列表</a></li>
- <li><a href="${ctx}/user/clubTemporary/">未确认机构</a></li>
- <li><a href="${ctx}/user/cmOperational/">操作日志</a></li>
- </ul>
- <form:form id="searchForm" modelAttribute="statistics" action="${ctx}/new/user/agency/statisticsList" 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}"/>
- <input id="payTotalMonthType" name="payTotalMonthType" type="hidden" value="${statistics.payTotalMonthType}"/>
- <input id="orderCountMonthType" name="orderCountMonthType" type="hidden" value="${statistics.orderCountMonthType}"/>
- <input id="payTotalYearType" name="payTotalYearType" type="hidden" value="${statistics.payTotalYearType}"/>
- <input id="orderCountYearType" name="orderCountYearType" type="hidden" value="${statistics.orderCountYearType}"/>
- <input id="payTotalType" name="payTotalType" type="hidden" value="${statistics.payTotalType}"/>
- <div class="flex-wrap">
- <div id="items" class="flex-wrap">
- <div class="item">
- <label>注册时间:</label>
- <form:input path="registerStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${registerStartTime}"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
- -
- <form:input path="registerEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${registerEndTime}"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
- </div>
- <div class="item">
- <label>最近下单时间:</label>
- <form:input path="searchStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${searchStartTime}"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
- -
- <form:input path="searchEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${searchEndTime}"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
- </div>
- <label class="control-label">机构类型:</label>
- <form:select path="customerValue" class="input-medium">
- <form:option value="" label="请选择"/>
- <form:option value="1" label="医美"/>
- <form:option value="2" label="生美"/>
- <form:option value="3" label="项目公司"/>
- <form:option value="4" label="个人"/>
- <form:option value="0" label="其他"/>
- </form:select>
- <div class="item">
- <label>机构级别:</label>
- <form:select path="searchUserIdentity" class="input-medium">
- <form:option value="" label="请选择"/>
- <form:option value="4" label="个人机构"/>
- <form:option value="2" label="资质机构"/>
- <form:option value="8" label="超级会员"/>
- </form:select>
- </div>
- <div class="item">
- <label> 状态:</label>
- <form:select path="searchStatus" class="input-medium">
- <form:option value="" label="请选择"/>
- <form:options items="${fns:getDictList('club_status')}" itemLabel="label" itemValue="value"
- htmlEscape="false"/>
- </form:select>
- </div>
- <label class="control-label">联系人身份:</label>
- <form:select path="linkManIdentity" class="input-medium">
- <form:option value="" label="请选择"/>
- <form:option value="1" label="老板"/>
- <form:option value="2" label="采购"/>
- <form:option value="3" label="运营"/>
- <form:option value="4" label="其他"/>
- </form:select>
- <label class="control-label">资料完整度:</label>
- <form:select path="clubDataIntegrity" class="input-medium">
- <form:option value="" label="请选择"/>
- <form:option value="1" label="20%至70%"/>
- <form:option value="2" label="70%以上"/>
- </form:select>
- </div><br/><br/>
- <div class="viewDiv">
- <input id="btnSubmit" class="btn autoView btn-primary" type="button" value="查询"/>
- <input id="export" class="btn autoView btn-primary" type="button" value="导出"/>
- <%-- <a href="${ctx}/new/user/agency/club/export?" class="btn autoView btn-primary" value="导出"></a>--%>
- <%-- <a id="export" href="${ctx}/new/user/agency/club/export?" class="btn autoView btn-primary" onclick="reExport()">导出</a>--%>
- </div><br/>
- <div class="flex-wrap">
- <label class="control-label">近一个月购买额:</label>
- <form:select id="payTotalMonth" path="payTotalMonth" class="input-medium">
- <form:option value="" label="请选择"/>
- <form:option value="1" label="小于1万"/>
- <form:option value="2" label="1万至10万"/>
- <form:option value="3" label="10万至100万"/>
- <form:option value="4" label="大于100万"/>
- </form:select>
- <label class="control-label">近一年购买额:</label>
- <form:select id ="payTotalYear" path="payTotalYear" class="input-medium">
- <form:option value="" label="请选择"/>
- <form:option value="1" label="小于1万"/>
- <form:option value="2" label="1万至10万"/>
- <form:option value="3" label="10万至100万"/>
- <form:option value="4" label="大于100万"/>
- </form:select>
- <div class="item">
- <label>自定义统计时间:</label>
- <form:input id="customStartTime" path="customStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${customStartTime}"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
- -
- <form:input id="customEndTime" path="customEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${customEndTime}"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
- </div>
- <label class="control-label">总购买额:</label>
- <form:select id="payTotal" path="payTotal" class="input-medium">
- <form:option value="" label="请选择"/>
- <form:option value="1" label="小于1万"/>
- <form:option value="2" label="1万至10万"/>
- <form:option value="3" label="10万至100万"/>
- <form:option value="4" label="大于100万"/>
- </form:select>
- </div>
- </div>
- </form:form>
- <sys:message content="${message}"/>
- <table id="contentTable" class="table table-striped table-bordered table-condensed">
- <thead>
- <tr>
- <th>机构ID</th>
- <th>机构名称</th>
- <th>联系人</th>
- <th>联系人身份</th>
- <th>手机号</th>
- <th>协销人员</th>
- <th>状态</th>
- <th>机构类型</th>
- <th>机构级别</th>
- <th>资料完整度</th>
- <th>注册时间</th>
- <th class="th-sort">
- 近一个月订单数
- <div class="sort sort-button" id="sort-button1">
- <a href="${ctx}/new/user/agency/statisticsList?orderCountMonthType=0" class="icon icon-up"></a>
- <a href="${ctx}/new/user/agency/statisticsList?orderCountMonthType=1" class="icon icon-down"></a>
- </div>
- </th>
- <th class="th-sort">
- 近一年订单数
- <div class="sort sort-button" id="sort-button2">
- <a href="${ctx}/new/user/agency/statisticsList?orderCountYearType=0" class="icon icon-up"></a>
- <a href="${ctx}/new/user/agency/statisticsList?orderCountYearType=1" class="icon icon-down"></a>
- </div>
- </th>
- <th class="th-sort">
- 近一个月购买额
- <div class="sort sort-button" id="sort-button3">
- <a href="${ctx}/new/user/agency/statisticsList?payTotalMonthType=0" class="icon icon-up"></a>
- <a href="${ctx}/new/user/agency/statisticsList?payTotalMonthType=1" class="icon icon-down"></a>
- </div>
- </th>
- <th class="th-sort">
- 近一年购买额
- <div class="sort sort-button" id="sort-button4">
- <a href="${ctx}/new/user/agency/statisticsList?payTotalYearType=0" class="icon icon-up"></a>
- <a href="${ctx}/new/user/agency/statisticsList?payTotalYearType=1" class="icon icon-down"></a>
- </div>
- </th>
- <th class="th-sort">
- 总购买额
- <div class="sort sort-button" id="sort-button5">
- <a href="${ctx}/new/user/agency/statisticsList?payTotalType=0" class="icon icon-up"></a>
- <a href="${ctx}/new/user/agency/statisticsList?payTotalType=1" class="icon icon-down"></a>
- </div>
- </th>
- <th>最常搜索词</th>
- <th>最近下单时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${page.list}" var="clubList">
- <tr>
- <td>${clubList.clubID}</td>
- <td>
- ${clubList.name}
- </td>
- <td>
- ${clubList.linkMan}
- </td>
- <td>
- <c:if test="${clubList.linkManStatus ne null}">
- ${clubList.linkManStatus}
- </c:if>
- <c:if test="${clubList.linkManStatus eq null}">
- ---
- </c:if>
- </td>
- <td>
- ${clubList.contractMobile}
- </td>
- <td>
- ${clubList.spName}
- </td>
- <td>${clubList.clubStatus}</td>
- <td>
- <c:if test="${clubList.firstClubType != null || clubList.firstClubType != ''}">
- ${clubList.firstClubType}
- </c:if>
- <c:if test="${clubList.classify ne null}">
- - ${clubList.classify}
- </c:if>
- <c:if test="${clubList.firstClubType == null and clubList.firstClubType == '' and clubList.classify == null and clubList.classify == ''}">
- ---
- </c:if>
- </td>
- <td>
- <c:if test="${clubList.userIdentity eq 4}">
- 个人机构
- </c:if>
- <c:if test="${clubList.userIdentity eq 2}">
- 资质机构
- </c:if>
- <c:if test="${clubList.svipUserFlag eq 1}">
- <font color="red">(超级会员)</font>
- </c:if>
- <c:if test="${clubList.userIdentity eq 2 and clubList.svipUserFlag eq 0}">
- <font color="red">(普通会员)</font>
- </c:if>
- </td>
- <td>${clubList.clubDataIntegrity}</td>
- <td>
- <c:if test="${clubList.addTime != null || clubList.addTime != '' || clubList.addTime ne null}">
- ${clubList.addTime}
- <%--<fmt:formatDate value="${clubList.addTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>--%>
- </c:if>
- <c:if test="${clubList.addTime == null || clubList.addTime == '' || clubList.addTime eq null}">
- ---
- </c:if>
- </td>
- <td class="td-none">${clubList.orderCountMonth}</td>
- <td class="td-none">${clubList.orderCountYear}</td>
- <td class="td-none">${clubList.payTotalMonth}</td>
- <td class="td-none">${clubList.payTotalYear}</td>
- <td class="td-none">${clubList.payTotal}</td>
- <td class="td-none">
- <c:if test="${clubList.pageLabel ne null}">
- ${clubList.pageLabel}
- </c:if>
- <c:if test="${clubList.pageLabel eq null}">
- ---
- </c:if>
- </td>
- <td class="td-none">${clubList.lastOrderTime}</td>
- <td>
- <a href="${ctx}/new/user/agency/clubPortrait?clubID=${clubList.clubID}&clubName=${clubList.name}&dateType=0&type=4">查看详情</a>
- </td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- <div class="pagination">${page}</div>
- <script type="text/javascript">
- function page(n,s) {
- $('#pageNo').val(n);
- $('#pageSize').val(s);
- $('#searchForm').submit();
- return false;
- }
- $(function () {
- const typeMap = {
- 1: {
- val: $("#orderCountMonthType").val() ? $("#orderCountMonthType").val() * 1 : null,
- dom: $('#sort-button1')
- },
- 2: {
- val: $("#orderCountYearType").val() ? $("#orderCountYearType").val() * 1 : null,
- dom: $('#sort-button2')
- },
- 3: {
- val: $("#payTotalMonthType").val() ? $("#payTotalMonthType").val() * 1 : null,
- dom: $('#sort-button3')
- },
- 4: {
- val: $("#payTotalYearType").val() ? $("#payTotalYearType").val() * 1 : null,
- dom: $('#sort-button4')
- },
- 5: {
- val: $("#payTotalType").val() ? $("#payTotalType").val() * 1 : null,
- dom: $('#sort-button5')
- }
- }
- const setActiveFn = function (type,num){
- if( type === 0){
- typeMap[num].dom.find('.icon-up').addClass('active');
- }else{
- typeMap[num].dom.find('.icon-down').addClass('active');
- }
- }
- // 每月订单数 1 降序 0 升序
- if(typeMap[1].val || typeMap[1].val === 0) {
- setActiveFn(typeMap[1].val,1)
- }
- // 每年订单总数 1 降序 0 升序
- if(typeMap[2].val || typeMap[2].val === 0) {
- setActiveFn(typeMap[2].val,2)
- }
- // 每月总额 1 降序 0 升序
- if(typeMap[3].val || typeMap[3].val === 0) {
- setActiveFn(typeMap[3].val,3)
- }
- // 每年总额 1 降序 0 升序
- if(typeMap[4].val || typeMap[4].val === 0) {
- setActiveFn(typeMap[4].val,4)
- }
- // 总金额 1 降序 0 升序
- if(typeMap[5].val || typeMap[5].val === 0) {
- setActiveFn(typeMap[5].val,5)
- }
- $("#export").click(function () {
- var formData = $('#searchForm').serialize()
- window.location.href= "${ctx}/new/user/agency/club/export?"+formData
- })
- $('#btnSubmit').click(function () {
- const payTotalMonth = $('#payTotalMonth').val();
- const payTotalYear = $('#payTotalYear').val();
- const customStartTime = $('#customStartTime').val();
- const customEndTime = $('#customEndTime').val();
- const payTotal = $('#payTotal').val();
- console.log(customStartTime+'----'+customEndTime);
- if ((customStartTime.length !== 0 || customStartTime !== '') && (customEndTime.length !== 0 || customEndTime !== '')) {
- if (payTotalMonth.length !== 0 || payTotalMonth !== '') {
- $.jBox.confirm("自定义统计时间不能与近一个月/近一年购买额联动查询", "提示");
- return;
- }
- if (payTotalYear.length !== 0 || payTotalYear !== '') {
- $.jBox.confirm("自定义统计时间不能与近一个月/近一年购买额联动查询", "提示");
- return;
- }
- if (payTotal.length === 0 || payTotal === '') {
- $.jBox.confirm("自定义统计时间需要与总购买额一起联动查询", "提示");
- return;
- }
- }
- $('#searchForm').submit();
- })
- })
- /*function reExport() {
- var formData = $('#searchForm').serialize()
- this.href()+formData
- }*/
- </script>
- </body>
- </html>
|