1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222 |
- <%@ 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;
- }
- </style>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li><a href="${ctx}/new/user/agency/clubSales">机构-协销列表</a></li>
- <li class="active"><a href="${ctx}/new/user/agency/">机构基本资料列表</a></li>
- <li><a href="${ctx}/new/user/agency/statisticsList">机构分析统计列表</a></li>
- <li><a href="${ctx}/new/user/agency/cmSpClubTrackList">新分配机构跟踪管理</a></li>
- <li><a href="${ctx}/new/user/cmSp/cmSpLivelyClubList/">机构活跃分析</a></li>
- <li><a href="${ctx}/user/clubTemporary/">未确认机构</a></li>
- <li><a href="${ctx}/user/cmOperational/">操作日志</a></li>
- <li><a href="${ctx}/new/user/agency/distributionCLubList">分销系统机构列表</a></li>
- </ul>
- <form:form id="searchForm" modelAttribute="newCmClub" action="${ctx}/new/user/agency/" 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}"/>
- <div class="flex-wrap">
- <div class="item">
- <label>机构ID:</label>
- <form:input path="clubID" type="text" onkeyup="this.value=value.replace(/[^\d]/g,'')" htmlEscape="false"
- maxlength="50" class="input-medium"/>
- </div>
- <div class="item">
- <label>机构名称:</label>
- <form:input path="searchName" htmlEscape="false" maxlength="50" class="input-medium"/>
- </div>
- <div class="item">
- <label>联系人:</label>
- <form:input path="searchUserName" htmlEscape="false" maxlength="50" class="input-medium"/>
- </div>
- <div class="item">
- <label>手机号:</label>
- <form:input path="searchBindMobile" htmlEscape="false" maxlength="50" class="input-medium"/>
- </div>
- <div class="item">
- <label>邮箱:</label>
- <form:input path="searchEmail" htmlEscape="false" maxlength="50" class="input-medium"/>
- </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>
- <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>
- <br/>
- <br/>
- <div class="item">
- <label>活跃状态:</label>
- <form:select path="activeState" class="input-medium">
- <form:option value="" label="请选择"/>
- <form:option value="活跃用户" label="活跃用户"/>
- <form:option value="不活跃用户" label="不活跃用户"/>
- </form:select>
- </div>
- <div class="item">
- <label>客户价值:</label>
- <form:select path="customerValue" class="input-medium">
- <form:option value="" label="请选择"/>
- <form:option value="高价值客户" label="高价值客户"/>
- <form:option value="一般价值客户" label="一般价值客户"/>
- <form:option value="潜在价值客户" label="潜在价值客户"/>
- <form:option value="低价值客户" label="低价值客户"/>
- </form:select>
- </div>
- <div class="item">
- <label>注册时间:</label>
- <form:input path="searchStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${startTime}"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
- -
- <form:input path="searchEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${endTime}"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
- </div>
- <div class="item">
- <label>新分配机构:</label>
- <form:select path="newDeal" class="input-medium">
- <form:option value="" label="请选择"/>
- <form:option value="1">是</form:option>
- <form:option value="2">否</form:option>
- </form:select>
- </div>
- <div class="item">
- <label>协销:</label>
- <form:select path="spID" class="input-medium">
- <form:option value="" label="全部"/>
- <form:options items="${spNameList}" itemLabel="name" itemValue="serviceProviderID" htmlEscape="false"/>
- </form:select>
- </div>
- <div class="item">
- <label>分配时间:</label>
- <form:input path="allocationStartTime" type="text" maxlength="20" class="input-mini Wdate"
- value="${startTime}"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
- -
- <form:input path="allocationEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${endTime}"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
- </div>
- <div class="item">
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
- </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>活跃状态<span class="acticer_span" onmousemove="activeStageMessage(1)">?</span></th>
- <th>客户价值<span class="acticer_span" onmousemove="activeStageMessage(2)">?</span></th>
- <th>注册IP</th>
- <th>注册时间</th>
- <th>审核时间</th>
- <th>修改时间</th>
- <shiro:hasPermission name="user:newCmClub:edit">
- <th>操作</th>
- </shiro:hasPermission>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${page.list}" var="newCmClubList">
- <tr>
- <td>${newCmClubList.clubID}</td>
- <td>
- <%-- <c:if test="${newCmClubList.userIdentity eq 2}">--%>
- <a href="${ctx}/new/user/agency/clubPortrait?clubID=${newCmClubList.clubID}&clubName=${newCmClubList.name}&dateType=0&type=4">${newCmClubList.name}</a>
- <%-- </c:if>--%>
- <%-- <c:if test="${newCmClubList.userIdentity eq 4}">--%>
- <%-- <c:if test="${newCmClubList.name ne newCmClubList.userName}">--%>
- <%-- ${newCmClubList.name}--%>
- <%-- </c:if>--%>
- <%-- <c:if test="${newCmClubList.name eq newCmClubList.userName}">--%>
- <%-- ----%>
- <%-- </c:if>--%>
- <%-- </c:if>--%>
- </td>
- <td>
- <c:if test="${newCmClubList.userIdentity eq 2}">
- ${newCmClubList.sname}
- </c:if>
- <c:if test="${newCmClubList.userIdentity eq 4}">
- <c:if test="${newCmClubList.sname ne newCmClubList.userName}">
- ${newCmClubList.sname}
- </c:if>
- <c:if test="${newCmClubList.sname eq newCmClubList.userName}">
- --
- </c:if>
- </c:if>
- </td>
- <td>
- ${newCmClubList.userName}
- </td>
- <td>
- ${newCmClubList.bindMobile}
- </td>
- <td>${newCmClubList.email}</td>
- <td>
- ${newCmClubList.spName}
- </td>
- <td>
- <c:choose>
- <c:when test="${newCmClubList.status eq 90}">
- <font color="green">已上线</font>
- <%--不存在组织的用户为采美用户,只有采美用户才有上线下线功能--%>
- <%-- <c:if test="${newCmClubList.userOrganizeID eq null or newCmClubList.userOrganizeID eq 0}">--%>
- <a href="${ctx}/new/user/agency/offline?id=${newCmClubList.clubID}&searchName=${newCmClub.searchName}&searchUserName=${newCmClub.searchUserName}&searchBindMobile=${newCmClub.searchBindMobile}&searchEmail=${newCmClub.searchEmail}&searchUserOrganizeID=${newCmClub.searchUserOrganizeID}&searchStatus=${newCmClub.searchStatus}&searchUserIdentity=${newCmClub.searchUserIdentity}&searchStartTime=${newCmClub.searchStartTime}&searchEndTime=${newCmClub.searchEndTime}" onclick="return confirmx('确定下线该会所吗?', this.href)" style="text-decoration:underline;">下线</a>
- <%-- </c:if>--%>
- </c:when>
- <c:when test="${newCmClubList.status eq 91}">
- <font color="red">已下线</font>
- <%-- <c:if test="${newCmClubList.userOrganizeID eq null or newCmClubList.userOrganizeID eq 0}">--%>
- <a href="${ctx}/new/user/agency/online?id=${newCmClubList.clubID}&searchName=${newCmClub.searchName}&searchUserName=${newCmClub.searchUserName}&searchBindMobile=${newCmClub.searchBindMobile}&searchEmail=${newCmClub.searchEmail}&searchUserOrganizeID=${newCmClub.searchUserOrganizeID}&searchStatus=${newCmClub.searchStatus}&searchUserIdentity=${newCmClub.searchUserIdentity}&searchStartTime=${newCmClub.searchStartTime}&searchEndTime=${newCmClub.searchEndTime}" onclick="return confirmx('确定上线该会所吗?', this.href)" style="text-decoration:underline;">上线</a>
- <%-- </c:if>--%>
- </c:when>
- <c:when test="${newCmClubList.status eq 92}">
- <a href="JavaScript:;" onclick="return alertx('不通过原因:${newCmClubList.auditNote}')"
- style="text-decoration:underline;"><font color="red">审核未通过</font></a>
- </c:when>
- <c:when test="${newCmClubList.status eq 93}">
- <font color="#BF826C">已确认</font>
- </c:when>
- <c:when test="${newCmClubList.status eq 94}">
- <font color="red">已冻结</font>
- </c:when>
- <c:otherwise>
- ${fns:getDictLabel(newCmClubList.status, 'club_status', newCmClubList.status)}
- </c:otherwise>
- </c:choose>
- </td>
- <td>
- ${newCmClubList.checkMan}
- </td>
- <td>
- <c:if test="${newCmClubList.userIdentity eq 4}">
- 个人机构
- <c:if test="${newCmClubList.svipUserFlag eq 1}">
- <font color="red">(超级会员)</font>
- </c:if>
- <c:if test="${newCmClubList.svipUserFlag ne 1}">
- <font color="black">(普通会员)</font>
- </c:if>
- </c:if>
- <c:if test="${newCmClubList.userIdentity eq 2}">
- 资质机构
- <c:if test="${newCmClubList.svipUserFlag eq 1}">
- <font color="red">(超级会员)</font>
- </c:if>
- <c:if test="${empty newCmClubList.medicalPracticeLicenseImg and newCmClubList.svipUserFlag ne 1}">
- <font color="red">(高级会员)</font>
- </c:if>
- <c:if test="${!empty newCmClubList.medicalPracticeLicenseImg and newCmClubList.svipUserFlag ne 1}">
- <font color="red">(医美会员)</font>
- </c:if>
- </c:if>
- </td>
- <td>
- <c:if test="${newCmClubList.activeState == null || newCmClubList.activeState == ''}">
- ---
- </c:if>
- <c:if test="${newCmClubList.activeState != null || newCmClubList.activeState != ''}">
- ${newCmClubList.activeState}
- </c:if>
- </td>
- <td>
- <c:if test="${newCmClubList.customerValue == null || newCmClubList.customerValue == ''}">
- ---
- </c:if>
- <c:if test="${newCmClubList.customerValue != null || newCmClubList.customerValue != ''}">
- ${newCmClubList.customerValue}
- </c:if>
- </td>
- <td>
- <c:if test="${newCmClubList.registerIP eq '192.168.1.10'}">
- 协销代注册
- </c:if>
- <c:if test="${newCmClubList.registerIP ne '192.168.1.10'}">
- ${newCmClubList.registerIP}
- <c:if test="${newCmClubList.source eq '0'}">
- (网站)
- </c:if>
- <c:if test="${newCmClubList.source eq '1'}">
- (小程序)
- </c:if>
- </c:if>
- </td>
- <td>
- <fmt:formatDate value="${newCmClubList.registerTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
- </td>
- <td>
- ${newCmClubList.auditTime}
- </td>
- <td>
- <c:if test="${newCmClubList.lastModify ne null}">
- <%-- ${newCmClubList.lastModify}--%>
- <fmt:formatDate value="${newCmClubList.lastModify}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
- </c:if>
- <c:if test="${newCmClubList.lastModify eq null and newCmClubList.addTime ne null}">
- ${newCmClubList.addTime}
- <%-- <fmt:formatDate value="${newCmClubList.addTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>--%>
- </c:if>
- <c:if test="${newCmClubList.lastModify eq null and newCmClubList.addTime eq null}">
- ---
- </c:if>
- </td>
- <td>
- <a href="${ctx}/new/user/agency/clubPortrait?clubID=${newCmClubList.clubID}&clubName=${newCmClubList.name}&dateType=0&type=4">机构画像</a>
- <shiro:hasPermission name="club:cmAgency:edit">
- <a href="${ctx}/new/user/agency/form?id=${newCmClubList.clubID}&source=1&searchName=${newCmClub.searchName}&searchUserName=${newCmClub.searchUserName}&searchBindMobile=${newCmClub.searchBindMobile}&searchEmail=${newCmClub.searchEmail}&searchUserOrganizeID=${newCmClub.searchUserOrganizeID}&searchStatus=${newCmClub.searchStatus}&searchUserIdentity=${newCmClub.searchUserIdentity}&searchStartTime=${newCmClub.searchStartTime}&searchEndTime=${newCmClub.searchEndTime}">编辑</a>
- </shiro:hasPermission>
- <c:if test="${newCmClubList.status eq 90 || newCmClubList.status eq 91 || newCmClubList.status eq 40}">
- <shiro:hasPermission name="club:cmAgency:password">
- <a href="javascript:void(0);" onclick="updatePwd(${newCmClubList.userID})">重置密码</a>
- </shiro:hasPermission>
- </c:if>
- <c:if test="${newCmClubList.status eq 90 || newCmClubList.status eq 40 || newCmClubList.status eq 1 || newCmClubList.status eq 92}">
- <shiro:hasPermission name="club:cmAgency:changSp">
- <a href="javascript:void(0);" onclick="showSPSelect(${newCmClubList.clubID})">更换协销</a>
- </shiro:hasPermission>
- <shiro:hasPermission name="club:cmAgency:showOp">
- <a href="${ctx}/new/user/agency/operation?userOrganizeID=${newCmClubList.userOrganizeID}&clubID=${newCmClubList.clubID}&userID=${newCmClubList.userID}&name=${newCmClubList.name}">查看运营人员</a>
- </shiro:hasPermission>
- </c:if>
- <a href="${ctx}/new/user/agency/spLogs?clubID=${newCmClubList.clubID}">协销更换记录</a>
- <c:if test="${newCmClubList.status eq 1 || newCmClubList.status eq 92}">
- <shiro:hasPermission name="club:cmAgency:audit">
- <a href="javascript:void(0);"
- onclick="toAudit(${newCmClubList.clubID},'${newCmClubList.userName}','${newCmClubList.bindMobile}')">审核</a>
- </shiro:hasPermission>
- </c:if>
- <shiro:hasPermission name="club:cmAgency:category">
- <a href="javascript:void(0);"
- onclick="showClubAlert(${newCmClubList.clubID},${newCmClubList.userIdentity})">设置机构级别</a>
- </shiro:hasPermission>
- <c:if test="${newCmClubList.status eq 92 || newCmClubList.status eq 93}">
- <shiro:hasPermission name="club:cmAgency:conform">
- <a href="${ctx}/user/clubTemporary/confirmRecord?confirmUserId=${newCmClubList.userID}">确认记录</a>
- </shiro:hasPermission>
- </c:if>
- <%--<shiro:hasPermission name="club:cmAgency:remarks">
- <a style="visibility: hidden" href="${ctx}/new/user/agency/remarks?clubId=${newCmClubList.clubID}">咨询记录</a>
- </shiro:hasPermission>--%>
- <%--<a href="${ctx}/new/user/agency/recordLinkage?clubId=${newCmClubList.clubID}">生成行为记录链接</a>--%>
- <a href="javascript: void(0);"
- onclick="goNewBack(1, '${newCmClubList.addTime}', ${newCmClubList.userIdentity}, '${newCmClubList.name}', '${newCmClubList.linkMan}','${newCmClubList.clubID}')">访问记录</a>
- <a href="javascript: void(0);"
- onclick="goNewBack(2, '${newCmClubList.addTime}', ${newCmClubList.userIdentity}, '${newCmClubList.name}', '${newCmClubList.linkMan}','${newCmClubList.clubID}')">咨询记录</a>
- </td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- <div class="pagination">${page}</div>
- <!-- 模态框(Modal) -->
- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h4 class="modal-title" id="myModalLabel"></h4>
- </div>
- <div class="modal-body">
- <div class="reg-row">
- <label class="reg-label" for=""><span class="require-xin">*</span>会所类型:</label>
- <div class="medical-radio the-oradio">
- <div class="med-beauty"><input name="firstClubType" value="1" type="radio"/>医美</div>
- <div class="raw-beauty"><input name="firstClubType" value="2" type="radio"/>生美</div>
- </div>
- <span class="err-tip"></span>
- <div class="med-option the-oradio" style="display: none">
- <div class="med-beauty"><input name="secondClubType" value="1" type="radio"/>诊所</div>
- <div class="med-beauty"><input name="secondClubType" value="2" type="radio"/>门诊</div>
- <div class="med-beauty"><input name="secondClubType" value="3" type="radio"/>医院</div>
- <span class="err-tip"></span>
- </div>
- <div class="qualification reg-row" style="display: none">
- <label class="reg-label" for=""><span class="require-xin">*</span>资质:</label>
- <input id="medicalPracticeLicenseImg" name="url" type="hidden" maxlength="255"
- class="input-xlarge ">
- <sys:ckfinder input="medicalPracticeLicenseImg" type="images"
- uploadPath="/medicalPracticeLicenseImg" selectMultiple="false" maxWidth="100"
- maxHeight="100"/>
- </div>
- <div class="epart" style="display: none">
- <label class="reg-label">科室:</label>
- <input class="reg-input" type="text" name="department" id="Department"
- placeholder="请填写您的所经营的科室,用逗号隔开。(至少三个)">
- <span class="err-tip"></span>
- </div>
- </div>
- <div class="reg-row Main-content">
- <label class="reg-label top-label" for=""><span class="require-xin">*</span>主营内容:</label>
- <div class="tags-area" id="clubArea"></div>
- <span class="err-tip" style="display: inline-block;margin-left:-55px;"></span>
- <input type="hidden" name="mainpro" value="" id="cMainPro">
- <div class="tags-operate">
- <span class="new-tag tag-other" id="clubOther">其他</span>
- <input type="text" class="reg-input tag-input" id="clubInput" placeholder="请输入自定义品项目">
- <span class="new-tag tag-add" id="clubAdd">确认添加</span>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
- <button type="button" class="btn btn-primary" id="confirm">确认</button>
- </div>
- </div><!-- /.modal-content -->
- </div><!-- /.modal -->
- </div>
- <%--设置机构级别弹窗--%>
- <div class="alert-modal" id="alertModal">
- <div class="title">
- <p>机构级别</p>
- <i class="close" id="alertModal-close">X</i>
- </div>
- <div class="alert-content">
- <p>请选择级别</p>
- <div class="from-radio">
- <input type="radio" value="1" name="clubType">资质机构
- <input type="radio" value="2" name="clubType">个人机构
- </div>
- </div>
- <div class="alertModal-btn">
- <button type="button" class="btn btn-default" id="close-clubleibie">取消</button>
- <button type="button" class="btn btn-primary" id="confirm-clubleibie">确认</button>
- </div>
- </div>
- <script type="text/javascript">
- $(document).ready(function () {
- //会所品项选择
- var opts = {
- $tag: $('.up-club-tag'),
- $tagArea: $('#clubArea'),
- $mainPro: $('#cMainPro'),
- $other: $('#clubOther'),
- $input: $('#clubInput'),
- $add: $('#clubAdd'),
- $type: 'club'
- }
- _util.getTags(opts);
- });
- function page(n, s) {
- $("#pageNo").val(n);
- $("#pageSize").val(s);
- $("#searchForm").submit();
- return false;
- }
- var _util = {
- // 隐藏输入错误提示(参数为提示元素)
- hideTip: function ($ele) {
- setTimeout(function () {
- $ele.hide();
- }, 5000);
- },
- setTags: function (opts) {
- var tagArr = [];
- opts.$tagArea.find('.new-tag.active').each(function (i, v) {
- var _typeName = $(v).attr('data-typeName');
- tagArr.push(_typeName);
- opts.$mainPro.val(tagArr.join('/'));
- })
- },
- getTags: function (opts) {
- opts.$tagArea.on('click', '.new-tag', function () {
- $('#cMainPro').val('')
- var $this = $(this);
- $this.toggleClass('active');
- _util.setTags(opts);
- })
- opts.$other.on('click', function () {
- opts.$input.css('display', 'inline-block');
- opts.$add.css('display', 'inline-block');
- })
- opts.$add.on('click', function () {
- var _tag = $.trim(opts.$input.val());
- if (_tag) {
- var flag = false;
- opts.$tagArea.find('.new-tag').each(function (i, v) {
- var _name = $(v).attr('data-typeName');
- if (_tag == _name) {
- flag = true;
- return false;
- } else {
- if (i == opts.$tagArea.find('.new-tag').length) {
- flag = false;
- }
- }
- })
- if (flag) {
- opts.$tagArea.find('.new-tag').each(function (i, v) {
- var _name = $(v).attr('data-typeName');
- if (_tag == _name) {
- $(v).addClass('active');
- layer.tips('该类型已存在', opts.$add);
- flag = true;
- return false;
- }
- })
- } else {
- opts.$tagArea.append('<span class="new-tag up-' + opts.$type + '-tag active" data-typeName="' + _tag + '">' + _tag + '</span> ');
- _util.setTags(opts);
- opts.$input.val('');
- return;
- }
- }
- })
- },
- }
- </script>
- <script>
- $(document).ready(function () {
- var flag = $('.clubType').attr("data-flag");//设置判断值
- //新增会所选择验证
- $('.medical-radio div input[name="firstClubType"]').on('click', function () {
- console.log($(this))
- var html = '';
- var nameval = $(this).val();
- if (nameval == '1') {
- $('.med-option,.qualification').show();
- html += '<span class="new-tag up-club-tag" data-typeName="整形">整形</span>',
- html += '<span class="new-tag up-club-tag" data-typeName="轻医美">轻医美</span>',
- html += '<span class="new-tag up-club-tag" data-typeName="皮肤科">皮肤科</span>';
- $('#clubArea').html(html);
- $('.Main-content').show();
- } else if (nameval == '2') {
- $('.med-option,.qualification,.epart').hide();
- $('input[name="secondClubType"]').attr('checked', false);
- html += '<span class="new-tag up-club-tag" data-typeName="美容">美容</span>',
- html += '<span class="new-tag up-club-tag" data-typeName="美体">美体</span>',
- html += '<span class="new-tag up-club-tag" data-typeName="美发">美发</span>',
- html += '<span class="new-tag up-club-tag" data-typeName="皮肤管理">皮肤管理</span>',
- html += '<span class="new-tag up-club-tag" data-typeName="光电">光电</span>',
- html += '<span class="new-tag up-club-tag" data-typeName="综合类">综合类</span>',
- html += '<span class="new-tag up-club-tag" data-typeName="中医养生">中医养生</span>',
- html += '<span class="new-tag up-club-tag" data-typeName="spa">spa</span>'
- $('#clubArea').html(html);
- $('.Main-content').show();
- }
- });
- //医美二级选择
- $('.med-option div input[name="secondClubType"]').on('click', function () {
- var nameVal = $(this).val();
- if (nameVal == '1') {
- $('.epart').hide()
- } else if (nameVal == '2') {
- $('.epart').show()
- } else if (nameVal == '3') {
- $('.epart').show()
- }
- });
- $('.clubType').on('click', function () {
- $('#confirm').attr('data-id', $(this).attr('data-clubID'))
- $('#myModal').modal();
- var that = $(this);
- var flag = that.attr("data-flag");
- $('#confirm').attr('data-flag', flag)
- var clubID = that.attr("data-clubID");
- if ("0" == flag) {
- $("#myModalLabel").html("设置分类");
- }
- if ("1" == flag) {
- $("#myModalLabel").html("修改分类");
- var json = JSON.parse($(this).attr('data-value'));
- var firstClubType = json["firstClubType"];
- var secondClubType = json["secondClubType"];
- var medicalPracticeLicenseImg = json["medicalPracticeLicenseImg"];
- var department = json["department"];
- var mainpro = json["mainpro"];
- console.log(firstClubType)
- if (firstClubType) {
- $('input[name="firstClubType"]').parent('div').eq(firstClubType - 1).find('input').attr("checked", "checked")
- $('input[name="firstClubType"]').parent('div').eq(firstClubType - 1).find('input').click();
- if (secondClubType) {
- $('input[name="secondClubType"]').parent('div').eq(secondClubType - 1).find('input').attr("checked", "checked")
- $('input[name="secondClubType"]').parent('div').eq(secondClubType - 1).find('input').click();
- }
- if (medicalPracticeLicenseImg) {
- $('#medicalPracticeLicenseImg').val(medicalPracticeLicenseImg);
- $('#medicalPracticeLicenseImgPreview').find('li').html('<img style="max-width:100px;max-height:100px;_height:100px;border:0;padding:3px;" src="' + medicalPracticeLicenseImg + '" />')
- }
- if (department) {
- $('#Department').val(department);
- }
- if (mainpro) {
- var span_ = $('#clubArea').find('span'); // 固定值
- var mainpro_ = mainpro.split('/'); // 回显值
- var defaultVal = [];
- var resArr = [];
- var html = '';
- $('#clubArea').html('');
- for (var i = 0; i < span_.length; i++) {
- defaultVal.push(span_[i].textContent);
- }
- var concatArr = defaultVal.concat(mainpro_);
- for (var i = 0; i < concatArr.length; i++) {
- if (resArr.indexOf(concatArr[i]) == -1) {
- resArr.push(concatArr[i]);
- html += '<span class="new-tag up-club-tag ' + concatArr[i] + '" data-typeName="' + concatArr[i] + '">' + concatArr[i] + '</span>';
- }
- }
- $('#clubArea').append(html);
- for (var i = 0; i < mainpro_.length; i++) {
- $('.' + mainpro_[i]).addClass('active');
- $('#cMainPro').val(mainpro)
- }
- }
- }
- var secondClubType = json["secondClubType"];
- var department = json["department"];
- var medicalPracticeLicenseImg = json["medicalPracticeLicenseImg"];
- }
- });
- $('#confirm').on('click', function () {
- if (flag == 0) {
- //会所类型
- if (!$('input[name="firstClubType"]').is(':checked')) {
- alertx('请选择会所类型')
- _util.hideTip($('.err-tip'));
- return false
- } else if ($('input[name="firstClubType"]:checked').val() == 1) {
- if (!$('input[name="secondClubType"]').is(':checked')) {
- alertx('请选择会所类型')
- _util.hideTip($('.err-tip'));
- return false
- }
- if ($('#medicalPracticeLicenseImg').val() == '') {
- alertx('请上传图片')
- return false
- }
- if ($('input[name="secondClubType"]:checked').val() == 2 || $('input[name="secondClubType"]:checked').val() == 3) {
- if ($('#Department').val() == '') {
- alertx('请输入科室')
- }
- } else if ($('input[name="firstClubType"]:checked').val() == 2) {
- }
- }
- } else {
- if (!$('input[name="firstClubType"]').is(':checked')) {
- $('input[name="firstClubType"]').parents('.medical-radio').next().show().html('请选择会所类型');
- _util.hideTip($('.err-tip'));
- return false
- }
- }
- if ($('#cMainPro').val() == '') {
- alertx('请选择主营内容')
- return false
- }
- var params = {
- mainpro: $('#cMainPro').val(),
- clubID: $(this).attr('data-id'),
- flagC: $(this).attr('data-flag')
- }
- if ($('input[name="firstClubType"]:checked').val() == 1) {
- params.firstClubType = 1;//会所分类
- params.secondClubType = $('input[name="secondClubType"]:checked').val();//二级分类
- params.medicalPracticeLicenseImg = $('#medicalPracticeLicenseImg').val();//资质
- if ($('input[name="secondClubType"]:checked').val() == 2 ||
- $('input[name="secondClubType"]:checked').val() == 3) {
- params.department = $('#Department').val();//科室
- }
- } else {
- params.firstClubType = 2;//会所分类
- }
- $.ajax({
- type: "post",
- url: "${ctx}/new/user/agency/editClubType",
- data: params,
- success: function (res) {
- if (res.errcode == '1') {
- alertx(res.errmsg);
- }
- if (res.errcode == '0') {
- console.log(res.data);
- window.location.href = res.data;
- }
- },
- error: function (res) {
- }
- });
- })
- $(document).on("change", "#auditStatus", function () {
- if ($("#auditStatus").val() == 2) {
- $("#auditNopass").show();
- } else {
- $("#auditNopass").hide();
- }
- })
- });
- var $ClubAlertContent = $('#alertModal');
- var $alertModalClose = $('#alertModal-close');
- var $alertModalCloseBtn = $('#close-clubleibie ');
- var $alertModalConfirm = $('#confirm-clubleibie ');
- //选择机构级别
- function showClubAlert(clubID, type) {
- if (type == 2) {
- $ClubAlertContent.find("input[type=radio][value='1']").attr("checked", true);
- } else {
- $ClubAlertContent.find("input[type=radio][value='2']").attr("checked", true);
- }
- $ClubAlertContent.show();
- $alertModalClose.click(function () {
- closeAlertConten($ClubAlertContent)
- })
- $alertModalCloseBtn.click(function () {
- closeAlertConten($ClubAlertContent)
- })
- $alertModalConfirm.click(function () {
- var $Value = $ClubAlertContent.find("input[name='clubType']:checked").val();
- $.post("${ctx}/new/user/agency/upgradeClub", {'id': clubID, 'type': $Value}, function (data) {
- console.log(data)
- if (true == data.success) {
- console.log(data.success)
- closeAlertConten($ClubAlertContent);
- window.location.reload();
- } else {
- alertx(data.msg);
- }
- }, "JSON");//这里返回的类型有:json,html,xml,text
- });
- }
- function closeAlertConten(obj) {
- obj.hide();
- }
- //更换协销
- function showSPSelect(clubID) {
- top.$.jBox("iframe:${ctx}/user/cmSp/showSelectSP", {
- iframeScrolling: 'no',
- width: 1000,
- height: 550,
- persistent: true,
- showScrolling: false,
- title: "选择协销",
- bottomText: '请从可供选择的项目中选择一个',
- buttons: {"确定": '1', "关闭": '-1'},
- submit: function (v, h, f) {
- //确定
- var $jboxFrame = top.$('#jbox-iframe');
- var $mainFrame = top.$('#mainFrame');
- if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
- var spID = $jboxFrame[0].contentWindow.getCheckedItems();
- console.log(spID);
- if ("" != spID && null != spID) {
- setSPSelect(spID, clubID);
- return true;
- } else {
- top.$.jBox.tip("请选择...");
- return false;
- }
- }
- return true;
- }
- });
- }
- function setSPSelect(spID, clubID) {
- console.log(spID + "=====" + clubID);
- $.post("${ctx}/new/user/agency/changeSp", {'spID': spID, 'clubID': clubID}, function (data) {
- if (true == data.success) {
- closeP();
- } else {
- alertx(data.msg);
- }
- }, "JSON");//这里返回的类型有:json,html,xml,text
- }
- function closeP() {
- var msg = '提交成功,请去“协销审核”页面进行审核';
- top.$.jBox.confirm(msg, '提示', function (v, h, f) {
- if (v == true) {
- window.location.href = "${ctx}/new/user/cmSp/clubChangeSp";
- return true;
- }
- window.location.href = "${ctx}/new/user/agency/";
- return true;
- }, {buttons: {'去审核': true, '取消': false}});
- }
- // 修改密码
- function updatePwd(id) {
- var regPwd = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/;
- var html = "<div style='padding:20px;'><font color='red'>*</font> 新密码 :" +
- "<input type='password' id='newPwd' name='newPwd' rows='1' cols='12'/>" +
- "</br><font color='red'>*</font>确认密码:" +
- "<input type='password' id='surePwd' name='surePwd' rows='1' cols='12'/></div>";
- var submit = function (v, h, f) {
- // 密码
- if (!regPwd.test(f.newPwd)) {
- $.jBox.tip("密码需8-16位字母数字组合", 'error', {focusId: "newPwd"});
- return false;
- }
- if (f.newPwd !== f.surePwd) {
- $.jBox.tip("确认密码与登录密码不一致", 'error', {focusId: "surePwd"});
- return false;
- }
- $.post("${ctx}/new/user/agency/updatePwd", {'password': f.newPwd, 'id': id}, function (data) {
- if (true == data.success) {
- $.jBox.tip(data.msg, 'info');
- $("#searchForm").submit();
- } else {
- $.jBox.tip(data.msg, 'error');
- }
- }, "JSON");//这里返回的类型有:json,html,xml,text
- };
- $.jBox(html, {title: "确定修改密码?", submit: submit});
- }
- function toAudit(id, userName, bindMobile) {
- if (null == bindMobile || "" == bindMobile) {
- alertx("手机号尚未填写,请先编辑手机号再进行审核");
- return;
- }
- if (null == userName || "" == userName) {
- alertx("联系人尚未尚未填写,请先编辑联系人再进行审核");
- return;
- }
- var html = "<div id='auditBox'>"
- + " <div class='bd-row'>"
- + " <span><font color='red'>*</font>审核:</span>"
- + " <select name='auditStatus' id='auditStatus'>"
- + " <option value='1'>审核通过</option>"
- + " <option value='2'>审核未通过</option>"
- + " <select/>"
- + " </div>"
- + " <div id='auditNopass' style='display: none;'>"
- + " <div class='bd-row'>"
- + " <span><font color='red'>*</font>原因:</span>"
- + " <div class='auditCheckBox'>"
- + " <label><input name='auditCheckBox' type='checkbox' value='图片模糊'><span>图片模糊</span></label>"
- + " <label><input name='auditCheckBox' type='checkbox' value='营业执照错误'><span>营业执照错误</span></label>"
- + " <label><input name='auditCheckBox' type='checkbox' value='详细信息不全'><span>详细信息不全</span></label>"
- + " <label><input name='auditCheckBox' type='checkbox' value='机构名称敏感'><span>机构名称敏感</span></label>"
- + " <label><input name='auditCheckBox' type='checkbox' value='不符合平台要求'><span>不符合平台要求</span></label>"
- + " </div>"
- + " </div>"
- + " <div class='bd-row'>"
- + " <span></span>"
- + " <div>"
- + " <textarea name='auditNote'></textarea>"
- + " <p class='err-tip' style='display:none;margin-left:-55px;color:red;'>请选择审核未通过的原因</p>"
- + " </div>"
- + " </div>"
- + " </div>"
- + "</div>";
- var submit = function (v, h, f) {
- if (f.auditStatus == '') {
- $.jBox.tip("请选择状态", 'error', {focusId: "auditStatus"});
- return false;
- } else if (f.auditStatus == 2 && f.auditNote == '' && !f.auditCheckBox) {
- $.jBox.tip("请选择审核未通过的原因", 'error', {focusId: "auditNote"});
- return false;
- } else if (f.auditStatus == 2 && f.auditNote.length > 100) {
- $.jBox.tip("内容过长", 'error', {focusId: "auditNote"});
- return false;
- }
- var auditText = f.auditCheckBox ? (f.auditCheckBox.toString() + ',' + f.auditNote) : f.auditNote;
- $.post("${ctx}/new/user/agency/auditClub", {
- 'auditStatus': f.auditStatus,
- 'id': id,
- 'auditNote': auditText
- }, function (data) {
- if (true == data.success) {
- $.jBox.tip(data.msg, 'info');
- // $("#searchForm").submit();
- window.location.href = "${ctx}/new/user/agency/";
- } else {
- $.jBox.tip(data.msg, 'error');
- }
- }, "JSON");//这里返回的类型有:json,html,xml,text
- };
- $.jBox(html, {title: "审核", submit: submit});
- }
- function activeStageMessage(type) {// 客户价值提示语
- var content = '活跃状态是根据机构半年内是否产生活跃行为' + '<br/>' +
- '来定义的,活跃行为包括以下3个部分(符合其一即可),数据每日更新' + '<br/>' +
- '1、该机构登录了账号' + '<br/>' +
- '2、该机构有订单(不论订单状态)' + '<br/>' +
- '3、该机构有咨询记录';
- var content2 = '客户价值是根据机构一年内的订单数量、订单金额和访问频率3个方面来定义的,数据每日更新。' + '<br/>' +
- '1、若机构一年内订单数大于等于5,则为高价值客户' + '<br/>' +
- '2、若机构一年内订单数小于5,但总订单金额大于等于5万,则为一般价值客户' + '<br/>' +
- '3、若机构一年内订单数小于5,总订单金额小于5万,但访问频率大于等于一月一次,则为潜在价值客户' + '<br/>' +
- '4、若机构一年内订单数小于5,总订单金额小于5万,访问频率小于一月一次,则为低价值客户';
- var typeMap = {
- 1: content,
- 2: content2
- }
- $.jBox.alert(typeMap[type], '提示', {width: 450})
- }
- function goNewBack(type, addTime, userIdentity, name, linkMan, clubId) {
- // 跳转到新后台查询数据 type: 1 访问记录 2:咨询记录
- const date = getZeroTimeToday();
- console.log(date)
- const addDateTime = stringToDate(addTime.toString());
- console.log('addDateTime----', addDateTime);
- if (type === 1) {
- // 若是今天以前注册的机构,点击访问记录,跳转到新后台【用户行为记录】-【过往数据】页面,
- // 页面展示以公司名称(个人机构以联系人当公司名称)筛选后的结果;
- // 若是今天注册的机构,点击访问记录,跳转到新后台【用户行为记录】-【今日数据】页面,
- // 页面展示以公司名称(个人机构以联系人当公司名称)筛选后的结果。
- if (addDateTime < date) {
- // 过往数据
- if (userIdentity === 4) {
- $.get("${ctx}/jump/link", function (data) {
- link = "https://manager.caimei365.com/#/user/record-list?type=second&corporateName=" + linkMan + "&clubId=" + clubId + "&token=" + data;
- window.open(link, "_blank");
- });
- } else {
- $.get("${ctx}/jump/link", function (data) {
- link = "https://manager.caimei365.com/#/user/record-list?type=second&corporateName=" + name + "&clubId=" + clubId + "&token=" + data;
- window.open(link, "_blank");
- });
- }
- } else {
- // 今日数据
- if (userIdentity === 4) {
- $.get("${ctx}/jump/link", function (data) {
- link = "https://manager.caimei365.com/#/user/record-list?type=first&corporateName=" + linkMan + "&clubId=" + clubId + "&token=" + data;
- window.open(link, "_blank");
- });
- } else {
- $.get("${ctx}/jump/link", function (data) {
- link = "https://manager.caimei365.com/#/user/record-list?type=first&corporateName=" + name + "&clubId=" + clubId + "&token=" + data;
- window.open(link, "_blank");
- });
- }
- }
- } else {
- // 点击咨询记录,跳转到新后台【用户咨询记录汇总】页面,页面展示以机构名称筛选后的结果
- if (userIdentity === 4) {
- $.get("${ctx}/jump/link", function (data) {
- link = "https://manager.caimei365.com/#/user/consult/list?clubName=" + linkMan + "&clubId=" + clubId + "&token=" + data;
- window.open(link, "_blank");
- });
- } else {
- $.get("${ctx}/jump/link", function (data) {
- link = "https://manager.caimei365.com/#/user/consult/list?clubName=" + name + "&clubId=" + clubId + "&token=" + data;
- window.open(link, "_blank");
- });
- }
- }
- }
- function stringToDate(dateString) {
- const parts = dateString.split(/[- :]/);
- return new Date(parts[0], parts[1] - 1, parts[2], parts[3], parts[4], parts[5]);
- }
- // 当天0点0分时间
- function getZeroTimeToday() {
- const today = new Date();
- return new Date(today.getFullYear(), today.getMonth(), today.getDate());
- }
- </script>
- </body>
- </html>
|