1
0

summary_report.html 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. {extend name="public/layout"}
  2. {block name="body"}
  3. <link rel="stylesheet" href="__LAYUI__/layui/css/layui.css" media="all">
  4. <link rel="stylesheet" " href=" /static/css/common.css">
  5. <script src="/static/js/jquery.min.js"></script>
  6. <style>
  7. body {
  8. padding-bottom: 40px;
  9. }
  10. .searchtitlebox {
  11. display: block;
  12. padding: 15px 10px;
  13. border: 1px solid #F0F0F0;
  14. background: #FCFCFC;
  15. margin-top: 5px;
  16. margin-bottom: 10px;
  17. position: relative;
  18. min-width: 800px;
  19. }
  20. .searchbox {
  21. display: block;
  22. margin-top: 8px;
  23. text-align: center;
  24. }
  25. .searchbox input {
  26. display: inline-block;
  27. height: 26px;
  28. line-height: 26px;
  29. padding-left: 3px;
  30. vertical-align: middle;
  31. }
  32. body {
  33. font-size: 12px;
  34. font-family: "宋体";
  35. }
  36. .selectbox {
  37. float: left;
  38. }
  39. .leftselect {
  40. float: left;
  41. height: 26px;
  42. line-height: 26px;
  43. }
  44. .selectbox select {
  45. float: left;
  46. height: 26px;
  47. }
  48. .searchtext {
  49. border: 1px solid #ccc;
  50. background: #fff url(__STATIC__/img/icon071402.png) no-repeat;
  51. padding: 1px 2px;
  52. height: 24px;
  53. line-height: 24px;
  54. vertical-align: middle;
  55. text-indent: 3px;
  56. margin-left: 4px;
  57. }
  58. .searchbtn1 {
  59. margin-left: 4px;
  60. cursor: pointer;
  61. color: #000;
  62. background: url(__STATIC__/img/btn_bg.gif) repeat-x;
  63. border: 1px solid #C0C0C0;
  64. padding: 0 12px;
  65. *padding: 0 6px;
  66. height: 26px;
  67. }
  68. .layui-table td,
  69. .layui-table th {
  70. font-size: 12px;
  71. }
  72. .layui-table th {
  73. font-weight: bold;
  74. }
  75. .dingjingorder {
  76. height: 25px;
  77. width: 40px;
  78. background-color: #65c001;
  79. color: #FFF;
  80. text-align: center;
  81. line-height: 25px;
  82. z-index: 100;
  83. display: block;
  84. position: absolute;
  85. top: 1px;
  86. right: 3px;
  87. border-radius: 11px;
  88. font-size: 12px;
  89. }
  90. .addvx {
  91. position: absolute;
  92. top: -5px;
  93. right: 1px;
  94. height: 14px;
  95. line-height: 14px;
  96. font-size: 16px;
  97. color: #666;
  98. font-family: "宋体";
  99. }
  100. .statebox {
  101. width: 40px;
  102. text-align: center;
  103. z-index: 100;
  104. display: block;
  105. position: absolute;
  106. font-size: 12px;
  107. top: -5px;
  108. right: 0px;
  109. border-radius: 0px;
  110. background: #4285f4;
  111. color: #efefef;
  112. height: 20px;
  113. line-height: 20px;
  114. }
  115. .layui-table-cell {
  116. overflow: initial;
  117. }
  118. #customer_detail {
  119. display: block;
  120. width: 435px;
  121. height: 100%;
  122. position: absolute;
  123. top: 0;
  124. left: 0;
  125. }
  126. .rightbox {
  127. display: block;
  128. width: calc(100% - 435px);
  129. margin-left: 435px;
  130. }
  131. .unstatusbox {
  132. display: block;
  133. position: absolute;
  134. top: -5px;
  135. left: 0;
  136. width: 100%;
  137. height: 37px;
  138. background-color: #FF6600;
  139. text-align: center;
  140. color: #FFF;
  141. }
  142. .statusbox {
  143. position: absolute;
  144. top: 0px;
  145. right: 0px;
  146. color: #666;
  147. text-align: right;
  148. z-index: 100;
  149. display: block;
  150. font-size: 12px;
  151. }
  152. .layui-table-view .layui-form-checkbox {
  153. width: 16px;
  154. height: 16px;
  155. line-height: 16px;
  156. padding-right: 0;
  157. }
  158. .layui-table-view .layui-form-checkbox i {
  159. height: 16px;
  160. width: 16px;
  161. font-size: 14px;
  162. }
  163. .novisitlog {
  164. background-color: #9139db !important;
  165. color: #FFF;
  166. }
  167. .novisitlog a {
  168. color: #FFF;
  169. }
  170. .crmsearchlist {
  171. max-height: 760px;
  172. cursor: pointer;
  173. }
  174. .tablebox .layui-form.layui-border-box.layui-table-view {
  175. max-height: 400px !important;
  176. height: auto !important;
  177. }
  178. .searchbox .layui-form-select {
  179. float: left;
  180. width: 130px;
  181. }
  182. .searchbox input {
  183. border: 1px solid #e6e6e6 !important;
  184. }
  185. .layui-table-body {
  186. max-height: 400px !important;
  187. height: auto !important;
  188. }
  189. .layui-table-view .layui-table td {
  190. cursor: pointer;
  191. overflow: hidden;
  192. }
  193. .layui-form-checked {
  194. background-color: #37AF6E;
  195. }
  196. .layui-table-view .layui-form-checked i {
  197. color: #fff;
  198. }
  199. .summary_report h1 {
  200. text-align: center;
  201. margin-bottom: 20px;
  202. margin-top: 20px;
  203. letter-spacing: 2px;
  204. font-family: Arial, Helvetica, sans-serif;
  205. }
  206. </style>
  207. <body class="clearfix">
  208. <iframe id="customer_detail" style="display: none;" src=""></iframe>
  209. <div class="crmbox summary_report">
  210. <form class="layui-form">
  211. <div class="searchtitlebox">
  212. <div style="margin-bottom:8px;">您当前的操作 · <b>各装饰公司年度报表</b>
  213. <div class="searchbox clearfix" style="width: 316px;float: right;margin-top: 0;">
  214. <div class="selectbox" style="width: 316px;float: right;">
  215. <select name="contain" lay-search>
  216. <option value="">==包含==</option>
  217. <option value="1">统计无效</option>
  218. </select>
  219. <button class="left searchbtn1" type="button" lay-submit lay-filter="search">查看</button>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. <h1>各装饰公司各重点楼盘小区综合报表</h1>
  225. <div class="crmsearchlist">
  226. <table lay-filter="crmsearchlist" id="crmsearchlist"></table>
  227. </div>
  228. <div style="margin: 0 auto;">
  229. <div style="color: #999;text-align: right;">
  230. <p>注:</p>
  231. <p>1、基本数据:线索是根据信息录入的报名认时间统计。</p>
  232. <p>2、基本数据:加微是根据信息录入的时报名时间统计。</p>
  233. <p>3、基本数据:见面到访是根据首次洽谈的时间统计。</p>
  234. <p>4、基本数据:预定合同是根据定金时间统计,和报名、见面到访时间无关。</p>
  235. <p>5、基本数据:施工合同是根据合同时间统计,和报名、见面到访时间无关。</p>
  236. <p>6、注销:线索是根据变更线索无效的默认时间统计,和线索报名无关。</p>
  237. <p>7、注销:见面到访是根据首次洽谈时间统计,和线索报名时间无关。</p>
  238. </div>
  239. </div>
  240. </form>
  241. </div>
  242. </body>
  243. <script src="__LAYUI__/layui/layui.js"></script>
  244. {/block}{block name="js"}
  245. <script type="text/javascript">
  246. var reload = null,
  247. resizefun = null;
  248. layui.config({
  249. base: '__LAYUI__/',
  250. urlbase: '/sys'
  251. }).extend({
  252. index: 'lib/index' //主入口模块
  253. }).use(['table', 'laydate'], function() {
  254. var table = layui.table,
  255. laydate = layui.laydate,
  256. $ = layui.$;
  257. form = layui.form;
  258. var field = {};
  259. form.on('submit(search)', function(data) {
  260. var invalid = $('[name=contain]').val();
  261. field['invalid'] = invalid;
  262. //执行重载
  263. $('.crmsearchlist').empty();
  264. $('.crmsearchlist').append('<table lay-filter="crmsearchlist" id="crmsearchlist"></table>');
  265. table.render({
  266. elem: '#crmsearchlist',
  267. url: '{:url("community/summary_report")}',
  268. data: [],
  269. //even: true,
  270. cols: getCol(invalid),
  271. page: true,
  272. limits: [10],
  273. limit: 10, //每页默认显示的数量,
  274. height: 'full-120',
  275. text: '对不起,加载出现异常!',
  276. done: function(res, curr, count) {
  277. console.log(this);
  278. // this.cols = []; //(关键代码)将cols初始化,否则表格重载时无法正确重新渲染表头
  279. },
  280. error :function(){
  281. console.log(111);
  282. // this.cols = []; //(关键代码)将cols初始化,否则表格重载时无法正确重新渲染表头
  283. }
  284. });
  285. });
  286. table.render({
  287. elem: '#crmsearchlist',
  288. url: '{:url("community/summary_report")}',
  289. data: [],
  290. //even: true,
  291. cols: getCol(),
  292. page: true,
  293. limits: [10],
  294. limit: 10, //每页默认显示的数量,
  295. height: 'full-120',
  296. text: '对不起,加载出现异常!',
  297. done: function(res, curr, count) {
  298. console.log(this);
  299. // this.cols = []; //(关键代码)将cols初始化,否则表格重载时无法正确重新渲染表头
  300. },
  301. error :function(){
  302. console.log(111);
  303. // this.cols = []; //(关键代码)将cols初始化,否则表格重载时无法正确重新渲染表头
  304. }
  305. });
  306. function getCol(invalid) {
  307. var arr = [
  308. [{
  309. title: '楼盘名称',
  310. field: 'name',
  311. align: 'center',
  312. rowspan: 2,
  313. },
  314. {
  315. title: '基本数据',
  316. field: 'community_name',
  317. align: 'center',
  318. colspan: 12,
  319. }
  320. ],
  321. [{
  322. title: '楼盘户数',
  323. field: 'households',
  324. align: 'center'
  325. },
  326. {
  327. title: '信息量',
  328. field: 'count',
  329. align: 'center',
  330. },
  331. {
  332. title: '加微量',
  333. field: 'wechat',
  334. align: 'center',
  335. },
  336. {
  337. title: '加微率',
  338. field: 'wechat_lv',
  339. align: 'center',
  340. },
  341. {
  342. title: '进群量',
  343. field: 'into_group',
  344. align: 'center',
  345. },
  346. {
  347. title: '进群率',
  348. field: 'into_group_lv',
  349. align: 'center',
  350. },
  351. {
  352. title: '见面量',
  353. field: 'visit',
  354. align: 'center',
  355. },
  356. {
  357. title: '见面率',
  358. field: 'visit_lv',
  359. align: 'center',
  360. },
  361. {
  362. title: '定金量',
  363. field: 'deposit',
  364. align: 'center',
  365. },
  366. {
  367. title: '成单率',
  368. field: 'deposit_lv',
  369. align: 'center',
  370. },
  371. {
  372. title: '合同量',
  373. field: 'signed',
  374. align: 'center',
  375. },
  376. {
  377. title: '业绩总额',
  378. field: 'signed_money',
  379. align: 'center',
  380. },
  381. ]
  382. ];
  383. if (invalid == 1) {
  384. arr[0].push({
  385. title: '注销',
  386. field: 'square',
  387. align: 'center',
  388. colspan: 3,
  389. });
  390. arr[1].push({
  391. title: '信息',
  392. field: 'invalid_count',
  393. align: 'center',
  394. })
  395. arr[1].push({
  396. title: '见面',
  397. field: 'invalid_visit',
  398. align: 'center',
  399. })
  400. arr[1].push({
  401. title: '定金',
  402. field: 'invalid_deposit',
  403. align: 'center',
  404. })
  405. }
  406. return arr;
  407. }
  408. resizefun = function() {
  409. table.resize('crmsearchlist');
  410. };
  411. window.resizefun2 = function() {
  412. table.resize('crmsearchlist');
  413. };
  414. reload = function() {
  415. table.reload('crmsearchlist', {
  416. url: '{:url("community/summary_report")}',
  417. where: field
  418. }, true);
  419. };
  420. })
  421. function removealog(params) {
  422. $('#customer_detail').hide();
  423. $('.crmbox').removeClass('rightbox');
  424. }
  425. </script>
  426. {/block}