123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486 |
- {extend name="public/layout"}
- {block name="body"}
- <link rel="stylesheet" href="__LAYUI__/layui/css/layui.css" media="all">
- <link rel="stylesheet" " href=" /static/css/common.css">
- <script src="/static/js/jquery.min.js"></script>
- <style>
- body {
- padding-bottom: 40px;
- }
- .searchtitlebox {
- display: block;
- padding: 15px 10px;
- border: 1px solid #F0F0F0;
- background: #FCFCFC;
- margin-top: 5px;
- margin-bottom: 10px;
- position: relative;
- min-width: 800px;
- }
- .searchbox {
- display: block;
- margin-top: 8px;
- text-align: center;
- }
- .searchbox input {
- display: inline-block;
- height: 26px;
- line-height: 26px;
- padding-left: 3px;
- vertical-align: middle;
- }
- body {
- font-size: 12px;
- font-family: "宋体";
- }
- .selectbox {
- float: left;
- }
- .leftselect {
- float: left;
- height: 26px;
- line-height: 26px;
- }
- .selectbox select {
- float: left;
- height: 26px;
- }
- .searchtext {
- border: 1px solid #ccc;
- background: #fff url(__STATIC__/img/icon071402.png) no-repeat;
- padding: 1px 2px;
- height: 24px;
- line-height: 24px;
- vertical-align: middle;
- text-indent: 3px;
- margin-left: 4px;
- }
- .searchbtn1 {
- margin-left: 4px;
- cursor: pointer;
- color: #000;
- background: url(__STATIC__/img/btn_bg.gif) repeat-x;
- border: 1px solid #C0C0C0;
- padding: 0 12px;
- *padding: 0 6px;
- height: 26px;
- }
- .layui-table td,
- .layui-table th {
- font-size: 12px;
- }
- .layui-table th {
- font-weight: bold;
- }
- .dingjingorder {
- height: 25px;
- width: 40px;
- background-color: #65c001;
- color: #FFF;
- text-align: center;
- line-height: 25px;
- z-index: 100;
- display: block;
- position: absolute;
- top: 1px;
- right: 3px;
- border-radius: 11px;
- font-size: 12px;
- }
- .addvx {
- position: absolute;
- top: -5px;
- right: 1px;
- height: 14px;
- line-height: 14px;
- font-size: 16px;
- color: #666;
- font-family: "宋体";
- }
- .statebox {
- width: 40px;
- text-align: center;
- z-index: 100;
- display: block;
- position: absolute;
- font-size: 12px;
- top: -5px;
- right: 0px;
- border-radius: 0px;
- background: #4285f4;
- color: #efefef;
- height: 20px;
- line-height: 20px;
- }
- .layui-table-cell {
- overflow: initial;
- }
- #customer_detail {
- display: block;
- width: 435px;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- .rightbox {
- display: block;
- width: calc(100% - 435px);
- margin-left: 435px;
- }
- .unstatusbox {
- display: block;
- position: absolute;
- top: -5px;
- left: 0;
- width: 100%;
- height: 37px;
- background-color: #FF6600;
- text-align: center;
- color: #FFF;
- }
- .statusbox {
- position: absolute;
- top: 0px;
- right: 0px;
- color: #666;
- text-align: right;
- z-index: 100;
- display: block;
- font-size: 12px;
- }
- .layui-table-view .layui-form-checkbox {
- width: 16px;
- height: 16px;
- line-height: 16px;
- padding-right: 0;
- }
- .layui-table-view .layui-form-checkbox i {
- height: 16px;
- width: 16px;
- font-size: 14px;
- }
- .novisitlog {
- background-color: #9139db !important;
- color: #FFF;
- }
- .novisitlog a {
- color: #FFF;
- }
- .crmsearchlist {
- max-height: 760px;
- cursor: pointer;
- }
- .tablebox .layui-form.layui-border-box.layui-table-view {
- max-height: 400px !important;
- height: auto !important;
- }
- .searchbox .layui-form-select {
- float: left;
- width: 130px;
- }
- .searchbox input {
- border: 1px solid #e6e6e6 !important;
- }
- .layui-table-body {
- max-height: 400px !important;
- height: auto !important;
- }
- .layui-table-view .layui-table td {
- cursor: pointer;
- overflow: hidden;
- }
- .layui-form-checked {
- background-color: #37AF6E;
- }
- .layui-table-view .layui-form-checked i {
- color: #fff;
- }
- .summary_report h1 {
- text-align: center;
- margin-bottom: 20px;
- margin-top: 20px;
- letter-spacing: 2px;
- font-family: Arial, Helvetica, sans-serif;
- }
- </style>
- <body class="clearfix">
- <iframe id="customer_detail" style="display: none;" src=""></iframe>
- <div class="crmbox summary_report">
- <form class="layui-form">
- <div class="searchtitlebox">
- <div style="margin-bottom:8px;">您当前的操作 · <b>各装饰公司年度报表</b>
- <div class="searchbox clearfix" style="width: 316px;float: right;margin-top: 0;">
- <div class="selectbox" style="width: 316px;float: right;">
- <select name="contain" lay-search>
- <option value="">==包含==</option>
- <option value="1">统计无效</option>
- </select>
- <button class="left searchbtn1" type="button" lay-submit lay-filter="search">查看</button>
- </div>
- </div>
- </div>
- </div>
- <h1>各装饰公司各重点楼盘小区综合报表</h1>
- <div class="crmsearchlist">
- <table lay-filter="crmsearchlist" id="crmsearchlist"></table>
- </div>
- <div style="margin: 0 auto;">
- <div style="color: #999;text-align: right;">
- <p>注:</p>
- <p>1、基本数据:线索是根据信息录入的报名认时间统计。</p>
- <p>2、基本数据:加微是根据信息录入的时报名时间统计。</p>
- <p>3、基本数据:见面到访是根据首次洽谈的时间统计。</p>
- <p>4、基本数据:预定合同是根据定金时间统计,和报名、见面到访时间无关。</p>
- <p>5、基本数据:施工合同是根据合同时间统计,和报名、见面到访时间无关。</p>
- <p>6、注销:线索是根据变更线索无效的默认时间统计,和线索报名无关。</p>
- <p>7、注销:见面到访是根据首次洽谈时间统计,和线索报名时间无关。</p>
- </div>
- </div>
- </form>
- </div>
- </body>
- <script src="__LAYUI__/layui/layui.js"></script>
- {/block}{block name="js"}
- <script type="text/javascript">
- var reload = null,
- resizefun = null;
- layui.config({
- base: '__LAYUI__/',
- urlbase: '/sys'
- }).extend({
- index: 'lib/index' //主入口模块
- }).use(['table', 'laydate'], function() {
- var table = layui.table,
- laydate = layui.laydate,
- $ = layui.$;
- form = layui.form;
- var field = {};
- form.on('submit(search)', function(data) {
- var invalid = $('[name=contain]').val();
- field['invalid'] = invalid;
- //执行重载
- $('.crmsearchlist').empty();
- $('.crmsearchlist').append('<table lay-filter="crmsearchlist" id="crmsearchlist"></table>');
-
- table.render({
- elem: '#crmsearchlist',
- url: '{:url("community/summary_report")}',
- data: [],
- //even: true,
- cols: getCol(invalid),
- page: true,
- limits: [10],
- limit: 10, //每页默认显示的数量,
- height: 'full-120',
- text: '对不起,加载出现异常!',
- done: function(res, curr, count) {
- console.log(this);
- // this.cols = []; //(关键代码)将cols初始化,否则表格重载时无法正确重新渲染表头
- },
- error :function(){
- console.log(111);
- // this.cols = []; //(关键代码)将cols初始化,否则表格重载时无法正确重新渲染表头
- }
- });
-
- });
- table.render({
- elem: '#crmsearchlist',
- url: '{:url("community/summary_report")}',
- data: [],
- //even: true,
- cols: getCol(),
- page: true,
- limits: [10],
- limit: 10, //每页默认显示的数量,
- height: 'full-120',
- text: '对不起,加载出现异常!',
- done: function(res, curr, count) {
- console.log(this);
- // this.cols = []; //(关键代码)将cols初始化,否则表格重载时无法正确重新渲染表头
- },
- error :function(){
- console.log(111);
- // this.cols = []; //(关键代码)将cols初始化,否则表格重载时无法正确重新渲染表头
- }
- });
- function getCol(invalid) {
- var arr = [
- [{
- title: '楼盘名称',
- field: 'name',
- align: 'center',
- rowspan: 2,
- },
- {
- title: '基本数据',
- field: 'community_name',
- align: 'center',
- colspan: 12,
- }
- ],
- [{
- title: '楼盘户数',
- field: 'households',
- align: 'center'
- },
- {
- title: '信息量',
- field: 'count',
- align: 'center',
- },
- {
- title: '加微量',
- field: 'wechat',
- align: 'center',
- },
- {
- title: '加微率',
- field: 'wechat_lv',
- align: 'center',
- },
- {
- title: '进群量',
- field: 'into_group',
- align: 'center',
- },
- {
- title: '进群率',
- field: 'into_group_lv',
- align: 'center',
- },
- {
- title: '见面量',
- field: 'visit',
- align: 'center',
- },
- {
- title: '见面率',
- field: 'visit_lv',
- align: 'center',
- },
- {
- title: '定金量',
- field: 'deposit',
- align: 'center',
- },
- {
- title: '成单率',
- field: 'deposit_lv',
- align: 'center',
- },
- {
- title: '合同量',
- field: 'signed',
- align: 'center',
- },
- {
- title: '业绩总额',
- field: 'signed_money',
- align: 'center',
- },
- ]
- ];
- if (invalid == 1) {
- arr[0].push({
- title: '注销',
- field: 'square',
- align: 'center',
- colspan: 3,
- });
- arr[1].push({
- title: '信息',
- field: 'invalid_count',
- align: 'center',
- })
- arr[1].push({
- title: '见面',
- field: 'invalid_visit',
- align: 'center',
- })
- arr[1].push({
- title: '定金',
- field: 'invalid_deposit',
- align: 'center',
- })
- }
- return arr;
- }
- resizefun = function() {
- table.resize('crmsearchlist');
- };
- window.resizefun2 = function() {
- table.resize('crmsearchlist');
- };
- reload = function() {
- table.reload('crmsearchlist', {
- url: '{:url("community/summary_report")}',
- where: field
-
- }, true);
- };
- })
- function removealog(params) {
- $('#customer_detail').hide();
- $('.crmbox').removeClass('rightbox');
- }
- </script>
- {/block}
|