ZZDianXin_UI - 郑州电信 演示

repeatComplaintForm.html 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>重复投诉表</title>
  7. <!--[if lt IE 9]>
  8. <meta http-equiv="refresh" content="0;ie.html" />
  9. <![endif]-->
  10. <script src="../Script/Common/huayi.load.js"></script>
  11. <script src="../Script/Common/huayi.config.js"></script>
  12. <link rel="stylesheet" href="../js/layui/css/layui.css" />
  13. <link rel="stylesheet" href="../css/init.css" />
  14. <style>
  15. .zxt-top {
  16. background: #f3f3f4;
  17. height: 60px;
  18. padding: 10px 20px;
  19. }
  20. .topCon {
  21. float: right;
  22. margin-right: 45px;
  23. }
  24. .zxt-content {
  25. width: 90%;
  26. margin: 20px auto 0 auto;
  27. }
  28. .select2-container--default .select2-selection--single{
  29. border-color: #e5e6e7;
  30. }
  31. .time-box select{
  32. height: 32px;
  33. line-height: 32px;
  34. }
  35. .time-box select option{
  36. line-height: 32px;
  37. }
  38. </style>
  39. </head>
  40. <body class="gray-bg" style="background: #fefefe;">
  41. <div class="zxtable">
  42. <div class="daoHang clearfix">
  43. <div class="dhLeft">
  44. <sapn><i class="syIcon"></i>位置:
  45. <a id="ReIndex" href="javaScript:;">首页</a>&gt;
  46. <a href="javaScript:;">报表分析</a>&gt;
  47. <a href="javaScript:;">业务数据分析</a>&gt;
  48. <a href="" class="nowPosition">重复投诉表</a>
  49. </sapn>
  50. </div>
  51. <div class="dhRight">
  52. <a href="#" title="刷新"><i class="fa fa-refresh"></i></a>
  53. </div>
  54. </div>
  55. <div class="zxt-top clearfix">
  56. <div class="topCon">
  57. <div class="form-inline th-bar clearfix">
  58. <div class="time-box form-group">
  59. <select class="form-control" type="text" id="isTime" style="width: 228px;">
  60. <option value="">请选择本日/本月</option>
  61. <option value ="0">本日</option>
  62. <option value ="1">本月</option>
  63. </select>
  64. </div>
  65. <div class="time-box form-group">
  66. <i class="tub fa fa-calendar"></i>
  67. <input class="form-control" type="text" id="startTime" placeholder="请选择时间" style="width: 228px;">
  68. </div>
  69. <!-- <div class="time-box form-group">
  70. 销售基地:
  71. <select id="bumen">
  72. <option value="">请选择</option>
  73. </select>
  74. </div>
  75. <div class="time-box form-group">
  76. 渠道类型:
  77. <select id="channel">
  78. <option value="">请选择</option>
  79. </select>
  80. </div> -->
  81. <div class="form-group tool_bars pull-right">
  82. <button class="btns sear">搜索</button>
  83. <a class="btns export">导出</a>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="zxt-content">
  89. <table class="layui-hide" id="t_callTotal"></table>
  90. </div>
  91. </div>
  92. <script src="../js/layui/layui.js"></script>
  93. <script src="../js/select2/js/select2.min.js"></script>
  94. <script>
  95. var token = $.cookie("token");
  96. var stime = ''; //开始时间
  97. var endtime = ''; //结束时间
  98. var isTime = ''; //本日本月
  99. $(function() {
  100. var regNum = /^[0-9]+$/;
  101. layui.use('laydate', function() {
  102. var laydate = layui.laydate;
  103. //日期
  104. laydate.render({
  105. elem: '#startTime',
  106. range: '~',
  107. theme: '#1ab394',
  108. calendar: 'true'
  109. });
  110. });
  111. getTableDataList(); //获取表格数据
  112. //搜索事件
  113. $(".sear").click(function() {
  114. stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
  115. endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
  116. getTableDataList(); //获取表格数据
  117. });
  118. //导出
  119. $('.export').click(function() {
  120. stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
  121. endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
  122. isTime = $("#isTime").val();
  123. dcexcel(this);
  124. });
  125. });
  126. function dcexcel(obj) {
  127. var isExport = 1;
  128. var url = huayi.config.callcenter_url + "WorkOrder/GetList?token=" + token;
  129. url += "&starttime=" + stime + "&endtime=" + endtime + "&istime=" + isTime + "&isdc=" + isExport + "&duplicate=" + 1;
  130. window.location.href = url;
  131. }
  132. //按回车搜索
  133. document.onkeydown = function (e) { // 回车提交表单
  134. var theEvent = window.event || e;
  135. var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
  136. stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
  137. endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
  138. if (code == 13) {
  139. getTableDataList();
  140. }
  141. }
  142. //加载表格
  143. function getTableDataList() {
  144. layui.use('table', function() {
  145. var table = layui.table;
  146. //方法级渲染
  147. table.render({
  148. elem: '#t_callTotal',
  149. url: huayi.config.callcenter_url + "WorkOrder/GetList",
  150. method: 'get', //如果无需自定义HTTP类型,可不加该参数
  151. skin: 'row', //line (行边框风格) row (列边框风格) nob (无边框风格)
  152. even: true, //开启隔行背景
  153. size: 'md', //sm,lg,md尺寸的表格
  154. cellMinWidth: 160,
  155. where: {
  156. starttime: stime,
  157. endtime: endtime,
  158. token: token,
  159. duplicate: 1,
  160. istime: $("#isTime").val(),
  161. isdc: 0,
  162. },
  163. request: {
  164. pageName: 'pageindex', //页码的参数名称,默认:page
  165. limitName: 'pagesize', //每页数据量的参数名,默认:limit
  166. }, //如果无需自定义请求参数,可不加该参数
  167. response: {
  168. statusName: 'state', //数据状态的字段名称,默认:code
  169. statusCode: 'success', //成功的状态码,默认:0
  170. // msgName: 'message', //状态信息的字段名称,默认:msg
  171. countName: 'total', //数据总数的字段名称,默认:count
  172. dataName: 'rows', //数据列表的字段名称,默认:data
  173. }, //如果无需自定义数据响应名称,可不加该参数
  174. page: { //支持传入 laypage 组件的所有参数(某些参数除外,如:jump/elem) - 详见文档
  175. layout: ['limit', 'count', 'prev', 'page', 'next', 'skip'] //自定义分页布局
  176. },
  177. page:true,
  178. cols: [
  179. [
  180. {
  181. field: 'F_SerialNumber',
  182. title: '序号',
  183. align: 'center',
  184. width: '',
  185. },
  186. {
  187. field: 'F_CusName',
  188. title: '姓名',
  189. align: 'center',
  190. width: '',
  191. },
  192. {
  193. field: 'F_AddRess',
  194. title: '地址',
  195. align: 'center',
  196. width: '',
  197. },
  198. {
  199. field: 'F_ProductType',
  200. title: '产品代码',
  201. align: 'center',
  202. width: '',
  203. },
  204. {
  205. field: 'F_ProductName',
  206. title: '产品名称',
  207. align: 'center',
  208. width: '',
  209. },
  210. {
  211. field: 'F_Specifications',
  212. title: '规格',
  213. align: 'center',
  214. width: '',
  215. },
  216. {
  217. field: 'F_ProductDate',
  218. title: '生产日期',
  219. align: 'center',
  220. width: '',
  221. },
  222. {
  223. field: 'F_BatchNumber',
  224. title: '产品编码',
  225. align: 'center',
  226. width: '',
  227. },
  228. {
  229. field: 'F_Manufacturer',
  230. title: '生产厂家',
  231. align: 'center',
  232. width: '',
  233. },
  234. {
  235. field: 'F_ProblemCode',
  236. title: '问题代码',
  237. align: 'center',
  238. width: '',
  239. },
  240. {
  241. field: 'F_QualityProblem',
  242. title: '质量问题',
  243. align: 'center',
  244. width: '',
  245. },
  246. {
  247. field: 'F_Notifications',
  248. title: '通知人',
  249. align: 'center',
  250. width: '',
  251. },
  252. {
  253. field: 'F_ReceivingPerson',
  254. title: '接听人',
  255. align: 'center',
  256. width: '',
  257. },
  258. {
  259. field: 'F_DealResult',
  260. title: '落实情况',
  261. align: 'center',
  262. width: '',
  263. },
  264. ]
  265. ],
  266. });
  267. });
  268. }
  269. </script>
  270. </body>
  271. </html>