account_detail_fish.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. background-color: #F3F3F3;
  9. padding-bottom: 40px;
  10. }
  11. .tablebox .layui-form.layui-border-box.layui-table-view{
  12. max-height: 760px !important;
  13. height: auto !important;
  14. }
  15. .layui-table-body{
  16. max-height: 670px !important;
  17. height: auto !important;
  18. }
  19. .layui-table-view .layui-table td{
  20. cursor: pointer;
  21. overflow: hidden;
  22. }
  23. .maintable{table-layout:fixed;_width:100%;width:100%; border:1px solid #DFDFDF;
  24. border-collapse: separate !important;
  25. background-color:#FFF; border-right:0; border-bottom:2px solid #DFDFDF;}
  26. .maintable th{ background-color:#F2F3F7; border-right:1px solid #DFDFDF; border-bottom:1px solid #DFDFDF; line-height:25px; padding:5px; text-align:center; font-family:Arial; font-size:12px; letter-spacing:1px; color:#333}
  27. .maintable td{border-right:1px solid #DFDFDF; border-bottom:1px solid #EAEAEC; padding:7px; line-height:25px; font-size:13px; position:relative;}
  28. .tablelist th,.tablelist td{overflow: hidden;white-space: nowrap;text-overflow: ellipsis;word-wrap: break-word;}
  29. .tbcenter td{ text-align:center}
  30. .maintable h2{border-bottom:1px solid #999; margin:0; font-weight:bold; font-size:15px; margin-bottom:10px; margin-top:5px; text-indent:3px; font-family:Arial; letter-spacing:1px;}
  31. .maintable td label{ cursor:pointer}
  32. </style>
  33. <body class="clearfix">
  34. <div class="crmsearchlist">
  35. <table lay-filter="crmsearchlist" id="crmsearchlist"></table>
  36. </div>
  37. </body>
  38. <script src="__LAYUI__/layui/layui.js"></script>
  39. {/block}{block name="js"}
  40. <script type="text/html" id="designer_name">
  41. {{# if(d.designer){ }}
  42. <span>{{d.designer.name}}</span>
  43. {{# }else{ }}
  44. <span style="color: #cccccc;">无</span>
  45. {{# } }}
  46. </script>
  47. <script type="text/html" id="empname">
  48. {{# if(d.employee){ }}
  49. <span>{{d.employee.name}}</span>
  50. {{# }else{ }}
  51. <span style="color: #cccccc;">无</span>
  52. {{# } }}
  53. </script>
  54. <script type="text/html" id="source">
  55. {{# if(d.source){ }}
  56. <span>{{d.source.source}}</span>
  57. {{# }else{ }}
  58. <span style="color: #cccccc;">无</span>
  59. {{# } }}
  60. </script>
  61. <script type="text/javascript">
  62. var reload = null, resizefun = null;
  63. layui.config({
  64. base: '__LAYUI__/',
  65. urlbase: '/sys'
  66. }).extend({
  67. index: 'lib/index' //主入口模块
  68. }).use(['table', 'laydate'], function () {
  69. var table = layui.table, laydate = layui.laydate,
  70. $ = layui.$;
  71. // resizefun = function () {
  72. // dailyfun(time);
  73. // };
  74. // reload = function () {
  75. // dailyfun(time);
  76. // };
  77. table.render({
  78. elem: '#crmsearchlist',
  79. url: '{:url("manager_emp/account_detail_fish",array("date"=>$date,"state"=>$state,"source_id"=>$source_id,"employee_id"=>$employee_id,"org_id"=>$org_id))}',
  80. cols: [
  81. [
  82. { type: 'numbers', title: '序号', width: 40 },
  83. {
  84. title: '客户姓名',
  85. field: 'name',
  86. align: 'center',
  87. width: 174,
  88. templet: '#crmname',
  89. },
  90. {
  91. title: '小区名称',
  92. field: 'community_name',
  93. align: 'center',
  94. },
  95. {
  96. title: '面积',
  97. field: 'square',
  98. align: 'center',
  99. templet: '#square'
  100. },
  101. {
  102. title: '客服专员',
  103. field: 'empname',
  104. align: 'center',
  105. templet: '#empname'
  106. },
  107. {
  108. title: '设计师',
  109. field: 'designer_name',
  110. align: 'center',
  111. templet: '#designer_name'
  112. },
  113. {
  114. title: '来源账户',
  115. field: 'source',
  116. align: 'center',
  117. templet: '#source'
  118. },
  119. {
  120. title: '交房',
  121. field: 'jiaofang',
  122. align: 'center',
  123. },
  124. {
  125. title: '首次见面',
  126. field: 'fisttime',
  127. align: 'center',
  128. },
  129. {
  130. title: '定金时间',
  131. field: 'jiaoding_time',
  132. align: 'center',
  133. },
  134. {
  135. title: '报名时间',
  136. field: 'sign_time',
  137. align: 'center',
  138. },
  139. {
  140. title: '状态',
  141. field: 'state',
  142. align: 'center',
  143. },
  144. ]
  145. ],
  146. page: true,
  147. limits: [17],
  148. limit: 17, //每页默认显示的数量,
  149. height: 'full-120',
  150. text: '对不起,加载出现异常!'
  151. });
  152. var flag = true;
  153. table.on('row(crmsearchlist)', function (obj) {
  154. var data = obj.data;
  155. if(data.now_status == '无效') return;
  156. window.parent.parent.leftadd("/empcrm/empcrm/addlog.html?cid=" + data.id+'&type=3&org_id=' + data.org_id);
  157. for (let i = 0; i < $('.crmsearchlist .layui-table-view .layui-table-box .layui-table tr').length; i++) {
  158. $($('.crmsearchlist .layui-table-view .layui-table-box .layui-table tr')[i]).removeClass('onclickbg');
  159. }
  160. $(obj.tr).addClass('onclickbg');
  161. });
  162. })
  163. </script>
  164. {/block}