cmAgencyList.jsp 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245
  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. <label>动态标签:</label>
  334. <form:select path="trendsLabel" class="input-medium">
  335. <form:option value="" label="全部"/>
  336. <form:options items="${trendsLabel}" itemLabel="label" itemValue="label" htmlEscape="false"/>
  337. </form:select>
  338. </div>
  339. <div class="item">
  340. <label>静态标签:</label>
  341. <form:select path="stateLabel" class="input-medium">
  342. <form:option value="" label="全部"/>
  343. <form:options items="${stateLabel}" itemLabel="label" itemValue="label" htmlEscape="false"/>
  344. </form:select>
  345. </div>
  346. <div class="item">
  347. <label>需求跨度:</label>
  348. <form:input path="labelStartTime" type="text" maxlength="20" class="input-mini Wdate"
  349. value="${labelStartTime}"
  350. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  351. -
  352. <form:input path="labelEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${labelEndTime}"
  353. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  354. </div>
  355. <div class="item">
  356. <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  357. </div>
  358. </div>
  359. </form:form>
  360. <sys:message content="${message}"/>
  361. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  362. <thead>
  363. <tr>
  364. <th>机构ID</th>
  365. <th>机构名称</th>
  366. <th>机构简称</th>
  367. <th>联系人</th>
  368. <th>手机号</th>
  369. <th>邮箱</th>
  370. <th>协销人员</th>
  371. <th>状态</th>
  372. <th>审核人</th>
  373. <th>机构级别</th>
  374. <th>活跃状态<span class="acticer_span" onclick="activeStageMessage(1)">?</span></th>
  375. <th>客户价值<span class="acticer_span" onclick="activeStageMessage(2)">?</span></th>
  376. <th>注册IP</th>
  377. <th>注册时间</th>
  378. <th>审核时间</th>
  379. <th>修改时间</th>
  380. <shiro:hasPermission name="user:newCmClub:edit">
  381. <th>操作</th>
  382. </shiro:hasPermission>
  383. </tr>
  384. </thead>
  385. <tbody>
  386. <c:forEach items="${page.list}" var="newCmClubList">
  387. <tr>
  388. <td>${newCmClubList.clubID}</td>
  389. <td>
  390. <%-- <c:if test="${newCmClubList.userIdentity eq 2}">--%>
  391. <a href="${ctx}/new/user/agency/clubPortrait?clubID=${newCmClubList.clubID}&clubName=${newCmClubList.name}&dateType=0&type=4">${newCmClubList.name}</a>
  392. <%-- </c:if>--%>
  393. <%-- <c:if test="${newCmClubList.userIdentity eq 4}">--%>
  394. <%-- <c:if test="${newCmClubList.name ne newCmClubList.userName}">--%>
  395. <%-- ${newCmClubList.name}--%>
  396. <%-- </c:if>--%>
  397. <%-- <c:if test="${newCmClubList.name eq newCmClubList.userName}">--%>
  398. <%-- ----%>
  399. <%-- </c:if>--%>
  400. <%-- </c:if>--%>
  401. </td>
  402. <td>
  403. <c:if test="${newCmClubList.userIdentity eq 2}">
  404. ${newCmClubList.sname}
  405. </c:if>
  406. <c:if test="${newCmClubList.userIdentity eq 4}">
  407. <c:if test="${newCmClubList.sname ne newCmClubList.userName}">
  408. ${newCmClubList.sname}
  409. </c:if>
  410. <c:if test="${newCmClubList.sname eq newCmClubList.userName}">
  411. --
  412. </c:if>
  413. </c:if>
  414. </td>
  415. <td>
  416. ${newCmClubList.userName}
  417. </td>
  418. <td>
  419. ${newCmClubList.bindMobile}
  420. </td>
  421. <td>${newCmClubList.email}</td>
  422. <td>
  423. ${newCmClubList.spName}
  424. </td>
  425. <td>
  426. <c:choose>
  427. <c:when test="${newCmClubList.status eq 90}">
  428. <font color="green">已上线</font>
  429. <%--不存在组织的用户为采美用户,只有采美用户才有上线下线功能--%>
  430. <%-- <c:if test="${newCmClubList.userOrganizeID eq null or newCmClubList.userOrganizeID eq 0}">--%>
  431. &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>
  432. <%-- </c:if>--%>
  433. </c:when>
  434. <c:when test="${newCmClubList.status eq 91}">
  435. <font color="red">已下线</font>
  436. <%-- <c:if test="${newCmClubList.userOrganizeID eq null or newCmClubList.userOrganizeID eq 0}">--%>
  437. &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>
  438. <%-- </c:if>--%>
  439. </c:when>
  440. <c:when test="${newCmClubList.status eq 92}">
  441. <a href="JavaScript:;" onclick="return alertx('不通过原因:${newCmClubList.auditNote}')"
  442. style="text-decoration:underline;"><font color="red">审核未通过</font></a>
  443. </c:when>
  444. <c:when test="${newCmClubList.status eq 93}">
  445. <font color="#BF826C">已确认</font>
  446. </c:when>
  447. <c:when test="${newCmClubList.status eq 94}">
  448. <font color="red">已冻结</font>
  449. </c:when>
  450. <c:otherwise>
  451. ${fns:getDictLabel(newCmClubList.status, 'club_status', newCmClubList.status)}
  452. </c:otherwise>
  453. </c:choose>
  454. </td>
  455. <td>
  456. ${newCmClubList.checkMan}
  457. </td>
  458. <td>
  459. <c:if test="${newCmClubList.userIdentity eq 4}">
  460. 个人机构
  461. <c:if test="${newCmClubList.svipUserFlag eq 1}">
  462. <font color="red">(超级会员)</font>
  463. </c:if>
  464. <c:if test="${newCmClubList.svipUserFlag ne 1}">
  465. <font color="black">(普通会员)</font>
  466. </c:if>
  467. </c:if>
  468. <c:if test="${newCmClubList.userIdentity eq 2}">
  469. 资质机构
  470. <c:if test="${newCmClubList.svipUserFlag eq 1}">
  471. <font color="red">(超级会员)</font>
  472. </c:if>
  473. <c:if test="${empty newCmClubList.medicalPracticeLicenseImg and newCmClubList.svipUserFlag ne 1}">
  474. <font color="red">(高级会员)</font>
  475. </c:if>
  476. <c:if test="${!empty newCmClubList.medicalPracticeLicenseImg and newCmClubList.svipUserFlag ne 1}">
  477. <font color="red">(医美会员)</font>
  478. </c:if>
  479. </c:if>
  480. </td>
  481. <td>
  482. <c:if test="${newCmClubList.activeState == null || newCmClubList.activeState == ''}">
  483. ---
  484. </c:if>
  485. <c:if test="${newCmClubList.activeState != null || newCmClubList.activeState != ''}">
  486. ${newCmClubList.activeState}
  487. </c:if>
  488. </td>
  489. <td>
  490. <c:if test="${newCmClubList.customerValue == null || newCmClubList.customerValue == ''}">
  491. ---
  492. </c:if>
  493. <c:if test="${newCmClubList.customerValue != null || newCmClubList.customerValue != ''}">
  494. ${newCmClubList.customerValue}
  495. </c:if>
  496. </td>
  497. <td>
  498. <c:if test="${newCmClubList.registerIP eq '192.168.1.10'}">
  499. 协销代注册
  500. </c:if>
  501. <c:if test="${newCmClubList.registerIP ne '192.168.1.10'}">
  502. ${newCmClubList.registerIP}
  503. <c:if test="${newCmClubList.source eq '0'}">
  504. (网站)
  505. </c:if>
  506. <c:if test="${newCmClubList.source eq '1'}">
  507. (小程序)
  508. </c:if>
  509. </c:if>
  510. </td>
  511. <td>
  512. <fmt:formatDate value="${newCmClubList.registerTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
  513. </td>
  514. <td>
  515. ${newCmClubList.auditTime}
  516. </td>
  517. <td>
  518. <c:if test="${newCmClubList.lastModify ne null}">
  519. <%-- ${newCmClubList.lastModify}--%>
  520. <fmt:formatDate value="${newCmClubList.lastModify}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
  521. </c:if>
  522. <c:if test="${newCmClubList.lastModify eq null and newCmClubList.addTime ne null}">
  523. ${newCmClubList.addTime}
  524. <%-- <fmt:formatDate value="${newCmClubList.addTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>--%>
  525. </c:if>
  526. <c:if test="${newCmClubList.lastModify eq null and newCmClubList.addTime eq null}">
  527. ---
  528. </c:if>
  529. </td>
  530. <td>
  531. <a href="${ctx}/new/user/agency/clubPortrait?clubID=${newCmClubList.clubID}&clubName=${newCmClubList.name}&dateType=0&type=4">机构画像</a>
  532. <shiro:hasPermission name="club:cmAgency:edit">
  533. <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>
  534. </shiro:hasPermission>
  535. <c:if test="${newCmClubList.status eq 90 || newCmClubList.status eq 91 || newCmClubList.status eq 40}">
  536. <shiro:hasPermission name="club:cmAgency:password">
  537. <a href="javascript:void(0);" onclick="updatePwd(${newCmClubList.userID})">重置密码</a>
  538. </shiro:hasPermission>
  539. </c:if>
  540. <c:if test="${newCmClubList.status eq 90 || newCmClubList.status eq 40 || newCmClubList.status eq 1 || newCmClubList.status eq 92}">
  541. <shiro:hasPermission name="club:cmAgency:changSp">
  542. <a href="javascript:void(0);" onclick="showSPSelect(${newCmClubList.clubID})">更换协销</a>
  543. </shiro:hasPermission>
  544. <shiro:hasPermission name="club:cmAgency:showOp">
  545. <a href="${ctx}/new/user/agency/operation?userOrganizeID=${newCmClubList.userOrganizeID}&clubID=${newCmClubList.clubID}&userID=${newCmClubList.userID}&name=${newCmClubList.name}">查看运营人员</a>
  546. </shiro:hasPermission>
  547. </c:if>
  548. <a href="${ctx}/new/user/agency/spLogs?clubID=${newCmClubList.clubID}">协销更换记录</a>
  549. <c:if test="${newCmClubList.status eq 1 || newCmClubList.status eq 92}">
  550. <shiro:hasPermission name="club:cmAgency:audit">
  551. <a href="javascript:void(0);"
  552. onclick="toAudit(${newCmClubList.clubID},'${newCmClubList.userName}','${newCmClubList.bindMobile}')">审核</a>
  553. </shiro:hasPermission>
  554. </c:if>
  555. <shiro:hasPermission name="club:cmAgency:category">
  556. <a href="javascript:void(0);"
  557. onclick="showClubAlert(${newCmClubList.clubID},${newCmClubList.userIdentity})">设置机构级别</a>
  558. </shiro:hasPermission>
  559. <c:if test="${newCmClubList.status eq 92 || newCmClubList.status eq 93}">
  560. <shiro:hasPermission name="club:cmAgency:conform">
  561. <a href="${ctx}/user/clubTemporary/confirmRecord?confirmUserId=${newCmClubList.userID}">确认记录</a>
  562. </shiro:hasPermission>
  563. </c:if>
  564. <%--<shiro:hasPermission name="club:cmAgency:remarks">
  565. <a style="visibility: hidden" href="${ctx}/new/user/agency/remarks?clubId=${newCmClubList.clubID}">咨询记录</a>
  566. </shiro:hasPermission>--%>
  567. <%--<a href="${ctx}/new/user/agency/recordLinkage?clubId=${newCmClubList.clubID}">生成行为记录链接</a>--%>
  568. <a href="javascript: void(0);"
  569. onclick="goNewBack(1, '${newCmClubList.addTime}', ${newCmClubList.userIdentity}, '${newCmClubList.name}', '${newCmClubList.linkMan}','${newCmClubList.clubID}')">访问记录</a>
  570. <a href="javascript: void(0);"
  571. onclick="goNewBack(2, '${newCmClubList.addTime}', ${newCmClubList.userIdentity}, '${newCmClubList.name}', '${newCmClubList.linkMan}','${newCmClubList.clubID}')">咨询记录</a>
  572. </td>
  573. </tr>
  574. </c:forEach>
  575. </tbody>
  576. </table>
  577. <div class="pagination">${page}</div>
  578. <!-- 模态框(Modal) -->
  579. <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  580. <div class="modal-dialog">
  581. <div class="modal-content">
  582. <div class="modal-header">
  583. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  584. <h4 class="modal-title" id="myModalLabel"></h4>
  585. </div>
  586. <div class="modal-body">
  587. <div class="reg-row">
  588. <label class="reg-label" for=""><span class="require-xin">*</span>会所类型:</label>
  589. <div class="medical-radio the-oradio">
  590. <div class="med-beauty"><input name="firstClubType" value="1" type="radio"/>医美</div>
  591. <div class="raw-beauty"><input name="firstClubType" value="2" type="radio"/>生美</div>
  592. </div>
  593. <span class="err-tip"></span>
  594. <div class="med-option the-oradio" style="display: none">
  595. <div class="med-beauty"><input name="secondClubType" value="1" type="radio"/>诊所</div>
  596. <div class="med-beauty"><input name="secondClubType" value="2" type="radio"/>门诊</div>
  597. <div class="med-beauty"><input name="secondClubType" value="3" type="radio"/>医院</div>
  598. <span class="err-tip"></span>
  599. </div>
  600. <div class="qualification reg-row" style="display: none">
  601. <label class="reg-label" for=""><span class="require-xin">*</span>资质:</label>
  602. <input id="medicalPracticeLicenseImg" name="url" type="hidden" maxlength="255"
  603. class="input-xlarge ">
  604. <sys:ckfinder input="medicalPracticeLicenseImg" type="images"
  605. uploadPath="/medicalPracticeLicenseImg" selectMultiple="false" maxWidth="100"
  606. maxHeight="100"/>
  607. </div>
  608. <div class="epart" style="display: none">
  609. <label class="reg-label">科室:</label>
  610. <input class="reg-input" type="text" name="department" id="Department"
  611. placeholder="请填写您的所经营的科室,用逗号隔开。(至少三个)">
  612. <span class="err-tip"></span>
  613. </div>
  614. </div>
  615. <div class="reg-row Main-content">
  616. <label class="reg-label top-label" for=""><span class="require-xin">*</span>主营内容:</label>
  617. <div class="tags-area" id="clubArea"></div>
  618. <span class="err-tip" style="display: inline-block;margin-left:-55px;"></span>
  619. <input type="hidden" name="mainpro" value="" id="cMainPro">
  620. <div class="tags-operate">
  621. <span class="new-tag tag-other" id="clubOther">其他</span>
  622. <input type="text" class="reg-input tag-input" id="clubInput" placeholder="请输入自定义品项目">
  623. <span class="new-tag tag-add" id="clubAdd">确认添加</span>
  624. </div>
  625. </div>
  626. </div>
  627. <div class="modal-footer">
  628. <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
  629. <button type="button" class="btn btn-primary" id="confirm">确认</button>
  630. </div>
  631. </div><!-- /.modal-content -->
  632. </div><!-- /.modal -->
  633. </div>
  634. <%--设置机构级别弹窗--%>
  635. <div class="alert-modal" id="alertModal">
  636. <div class="title">
  637. <p>机构级别</p>
  638. <i class="close" id="alertModal-close">X</i>
  639. </div>
  640. <div class="alert-content">
  641. <p>请选择级别</p>
  642. <div class="from-radio">
  643. <input type="radio" value="1" name="clubType">资质机构
  644. <input type="radio" value="2" name="clubType">个人机构
  645. </div>
  646. </div>
  647. <div class="alertModal-btn">
  648. <button type="button" class="btn btn-default" id="close-clubleibie">取消</button>
  649. <button type="button" class="btn btn-primary" id="confirm-clubleibie">确认</button>
  650. </div>
  651. </div>
  652. <script type="text/javascript">
  653. $(document).ready(function () {
  654. //会所品项选择
  655. var opts = {
  656. $tag: $('.up-club-tag'),
  657. $tagArea: $('#clubArea'),
  658. $mainPro: $('#cMainPro'),
  659. $other: $('#clubOther'),
  660. $input: $('#clubInput'),
  661. $add: $('#clubAdd'),
  662. $type: 'club'
  663. }
  664. _util.getTags(opts);
  665. });
  666. function page(n, s) {
  667. $("#pageNo").val(n);
  668. $("#pageSize").val(s);
  669. $("#searchForm").submit();
  670. return false;
  671. }
  672. var _util = {
  673. // 隐藏输入错误提示(参数为提示元素)
  674. hideTip: function ($ele) {
  675. setTimeout(function () {
  676. $ele.hide();
  677. }, 5000);
  678. },
  679. setTags: function (opts) {
  680. var tagArr = [];
  681. opts.$tagArea.find('.new-tag.active').each(function (i, v) {
  682. var _typeName = $(v).attr('data-typeName');
  683. tagArr.push(_typeName);
  684. opts.$mainPro.val(tagArr.join('/'));
  685. })
  686. },
  687. getTags: function (opts) {
  688. opts.$tagArea.on('click', '.new-tag', function () {
  689. $('#cMainPro').val('')
  690. var $this = $(this);
  691. $this.toggleClass('active');
  692. _util.setTags(opts);
  693. })
  694. opts.$other.on('click', function () {
  695. opts.$input.css('display', 'inline-block');
  696. opts.$add.css('display', 'inline-block');
  697. })
  698. opts.$add.on('click', function () {
  699. var _tag = $.trim(opts.$input.val());
  700. if (_tag) {
  701. var flag = false;
  702. opts.$tagArea.find('.new-tag').each(function (i, v) {
  703. var _name = $(v).attr('data-typeName');
  704. if (_tag == _name) {
  705. flag = true;
  706. return false;
  707. } else {
  708. if (i == opts.$tagArea.find('.new-tag').length) {
  709. flag = false;
  710. }
  711. }
  712. })
  713. if (flag) {
  714. opts.$tagArea.find('.new-tag').each(function (i, v) {
  715. var _name = $(v).attr('data-typeName');
  716. if (_tag == _name) {
  717. $(v).addClass('active');
  718. layer.tips('该类型已存在', opts.$add);
  719. flag = true;
  720. return false;
  721. }
  722. })
  723. } else {
  724. opts.$tagArea.append('<span class="new-tag up-' + opts.$type + '-tag active" data-typeName="' + _tag + '">' + _tag + '</span> ');
  725. _util.setTags(opts);
  726. opts.$input.val('');
  727. return;
  728. }
  729. }
  730. })
  731. },
  732. }
  733. </script>
  734. <script>
  735. $(document).ready(function () {
  736. var flag = $('.clubType').attr("data-flag");//设置判断值
  737. //新增会所选择验证
  738. $('.medical-radio div input[name="firstClubType"]').on('click', function () {
  739. console.log($(this))
  740. var html = '';
  741. var nameval = $(this).val();
  742. if (nameval == '1') {
  743. $('.med-option,.qualification').show();
  744. html += '<span class="new-tag up-club-tag" data-typeName="整形">整形</span>',
  745. html += '<span class="new-tag up-club-tag" data-typeName="轻医美">轻医美</span>',
  746. html += '<span class="new-tag up-club-tag" data-typeName="皮肤科">皮肤科</span>';
  747. $('#clubArea').html(html);
  748. $('.Main-content').show();
  749. } else if (nameval == '2') {
  750. $('.med-option,.qualification,.epart').hide();
  751. $('input[name="secondClubType"]').attr('checked', false);
  752. html += '<span class="new-tag up-club-tag" data-typeName="美容">美容</span>',
  753. html += '<span class="new-tag up-club-tag" data-typeName="美体">美体</span>',
  754. html += '<span class="new-tag up-club-tag" data-typeName="美发">美发</span>',
  755. html += '<span class="new-tag up-club-tag" data-typeName="皮肤管理">皮肤管理</span>',
  756. html += '<span class="new-tag up-club-tag" data-typeName="光电">光电</span>',
  757. html += '<span class="new-tag up-club-tag" data-typeName="综合类">综合类</span>',
  758. html += '<span class="new-tag up-club-tag" data-typeName="中医养生">中医养生</span>',
  759. html += '<span class="new-tag up-club-tag" data-typeName="spa">spa</span>'
  760. $('#clubArea').html(html);
  761. $('.Main-content').show();
  762. }
  763. });
  764. //医美二级选择
  765. $('.med-option div input[name="secondClubType"]').on('click', function () {
  766. var nameVal = $(this).val();
  767. if (nameVal == '1') {
  768. $('.epart').hide()
  769. } else if (nameVal == '2') {
  770. $('.epart').show()
  771. } else if (nameVal == '3') {
  772. $('.epart').show()
  773. }
  774. });
  775. $('.clubType').on('click', function () {
  776. $('#confirm').attr('data-id', $(this).attr('data-clubID'))
  777. $('#myModal').modal();
  778. var that = $(this);
  779. var flag = that.attr("data-flag");
  780. $('#confirm').attr('data-flag', flag)
  781. var clubID = that.attr("data-clubID");
  782. if ("0" == flag) {
  783. $("#myModalLabel").html("设置分类");
  784. }
  785. if ("1" == flag) {
  786. $("#myModalLabel").html("修改分类");
  787. var json = JSON.parse($(this).attr('data-value'));
  788. var firstClubType = json["firstClubType"];
  789. var secondClubType = json["secondClubType"];
  790. var medicalPracticeLicenseImg = json["medicalPracticeLicenseImg"];
  791. var department = json["department"];
  792. var mainpro = json["mainpro"];
  793. console.log(firstClubType)
  794. if (firstClubType) {
  795. $('input[name="firstClubType"]').parent('div').eq(firstClubType - 1).find('input').attr("checked", "checked")
  796. $('input[name="firstClubType"]').parent('div').eq(firstClubType - 1).find('input').click();
  797. if (secondClubType) {
  798. $('input[name="secondClubType"]').parent('div').eq(secondClubType - 1).find('input').attr("checked", "checked")
  799. $('input[name="secondClubType"]').parent('div').eq(secondClubType - 1).find('input').click();
  800. }
  801. if (medicalPracticeLicenseImg) {
  802. $('#medicalPracticeLicenseImg').val(medicalPracticeLicenseImg);
  803. $('#medicalPracticeLicenseImgPreview').find('li').html('<img style="max-width:100px;max-height:100px;_height:100px;border:0;padding:3px;" src="' + medicalPracticeLicenseImg + '" />')
  804. }
  805. if (department) {
  806. $('#Department').val(department);
  807. }
  808. if (mainpro) {
  809. var span_ = $('#clubArea').find('span'); // 固定值
  810. var mainpro_ = mainpro.split('/'); // 回显值
  811. var defaultVal = [];
  812. var resArr = [];
  813. var html = '';
  814. $('#clubArea').html('');
  815. for (var i = 0; i < span_.length; i++) {
  816. defaultVal.push(span_[i].textContent);
  817. }
  818. var concatArr = defaultVal.concat(mainpro_);
  819. for (var i = 0; i < concatArr.length; i++) {
  820. if (resArr.indexOf(concatArr[i]) == -1) {
  821. resArr.push(concatArr[i]);
  822. html += '<span class="new-tag up-club-tag ' + concatArr[i] + '" data-typeName="' + concatArr[i] + '">' + concatArr[i] + '</span>';
  823. }
  824. }
  825. $('#clubArea').append(html);
  826. for (var i = 0; i < mainpro_.length; i++) {
  827. $('.' + mainpro_[i]).addClass('active');
  828. $('#cMainPro').val(mainpro)
  829. }
  830. }
  831. }
  832. var secondClubType = json["secondClubType"];
  833. var department = json["department"];
  834. var medicalPracticeLicenseImg = json["medicalPracticeLicenseImg"];
  835. }
  836. });
  837. $('#confirm').on('click', function () {
  838. if (flag == 0) {
  839. //会所类型
  840. if (!$('input[name="firstClubType"]').is(':checked')) {
  841. alertx('请选择会所类型')
  842. _util.hideTip($('.err-tip'));
  843. return false
  844. } else if ($('input[name="firstClubType"]:checked').val() == 1) {
  845. if (!$('input[name="secondClubType"]').is(':checked')) {
  846. alertx('请选择会所类型')
  847. _util.hideTip($('.err-tip'));
  848. return false
  849. }
  850. if ($('#medicalPracticeLicenseImg').val() == '') {
  851. alertx('请上传图片')
  852. return false
  853. }
  854. if ($('input[name="secondClubType"]:checked').val() == 2 || $('input[name="secondClubType"]:checked').val() == 3) {
  855. if ($('#Department').val() == '') {
  856. alertx('请输入科室')
  857. }
  858. } else if ($('input[name="firstClubType"]:checked').val() == 2) {
  859. }
  860. }
  861. } else {
  862. if (!$('input[name="firstClubType"]').is(':checked')) {
  863. $('input[name="firstClubType"]').parents('.medical-radio').next().show().html('请选择会所类型');
  864. _util.hideTip($('.err-tip'));
  865. return false
  866. }
  867. }
  868. if ($('#cMainPro').val() == '') {
  869. alertx('请选择主营内容')
  870. return false
  871. }
  872. var params = {
  873. mainpro: $('#cMainPro').val(),
  874. clubID: $(this).attr('data-id'),
  875. flagC: $(this).attr('data-flag')
  876. }
  877. if ($('input[name="firstClubType"]:checked').val() == 1) {
  878. params.firstClubType = 1;//会所分类
  879. params.secondClubType = $('input[name="secondClubType"]:checked').val();//二级分类
  880. params.medicalPracticeLicenseImg = $('#medicalPracticeLicenseImg').val();//资质
  881. if ($('input[name="secondClubType"]:checked').val() == 2 ||
  882. $('input[name="secondClubType"]:checked').val() == 3) {
  883. params.department = $('#Department').val();//科室
  884. }
  885. } else {
  886. params.firstClubType = 2;//会所分类
  887. }
  888. $.ajax({
  889. type: "post",
  890. url: "${ctx}/new/user/agency/editClubType",
  891. data: params,
  892. success: function (res) {
  893. if (res.errcode == '1') {
  894. alertx(res.errmsg);
  895. }
  896. if (res.errcode == '0') {
  897. console.log(res.data);
  898. window.location.href = res.data;
  899. }
  900. },
  901. error: function (res) {
  902. }
  903. });
  904. })
  905. $(document).on("change", "#auditStatus", function () {
  906. if ($("#auditStatus").val() == 2) {
  907. $("#auditNopass").show();
  908. } else {
  909. $("#auditNopass").hide();
  910. }
  911. })
  912. });
  913. var $ClubAlertContent = $('#alertModal');
  914. var $alertModalClose = $('#alertModal-close');
  915. var $alertModalCloseBtn = $('#close-clubleibie ');
  916. var $alertModalConfirm = $('#confirm-clubleibie ');
  917. //选择机构级别
  918. function showClubAlert(clubID, type) {
  919. if (type == 2) {
  920. $ClubAlertContent.find("input[type=radio][value='1']").attr("checked", true);
  921. } else {
  922. $ClubAlertContent.find("input[type=radio][value='2']").attr("checked", true);
  923. }
  924. $ClubAlertContent.show();
  925. $alertModalClose.click(function () {
  926. closeAlertConten($ClubAlertContent)
  927. })
  928. $alertModalCloseBtn.click(function () {
  929. closeAlertConten($ClubAlertContent)
  930. })
  931. $alertModalConfirm.click(function () {
  932. var $Value = $ClubAlertContent.find("input[name='clubType']:checked").val();
  933. $.post("${ctx}/new/user/agency/upgradeClub", {'id': clubID, 'type': $Value}, function (data) {
  934. console.log(data)
  935. if (true == data.success) {
  936. console.log(data.success)
  937. closeAlertConten($ClubAlertContent);
  938. window.location.reload();
  939. } else {
  940. alertx(data.msg);
  941. }
  942. }, "JSON");//这里返回的类型有:json,html,xml,text
  943. });
  944. }
  945. function closeAlertConten(obj) {
  946. obj.hide();
  947. }
  948. //更换协销
  949. function showSPSelect(clubID) {
  950. top.$.jBox("iframe:${ctx}/user/cmSp/showSelectSP", {
  951. iframeScrolling: 'no',
  952. width: 1000,
  953. height: 550,
  954. persistent: true,
  955. showScrolling: false,
  956. title: "选择协销",
  957. bottomText: '请从可供选择的项目中选择一个',
  958. buttons: {"确定": '1', "关闭": '-1'},
  959. submit: function (v, h, f) {
  960. //确定
  961. var $jboxFrame = top.$('#jbox-iframe');
  962. var $mainFrame = top.$('#mainFrame');
  963. if ('1' == v && 1 == $jboxFrame.size() && 1 == $mainFrame.size()) {
  964. var spID = $jboxFrame[0].contentWindow.getCheckedItems();
  965. console.log(spID);
  966. if ("" != spID && null != spID) {
  967. setSPSelect(spID, clubID);
  968. return true;
  969. } else {
  970. top.$.jBox.tip("请选择...");
  971. return false;
  972. }
  973. }
  974. return true;
  975. }
  976. });
  977. }
  978. function setSPSelect(spID, clubID) {
  979. console.log(spID + "=====" + clubID);
  980. $.post("${ctx}/new/user/agency/changeSp", {'spID': spID, 'clubID': clubID}, function (data) {
  981. if (true == data.success) {
  982. closeP();
  983. } else {
  984. alertx(data.msg);
  985. }
  986. }, "JSON");//这里返回的类型有:json,html,xml,text
  987. }
  988. function closeP() {
  989. var msg = '提交成功,请去“协销审核”页面进行审核';
  990. top.$.jBox.confirm(msg, '提示', function (v, h, f) {
  991. if (v == true) {
  992. window.location.href = "${ctx}/new/user/cmSp/clubChangeSp";
  993. return true;
  994. }
  995. window.location.href = "${ctx}/new/user/agency/";
  996. return true;
  997. }, {buttons: {'去审核': true, '取消': false}});
  998. }
  999. // 修改密码
  1000. function updatePwd(id) {
  1001. var regPwd = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/;
  1002. var html = "<div style='padding:20px;'><font color='red'>*</font> 新密码 :" +
  1003. "<input type='password' id='newPwd' name='newPwd' rows='1' cols='12'/>" +
  1004. "</br><font color='red'>*</font>确认密码:" +
  1005. "<input type='password' id='surePwd' name='surePwd' rows='1' cols='12'/></div>";
  1006. var submit = function (v, h, f) {
  1007. // 密码
  1008. if (!regPwd.test(f.newPwd)) {
  1009. $.jBox.tip("密码需8-16位字母数字组合", 'error', {focusId: "newPwd"});
  1010. return false;
  1011. }
  1012. if (f.newPwd !== f.surePwd) {
  1013. $.jBox.tip("确认密码与登录密码不一致", 'error', {focusId: "surePwd"});
  1014. return false;
  1015. }
  1016. $.post("${ctx}/new/user/agency/updatePwd", {'password': f.newPwd, 'id': id}, function (data) {
  1017. if (true == data.success) {
  1018. $.jBox.tip(data.msg, 'info');
  1019. $("#searchForm").submit();
  1020. } else {
  1021. $.jBox.tip(data.msg, 'error');
  1022. }
  1023. }, "JSON");//这里返回的类型有:json,html,xml,text
  1024. };
  1025. $.jBox(html, {title: "确定修改密码?", submit: submit});
  1026. }
  1027. function toAudit(id, userName, bindMobile) {
  1028. if (null == bindMobile || "" == bindMobile) {
  1029. alertx("手机号尚未填写,请先编辑手机号再进行审核");
  1030. return;
  1031. }
  1032. if (null == userName || "" == userName) {
  1033. alertx("联系人尚未尚未填写,请先编辑联系人再进行审核");
  1034. return;
  1035. }
  1036. var html = "<div id='auditBox'>"
  1037. + " <div class='bd-row'>"
  1038. + " <span><font color='red'>*</font>审核:</span>"
  1039. + " <select name='auditStatus' id='auditStatus'>"
  1040. + " <option value='1'>审核通过</option>"
  1041. + " <option value='2'>审核未通过</option>"
  1042. + " <select/>"
  1043. + " </div>"
  1044. + " <div id='auditNopass' style='display: none;'>"
  1045. + " <div class='bd-row'>"
  1046. + " <span><font color='red'>*</font>原因:</span>"
  1047. + " <div class='auditCheckBox'>"
  1048. + " <label><input name='auditCheckBox' type='checkbox' value='图片模糊'><span>图片模糊</span></label>"
  1049. + " <label><input name='auditCheckBox' type='checkbox' value='营业执照错误'><span>营业执照错误</span></label>"
  1050. + " <label><input name='auditCheckBox' type='checkbox' value='详细信息不全'><span>详细信息不全</span></label>"
  1051. + " <label><input name='auditCheckBox' type='checkbox' value='机构名称敏感'><span>机构名称敏感</span></label>"
  1052. + " <label><input name='auditCheckBox' type='checkbox' value='不符合平台要求'><span>不符合平台要求</span></label>"
  1053. + " </div>"
  1054. + " </div>"
  1055. + " <div class='bd-row'>"
  1056. + " <span></span>"
  1057. + " <div>"
  1058. + " <textarea name='auditNote'></textarea>"
  1059. + " <p class='err-tip' style='display:none;margin-left:-55px;color:red;'>请选择审核未通过的原因</p>"
  1060. + " </div>"
  1061. + " </div>"
  1062. + " </div>"
  1063. + "</div>";
  1064. var submit = function (v, h, f) {
  1065. if (f.auditStatus == '') {
  1066. $.jBox.tip("请选择状态", 'error', {focusId: "auditStatus"});
  1067. return false;
  1068. } else if (f.auditStatus == 2 && f.auditNote == '' && !f.auditCheckBox) {
  1069. $.jBox.tip("请选择审核未通过的原因", 'error', {focusId: "auditNote"});
  1070. return false;
  1071. } else if (f.auditStatus == 2 && f.auditNote.length > 100) {
  1072. $.jBox.tip("内容过长", 'error', {focusId: "auditNote"});
  1073. return false;
  1074. }
  1075. var auditText = f.auditCheckBox ? (f.auditCheckBox.toString() + ',' + f.auditNote) : f.auditNote;
  1076. $.post("${ctx}/new/user/agency/auditClub", {
  1077. 'auditStatus': f.auditStatus,
  1078. 'id': id,
  1079. 'auditNote': auditText
  1080. }, function (data) {
  1081. if (true == data.success) {
  1082. $.jBox.tip(data.msg, 'info');
  1083. // $("#searchForm").submit();
  1084. window.location.href = "${ctx}/new/user/agency/";
  1085. } else {
  1086. $.jBox.tip(data.msg, 'error');
  1087. }
  1088. }, "JSON");//这里返回的类型有:json,html,xml,text
  1089. };
  1090. $.jBox(html, {title: "审核", submit: submit});
  1091. }
  1092. function activeStageMessage(type) {// 客户价值提示语
  1093. var content = '活跃状态是根据机构半年内是否产生活跃行为' + '<br/>' +
  1094. '来定义的,活跃行为包括以下3个部分(符合其一即可),数据每日更新' + '<br/>' +
  1095. '1、该机构登录了账号' + '<br/>' +
  1096. '2、该机构有订单(不论订单状态)' + '<br/>' +
  1097. '3、该机构有咨询记录';
  1098. var content2 = '客户价值是根据机构一年内的订单数量、订单金额和访问频率3个方面来定义的,数据每日更新。' + '<br/>' +
  1099. '1、若机构一年内订单数大于等于5,则为高价值客户' + '<br/>' +
  1100. '2、若机构一年内订单数小于5,但总订单金额大于等于5万,则为一般价值客户' + '<br/>' +
  1101. '3、若机构一年内订单数小于5,总订单金额小于5万,但访问频率大于等于一月一次,则为潜在价值客户' + '<br/>' +
  1102. '4、若机构一年内订单数小于5,总订单金额小于5万,访问频率小于一月一次,则为低价值客户';
  1103. var typeMap = {
  1104. 1: content,
  1105. 2: content2
  1106. }
  1107. $.jBox.alert(typeMap[type], '提示', {width: 450})
  1108. }
  1109. function goNewBack(type, addTime, userIdentity, name, linkMan, clubId) {
  1110. // 跳转到新后台查询数据 type: 1 访问记录 2:咨询记录
  1111. const date = getZeroTimeToday();
  1112. console.log(date)
  1113. const addDateTime = stringToDate(addTime.toString());
  1114. console.log('addDateTime----', addDateTime);
  1115. if (type === 1) {
  1116. // 若是今天以前注册的机构,点击访问记录,跳转到新后台【用户行为记录】-【过往数据】页面,
  1117. // 页面展示以公司名称(个人机构以联系人当公司名称)筛选后的结果;
  1118. // 若是今天注册的机构,点击访问记录,跳转到新后台【用户行为记录】-【今日数据】页面,
  1119. // 页面展示以公司名称(个人机构以联系人当公司名称)筛选后的结果。
  1120. if (addDateTime < date) {
  1121. // 过往数据
  1122. if (userIdentity === 4) {
  1123. $.get("${ctx}/jump/link", function (data) {
  1124. link = "https://manager.caimei365.com/#/user/record-list?type=second&corporateName=" + linkMan + "&clubId=" + clubId + "&token=" + data;
  1125. window.open(link, "_blank");
  1126. });
  1127. } else {
  1128. $.get("${ctx}/jump/link", function (data) {
  1129. link = "https://manager.caimei365.com/#/user/record-list?type=second&corporateName=" + name + "&clubId=" + clubId + "&token=" + data;
  1130. window.open(link, "_blank");
  1131. });
  1132. }
  1133. } else {
  1134. // 今日数据
  1135. if (userIdentity === 4) {
  1136. $.get("${ctx}/jump/link", function (data) {
  1137. link = "https://manager.caimei365.com/#/user/record-list?type=first&corporateName=" + linkMan + "&clubId=" + clubId + "&token=" + data;
  1138. window.open(link, "_blank");
  1139. });
  1140. } else {
  1141. $.get("${ctx}/jump/link", function (data) {
  1142. link = "https://manager.caimei365.com/#/user/record-list?type=first&corporateName=" + name + "&clubId=" + clubId + "&token=" + data;
  1143. window.open(link, "_blank");
  1144. });
  1145. }
  1146. }
  1147. } else {
  1148. // 点击咨询记录,跳转到新后台【用户咨询记录汇总】页面,页面展示以机构名称筛选后的结果
  1149. if (userIdentity === 4) {
  1150. $.get("${ctx}/jump/link", function (data) {
  1151. link = "https://manager.caimei365.com/#/user/consult/list?clubName=" + linkMan + "&clubId=" + clubId + "&token=" + data;
  1152. window.open(link, "_blank");
  1153. });
  1154. } else {
  1155. $.get("${ctx}/jump/link", function (data) {
  1156. link = "https://manager.caimei365.com/#/user/consult/list?clubName=" + name + "&clubId=" + clubId + "&token=" + data;
  1157. window.open(link, "_blank");
  1158. });
  1159. }
  1160. }
  1161. }
  1162. function stringToDate(dateString) {
  1163. const parts = dateString.split(/[- :]/);
  1164. return new Date(parts[0], parts[1] - 1, parts[2], parts[3], parts[4], parts[5]);
  1165. }
  1166. // 当天0点0分时间
  1167. function getZeroTimeToday() {
  1168. const today = new Date();
  1169. return new Date(today.getFullYear(), today.getMonth(), today.getDate());
  1170. }
  1171. </script>
  1172. </body>
  1173. </html>