No Description

CB.html 9.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>重办不满意统计</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <script src="../Script/Common/huayi.load.js"></script>
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link href="../css/WorkOrder/Search.css" rel="stylesheet">
  11. <link href="../css/init.css" rel="stylesheet" />
  12. <script src="../css/laydate/laydate.js"></script>
  13. <script src="../My97DatePicker/WdatePicker.js"></script>
  14. <style>
  15. table td {
  16. word-break: break-all;
  17. word-wrap: break-word;
  18. }
  19. .ld-service li {
  20. float: left;
  21. font-size: 14px;
  22. color: #000;
  23. padding: 5px 15px;
  24. cursor: pointer;
  25. border-bottom: 1px solid #ccc;
  26. }
  27. .cr-click {
  28. border: 1px solid #ccc;
  29. background-color: #fff;
  30. border-bottom: none !important;
  31. border-bottom-left-radius: 5px;
  32. border-bottom-right-radius: 5px;
  33. }
  34. .Shows {
  35. display: block !important;
  36. }
  37. .complain {
  38. display: none;
  39. }
  40. th {
  41. padding: 5px;
  42. text-align: center;
  43. }
  44. td {
  45. padding: 5px;
  46. width: 200px;
  47. }
  48. .Borders {
  49. border: 1px solid #d7d7d7;
  50. }
  51. .cx {
  52. display: block;
  53. }
  54. </style>
  55. </head>
  56. <body class="gray-bg">
  57. <div class="wrapper wrapper-content animated fadeInRight">
  58. <div class="daoHang clearfix">
  59. <div class="dhLeft">
  60. <sapn>
  61. <i class="syIcon"></i>位置:
  62. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  63. <a href="javaScript:;">业务统计</a>&gt;
  64. <a href="" class="nowPosition">重办不满意统计</a>
  65. </sapn>
  66. </div>
  67. <div class="dhRight">
  68. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  69. </div>
  70. </div>
  71. <div class="Content_box">
  72. <!--待处理/-->
  73. <div class="complain Shows">
  74. <div class="th-box">
  75. <div class="th-bar">
  76. <div class="seach-box">
  77. <ul>
  78. <li>
  79. 创建时间:
  80. <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" />-
  81. <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" />
  82. </li>
  83. <li>
  84. 来源:
  85. <select class="select_" id="source"></select>
  86. </li>
  87. <li>
  88. <a class="sc_btn btns db">搜索</a>
  89. <a class="sc_btn btns export">导出</a>
  90. </li>
  91. <li><span class="text-danger"
  92. style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
  93. </ul>
  94. </div>
  95. </div>
  96. </div>
  97. <div style="width: 100%;padding: 10px;">
  98. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams"
  99. data-pagination="true">
  100. <thead>
  101. <tr>
  102. <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
  103. <th data-field="F_WorkOrderId" data-align="center" data-formatter="GetLink">工单编号</th>
  104. <th data-field="DeptName" data-align="center">承办单位</th>
  105. <th data-field="F_ComContent" data-align="center" data-formatter="GetCont">工单内容</th>
  106. <th data-field="cjTime" data-align="center">创建时间</th>
  107. <th data-field="fkContent" data-align="center" data-formatter="GetCont">处理结果</th>
  108. <th data-field="fkTime" data-align="center">处理时间</th>
  109. <th data-field="hfContent" data-align="center" data-formatter="GetCont">回访结果</th>
  110. <th data-field="hfTime" data-align="center">回访时间</th>
  111. </tr>
  112. </thead>
  113. </table>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. <script>
  119. initTable();
  120. var keys;
  121. $(document).ready(function () {
  122. laydate.skin('blue');
  123. laydate({
  124. elem: '#startTimes',
  125. event: 'focus'
  126. });
  127. laydate({
  128. elem: '#endTimes',
  129. event: 'focus'
  130. });
  131. LY($("#source"));
  132. })
  133. //表格一
  134. function initTable(keys) {
  135. //先销毁表格
  136. $('#workorderlist').bootstrapTable('destroy');
  137. //初始化表格,动态从服务器加载数据
  138. $("#workorderlist").bootstrapTable({
  139. method: "get", //使用get请求到服务器获取数据
  140. url: huayi.config.callcenter_url + "WorkOrderReport/GetNotSatisfied",
  141. contentType: "application/x-www-form-urlencoded",
  142. striped: true, //表格显示条纹
  143. pagination: true, //启动分页
  144. pageSize: 10, //每页显示的记录数
  145. pageNumber: 1, //当前第几页
  146. pageList: [10, 20, 50, 100], //记录数可选列表
  147. search: false, //是否启用查询
  148. showColumns: false, //显示下拉框勾选要显示的列
  149. showRefresh: false, //显示刷新按钮
  150. sidePagination: "server", //表示服务端请求
  151. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  152. //设置为limit可以获取limit, offset, search, sort, order
  153. queryParamsType: "undefined",
  154. queryParams: function queryParams(params) { //设置查询参数
  155. var param = {
  156. pageIndex: params.pageNumber,
  157. pageSize: params.pageSize,
  158. start: $("#startTimes").val(),
  159. end: $("#endTimes").val(),
  160. source: $("#source").val(),
  161. token: $.cookie("token")
  162. };
  163. return param;
  164. },
  165. onLoadSuccess: function () { //加载成功时执行
  166. //layer.msg("加载成功");
  167. },
  168. onLoadError: function () { //加载失败时执行
  169. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  170. }
  171. });
  172. }
  173. //序号
  174. function serialNumber(val, row, index) {
  175. return index + 1;
  176. }
  177. //内容
  178. function GetCont(val) {
  179. if (val) {
  180. var str = '<div '
  181. if (val.length > 15) {
  182. str = str + ' title="' + val + '" ';
  183. val = val.substr(0, 10) + "...";
  184. }
  185. return str + '>' + val + '</div>';
  186. } else {
  187. return '';
  188. }
  189. }
  190. function GetLink(val) {
  191. return '<a class="xg" onclick="ckxq(\'' + val + '\')" title="' + val + '">' + val + '</a>';
  192. }
  193. function ckxq(val) {
  194. layer.open({
  195. type: 2,
  196. content: "../CommonHtml/WorkDatil.html?wid=" + val, //iframe的url,no代表不显示滚动条
  197. title: '工单详情',
  198. area: ['100%', '100%'], //宽高
  199. });
  200. }
  201. //来源
  202. function LY(obj) {
  203. obj.empty();
  204. obj.append(
  205. '<option selected="selected" value="">请选择</option>'
  206. );
  207. $.getJSON(
  208. huayi.config.callcenter_url +
  209. "Dictionary/GetDicValueListById", {
  210. token: $.cookie("token"),
  211. id: 1,
  212. },
  213. function (data) {
  214. if (data.state.toLowerCase() == "success") {
  215. var content = data.data;
  216. $(content).each(function (i, n) {
  217. $(
  218. "<option value='" +
  219. n.F_ValueId +
  220. "'>" +
  221. n.F_Value +
  222. "</option>"
  223. ).appendTo(obj);
  224. });
  225. }
  226. }
  227. );
  228. }
  229. //代办搜索
  230. $(".db").click(function () {
  231. initTable();
  232. })
  233. //导出
  234. $('.export').click(function () {
  235. dcexcel(this);
  236. })
  237. function dcexcel(obj) {
  238. var source = $("#source").val();
  239. var url = huayi.config.callcenter_url + "WorkOrderReport/GetNotSatisfied?token=" + $.cookie("token");
  240. url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&source=" + source + "&isExport=true";
  241. obj.href = url;
  242. }
  243. </script>
  244. </body>
  245. </html>