check_index.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>跟踪审核</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport"
  9. content="width=customer-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  10. <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
  11. <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
  12. <style type="text/css">
  13. .seach_items {
  14. float: right;
  15. margin-left: 10px;
  16. }
  17. </style>
  18. <style type="text/css">
  19. .LAY-btns .layui-nav {
  20. padding-left: 0;
  21. padding-right: 10px;
  22. top: -4px;
  23. margin: 0 10px;
  24. border: 0;
  25. background-color: #009688;
  26. }
  27. .LAY-btns .layui-nav .layui-nav-item {
  28. line-height: 40px;
  29. }
  30. .LAY-btns .layui-nav .layui-nav-child {
  31. top: 34px;
  32. }
  33. .LAY-btns .layui-nav .layui-nav-bar {
  34. display: none;
  35. }
  36. .LAY-btns .layui-nav .layui-nav-child dd.layui-this a {
  37. color: #333;
  38. background-color: #fff;
  39. }
  40. .LAY-btns .layui-nav .layui-nav-child dd.layui-this a:hover {
  41. background-color: #f2f2f2;
  42. color: #000;
  43. }
  44. </style>
  45. </head>
  46. <body>
  47. <div class="layui-fluid">
  48. <div class="layui-card">
  49. <div class="layui-card-body" pad15>
  50. <div class="layui-row layui-col-space15">
  51. <div class="layui-col-md12">
  52. <div class="LAY-btns" style="margin-bottom: 10px;">
  53. <form class="layui-form" lay-filter="query-form-element">
  54. <div class="seach_items">
  55. <button class="layui-btn" lay-submit lay-filter="query-form-element"><i
  56. class="layui-icon layui-icon-search"></i>查询
  57. </button>
  58. </div>
  59. <div class="seach_items">
  60. <input type="text" name="tel" autocomplete="off" class="layui-input"
  61. placeholder="电话"/>
  62. </div>
  63. <div class="seach_items">
  64. <input type="text" name="name" autocomplete="off" class="layui-input"
  65. placeholder="姓名"/>
  66. </div>
  67. </form>
  68. <div style="clear: both;"></div>
  69. </div>
  70. <table class="layui-hide" id="customer_datagrid" lay-filter="customer-operate"></table>
  71. <script type="text/html" id="customer-operate-bar">
  72. <div class="layui-btn-group">
  73. <a class="layui-btn layui-btn-xs" lay-event="customer_check"
  74. >审核</a>
  75. </div>
  76. </script>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. <script src="../../layuiadmin/layui/layui.js?t=1"></script>
  83. <script>
  84. layui.config({
  85. base: '../../../layuiadmin/' //静态资源所在路径
  86. }).extend({
  87. index: 'lib/index' //主入口模块
  88. }).use(['index', 'table', 'form',], function () {
  89. var $ = layui.$;
  90. var table = layui.table
  91. , form = layui.form
  92. , admin = layui.admin;
  93. table.render({
  94. elem: '#customer_datagrid'
  95. , url: '/api/check_list.json'
  96. , cols: [[
  97. {field: 'name', title: '姓名', width: 110}
  98. , {field: 'tel', title: '电话', width: 120}
  99. , {field: 'address', title: '地址', width: 200}
  100. , {field: 'project', title: '项目', width: 150}
  101. , {field: 'village', title: '小区', width: 150}
  102. , {field: 'follow_user', title: '跟踪人', width: 110}
  103. , {field: 'report_content', title: '报告内容', width: 200}
  104. , {field: 'isSupport', title: '支援或放弃', width: 110}
  105. , {field: 'isAbandon', title: '是否放弃', width: 100}
  106. , {field: 'check_status', title: '审核状态', width: 110}
  107. , {field: 'check_user', title: '审核人员', width: 110}
  108. , {field: 'check_written', title: '审核批示', width: 100}
  109. , {field: 'check_time', title: '审核时间', width: 180}
  110. , {width: 80, align: 'center', fixed: 'right', toolbar: '#customer-operate-bar'}
  111. ]]
  112. , page: true
  113. , height: 'full-108'
  114. });
  115. //监听工具条
  116. table.on('tool(customer-operate)', function (obj) {
  117. var data = obj.data;
  118. if (obj.event === 'customer_check') {
  119. table.editdata = data;
  120. layer.open({
  121. type: 2,
  122. title: '审核',
  123. area: ['35%', '50%'],
  124. btn: ['保存', '取消'],
  125. yes: function (index, dom) {
  126. layui.onSubmitChild = function (res) {
  127. layer.close(index);
  128. table.reload('agent_datagrid', {});
  129. };
  130. layui.submitChild();
  131. },
  132. btn2: function (index, layero) {
  133. layer.close(index);//关闭当前按钮
  134. },
  135. content: 'check_customer.html?id=' + data.id
  136. });
  137. }
  138. });
  139. form.on('submit(query-form-element)', function (data) {
  140. table.reload('customer_datagrid', {
  141. where: data.field
  142. , page: {curr: 1}
  143. });
  144. layer.closeAll();
  145. return false
  146. });
  147. });
  148. </script>
  149. </body>
  150. </html>