Нет описания

repeatComplaintForm.html 8.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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="form-group">
  70. <input class="form-control" type="text" id="searchKeywords" placeholder="请输入关键字">
  71. </div>
  72. <div class="form-group tool_bars pull-right">
  73. <button class="btns sear">搜索</button>
  74. <a class="btns export">导出</a>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. <div class="zxt-content">
  80. <table class="layui-hide" id="t_callTotal"></table>
  81. </div>
  82. </div>
  83. <script src="../js/layui/layui.js"></script>
  84. <script src="../js/select2/js/select2.min.js"></script>
  85. <script>
  86. var token = $.cookie("token");
  87. var stime = ''; //开始时间
  88. var endtime = ''; //结束时间
  89. var isTime = ''; //本日本月
  90. $(function() {
  91. var regNum = /^[0-9]+$/;
  92. layui.use('laydate', function() {
  93. var laydate = layui.laydate;
  94. //日期
  95. laydate.render({
  96. elem: '#startTime',
  97. range: '~',
  98. theme: '#1ab394',
  99. calendar: 'true'
  100. });
  101. });
  102. getTableDataList(); //获取表格数据
  103. //搜索事件
  104. $(".sear").click(function() {
  105. stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
  106. endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
  107. getTableDataList(); //获取表格数据
  108. });
  109. //导出
  110. $('.export').click(function() {
  111. stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
  112. endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
  113. isTime = $("#isTime").val();
  114. dcexcel(this);
  115. });
  116. });
  117. function dcexcel(obj) {
  118. var isExport = 2;
  119. var keywords = $("#searchKeywords").val();//关键字
  120. var url = huayi.config.callcenter_url + "WorkOrder/GetList?token=" + token;
  121. url += "&starttime=" + stime + "&endtime=" + endtime + "&istime=" + isTime + "&isdc=" + isExport + "&duplicate=" + 1 + "&keywords=" + keywords;
  122. window.location.href = url;
  123. }
  124. //按回车搜索
  125. document.onkeydown = function (e) { // 回车提交表单
  126. var theEvent = window.event || e;
  127. var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
  128. stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
  129. endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
  130. if (code == 13) {
  131. getTableDataList();
  132. }
  133. }
  134. //加载表格
  135. function getTableDataList() {
  136. layui.use('table', function() {
  137. var table = layui.table;
  138. //方法级渲染
  139. table.render({
  140. elem: '#t_callTotal',
  141. url: huayi.config.callcenter_url + "WorkOrder/GetList",
  142. method: 'get', //如果无需自定义HTTP类型,可不加该参数
  143. skin: 'row', //line (行边框风格) row (列边框风格) nob (无边框风格)
  144. even: true, //开启隔行背景
  145. size: 'md', //sm,lg,md尺寸的表格
  146. cellMinWidth: 160,
  147. where: {
  148. starttime: stime,
  149. endtime: endtime,
  150. token: token,
  151. duplicate: 1,
  152. istime: $("#isTime").val(),
  153. keywords: $("#searchKeywords").val(),//关键字
  154. isdc: 0,
  155. },
  156. request: {
  157. pageName: 'pageindex', //页码的参数名称,默认:page
  158. limitName: 'pagesize', //每页数据量的参数名,默认:limit
  159. }, //如果无需自定义请求参数,可不加该参数
  160. response: {
  161. statusName: 'state', //数据状态的字段名称,默认:code
  162. statusCode: 'success', //成功的状态码,默认:0
  163. // msgName: 'message', //状态信息的字段名称,默认:msg
  164. countName: 'total', //数据总数的字段名称,默认:count
  165. dataName: 'rows', //数据列表的字段名称,默认:data
  166. }, //如果无需自定义数据响应名称,可不加该参数
  167. page: { //支持传入 laypage 组件的所有参数(某些参数除外,如:jump/elem) - 详见文档
  168. layout: ['limit', 'count', 'prev', 'page', 'next', 'skip'] //自定义分页布局
  169. },
  170. page:true,
  171. cols: [
  172. [
  173. {
  174. field: 'F_SerialNumber',
  175. title: '序号',
  176. align: 'center',
  177. width: '',
  178. },
  179. {
  180. field: 'F_AreaName',
  181. title: '大区',
  182. align: 'center',
  183. width: '',
  184. },
  185. {
  186. field: 'F_OfficName',
  187. title: '办事处',
  188. align: 'center',
  189. width: '',
  190. },
  191. {
  192. field: 'F_CusName',
  193. title: '姓名',
  194. align: 'center',
  195. width: '',
  196. },
  197. {
  198. field: 'F_AddRess',
  199. title: '地址',
  200. align: 'center',
  201. width: '',
  202. },
  203. {
  204. field: 'F_ProductType',
  205. title: '产品代码',
  206. align: 'center',
  207. width: '',
  208. },
  209. {
  210. field: 'F_ProductName',
  211. title: '产品名称',
  212. align: 'center',
  213. width: '',
  214. },
  215. {
  216. field: 'F_Specifications',
  217. title: '规格',
  218. align: 'center',
  219. width: '',
  220. },
  221. {
  222. field: 'F_ProductDate',
  223. title: '生产日期',
  224. align: 'center',
  225. width: '',
  226. },
  227. {
  228. field: 'F_BatchNumber',
  229. title: '产品编码',
  230. align: 'center',
  231. width: '',
  232. },
  233. {
  234. field: 'F_Manufacturer',
  235. title: '生产厂家',
  236. align: 'center',
  237. width: '',
  238. },
  239. {
  240. field: 'F_ProblemCode',
  241. title: '问题代码',
  242. align: 'center',
  243. width: '',
  244. },
  245. {
  246. field: 'F_QualityProblem',
  247. title: '质量问题',
  248. align: 'center',
  249. width: '',
  250. },
  251. {
  252. field: 'F_Notifications',
  253. title: '通知人',
  254. align: 'center',
  255. width: '',
  256. },
  257. {
  258. field: 'F_ReceivingPerson',
  259. title: '接听人',
  260. align: 'center',
  261. width: '',
  262. },
  263. {
  264. field: 'F_DealResult',
  265. title: '落实情况',
  266. align: 'center',
  267. width: '',
  268. },
  269. {
  270. field: 'F_ltemlastTime',
  271. title: '重复投诉时间',
  272. align: 'center',
  273. width: '',
  274. },
  275. ]
  276. ],
  277. });
  278. });
  279. }
  280. </script>
  281. </body>
  282. </html>