team_statistics_data.html 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118
  1. {extend name="public/layout" /} {block name="title"}日常任务{/block}
  2. {block name="body"}
  3. <style>
  4. html,
  5. body {
  6. display: block;
  7. width: 100%;
  8. height: 100%;
  9. }
  10. .lay-main {
  11. background-color: #EEEEEE;
  12. width: 100%;
  13. height: 100%;
  14. }
  15. .flex {
  16. display: flex;
  17. }
  18. .lay-leftBox {
  19. width: 360px;
  20. height: 97%;
  21. background-color: #fff;
  22. margin: 10px 13px 10px;
  23. box-sizing: border-box;
  24. padding: 10px;
  25. overflow-y: auto;
  26. }
  27. .lay-rightBox {
  28. width: calc(100% - 400px);
  29. height: 97%;
  30. background-color: #fff;
  31. margin-top: 10px;
  32. margin-left: 0px;
  33. box-sizing: border-box;
  34. padding: 10px;
  35. position: relative;
  36. }
  37. .lay-leftTips {
  38. width: 100%;
  39. height: 18px;
  40. line-height: 18px;
  41. border-left: 5px solid #249EFB;
  42. box-sizing: border-box;
  43. padding-left: 6px;
  44. }
  45. .lay-rightTips {
  46. width: 100%;
  47. height: 20px;
  48. display: flex;
  49. align-items: center;
  50. }
  51. .labelIcon {
  52. width: 5px;
  53. height: 18px;
  54. border-radius: 2px;
  55. background-color: #249EFB;
  56. }
  57. .valid {
  58. color: #249EFB;
  59. font-weight: 700;
  60. }
  61. .ml6 {
  62. margin-left: 6px;
  63. }
  64. .layui-border-blue,
  65. .layui-border-blue:hover {
  66. color: #249EFB;
  67. border-color: #249EFB;
  68. }
  69. .visitlistBox {
  70. width: 100%;
  71. padding: 10px;
  72. display: flex;
  73. flex-wrap: wrap;
  74. }
  75. .visitItemBox {
  76. flex: 1;
  77. }
  78. .layui-border-black {
  79. margin: 0px 5px 6px !important;
  80. position: relative;
  81. }
  82. .lay-close {
  83. position: absolute;
  84. top: -15px;
  85. right: -10px;
  86. z-index: 99 !important;
  87. }
  88. .fieldBox {
  89. width: 100%;
  90. display: flex;
  91. box-sizing: border-box;
  92. padding: 10px 0px;
  93. }
  94. .fieldLeftBox {
  95. width: 60%;
  96. box-sizing: border-box;
  97. }
  98. .fieldRightBox {
  99. flex: 1;
  100. margin-left: 10px;
  101. box-sizing: border-box;
  102. }
  103. .fieldTitle {
  104. font-size: 13px;
  105. color: #333333;
  106. font-weight: 600;
  107. line-height: 25px;
  108. }
  109. .fieldViewBox {
  110. border: 1px solid #EEEEEE;
  111. padding: 5px;
  112. border-radius: 4px;
  113. box-sizing: border-box;
  114. height: 360px;
  115. overflow: auto;
  116. }
  117. /*里面的代码可以根据自己需求去进行更改*/
  118. /* 设置滚动条的样式 */
  119. .fieldViewBox::-webkit-scrollbar {
  120. width: 4px;
  121. }
  122. /* 滚动槽 */
  123. .fieldViewBox::-webkit-scrollbar-track {
  124. -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.3);
  125. border-radius: 0px;
  126. }
  127. /* 滚动条滑块 */
  128. .fieldViewBox::-webkit-scrollbar-thumb {
  129. border-radius: 10px;
  130. background: #cccccc;
  131. -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
  132. }
  133. .searchBox {
  134. width: 100%;
  135. height: 40px;
  136. border: 1px solid #EEEEEE;
  137. border-radius: 4px;
  138. box-sizing: border-box;
  139. padding: 0px 10px;
  140. display: flex;
  141. align-items: center;
  142. }
  143. .searchBox>input {
  144. flex: 1;
  145. height: 100%;
  146. margin-left: 10px;
  147. outline: none;
  148. border: none;
  149. }
  150. .selectFieldBox {
  151. width: 100%;
  152. height: auto;
  153. overflow: hidden;
  154. box-sizing: border-box;
  155. padding: 10px 0px 10px;
  156. }
  157. .layui-icon-ok:before {
  158. font-size: 12px !important;
  159. }
  160. .layui-form-checkbox {
  161. margin-bottom: 5px;
  162. }
  163. .sortItemBox {
  164. width: 100%;
  165. height: 40px;
  166. display: flex;
  167. align-items: center;
  168. justify-content: space-between;
  169. background-color: #fff;
  170. }
  171. .sortLeft>img {
  172. width: 16px;
  173. }
  174. .sortRight>img {
  175. width: 16px;
  176. }
  177. .moveElement {
  178. cursor: move;
  179. }
  180. .fixed-btn {
  181. width: 100%;
  182. box-sizing: border-box;
  183. padding: 10px 10px;
  184. display: flex;
  185. justify-content: flex-end;
  186. border-top: 1px solid #cccccc;
  187. margin-top: 15px;
  188. position: absolute;
  189. bottom: 0px;
  190. left: 0px;
  191. }
  192. .mt10 {
  193. margin-top: 10px;
  194. }
  195. .layui-form-checkbox i {
  196. line-height: 23px !important;
  197. }
  198. .imgview {
  199. width: 100%;
  200. box-sizing: border-box;
  201. padding: 10px;
  202. position: relative;
  203. }
  204. .pagesbox {
  205. display: block;
  206. width: 100%;
  207. position: relative;
  208. background: #f0f4f7;
  209. overflow: hidden;
  210. }
  211. .topbgbox {
  212. display: block;
  213. width: 100%;
  214. height: 160px;
  215. position: absolute;
  216. top: 0;
  217. left: 0;
  218. overflow: hidden;
  219. }
  220. .topbgbox::before {
  221. content: "";
  222. width: 140%;
  223. height: 160px;
  224. position: absolute;
  225. left: -20%;
  226. top: 0;
  227. border-radius: 0 0 50% 50%;
  228. background: linear-gradient(160deg, #2376ff, #2376ff);
  229. }
  230. .clearfix::after {
  231. clear: both;
  232. content: ' ';
  233. display: table;
  234. }
  235. .clearfix::before {
  236. content: ' ';
  237. display: table;
  238. }
  239. .sortbox {
  240. padding: 16px 8px 12px;
  241. position: relative;
  242. z-index: 1;
  243. color: #fff;
  244. }
  245. .left {
  246. float: left;
  247. }
  248. .right {
  249. float: right;
  250. }
  251. .leftdapartbox {
  252. display: block;
  253. position: relative;
  254. top: 3px;
  255. }
  256. .dapartextbox {
  257. font-size: 12px;
  258. font-weight: 500;
  259. line-height: 20px;
  260. float: left;
  261. }
  262. .ellipsis {
  263. overflow: hidden;
  264. text-overflow: ellipsis;
  265. white-space: nowrap;
  266. }
  267. .leftdapartbox img {
  268. float: left;
  269. width: 6px;
  270. margin-left: 3px;
  271. position: relative;
  272. top: 8px;
  273. }
  274. .toprightbox {
  275. display: block;
  276. height: 28px;
  277. background: rgba(240, 244, 247, 0.2);
  278. border-radius: 3px;
  279. padding: 4px 56px 4px 3px;
  280. position: relative;
  281. overflow: hidden;
  282. float: right;
  283. box-sizing: border-box;
  284. }
  285. .toprightbox div {
  286. float: left;
  287. display: block;
  288. height: 20px;
  289. line-height: 20px;
  290. padding: 0 3px;
  291. text-align: center;
  292. margin-right: 5px;
  293. border-radius: 5px;
  294. color: #FFFFFF;
  295. font-size: 12px;
  296. }
  297. .toprightbox div.rightallbox {
  298. position: absolute;
  299. top: 0;
  300. right: 0;
  301. width: 54px;
  302. background: rgba(240, 244, 247, 0.2);
  303. line-height: 28px;
  304. height: 28px;
  305. border-radius: 0;
  306. box-sizing: border-box;
  307. }
  308. .rightallbox img {
  309. float: left;
  310. width: 16px;
  311. margin-left: 5px;
  312. position: relative;
  313. top: 6px;
  314. }
  315. .toprightbox div.nowsurvey {
  316. background: #1f61cd !important;
  317. }
  318. .surveybox {
  319. display: block;
  320. width: 95%;
  321. margin: 0 auto;
  322. background: #FFFFFF;
  323. box-shadow: 0px 0px 10px rgba(38, 146, 253, 0.1);
  324. border-radius: 5px;
  325. overflow: hidden;
  326. padding: 15px 0 0;
  327. box-sizing: border-box;
  328. position: relative;
  329. z-index: 2;
  330. }
  331. .topsurveybox {
  332. display: block;
  333. padding: 0 10px 12px;
  334. }
  335. .leftopsurvey {
  336. display: block;
  337. padding-left: 9px;
  338. position: relative;
  339. line-height: 20px;
  340. font-size: 13px;
  341. font-weight: bold;
  342. }
  343. .leftopsurvey::before {
  344. content: " ";
  345. display: block;
  346. width: 4px;
  347. height: 14px;
  348. background: #041826;
  349. position: absolute;
  350. top: 3px;
  351. left: 0;
  352. }
  353. .moneybox {
  354. font-size: 12px;
  355. font-weight: bold;
  356. line-height: 20px;
  357. }
  358. .color44D7B6 {
  359. color: #44D7B6 !important;
  360. }
  361. .colorF54D64 {
  362. color: #F54D64 !important;
  363. }
  364. .color333 {
  365. color: #333;
  366. }
  367. .width25 {
  368. width: 25%;
  369. }
  370. .center {
  371. text-align: center;
  372. }
  373. .numbox {
  374. line-height: 25px;
  375. font-size: 14px;
  376. color: #041826;
  377. font-weight: bold;
  378. }
  379. .everysurveynum {
  380. position: relative;
  381. float: left;
  382. padding-bottom: 10px;
  383. }
  384. .ftext {
  385. color: #89A0B7;
  386. font-size: 12px;
  387. line-height: 18px;
  388. margin-top: 4px;
  389. }
  390. .mr16 {
  391. margin-right: 12px;
  392. }
  393. .ratebox {
  394. display: block;
  395. width: 94%;
  396. background: #FFFFFF;
  397. border-radius: 5px;
  398. margin: 8px auto 0;
  399. padding: 14px 10px;
  400. box-sizing: border-box;
  401. }
  402. .everyratebox {
  403. display: block;
  404. width: 60px;
  405. height: 60px;
  406. background: linear-gradient(rgba(74, 205, 253, 0.18), rgba(36, 158, 251, 1));
  407. background-image: -webkit-linear-gradient(90deg, rgba(36, 158, 251, 1), rgba(74, 205, 253, 0.18));
  408. border-radius: 50%;
  409. }
  410. .everyratebox .ratecontentbox {
  411. display: block;
  412. width: 50px;
  413. height: 50px;
  414. background: #FFFFFF;
  415. border-radius: 50%;
  416. position: absolute;
  417. top: 5px;
  418. left: 5px;
  419. overflow: hidden;
  420. padding-top: 10px;
  421. box-sizing: border-box;
  422. }
  423. .relative {
  424. position: relative;
  425. }
  426. .everyratebox1 {
  427. background: linear-gradient(rgba(121, 237, 220, 0.18), rgba(68, 215, 182, 1));
  428. background-image: -webkit-linear-gradient(90deg, rgba(68, 215, 182, 1), rgba(121, 237, 220, 0.18));
  429. }
  430. .everyratebox2 {
  431. background: linear-gradient(rgba(252, 219, 0, 0.18), rgba(247, 181, 0, 1));
  432. background-image: -webkit-linear-gradient(90deg, rgba(247, 181, 0, 1), rgba(252, 219, 0, 0.18));
  433. }
  434. .everyratebox3 {
  435. background: linear-gradient(rgba(253, 157, 0, 0.18), rgba(250, 100, 0, 1));
  436. background-image: -webkit-linear-gradient(90deg, rgba(250, 100, 0, 1), rgba(253, 157, 0, 0.18));
  437. }
  438. .ratenumbox {
  439. font-weight: bold;
  440. font-size: 13px;
  441. color: #222;
  442. line-height: 18px;
  443. }
  444. .ratetextbox {
  445. display: block;
  446. font-size: 10px;
  447. line-height: 14px;
  448. color: #89A0B7;
  449. }
  450. .sortbtnbox{
  451. padding: 12px 10px 8px;
  452. }
  453. .everysortbtn{
  454. text-align: center;
  455. line-height: 18px;
  456. margin-right: 12px;
  457. }
  458. .allsurveybox{
  459. display: block;
  460. padding-bottom: 10px;
  461. }
  462. .font14{
  463. font-size: 14px;
  464. }
  465. .ml8{
  466. margin-left: 4px;
  467. }
  468. .orderimg{
  469. display: block;
  470. width: 6px;
  471. }
  472. .toporderimg{
  473. margin-top: 6px;
  474. margin-bottom: 1px;
  475. transform: rotateX(180deg);
  476. }
  477. .topsurveybox img{
  478. width: 13px;
  479. height: 13px;
  480. border-radius: 50%;
  481. position: relative;
  482. top: 1.5px;
  483. float: left;
  484. }
  485. .leftopsurvey1{
  486. padding-left: 4px;
  487. }
  488. .leftopsurvey1::before{
  489. display: none !important;
  490. }
  491. .barechart{
  492. display: block;
  493. width: 100%;
  494. height:170px;
  495. }
  496. </style>
  497. <body>
  498. <div class="lay-main flex">
  499. <div class="lay-leftBox">
  500. <div class="lay-leftTips">手机端示例</div>
  501. <div class="imgview">
  502. <div class="pagesbox ">
  503. <div class="topbgbox"></div>
  504. <div class="clearfix sortbox">
  505. <div class="left leftdapartbox clearfix">
  506. <div class="ellipsis dapartextbox">团队部门名称</div>
  507. <img
  508. src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAEqADAAQAAAABAAAACgAAAADKOW4WAAAAhElEQVQoFWP8//9/GQMDQx4QswIxExAzQmkQG52PLAdi/wfiuYyMjOmMQIOeADnSQEwu+AY0iBtk4xRyTYDqa4XrB7qqHYjJAQhDYKYBTSHVsE6YXgyaBMN6MDSjCxBhWD+6Hpx8PIZNwqkJlwQWw6biUktQHGhYPRC/B+JuIAYlQJwAAIgmA7GMAt7oAAAAAElFTkSuQmCC">
  509. </div>
  510. <div class="toprightbox clearfix">
  511. <div class="everysurveybtn nowsurvey">今日</div>
  512. <div class="everysurveybtn ">近7日</div>
  513. <div class="everysurveybtn ">近一月</div>
  514. <div class="everysurveybtn ">其他</div>
  515. <div class="everysurveybtn rightallbox" style="margin-right: 0px;">
  516. <img
  517. src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAc1JREFUeF7tmiFLRUEQhc+pFkEQRBBMFjWIxb8hYrHZzWYt/gG7xWDyWcRisRj8AQomk8EsWEeuvPDeFd/uwux1995z6x3mzXx7Znbm8oiBPxx4/hAAKWDgBFQCAxeAmmAnJWBmcwCO/1DbJ4BXkrf/ocbsAMxsCcAdgK1AgvcADkm+dwmiCwAjALuRSY1I7kXauph1AaA50eXIaD9INorp7OkCgKVkQzJ7TJPxZP8xMxMAKSCBgEpAPUBNMHtj1i0wQSA7bV2DmgM0CNU3CU7s75sAFlpzzFezvwO4JvkYmnGq6wEJ+3uT+zrJl1kQagSQsr+fkjzpG4A3AKshaY/fP5Pc6BsA16ZVYwkIQKT8f8xC66sUUNsk6H1i3v5S1Blj+2sZ8g7Y219MUik2AtCm5X1i3v5STjfGtkoFmNk8gDMA+wAWW4k+ALgkedFLAGa2AuAGwHYgwSuSByEI1SnAzM4BHIUSG78P7io1AmhW8bVIAE8kd2bZ1gjAdVQXgNquQe9rVQqQAloEvCVWuj+VgEpAJTBNoPSa9Y5PPUA9QD1APWCKgHeTKd2fmmDkh4XemmX/k1Tp5ASg9BPKHZ8UkJtw6f6lgNJPKHd833wkoVD2aixMAAAAAElFTkSuQmCC">
  518. <span>统计</span>
  519. </div>
  520. </div>
  521. </div>
  522. <div class="surveybox">
  523. <div class="clearfix topsurveybox">
  524. <div class="left leftopsurvey">数据概况</div>
  525. <div class="right moneybox colorF54D64">业绩(万元):256.2568</div>
  526. </div>
  527. <div class="surveynumbox surveynum1box clearfix color333">
  528. <div class="width25 center everysurveynum customer_num">
  529. <div class="numbox">152</div>
  530. <div class="ftext">客户总量</div>
  531. </div>
  532. <div class="width25 center everysurveynum valid_count">
  533. <div class="numbox">89</div>
  534. <div class="ftext">有效线索</div>
  535. </div>
  536. <div class="width25 center everysurveynum visit_num">
  537. <div class="numbox">26</div>
  538. <div class="ftext">加微</div>
  539. </div>
  540. <div class="width25 center everysurveynum yylf_num">
  541. <div class="numbox">21</div>
  542. <div class="ftext">预约量房</div>
  543. </div>
  544. <div class="width25 center everysurveynum lf_num">
  545. <div class="numbox">59</div>
  546. <div class="ftext">量房</div>
  547. </div>
  548. <div class="width25 center everysurveynum yydd_num">
  549. <div class="numbox">49</div>
  550. <div class="ftext">预约到店</div>
  551. </div>
  552. <div class="width25 center everysurveynum ydd_num">
  553. <div class="numbox">32</div>
  554. <div class="ftext">到店</div>
  555. </div>
  556. <div class="width25 center everysurveynum deposit_num">
  557. <div class="numbox">13</div>
  558. <div class="ftext">定金</div>
  559. </div>
  560. <div class="width25 center everysurveynum signed_num">
  561. <div class="numbox">5</div>
  562. <div class="ftext">合同</div>
  563. </div>
  564. <div class="width25 center everysurveynum yyhd_num">
  565. <div class="numbox">9</div>
  566. <div class="ftext">预计到外场</div>
  567. </div>
  568. <div class="width25 center everysurveynum ydc_num">
  569. <div class="numbox">4</div>
  570. <div class="ftext">外场到场</div>
  571. </div>
  572. </div>
  573. <div style="display:none;" class="barechart" id="barechart"></div>
  574. </div>
  575. <div class="clearfix ratebox">
  576. <div class="everyratebox relative left mr16">
  577. <div class="ratecontentbox center ">
  578. <div class="ratenumbox">58%</div>
  579. <div class="ratetextbox">量房率</div>
  580. </div>
  581. </div>
  582. <div class="everyratebox relative left mr16 everyratebox1">
  583. <div class="ratecontentbox center ">
  584. <div class="ratenumbox">30%</div>
  585. <div class="ratetextbox">到店率</div>
  586. </div>
  587. </div>
  588. <div class="everyratebox relative left mr16 everyratebox2">
  589. <div class="ratecontentbox center ">
  590. <div class="ratenumbox">2%</div>
  591. <div class="ratetextbox">定金率</div>
  592. </div>
  593. </div>
  594. <div class="everyratebox relative left everyratebox3">
  595. <div class="ratecontentbox center ">
  596. <div class="ratenumbox">1.5%</div>
  597. <div class="ratetextbox">合同率</div>
  598. </div>
  599. </div>
  600. </div>
  601. <div class="sortbtnbox clearfix">
  602. <div class="left everysortbtn">
  603. <div class="left font14"> 业绩 </div>
  604. <div class="left ml8">
  605. <img src="__STATIC__/img/crmasc.png" class="orderimg toporderimg" />
  606. <img src="__STATIC__/img/crmasc.png" class="orderimg" />
  607. </div>
  608. </div>
  609. <div class="left everysortbtn">
  610. <div class="left font14"> 加微 </div>
  611. <div class="left ml8">
  612. <img src="__STATIC__/img/crmasc.png" class="orderimg toporderimg" />
  613. <img src="__STATIC__/img/crmasc.png" class="orderimg" />
  614. </div>
  615. </div>
  616. <div class="left everysortbtn">
  617. <div class="left font14"> 量房 </div>
  618. <div class="left ml8">
  619. <img src="__STATIC__/img/crmasc.png" class="orderimg toporderimg" />
  620. <img src="__STATIC__/img/crmasc.png" class="orderimg" />
  621. </div>
  622. </div>
  623. <div class="left everysortbtn">
  624. <div class="left font14"> 到店 </div>
  625. <div class="left ml8">
  626. <img src="__STATIC__/img/crmasc.png" class="orderimg toporderimg" />
  627. <img src="__STATIC__/img/crmasc.png" class="orderimg" />
  628. </div>
  629. </div>
  630. <div class="left everysortbtn">
  631. <div class="left font14"> 定金 </div>
  632. <div class="left ml8">
  633. <img src="__STATIC__/img/crmasc.png" class="orderimg toporderimg" />
  634. <img src="__STATIC__/img/crmasc.png" class="orderimg" />
  635. </div>
  636. </div>
  637. <div class="left everysortbtn" style="margin-right: 0;">
  638. <div class="left font14"> 合同 </div>
  639. <div class="left ml8">
  640. <img src="__STATIC__/img/crmasc.png" class="orderimg toporderimg" />
  641. <img src="__STATIC__/img/crmasc.png" class="orderimg" />
  642. </div>
  643. </div>
  644. </div>
  645. <div class="allsurveybox">
  646. <div class="surveybox">
  647. <div class="clearfix topsurveybox">
  648. <img src="__STATIC__/img/default.png" />
  649. <div class="left leftopsurvey leftopsurvey1">总管理员</div>
  650. <div class="right moneybox color44D7B6">业绩(万元):256.2568</div>
  651. </div>
  652. <div class="surveynumbox clearfix color333">
  653. <div class="width25 center everysurveynum customer_num">
  654. <div class="numbox">152</div>
  655. <div class="ftext">客户总量</div>
  656. </div>
  657. <div class="width25 center everysurveynum valid_count">
  658. <div class="numbox">89</div>
  659. <div class="ftext">有效线索</div>
  660. </div>
  661. <div class="width25 center everysurveynum visit_num">
  662. <div class="numbox">26</div>
  663. <div class="ftext">加微</div>
  664. </div>
  665. <div class="width25 center everysurveynum yylf_num">
  666. <div class="numbox">21</div>
  667. <div class="ftext">预约量房</div>
  668. </div>
  669. <div class="width25 center everysurveynum lf_num">
  670. <div class="numbox">59</div>
  671. <div class="ftext">量房</div>
  672. </div>
  673. <div class="width25 center everysurveynum yydd_num">
  674. <div class="numbox">49</div>
  675. <div class="ftext">预约到店</div>
  676. </div>
  677. <div class="width25 center everysurveynum ydd_num">
  678. <div class="numbox">32</div>
  679. <div class="ftext">到店</div>
  680. </div>
  681. <div class="width25 center everysurveynum deposit_num">
  682. <div class="numbox">13</div>
  683. <div class="ftext">定金</div>
  684. </div>
  685. <div class="width25 center everysurveynum signed_num">
  686. <div class="numbox">5</div>
  687. <div class="ftext">合同</div>
  688. </div>
  689. <div class="width25 center everysurveynum yyhd_num">
  690. <div class="numbox">9</div>
  691. <div class="ftext">预计到外场</div>
  692. </div>
  693. <div class="width25 center everysurveynum ydc_num">
  694. <div class="numbox">4</div>
  695. <div class="ftext">外场到场</div>
  696. </div>
  697. </div>
  698. </div>
  699. </div>
  700. </div>
  701. </div>
  702. </div>
  703. <div class="lay-rightBox">
  704. <div class="lay-rightTips">
  705. <div class="labelIcon"></div>
  706. <span class="ml6">数据概览设置</span>
  707. </div>
  708. <div class="layui-form mt10">
  709. <input lay-filter="switchTest" type="checkbox" name="addwechat" {if condition="$type.customer_num" }
  710. checked {/if} title="客户总量" value="customer_num">
  711. <input lay-filter="switchTest" type="checkbox" name="addwechat" {if condition="$type.visit_num" }
  712. checked {/if} title="加微" value="visit_num">
  713. <input lay-filter="switchTest" type="checkbox" name="addwechat" {if condition="$type.yylf_num" } checked
  714. {/if} title="预约量房" value="yylf_num">
  715. <input lay-filter="switchTest" type="checkbox" name="addwechat" {if condition="$type.lf_num" } checked
  716. {/if} title="量房" value="lf_num">
  717. <input lay-filter="switchTest" type="checkbox" name="addwechat" {if condition="$type.yydd_num" } checked
  718. {/if} title="预约到店" value="yydd_num">
  719. <input lay-filter="switchTest" type="checkbox" name="addwechat" {if condition="$type.ydd_num" } checked
  720. {/if} title="到店" value="ydd_num">
  721. <input lay-filter="switchTest" type="checkbox" name="addwechat" {if condition="$type.deposit_num" }
  722. checked {/if} title="定金" value="deposit_num">
  723. <input lay-filter="switchTest" type="checkbox" name="addwechat" {if condition="$type.signed_num" }
  724. checked {/if} title="合同" value="signed_num">
  725. <input lay-filter="switchTest" type="checkbox" name="addwechat" {if condition="$type.yyhd_num" } checked
  726. {/if} title="预计到外场" value="yyhd_num">
  727. <input lay-filter="switchTest" type="checkbox" name="addwechat" {if condition="$type.ydc_num" } checked
  728. {/if} title="外场到场" value="ydc_num">
  729. </div>
  730. <div class="fixed-btn">
  731. <div class="layui-btn layui-btn-primary">取消</div>
  732. <button type="button" class="layui-btn mdt15 mdl15" id="save_all">保存</button>
  733. </div>
  734. </div>
  735. </div>
  736. </div>
  737. </body>
  738. {/block}
  739. {block name="js"}
  740. <script src="__STATIC__/js/echarts.min.js"></script>
  741. <script>
  742. layui.config({
  743. base: '__LAYUI__/',
  744. urlbase: '/sys'
  745. }).extend({
  746. index: 'lib/index' //主入口模块
  747. }).use(['index', 'table', 'laypage', 'element'], function () {
  748. var $ = layui.$,
  749. table = layui.table,
  750. laypage = layui.laypage,
  751. element = layui.element,
  752. form = layui.form;
  753. $('#save_all').click(function () {
  754. var value = [];
  755. $("input:checkbox[name='addwechat']:checked").each(function () {
  756. value.push($(this).val());
  757. });
  758. if (value.length < 5) {
  759. layer.msg('最少选中5个统计数据展示', { anim: 6 })
  760. return;
  761. }
  762. $.ajax({
  763. type: "post",
  764. url: '{:url("customerSetting/team_statistics_data_save")}',
  765. data: { value: value },
  766. success: function (res) {
  767. surveyfun();
  768. layer.msg(res.msg, { anim: 0, time: 800 });
  769. }
  770. })
  771. });
  772. let showobj=null;
  773. surveyfun();
  774. function surveyfun(){
  775. $.ajax({
  776. type: "post",
  777. url: '{:url("customerSetting/teamStatisticsSetting")}',
  778. data: {},
  779. success: function (res) {
  780. if(res.code==1){
  781. showobj= res.data;
  782. if($('.rightallbox')[0].className.indexOf('nowsurvey')>-1){
  783. setTimeout(() => {
  784. echartbox(showobj);
  785. }, 100);
  786. }
  787. if(!!showobj.customer_num&&showobj.customer_num==1){
  788. $($('.customer_num')[0]).show();
  789. $($('.customer_num')[1]).show();
  790. }else{
  791. $($('.customer_num')[0]).hide();
  792. $($('.customer_num')[1]).hide();
  793. }
  794. if (!!showobj.deposit_num && showobj.deposit_num == 1) {
  795. $($('.deposit_num')[0]).show();
  796. $($('.deposit_num')[1]).show();
  797. } else {
  798. $($('.deposit_num')[0]).hide();
  799. $($('.deposit_num')[1]).hide();
  800. }
  801. if (!!showobj.lf_num && showobj.lf_num == 1) {
  802. $($('.lf_num')[0]).show();
  803. $($('.lf_num')[1]).show();
  804. } else {
  805. $($('.lf_num')[0]).hide();
  806. $($('.lf_num')[1]).hide();
  807. }
  808. if (!!showobj.signed_num && showobj.signed_num == 1) {
  809. $($('.signed_num')[0]).show();
  810. $($('.signed_num')[1]).show();
  811. } else {
  812. $($('.signed_num')[0]).hide();
  813. $($('.signed_num')[1]).hide();
  814. }
  815. if (!!showobj.valid_count && showobj.valid_count == 1) {
  816. $($('.valid_count')[0]).show();
  817. $($('.valid_count')[1]).show();
  818. } else {
  819. $($('.valid_count')[0]).hide();
  820. $($('.valid_count')[1]).hide();
  821. }
  822. if (!!showobj.visit_num && showobj.visit_num == 1) {
  823. $($('.visit_num')[0]).show();
  824. $($('.visit_num')[1]).show();
  825. } else {
  826. $($('.visit_num')[0]).hide();
  827. $($('.visit_num')[1]).hide();
  828. }
  829. if (!!showobj.ydc_num && showobj.ydc_num == 1) {
  830. $($('.ydc_num')[0]).show();
  831. $($('.ydc_num')[1]).show();
  832. } else {
  833. $($('.ydc_num')[0]).hide();
  834. $($('.ydc_num')[1]).hide();
  835. }
  836. if (!!showobj.ydd_num && showobj.ydd_num == 1) {
  837. $($('.ydd_num')[0]).show();
  838. $($('.ydd_num')[1]).show();
  839. } else {
  840. $($('.ydd_num')[0]).hide();
  841. $($('.ydd_num')[1]).hide();
  842. }
  843. if (!!showobj.yydd_num && showobj.yydd_num == 1) {
  844. $($('.yydd_num')[0]).show();
  845. $($('.yydd_num')[1]).show();
  846. } else {
  847. $($('.yydd_num')[0]).hide();
  848. $($('.yydd_num')[1]).hide();
  849. }
  850. if (!!showobj.yyhd_num && showobj.yyhd_num == 1) {
  851. $($('.yyhd_num')[0]).show();
  852. $($('.yyhd_num')[1]).show();
  853. } else {
  854. $($('.yyhd_num')[0]).hide();
  855. $($('.yyhd_num')[1]).hide();
  856. }
  857. if (!!showobj.yylf_num && showobj.yylf_num == 1) {
  858. $($('.yylf_num')[0]).show();
  859. $($('.yylf_num')[1]).show();
  860. } else {
  861. $($('.yylf_num')[0]).hide();
  862. $($('.yylf_num')[1]).hide();
  863. }
  864. }
  865. }
  866. })
  867. }
  868. for(let i=0;i< $('.everysurveybtn').length;i++){
  869. $('.everysurveybtn')[i].index=i;
  870. $($('.everysurveybtn')[i]).click(function(){
  871. let index=this.index;
  872. for(let j = 0; j < $('.everysurveybtn').length; j++){
  873. $($('.everysurveybtn')[j]).removeClass('nowsurvey');
  874. }
  875. $(this).addClass('nowsurvey');
  876. if(index==4){
  877. $('.surveynum1box').hide();
  878. $('.barechart').show();
  879. surveyfun();
  880. }else{
  881. $('.surveynum1box').show();
  882. $('.barechart').hide();
  883. }
  884. })
  885. }
  886. });
  887. function echartbox(showobj) {
  888. var myChart = echarts.init(document.getElementById('barechart'));
  889. var option;
  890. let arr = [{
  891. text: '客户',
  892. name: 'customer_num',
  893. num: 152
  894. },
  895. {
  896. text: '有效线索',
  897. name: 'valid_count',
  898. num: 89
  899. },
  900. {
  901. text: '加微',
  902. name: 'visit_num',
  903. num: 26
  904. },
  905. {
  906. text: '量房',
  907. name: 'lf_num',
  908. num: 21
  909. },
  910. {
  911. text: '到店',
  912. name: 'ydd_num',
  913. num: 32
  914. },
  915. {
  916. text: '定金',
  917. name: 'deposit_num',
  918. num: 13
  919. },
  920. {
  921. text: '合同',
  922. name: 'signed_num',
  923. num: 5
  924. },
  925. {
  926. text: '预约量房',
  927. name: 'yylf_num',
  928. num: 21
  929. },
  930. {
  931. text: '预约到店',
  932. name: 'yydd_num',
  933. num: 49
  934. },
  935. {
  936. text: '预计到外场',
  937. name: 'yyhd_num',
  938. num: 9
  939. },
  940. {
  941. text: '外场到场',
  942. name: 'ydc_num',
  943. num: 4
  944. },
  945. ];
  946. let arr1 = [],
  947. arr2 = [];
  948. for (let i = 0; i < arr.length; i++) {
  949. if (showobj[arr[i].name] == 1) {
  950. arr1.push(arr[i].text);
  951. arr2.push(arr[i].num);
  952. }
  953. }
  954. option = {
  955. xAxis: {
  956. axisTick: {
  957. show: false
  958. },
  959. axisLine: {
  960. show: true,
  961. lineStyle: {
  962. color: '#9DB6CF',
  963. width: 2
  964. }
  965. },
  966. z: 10,
  967. axisLabel: {
  968. show: true,
  969. interval: 0, //使x轴上的文字显示完全,
  970. fontSize: '10',
  971. formatter: function (params) {
  972. let newParamsName = "";
  973. if (params.length > 2) {
  974. var tempStr = params.substring(0, 2) + "\n";
  975. newParamsName = tempStr + params.substring(2, params.length);
  976. } else {
  977. newParamsName = params;
  978. }
  979. return newParamsName;
  980. }
  981. },
  982. data: arr1
  983. },
  984. grid: {
  985. left: '3%',
  986. right: '4%',
  987. bottom: '32',
  988. top: '15'
  989. },
  990. yAxis: {
  991. axisLine: {
  992. show: true,
  993. lineStyle: {
  994. color: '#9DB6CF',
  995. width: 2
  996. }
  997. },
  998. axisTick: {
  999. show: false
  1000. },
  1001. axisLabel: {
  1002. show: false
  1003. },
  1004. splitLine: {
  1005. show: false
  1006. }
  1007. },
  1008. series: [{
  1009. type: 'bar',
  1010. barWidth: 14,
  1011. label: {
  1012. show: true,
  1013. color: '#222222',
  1014. position: 'top'
  1015. },
  1016. itemStyle: {
  1017. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1018. offset: 0,
  1019. color: '#ABC7FE'
  1020. },
  1021. {
  1022. offset: 1,
  1023. color: '#2476FE'
  1024. }
  1025. ])
  1026. },
  1027. data: arr2
  1028. }]
  1029. };
  1030. myChart.setOption(option);
  1031. }
  1032. </script>
  1033. {/block}