cmAgencyList.jsp 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222
  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 {
  9. border: 1px solid #de5801
  10. }
  11. .reg-row {
  12. margin-bottom: 20px
  13. }
  14. .reg-row .reg-label {
  15. display: inline-block;
  16. width: 120px;
  17. text-align: right;
  18. font-size: 13px
  19. }
  20. .the-oradio {
  21. display: inline-block;
  22. vertical-align: top
  23. }
  24. .the-oradio div {
  25. width: 85px;
  26. display: inline-block;
  27. font-size: 12px;
  28. color: #666
  29. }
  30. .the-oradio div input[type="radio"] {
  31. width: 17px;
  32. height: 17px;
  33. margin-right: 5px;
  34. vertical-align: text-top
  35. }
  36. .med-option {
  37. display: block;
  38. margin: 10px 0 0 125px
  39. }
  40. .reg-row .business-license {
  41. position: relative;
  42. display: inline-block;
  43. width: 166px;
  44. height: 123px;
  45. border-radius: 6px;
  46. margin: 18px 0 0 125px
  47. }
  48. #medicalPracticeLicenseImgPreview {
  49. display: inline-block
  50. }
  51. .qualification {
  52. margin-top: 20px
  53. }
  54. .reg-row .tags-area {
  55. display: inline-block;
  56. width: 420px
  57. }
  58. .reg-row .new-tag {
  59. display: inline-block;
  60. width: 70px;
  61. border: 1px solid #e5e5e5;
  62. border-radius: 6px;
  63. padding: 5px;
  64. margin-right: 14px;
  65. margin-bottom: 14px;
  66. text-align: center;
  67. font-size: 10px;
  68. overflow: hidden;
  69. text-overflow: ellipsis;
  70. white-space: nowrap;
  71. cursor: pointer
  72. }
  73. .reg-row .tags-operate {
  74. margin-left: 125px
  75. }
  76. .reg-row .reg-input {
  77. width: 336px;
  78. height: 32px;
  79. padding: 0 8px;
  80. margin-right: 20px;
  81. border: 1px solid #dcdcdc;
  82. border-radius: 6px
  83. }
  84. .reg-row .tags-operate .tag-input {
  85. width: 159px;
  86. margin-right: 13px;
  87. display: none;
  88. vertical-align: top
  89. }
  90. .reg-row .tags-operate .tag-add {
  91. line-height: 20px;
  92. vertical-align: middle;
  93. margin-bottom: 0;
  94. vertical-align: top
  95. }
  96. .reg-row .tags-area {
  97. vertical-align: top
  98. }
  99. .tag-add {
  100. display: none
  101. }
  102. .table th {
  103. text-align: center
  104. }
  105. .table td {
  106. text-align: center
  107. }
  108. .modal {
  109. width: 700px;
  110. margin-left: -350px
  111. }
  112. #myModal {
  113. display: none
  114. }
  115. .modal-body {
  116. max-height: 300px !important
  117. }
  118. .modal.fade.in {
  119. top: 0 !important
  120. }
  121. #btnSubmit {
  122. margin-left: 20px
  123. }
  124. .flex-wrap .item {
  125. margin-right: 20px
  126. }
  127. #auditBox {
  128. padding: 20px;
  129. line-height: 30px
  130. }
  131. #auditBox .bd-row {
  132. display: flex;
  133. margin-bottom: 15px
  134. }
  135. #auditBox .bd-row > span {
  136. display: inline-block;
  137. width: 60px
  138. }
  139. #auditBox .auditCheckBox {
  140. width: 250px
  141. }
  142. #auditBox .auditCheckBox label {
  143. margin: 0 5px 5px 0
  144. }
  145. #auditBox .auditCheckBox input {
  146. display: none
  147. }
  148. #auditBox .auditCheckBox input + span {
  149. display: inline-block;
  150. line-height: 24px;
  151. padding: 0 12px;
  152. border: 1px solid #666;
  153. border-radius: 5px
  154. }
  155. #auditBox .auditCheckBox input:checked + span {
  156. background-color: #E6633A
  157. }
  158. #alertModal {
  159. width: 300px;
  160. height: 200px;
  161. border: 1px solid #ebebeb;
  162. border-radius: 10px;
  163. position: fixed;
  164. top: 0;
  165. bottom: 0;
  166. left: 0;
  167. right: 0;
  168. margin: auto;
  169. background: #FFFFFF;
  170. display: none
  171. }
  172. #alertModal .title {
  173. height: 50px;
  174. line-height: 50px;
  175. font-size: 14px;
  176. font-weight: bold;
  177. text-align: center;
  178. position: relative;
  179. border-bottom: 1px solid #EBEBEB
  180. }
  181. #alertModal .close {
  182. width: 50px;
  183. height: 50px;
  184. display: block;
  185. position: absolute;
  186. right: 0;
  187. top: 0;
  188. line-height: 50px;
  189. color: #000;
  190. font-weight: bold;
  191. text-align: center;
  192. font-style: normal;
  193. font-size: 18px
  194. }
  195. #alertModal .alert-content {
  196. width: 260px;
  197. height: 60px;
  198. padding: 20px
  199. }
  200. #alertModal .alertModal-btn {
  201. width: 260px;
  202. height: 49px;
  203. padding: 0 20px;
  204. border-top: 1px solid #EBEBEB
  205. }
  206. #alertModal .alertModal-btn button {
  207. float: right;
  208. margin: 5px
  209. }
  210. .acticer_span {
  211. display: inline-block;
  212. width: 14px;
  213. height: 14px;
  214. border-radius: 50%;
  215. box-sizing: border-box;
  216. border: 1px solid #999999;
  217. text-align: center;
  218. color: #333333;
  219. font-size: 12px;
  220. line-height: 14px;
  221. float: none;
  222. margin-left: 3px;
  223. }
  224. </style>
  225. </head>
  226. <body>
  227. <ul class="nav nav-tabs">
  228. <li><a href="${ctx}/new/user/agency/clubSales">机构-协销列表</a></li>
  229. <li class="active"><a href="${ctx}/new/user/agency/">机构基本资料列表</a></li>
  230. <li><a href="${ctx}/new/user/agency/statisticsList">机构分析统计列表</a></li>
  231. <li><a href="${ctx}/new/user/agency/cmSpClubTrackList">新分配机构跟踪管理</a></li>
  232. <li><a href="${ctx}/new/user/cmSp/cmSpLivelyClubList/">机构活跃分析</a></li>
  233. <li><a href="${ctx}/user/clubTemporary/">未确认机构</a></li>
  234. <li><a href="${ctx}/user/cmOperational/">操作日志</a></li>
  235. <li><a href="${ctx}/new/user/agency/distributionCLubList">分销系统机构列表</a></li>
  236. </ul>
  237. <form:form id="searchForm" modelAttribute="newCmClub" action="${ctx}/new/user/agency/" method="post"
  238. class="breadcrumb form-search">
  239. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  240. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  241. <div class="flex-wrap">
  242. <div class="item">
  243. <label>机构ID:</label>
  244. <form:input path="clubID" type="text" onkeyup="this.value=value.replace(/[^\d]/g,'')" htmlEscape="false"
  245. maxlength="50" class="input-medium"/>
  246. </div>
  247. <div class="item">
  248. <label>机构名称:</label>
  249. <form:input path="searchName" htmlEscape="false" maxlength="50" class="input-medium"/>
  250. </div>
  251. <div class="item">
  252. <label>联系人:</label>
  253. <form:input path="searchUserName" htmlEscape="false" maxlength="50" class="input-medium"/>
  254. </div>
  255. <div class="item">
  256. <label>手机号:</label>
  257. <form:input path="searchBindMobile" htmlEscape="false" maxlength="50" class="input-medium"/>
  258. </div>
  259. <div class="item">
  260. <label>邮箱:</label>
  261. <form:input path="searchEmail" htmlEscape="false" maxlength="50" class="input-medium"/>
  262. </div>
  263. <div class="item">
  264. <label> 状态:</label>
  265. <form:select path="searchStatus" class="input-medium">
  266. <form:option value="" label="请选择"/>
  267. <form:options items="${fns:getDictList('club_status')}" itemLabel="label" itemValue="value"
  268. htmlEscape="false"/>
  269. </form:select>
  270. </div>
  271. <div class="item">
  272. <label>机构级别:</label>
  273. <form:select path="searchUserIdentity" class="input-medium">
  274. <form:option value="" label="请选择"/>
  275. <form:option value="4" label="个人机构"/>
  276. <form:option value="2" label="资质机构"/>
  277. <form:option value="8" label="超级会员"/>
  278. </form:select>
  279. </div>
  280. <br/>
  281. <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  282. <div class="item">
  283. <label>活跃状态:</label>
  284. <form:select path="activeState" class="input-medium">
  285. <form:option value="" label="请选择"/>
  286. <form:option value="活跃用户" label="活跃用户"/>
  287. <form:option value="不活跃用户" label="不活跃用户"/>
  288. </form:select>
  289. </div>
  290. <div class="item">
  291. <label>客户价值:</label>
  292. <form:select path="customerValue" class="input-medium">
  293. <form:option value="" label="请选择"/>
  294. <form:option value="高价值客户" label="高价值客户"/>
  295. <form:option value="一般价值客户" label="一般价值客户"/>
  296. <form:option value="潜在价值客户" label="潜在价值客户"/>
  297. <form:option value="低价值客户" label="低价值客户"/>
  298. </form:select>
  299. </div>
  300. <div class="item">
  301. <label>注册时间:</label>
  302. <form:input path="searchStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${startTime}"
  303. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  304. -
  305. <form:input path="searchEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${endTime}"
  306. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  307. </div>
  308. <div class="item">
  309. <label>新分配机构:</label>
  310. <form:select path="newDeal" class="input-medium">
  311. <form:option value="" label="请选择"/>
  312. <form:option value="1">是</form:option>
  313. <form:option value="2">否</form:option>
  314. </form:select>
  315. </div>
  316. <div class="item">
  317. <label>协销:</label>
  318. <form:select path="spID" class="input-medium">
  319. <form:option value="" label="全部"/>
  320. <form:options items="${spNameList}" itemLabel="name" itemValue="serviceProviderID" htmlEscape="false"/>
  321. </form:select>
  322. </div>
  323. <div class="item">
  324. <label>分配时间:</label>
  325. <form:input path="allocationStartTime" type="text" maxlength="20" class="input-mini Wdate"
  326. value="${startTime}"
  327. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  328. -
  329. <form:input path="allocationEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${endTime}"
  330. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  331. </div>
  332. <div class="item">
  333. <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  334. </div>
  335. </div>
  336. </form:form>
  337. <sys:message content="${message}"/>
  338. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  339. <thead>
  340. <tr>
  341. <th>机构ID</th>
  342. <th>机构名称</th>
  343. <th>机构简称</th>
  344. <th>联系人</th>
  345. <th>手机号</th>
  346. <th>邮箱</th>
  347. <th>协销人员</th>
  348. <th>状态</th>
  349. <th>审核人</th>
  350. <th>机构级别</th>
  351. <th>活跃状态<span class="acticer_span" onmousemove="activeStageMessage(1)">?</span></th>
  352. <th>客户价值<span class="acticer_span" onmousemove="activeStageMessage(2)">?</span></th>
  353. <th>注册IP</th>
  354. <th>注册时间</th>
  355. <th>审核时间</th>
  356. <th>修改时间</th>
  357. <shiro:hasPermission name="user:newCmClub:edit">
  358. <th>操作</th>
  359. </shiro:hasPermission>
  360. </tr>
  361. </thead>
  362. <tbody>
  363. <c:forEach items="${page.list}" var="newCmClubList">
  364. <tr>
  365. <td>${newCmClubList.clubID}</td>
  366. <td>
  367. <%-- <c:if test="${newCmClubList.userIdentity eq 2}">--%>
  368. <a href="${ctx}/new/user/agency/clubPortrait?clubID=${newCmClubList.clubID}&clubName=${newCmClubList.name}&dateType=0&type=4">${newCmClubList.name}</a>
  369. <%-- </c:if>--%>
  370. <%-- <c:if test="${newCmClubList.userIdentity eq 4}">--%>
  371. <%-- <c:if test="${newCmClubList.name ne newCmClubList.userName}">--%>
  372. <%-- ${newCmClubList.name}--%>
  373. <%-- </c:if>--%>
  374. <%-- <c:if test="${newCmClubList.name eq newCmClubList.userName}">--%>
  375. <%-- ----%>
  376. <%-- </c:if>--%>
  377. <%-- </c:if>--%>
  378. </td>
  379. <td>
  380. <c:if test="${newCmClubList.userIdentity eq 2}">
  381. ${newCmClubList.sname}
  382. </c:if>
  383. <c:if test="${newCmClubList.userIdentity eq 4}">
  384. <c:if test="${newCmClubList.sname ne newCmClubList.userName}">
  385. ${newCmClubList.sname}
  386. </c:if>
  387. <c:if test="${newCmClubList.sname eq newCmClubList.userName}">
  388. --
  389. </c:if>
  390. </c:if>
  391. </td>
  392. <td>
  393. ${newCmClubList.userName}
  394. </td>
  395. <td>
  396. ${newCmClubList.bindMobile}
  397. </td>
  398. <td>${newCmClubList.email}</td>
  399. <td>
  400. ${newCmClubList.spName}
  401. </td>
  402. <td>
  403. <c:choose>
  404. <c:when test="${newCmClubList.status eq 90}">
  405. <font color="green">已上线</font>
  406. <%--不存在组织的用户为采美用户,只有采美用户才有上线下线功能--%>
  407. <%-- <c:if test="${newCmClubList.userOrganizeID eq null or newCmClubList.userOrganizeID eq 0}">--%>
  408. &nbsp;&nbsp;<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>
  409. <%-- </c:if>--%>
  410. </c:when>
  411. <c:when test="${newCmClubList.status eq 91}">
  412. <font color="red">已下线</font>
  413. <%-- <c:if test="${newCmClubList.userOrganizeID eq null or newCmClubList.userOrganizeID eq 0}">--%>
  414. &nbsp;&nbsp;<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>
  415. <%-- </c:if>--%>
  416. </c:when>
  417. <c:when test="${newCmClubList.status eq 92}">
  418. <a href="JavaScript:;" onclick="return alertx('不通过原因:${newCmClubList.auditNote}')"
  419. style="text-decoration:underline;"><font color="red">审核未通过</font></a>
  420. </c:when>
  421. <c:when test="${newCmClubList.status eq 93}">
  422. <font color="#BF826C">已确认</font>
  423. </c:when>
  424. <c:when test="${newCmClubList.status eq 94}">
  425. <font color="red">已冻结</font>
  426. </c:when>
  427. <c:otherwise>
  428. ${fns:getDictLabel(newCmClubList.status, 'club_status', newCmClubList.status)}
  429. </c:otherwise>
  430. </c:choose>
  431. </td>
  432. <td>
  433. ${newCmClubList.checkMan}
  434. </td>
  435. <td>
  436. <c:if test="${newCmClubList.userIdentity eq 4}">
  437. 个人机构
  438. <c:if test="${newCmClubList.svipUserFlag eq 1}">
  439. <font color="red">(超级会员)</font>
  440. </c:if>
  441. <c:if test="${newCmClubList.svipUserFlag ne 1}">
  442. <font color="black">(普通会员)</font>
  443. </c:if>
  444. </c:if>
  445. <c:if test="${newCmClubList.userIdentity eq 2}">
  446. 资质机构
  447. <c:if test="${newCmClubList.svipUserFlag eq 1}">
  448. <font color="red">(超级会员)</font>
  449. </c:if>
  450. <c:if test="${empty newCmClubList.medicalPracticeLicenseImg and newCmClubList.svipUserFlag ne 1}">
  451. <font color="red">(高级会员)</font>
  452. </c:if>
  453. <c:if test="${!empty newCmClubList.medicalPracticeLicenseImg and newCmClubList.svipUserFlag ne 1}">
  454. <font color="red">(医美会员)</font>
  455. </c:if>
  456. </c:if>
  457. </td>
  458. <td>
  459. <c:if test="${newCmClubList.activeState == null || newCmClubList.activeState == ''}">
  460. ---
  461. </c:if>
  462. <c:if test="${newCmClubList.activeState != null || newCmClubList.activeState != ''}">
  463. ${newCmClubList.activeState}
  464. </c:if>
  465. </td>
  466. <td>
  467. <c:if test="${newCmClubList.customerValue == null || newCmClubList.customerValue == ''}">
  468. ---
  469. </c:if>
  470. <c:if test="${newCmClubList.customerValue != null || newCmClubList.customerValue != ''}">
  471. ${newCmClubList.customerValue}
  472. </c:if>
  473. </td>
  474. <td>
  475. <c:if test="${newCmClubList.registerIP eq '192.168.1.10'}">
  476. 协销代注册
  477. </c:if>
  478. <c:if test="${newCmClubList.registerIP ne '192.168.1.10'}">
  479. ${newCmClubList.registerIP}
  480. <c:if test="${newCmClubList.source eq '0'}">
  481. (网站)
  482. </c:if>
  483. <c:if test="${newCmClubList.source eq '1'}">
  484. (小程序)
  485. </c:if>
  486. </c:if>
  487. </td>
  488. <td>
  489. <fmt:formatDate value="${newCmClubList.registerTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
  490. </td>
  491. <td>
  492. ${newCmClubList.auditTime}
  493. </td>
  494. <td>
  495. <c:if test="${newCmClubList.lastModify ne null}">
  496. <%-- ${newCmClubList.lastModify}--%>
  497. <fmt:formatDate value="${newCmClubList.lastModify}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
  498. </c:if>
  499. <c:if test="${newCmClubList.lastModify eq null and newCmClubList.addTime ne null}">
  500. ${newCmClubList.addTime}
  501. <%-- <fmt:formatDate value="${newCmClubList.addTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>--%>
  502. </c:if>
  503. <c:if test="${newCmClubList.lastModify eq null and newCmClubList.addTime eq null}">
  504. ---
  505. </c:if>
  506. </td>
  507. <td>
  508. <a href="${ctx}/new/user/agency/clubPortrait?clubID=${newCmClubList.clubID}&clubName=${newCmClubList.name}&dateType=0&type=4">机构画像</a>
  509. <shiro:hasPermission name="club:cmAgency:edit">
  510. <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>
  511. </shiro:hasPermission>
  512. <c:if test="${newCmClubList.status eq 90 || newCmClubList.status eq 91 || newCmClubList.status eq 40}">
  513. <shiro:hasPermission name="club:cmAgency:password">
  514. <a href="javascript:void(0);" onclick="updatePwd(${newCmClubList.userID})">重置密码</a>
  515. </shiro:hasPermission>
  516. </c:if>
  517. <c:if test="${newCmClubList.status eq 90 || newCmClubList.status eq 40 || newCmClubList.status eq 1 || newCmClubList.status eq 92}">
  518. <shiro:hasPermission name="club:cmAgency:changSp">
  519. <a href="javascript:void(0);" onclick="showSPSelect(${newCmClubList.clubID})">更换协销</a>
  520. </shiro:hasPermission>
  521. <shiro:hasPermission name="club:cmAgency:showOp">
  522. <a href="${ctx}/new/user/agency/operation?userOrganizeID=${newCmClubList.userOrganizeID}&clubID=${newCmClubList.clubID}&userID=${newCmClubList.userID}&name=${newCmClubList.name}">查看运营人员</a>
  523. </shiro:hasPermission>
  524. </c:if>
  525. <a href="${ctx}/new/user/agency/spLogs?clubID=${newCmClubList.clubID}">协销更换记录</a>
  526. <c:if test="${newCmClubList.status eq 1 || newCmClubList.status eq 92}">
  527. <shiro:hasPermission name="club:cmAgency:audit">
  528. <a href="javascript:void(0);"
  529. onclick="toAudit(${newCmClubList.clubID},'${newCmClubList.userName}','${newCmClubList.bindMobile}')">审核</a>
  530. </shiro:hasPermission>
  531. </c:if>
  532. <shiro:hasPermission name="club:cmAgency:category">
  533. <a href="javascript:void(0);"
  534. onclick="showClubAlert(${newCmClubList.clubID},${newCmClubList.userIdentity})">设置机构级别</a>
  535. </shiro:hasPermission>
  536. <c:if test="${newCmClubList.status eq 92 || newCmClubList.status eq 93}">
  537. <shiro:hasPermission name="club:cmAgency:conform">
  538. <a href="${ctx}/user/clubTemporary/confirmRecord?confirmUserId=${newCmClubList.userID}">确认记录</a>
  539. </shiro:hasPermission>
  540. </c:if>
  541. <%--<shiro:hasPermission name="club:cmAgency:remarks">
  542. <a style="visibility: hidden" href="${ctx}/new/user/agency/remarks?clubId=${newCmClubList.clubID}">咨询记录</a>
  543. </shiro:hasPermission>--%>
  544. <%--<a href="${ctx}/new/user/agency/recordLinkage?clubId=${newCmClubList.clubID}">生成行为记录链接</a>--%>
  545. <a href="javascript: void(0);"
  546. onclick="goNewBack(1, '${newCmClubList.addTime}', ${newCmClubList.userIdentity}, '${newCmClubList.name}', '${newCmClubList.linkMan}','${newCmClubList.clubID}')">访问记录</a>
  547. <a href="javascript: void(0);"
  548. onclick="goNewBack(2, '${newCmClubList.addTime}', ${newCmClubList.userIdentity}, '${newCmClubList.name}', '${newCmClubList.linkMan}','${newCmClubList.clubID}')">咨询记录</a>
  549. </td>
  550. </tr>
  551. </c:forEach>
  552. </tbody>
  553. </table>
  554. <div class="pagination">${page}</div>
  555. <!-- 模态框(Modal) -->
  556. <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  557. <div class="modal-dialog">
  558. <div class="modal-content">
  559. <div class="modal-header">
  560. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  561. <h4 class="modal-title" id="myModalLabel"></h4>
  562. </div>
  563. <div class="modal-body">
  564. <div class="reg-row">
  565. <label class="reg-label" for=""><span class="require-xin">*</span>会所类型:</label>
  566. <div class="medical-radio the-oradio">
  567. <div class="med-beauty"><input name="firstClubType" value="1" type="radio"/>医美</div>
  568. <div class="raw-beauty"><input name="firstClubType" value="2" type="radio"/>生美</div>
  569. </div>
  570. <span class="err-tip"></span>
  571. <div class="med-option the-oradio" style="display: none">
  572. <div class="med-beauty"><input name="secondClubType" value="1" type="radio"/>诊所</div>
  573. <div class="med-beauty"><input name="secondClubType" value="2" type="radio"/>门诊</div>
  574. <div class="med-beauty"><input name="secondClubType" value="3" type="radio"/>医院</div>
  575. <span class="err-tip"></span>
  576. </div>
  577. <div class="qualification reg-row" style="display: none">
  578. <label class="reg-label" for=""><span class="require-xin">*</span>资质:</label>
  579. <input id="medicalPracticeLicenseImg" name="url" type="hidden" maxlength="255"
  580. class="input-xlarge ">
  581. <sys:ckfinder input="medicalPracticeLicenseImg" type="images"
  582. uploadPath="/medicalPracticeLicenseImg" selectMultiple="false" maxWidth="100"
  583. maxHeight="100"/>
  584. </div>
  585. <div class="epart" style="display: none">
  586. <label class="reg-label">科室:</label>
  587. <input class="reg-input" type="text" name="department" id="Department"
  588. placeholder="请填写您的所经营的科室,用逗号隔开。(至少三个)">
  589. <span class="err-tip"></span>
  590. </div>
  591. </div>
  592. <div class="reg-row Main-content">
  593. <label class="reg-label top-label" for=""><span class="require-xin">*</span>主营内容:</label>
  594. <div class="tags-area" id="clubArea"></div>
  595. <span class="err-tip" style="display: inline-block;margin-left:-55px;"></span>
  596. <input type="hidden" name="mainpro" value="" id="cMainPro">
  597. <div class="tags-operate">
  598. <span class="new-tag tag-other" id="clubOther">其他</span>
  599. <input type="text" class="reg-input tag-input" id="clubInput" placeholder="请输入自定义品项目">
  600. <span class="new-tag tag-add" id="clubAdd">确认添加</span>
  601. </div>
  602. </div>
  603. </div>
  604. <div class="modal-footer">
  605. <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
  606. <button type="button" class="btn btn-primary" id="confirm">确认</button>
  607. </div>
  608. </div><!-- /.modal-content -->
  609. </div><!-- /.modal -->
  610. </div>
  611. <%--设置机构级别弹窗--%>
  612. <div class="alert-modal" id="alertModal">
  613. <div class="title">
  614. <p>机构级别</p>
  615. <i class="close" id="alertModal-close">X</i>
  616. </div>
  617. <div class="alert-content">
  618. <p>请选择级别</p>
  619. <div class="from-radio">
  620. <input type="radio" value="1" name="clubType">资质机构
  621. <input type="radio" value="2" name="clubType">个人机构
  622. </div>
  623. </div>
  624. <div class="alertModal-btn">
  625. <button type="button" class="btn btn-default" id="close-clubleibie">取消</button>
  626. <button type="button" class="btn btn-primary" id="confirm-clubleibie">确认</button>
  627. </div>
  628. </div>
  629. <script type="text/javascript">
  630. $(document).ready(function () {
  631. //会所品项选择
  632. var opts = {
  633. $tag: $('.up-club-tag'),
  634. $tagArea: $('#clubArea'),
  635. $mainPro: $('#cMainPro'),
  636. $other: $('#clubOther'),
  637. $input: $('#clubInput'),
  638. $add: $('#clubAdd'),
  639. $type: 'club'
  640. }
  641. _util.getTags(opts);
  642. });
  643. function page(n, s) {
  644. $("#pageNo").val(n);
  645. $("#pageSize").val(s);
  646. $("#searchForm").submit();
  647. return false;
  648. }
  649. var _util = {
  650. // 隐藏输入错误提示(参数为提示元素)
  651. hideTip: function ($ele) {
  652. setTimeout(function () {
  653. $ele.hide();
  654. }, 5000);
  655. },
  656. setTags: function (opts) {
  657. var tagArr = [];
  658. opts.$tagArea.find('.new-tag.active').each(function (i, v) {
  659. var _typeName = $(v).attr('data-typeName');
  660. tagArr.push(_typeName);
  661. opts.$mainPro.val(tagArr.join('/'));
  662. })
  663. },
  664. getTags: function (opts) {
  665. opts.$tagArea.on('click', '.new-tag', function () {
  666. $('#cMainPro').val('')
  667. var $this = $(this);
  668. $this.toggleClass('active');
  669. _util.setTags(opts);
  670. })
  671. opts.$other.on('click', function () {
  672. opts.$input.css('display', 'inline-block');
  673. opts.$add.css('display', 'inline-block');
  674. })
  675. opts.$add.on('click', function () {
  676. var _tag = $.trim(opts.$input.val());
  677. if (_tag) {
  678. var flag = false;
  679. opts.$tagArea.find('.new-tag').each(function (i, v) {
  680. var _name = $(v).attr('data-typeName');
  681. if (_tag == _name) {
  682. flag = true;
  683. return false;
  684. } else {
  685. if (i == opts.$tagArea.find('.new-tag').length) {
  686. flag = false;
  687. }
  688. }
  689. })
  690. if (flag) {
  691. opts.$tagArea.find('.new-tag').each(function (i, v) {
  692. var _name = $(v).attr('data-typeName');
  693. if (_tag == _name) {
  694. $(v).addClass('active');
  695. layer.tips('该类型已存在', opts.$add);
  696. flag = true;
  697. return false;
  698. }
  699. })
  700. } else {
  701. opts.$tagArea.append('<span class="new-tag up-' + opts.$type + '-tag active" data-typeName="' + _tag + '">' + _tag + '</span> ');
  702. _util.setTags(opts);
  703. opts.$input.val('');
  704. return;
  705. }
  706. }
  707. })
  708. },
  709. }
  710. </script>
  711. <script>
  712. $(document).ready(function () {
  713. var flag = $('.clubType').attr("data-flag");//设置判断值
  714. //新增会所选择验证
  715. $('.medical-radio div input[name="firstClubType"]').on('click', function () {
  716. console.log($(this))
  717. var html = '';
  718. var nameval = $(this).val();
  719. if (nameval == '1') {
  720. $('.med-option,.qualification').show();
  721. html += '<span class="new-tag up-club-tag" data-typeName="整形">整形</span>',
  722. html += '<span class="new-tag up-club-tag" data-typeName="轻医美">轻医美</span>',
  723. html += '<span class="new-tag up-club-tag" data-typeName="皮肤科">皮肤科</span>';
  724. $('#clubArea').html(html);
  725. $('.Main-content').show();
  726. } else if (nameval == '2') {
  727. $('.med-option,.qualification,.epart').hide();
  728. $('input[name="secondClubType"]').attr('checked', false);
  729. html += '<span class="new-tag up-club-tag" data-typeName="美容">美容</span>',
  730. html += '<span class="new-tag up-club-tag" data-typeName="美体">美体</span>',
  731. html += '<span class="new-tag up-club-tag" data-typeName="美发">美发</span>',
  732. html += '<span class="new-tag up-club-tag" data-typeName="皮肤管理">皮肤管理</span>',
  733. html += '<span class="new-tag up-club-tag" data-typeName="光电">光电</span>',
  734. html += '<span class="new-tag up-club-tag" data-typeName="综合类">综合类</span>',
  735. html += '<span class="new-tag up-club-tag" data-typeName="中医养生">中医养生</span>',
  736. html += '<span class="new-tag up-club-tag" data-typeName="spa">spa</span>'
  737. $('#clubArea').html(html);
  738. $('.Main-content').show();
  739. }
  740. });
  741. //医美二级选择
  742. $('.med-option div input[name="secondClubType"]').on('click', function () {
  743. var nameVal = $(this).val();
  744. if (nameVal == '1') {
  745. $('.epart').hide()
  746. } else if (nameVal == '2') {
  747. $('.epart').show()
  748. } else if (nameVal == '3') {
  749. $('.epart').show()
  750. }
  751. });
  752. $('.clubType').on('click', function () {
  753. $('#confirm').attr('data-id', $(this).attr('data-clubID'))
  754. $('#myModal').modal();
  755. var that = $(this);
  756. var flag = that.attr("data-flag");
  757. $('#confirm').attr('data-flag', flag)
  758. var clubID = that.attr("data-clubID");
  759. if ("0" == flag) {
  760. $("#myModalLabel").html("设置分类");
  761. }
  762. if ("1" == flag) {
  763. $("#myModalLabel").html("修改分类");
  764. var json = JSON.parse($(this).attr('data-value'));
  765. var firstClubType = json["firstClubType"];
  766. var secondClubType = json["secondClubType"];
  767. var medicalPracticeLicenseImg = json["medicalPracticeLicenseImg"];
  768. var department = json["department"];
  769. var mainpro = json["mainpro"];
  770. console.log(firstClubType)
  771. if (firstClubType) {
  772. $('input[name="firstClubType"]').parent('div').eq(firstClubType - 1).find('input').attr("checked", "checked")
  773. $('input[name="firstClubType"]').parent('div').eq(firstClubType - 1).find('input').click();
  774. if (secondClubType) {
  775. $('input[name="secondClubType"]').parent('div').eq(secondClubType - 1).find('input').attr("checked", "checked")
  776. $('input[name="secondClubType"]').parent('div').eq(secondClubType - 1).find('input').click();
  777. }
  778. if (medicalPracticeLicenseImg) {
  779. $('#medicalPracticeLicenseImg').val(medicalPracticeLicenseImg);
  780. $('#medicalPracticeLicenseImgPreview').find('li').html('<img style="max-width:100px;max-height:100px;_height:100px;border:0;padding:3px;" src="' + medicalPracticeLicenseImg + '" />')
  781. }
  782. if (department) {
  783. $('#Department').val(department);
  784. }
  785. if (mainpro) {
  786. var span_ = $('#clubArea').find('span'); // 固定值
  787. var mainpro_ = mainpro.split('/'); // 回显值
  788. var defaultVal = [];
  789. var resArr = [];
  790. var html = '';
  791. $('#clubArea').html('');
  792. for (var i = 0; i < span_.length; i++) {
  793. defaultVal.push(span_[i].textContent);
  794. }
  795. var concatArr = defaultVal.concat(mainpro_);
  796. for (var i = 0; i < concatArr.length; i++) {
  797. if (resArr.indexOf(concatArr[i]) == -1) {
  798. resArr.push(concatArr[i]);
  799. html += '<span class="new-tag up-club-tag ' + concatArr[i] + '" data-typeName="' + concatArr[i] + '">' + concatArr[i] + '</span>';
  800. }
  801. }
  802. $('#clubArea').append(html);
  803. for (var i = 0; i < mainpro_.length; i++) {
  804. $('.' + mainpro_[i]).addClass('active');
  805. $('#cMainPro').val(mainpro)
  806. }
  807. }
  808. }
  809. var secondClubType = json["secondClubType"];
  810. var department = json["department"];
  811. var medicalPracticeLicenseImg = json["medicalPracticeLicenseImg"];
  812. }
  813. });
  814. $('#confirm').on('click', function () {
  815. if (flag == 0) {
  816. //会所类型
  817. if (!$('input[name="firstClubType"]').is(':checked')) {
  818. alertx('请选择会所类型')
  819. _util.hideTip($('.err-tip'));
  820. return false
  821. } else if ($('input[name="firstClubType"]:checked').val() == 1) {
  822. if (!$('input[name="secondClubType"]').is(':checked')) {
  823. alertx('请选择会所类型')
  824. _util.hideTip($('.err-tip'));
  825. return false
  826. }
  827. if ($('#medicalPracticeLicenseImg').val() == '') {
  828. alertx('请上传图片')
  829. return false
  830. }
  831. if ($('input[name="secondClubType"]:checked').val() == 2 || $('input[name="secondClubType"]:checked').val() == 3) {
  832. if ($('#Department').val() == '') {
  833. alertx('请输入科室')
  834. }
  835. } else if ($('input[name="firstClubType"]:checked').val() == 2) {
  836. }
  837. }
  838. } else {
  839. if (!$('input[name="firstClubType"]').is(':checked')) {
  840. $('input[name="firstClubType"]').parents('.medical-radio').next().show().html('请选择会所类型');
  841. _util.hideTip($('.err-tip'));
  842. return false
  843. }
  844. }
  845. if ($('#cMainPro').val() == '') {
  846. alertx('请选择主营内容')
  847. return false
  848. }
  849. var params = {
  850. mainpro: $('#cMainPro').val(),
  851. clubID: $(this).attr('data-id'),
  852. flagC: $(this).attr('data-flag')
  853. }
  854. if ($('input[name="firstClubType"]:checked').val() == 1) {
  855. params.firstClubType = 1;//会所分类
  856. params.secondClubType = $('input[name="secondClubType"]:checked').val();//二级分类
  857. params.medicalPracticeLicenseImg = $('#medicalPracticeLicenseImg').val();//资质
  858. if ($('input[name="secondClubType"]:checked').val() == 2 ||
  859. $('input[name="secondClubType"]:checked').val() == 3) {
  860. params.department = $('#Department').val();//科室
  861. }
  862. } else {
  863. params.firstClubType = 2;//会所分类
  864. }
  865. $.ajax({
  866. type: "post",
  867. url: "${ctx}/new/user/agency/editClubType",
  868. data: params,
  869. success: function (res) {
  870. if (res.errcode == '1') {
  871. alertx(res.errmsg);
  872. }
  873. if (res.errcode == '0') {
  874. console.log(res.data);
  875. window.location.href = res.data;
  876. }
  877. },
  878. error: function (res) {
  879. }
  880. });
  881. })
  882. $(document).on("change", "#auditStatus", function () {
  883. if ($("#auditStatus").val() == 2) {
  884. $("#auditNopass").show();
  885. } else {
  886. $("#auditNopass").hide();
  887. }
  888. })
  889. });
  890. var $ClubAlertContent = $('#alertModal');
  891. var $alertModalClose = $('#alertModal-close');
  892. var $alertModalCloseBtn = $('#close-clubleibie ');
  893. var $alertModalConfirm = $('#confirm-clubleibie ');
  894. //选择机构级别
  895. function showClubAlert(clubID, type) {
  896. if (type == 2) {
  897. $ClubAlertContent.find("input[type=radio][value='1']").attr("checked", true);
  898. } else {
  899. $ClubAlertContent.find("input[type=radio][value='2']").attr("checked", true);
  900. }
  901. $ClubAlertContent.show();
  902. $alertModalClose.click(function () {
  903. closeAlertConten($ClubAlertContent)
  904. })
  905. $alertModalCloseBtn.click(function () {
  906. closeAlertConten($ClubAlertContent)
  907. })
  908. $alertModalConfirm.click(function () {
  909. var $Value = $ClubAlertContent.find("input[name='clubType']:checked").val();
  910. $.post("${ctx}/new/user/agency/upgradeClub", {'id': clubID, 'type': $Value}, function (data) {
  911. console.log(data)
  912. if (true == data.success) {
  913. console.log(data.success)
  914. closeAlertConten($ClubAlertContent);
  915. window.location.reload();
  916. } else {
  917. alertx(data.msg);
  918. }
  919. }, "JSON");//这里返回的类型有:json,html,xml,text
  920. });
  921. }
  922. function closeAlertConten(obj) {
  923. obj.hide();
  924. }
  925. //更换协销
  926. function showSPSelect(clubID) {
  927. top.$.jBox("iframe:${ctx}/user/cmSp/showSelectSP", {
  928. iframeScrolling: 'no',
  929. width: 1000,
  930. height: 550,
  931. persistent: true,
  932. showScrolling: false,
  933. title: "选择协销",
  934. bottomText: '请从可供选择的项目中选择一个',
  935. buttons: {"确定": '1', "关闭": '-1'},
  936. submit: function (v, h, f) {
  937. //确定
  938. var $jboxFrame = top.$('#jbox-iframe');
  939. var $mainFrame = top.$('#mainFrame');
  940. if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
  941. var spID = $jboxFrame[0].contentWindow.getCheckedItems();
  942. console.log(spID);
  943. if ("" != spID && null != spID) {
  944. setSPSelect(spID, clubID);
  945. return true;
  946. } else {
  947. top.$.jBox.tip("请选择...");
  948. return false;
  949. }
  950. }
  951. return true;
  952. }
  953. });
  954. }
  955. function setSPSelect(spID, clubID) {
  956. console.log(spID + "=====" + clubID);
  957. $.post("${ctx}/new/user/agency/changeSp", {'spID': spID, 'clubID': clubID}, function (data) {
  958. if (true == data.success) {
  959. closeP();
  960. } else {
  961. alertx(data.msg);
  962. }
  963. }, "JSON");//这里返回的类型有:json,html,xml,text
  964. }
  965. function closeP() {
  966. var msg = '提交成功,请去“协销审核”页面进行审核';
  967. top.$.jBox.confirm(msg, '提示', function (v, h, f) {
  968. if (v == true) {
  969. window.location.href = "${ctx}/new/user/cmSp/clubChangeSp";
  970. return true;
  971. }
  972. window.location.href = "${ctx}/new/user/agency/";
  973. return true;
  974. }, {buttons: {'去审核': true, '取消': false}});
  975. }
  976. // 修改密码
  977. function updatePwd(id) {
  978. var regPwd = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/;
  979. var html = "<div style='padding:20px;'><font color='red'>*</font> 新密码 :" +
  980. "<input type='password' id='newPwd' name='newPwd' rows='1' cols='12'/>" +
  981. "</br><font color='red'>*</font>确认密码:" +
  982. "<input type='password' id='surePwd' name='surePwd' rows='1' cols='12'/></div>";
  983. var submit = function (v, h, f) {
  984. // 密码
  985. if (!regPwd.test(f.newPwd)) {
  986. $.jBox.tip("密码需8-16位字母数字组合", 'error', {focusId: "newPwd"});
  987. return false;
  988. }
  989. if (f.newPwd !== f.surePwd) {
  990. $.jBox.tip("确认密码与登录密码不一致", 'error', {focusId: "surePwd"});
  991. return false;
  992. }
  993. $.post("${ctx}/new/user/agency/updatePwd", {'password': f.newPwd, 'id': id}, function (data) {
  994. if (true == data.success) {
  995. $.jBox.tip(data.msg, 'info');
  996. $("#searchForm").submit();
  997. } else {
  998. $.jBox.tip(data.msg, 'error');
  999. }
  1000. }, "JSON");//这里返回的类型有:json,html,xml,text
  1001. };
  1002. $.jBox(html, {title: "确定修改密码?", submit: submit});
  1003. }
  1004. function toAudit(id, userName, bindMobile) {
  1005. if (null == bindMobile || "" == bindMobile) {
  1006. alertx("手机号尚未填写,请先编辑手机号再进行审核");
  1007. return;
  1008. }
  1009. if (null == userName || "" == userName) {
  1010. alertx("联系人尚未尚未填写,请先编辑联系人再进行审核");
  1011. return;
  1012. }
  1013. var html = "<div id='auditBox'>"
  1014. + " <div class='bd-row'>"
  1015. + " <span><font color='red'>*</font>审核:</span>"
  1016. + " <select name='auditStatus' id='auditStatus'>"
  1017. + " <option value='1'>审核通过</option>"
  1018. + " <option value='2'>审核未通过</option>"
  1019. + " <select/>"
  1020. + " </div>"
  1021. + " <div id='auditNopass' style='display: none;'>"
  1022. + " <div class='bd-row'>"
  1023. + " <span><font color='red'>*</font>原因:</span>"
  1024. + " <div class='auditCheckBox'>"
  1025. + " <label><input name='auditCheckBox' type='checkbox' value='图片模糊'><span>图片模糊</span></label>"
  1026. + " <label><input name='auditCheckBox' type='checkbox' value='营业执照错误'><span>营业执照错误</span></label>"
  1027. + " <label><input name='auditCheckBox' type='checkbox' value='详细信息不全'><span>详细信息不全</span></label>"
  1028. + " <label><input name='auditCheckBox' type='checkbox' value='机构名称敏感'><span>机构名称敏感</span></label>"
  1029. + " <label><input name='auditCheckBox' type='checkbox' value='不符合平台要求'><span>不符合平台要求</span></label>"
  1030. + " </div>"
  1031. + " </div>"
  1032. + " <div class='bd-row'>"
  1033. + " <span></span>"
  1034. + " <div>"
  1035. + " <textarea name='auditNote'></textarea>"
  1036. + " <p class='err-tip' style='display:none;margin-left:-55px;color:red;'>请选择审核未通过的原因</p>"
  1037. + " </div>"
  1038. + " </div>"
  1039. + " </div>"
  1040. + "</div>";
  1041. var submit = function (v, h, f) {
  1042. if (f.auditStatus == '') {
  1043. $.jBox.tip("请选择状态", 'error', {focusId: "auditStatus"});
  1044. return false;
  1045. } else if (f.auditStatus == 2 && f.auditNote == '' && !f.auditCheckBox) {
  1046. $.jBox.tip("请选择审核未通过的原因", 'error', {focusId: "auditNote"});
  1047. return false;
  1048. } else if (f.auditStatus == 2 && f.auditNote.length > 100) {
  1049. $.jBox.tip("内容过长", 'error', {focusId: "auditNote"});
  1050. return false;
  1051. }
  1052. var auditText = f.auditCheckBox ? (f.auditCheckBox.toString() + ',' + f.auditNote) : f.auditNote;
  1053. $.post("${ctx}/new/user/agency/auditClub", {
  1054. 'auditStatus': f.auditStatus,
  1055. 'id': id,
  1056. 'auditNote': auditText
  1057. }, function (data) {
  1058. if (true == data.success) {
  1059. $.jBox.tip(data.msg, 'info');
  1060. // $("#searchForm").submit();
  1061. window.location.href = "${ctx}/new/user/agency/";
  1062. } else {
  1063. $.jBox.tip(data.msg, 'error');
  1064. }
  1065. }, "JSON");//这里返回的类型有:json,html,xml,text
  1066. };
  1067. $.jBox(html, {title: "审核", submit: submit});
  1068. }
  1069. function activeStageMessage(type) {// 客户价值提示语
  1070. var content = '活跃状态是根据机构半年内是否产生活跃行为' + '<br/>' +
  1071. '来定义的,活跃行为包括以下3个部分(符合其一即可),数据每日更新' + '<br/>' +
  1072. '1、该机构登录了账号' + '<br/>' +
  1073. '2、该机构有订单(不论订单状态)' + '<br/>' +
  1074. '3、该机构有咨询记录';
  1075. var content2 = '客户价值是根据机构一年内的订单数量、订单金额和访问频率3个方面来定义的,数据每日更新。' + '<br/>' +
  1076. '1、若机构一年内订单数大于等于5,则为高价值客户' + '<br/>' +
  1077. '2、若机构一年内订单数小于5,但总订单金额大于等于5万,则为一般价值客户' + '<br/>' +
  1078. '3、若机构一年内订单数小于5,总订单金额小于5万,但访问频率大于等于一月一次,则为潜在价值客户' + '<br/>' +
  1079. '4、若机构一年内订单数小于5,总订单金额小于5万,访问频率小于一月一次,则为低价值客户';
  1080. var typeMap = {
  1081. 1: content,
  1082. 2: content2
  1083. }
  1084. $.jBox.alert(typeMap[type], '提示', {width: 450})
  1085. }
  1086. function goNewBack(type, addTime, userIdentity, name, linkMan, clubId) {
  1087. // 跳转到新后台查询数据 type: 1 访问记录 2:咨询记录
  1088. const date = getZeroTimeToday();
  1089. console.log(date)
  1090. const addDateTime = stringToDate(addTime.toString());
  1091. console.log('addDateTime----', addDateTime);
  1092. if (type === 1) {
  1093. // 若是今天以前注册的机构,点击访问记录,跳转到新后台【用户行为记录】-【过往数据】页面,
  1094. // 页面展示以公司名称(个人机构以联系人当公司名称)筛选后的结果;
  1095. // 若是今天注册的机构,点击访问记录,跳转到新后台【用户行为记录】-【今日数据】页面,
  1096. // 页面展示以公司名称(个人机构以联系人当公司名称)筛选后的结果。
  1097. if (addDateTime < date) {
  1098. // 过往数据
  1099. if (userIdentity === 4) {
  1100. $.get("${ctx}/jump/link", function (data) {
  1101. link = "https://manager.caimei365.com/#/user/record-list?type=second&corporateName=" + linkMan + "&clubId=" + clubId + "&token=" + data;
  1102. window.open(link, "_blank");
  1103. });
  1104. } else {
  1105. $.get("${ctx}/jump/link", function (data) {
  1106. link = "https://manager.caimei365.com/#/user/record-list?type=second&corporateName=" + name + "&clubId=" + clubId + "&token=" + data;
  1107. window.open(link, "_blank");
  1108. });
  1109. }
  1110. } else {
  1111. // 今日数据
  1112. if (userIdentity === 4) {
  1113. $.get("${ctx}/jump/link", function (data) {
  1114. link = "https://manager.caimei365.com/#/user/record-list?type=first&corporateName=" + linkMan + "&clubId=" + clubId + "&token=" + data;
  1115. window.open(link, "_blank");
  1116. });
  1117. } else {
  1118. $.get("${ctx}/jump/link", function (data) {
  1119. link = "https://manager.caimei365.com/#/user/record-list?type=first&corporateName=" + name + "&clubId=" + clubId + "&token=" + data;
  1120. window.open(link, "_blank");
  1121. });
  1122. }
  1123. }
  1124. } else {
  1125. // 点击咨询记录,跳转到新后台【用户咨询记录汇总】页面,页面展示以机构名称筛选后的结果
  1126. if (userIdentity === 4) {
  1127. $.get("${ctx}/jump/link", function (data) {
  1128. link = "https://manager.caimei365.com/#/user/consult/list?clubName=" + linkMan + "&clubId=" + clubId + "&token=" + data;
  1129. window.open(link, "_blank");
  1130. });
  1131. } else {
  1132. $.get("${ctx}/jump/link", function (data) {
  1133. link = "https://manager.caimei365.com/#/user/consult/list?clubName=" + name + "&clubId=" + clubId + "&token=" + data;
  1134. window.open(link, "_blank");
  1135. });
  1136. }
  1137. }
  1138. }
  1139. function stringToDate(dateString) {
  1140. const parts = dateString.split(/[- :]/);
  1141. return new Date(parts[0], parts[1] - 1, parts[2], parts[3], parts[4], parts[5]);
  1142. }
  1143. // 当天0点0分时间
  1144. function getZeroTimeToday() {
  1145. const today = new Date();
  1146. return new Date(today.getFullYear(), today.getMonth(), today.getDate());
  1147. }
  1148. </script>
  1149. </body>
  1150. </html>