|
|
@@ -1,440 +0,0 @@
|
|
1
|
|
-<!DOCTYPE html>
|
|
2
|
|
-<html>
|
|
3
|
|
-
|
|
4
|
|
- <head>
|
|
5
|
|
- <meta charset="UTF-8">
|
|
6
|
|
- <title>报表统计</title>
|
|
7
|
|
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
8
|
|
- <script src="../Script/Common/huayi.load.js"></script>
|
|
9
|
|
- <script src="../Script/Common/huayi.config.js"></script>
|
|
10
|
|
- <link href="../css/WorkOrder/Search.css" rel="stylesheet">
|
|
11
|
|
- <link href="../css/init.css" rel="stylesheet" />
|
|
12
|
|
- <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
|
|
13
|
|
- <script src="../js/zTree/jquery.ztree.core.js"></script>
|
|
14
|
|
- <style>
|
|
15
|
|
- table td {
|
|
16
|
|
- word-break: break-all;
|
|
17
|
|
- word-wrap: break-word;
|
|
18
|
|
- }
|
|
19
|
|
-
|
|
20
|
|
- .Shows {
|
|
21
|
|
- display: block !important;
|
|
22
|
|
- }
|
|
23
|
|
-
|
|
24
|
|
- .complain {
|
|
25
|
|
- display: none;
|
|
26
|
|
- }
|
|
27
|
|
-
|
|
28
|
|
- .toolLeft input {
|
|
29
|
|
- width: 235px;
|
|
30
|
|
- }
|
|
31
|
|
-
|
|
32
|
|
- th {
|
|
33
|
|
- padding: 5px;
|
|
34
|
|
- text-align: center;
|
|
35
|
|
- }
|
|
36
|
|
-
|
|
37
|
|
- td {
|
|
38
|
|
- padding: 5px;
|
|
39
|
|
- }
|
|
40
|
|
-
|
|
41
|
|
- .Borders {
|
|
42
|
|
- border: 1px solid #d7d7d7;
|
|
43
|
|
- }
|
|
44
|
|
-
|
|
45
|
|
- .daoHang {
|
|
46
|
|
- margin-bottom: 15px;
|
|
47
|
|
- }
|
|
48
|
|
-
|
|
49
|
|
- .inpBox {
|
|
50
|
|
- border: 1px solid #e5e6e7;
|
|
51
|
|
- height: 32px;
|
|
52
|
|
- width: 200px;
|
|
53
|
|
- display: inline-block;
|
|
54
|
|
- position: relative;
|
|
55
|
|
- vertical-align: middle;
|
|
56
|
|
- }
|
|
57
|
|
-
|
|
58
|
|
- .inpBox .inps1 {
|
|
59
|
|
- width: 100%;
|
|
60
|
|
- height: 30px;
|
|
61
|
|
- outline: none;
|
|
62
|
|
- border: 0;
|
|
63
|
|
- border-image-width: 0;
|
|
64
|
|
- padding: 0;
|
|
65
|
|
- padding-left: 3px;
|
|
66
|
|
- }
|
|
67
|
|
-
|
|
68
|
|
- .xl {
|
|
69
|
|
- display: inline-block;
|
|
70
|
|
- background: url(../img/dropDown.png) no-repeat;
|
|
71
|
|
- height: 100%;
|
|
72
|
|
- background-position: center center;
|
|
73
|
|
- width: 20px;
|
|
74
|
|
- position: absolute;
|
|
75
|
|
- right: 0;
|
|
76
|
|
- top: 0px;
|
|
77
|
|
- background-color: #f7bc8b;
|
|
78
|
|
- cursor: pointer;
|
|
79
|
|
- }
|
|
80
|
|
-
|
|
81
|
|
- .xl:hover {
|
|
82
|
|
- background-color: #e6d523;
|
|
83
|
|
- }
|
|
84
|
|
-
|
|
85
|
|
- .addTree {
|
|
86
|
|
- background: #fff;
|
|
87
|
|
- position: absolute;
|
|
88
|
|
- width: 100%;
|
|
89
|
|
- border: 1px solid darkgrey;
|
|
90
|
|
- right: 0;
|
|
91
|
|
- top: 30px;
|
|
92
|
|
- display: none;
|
|
93
|
|
- height: 350px;
|
|
94
|
|
- overflow-y: auto;
|
|
95
|
|
- z-index: 10;
|
|
96
|
|
- text-align: center;
|
|
97
|
|
- }
|
|
98
|
|
-
|
|
99
|
|
- .addTree .list li:hover {
|
|
100
|
|
- background: #ebebeb;
|
|
101
|
|
- color: #717171;
|
|
102
|
|
- }
|
|
103
|
|
-
|
|
104
|
|
- .remark {
|
|
105
|
|
- max-width: 350px;
|
|
106
|
|
- }
|
|
107
|
|
-
|
|
108
|
|
- .Cleans {
|
|
109
|
|
- display: inline-block;
|
|
110
|
|
- width: 20px;
|
|
111
|
|
- position: absolute;
|
|
112
|
|
- right: 21px;
|
|
113
|
|
- top: 8px;
|
|
114
|
|
- display: none;
|
|
115
|
|
- }
|
|
116
|
|
- </style>
|
|
117
|
|
- </head>
|
|
118
|
|
-
|
|
119
|
|
- <body class="gray-bg">
|
|
120
|
|
- <div class="wrapper wrapper-content animated fadeInRight">
|
|
121
|
|
- <div class="daoHang clearfix">
|
|
122
|
|
- <div class="dhLeft">
|
|
123
|
|
- <sapn>
|
|
124
|
|
- <i class="syIcon"></i>位置:
|
|
125
|
|
- <a href="javaScript:;" id="ReIndex">首页</a>>
|
|
126
|
|
- <a href="javaScript:;">业务统计</a>>
|
|
127
|
|
- <a href="" class="nowPosition">多派单统计</a>
|
|
128
|
|
- </sapn>
|
|
129
|
|
- </div>
|
|
130
|
|
- <div class="dhRight">
|
|
131
|
|
- <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
|
|
132
|
|
- </div>
|
|
133
|
|
- </div>
|
|
134
|
|
-
|
|
135
|
|
- <div class="Content_box">
|
|
136
|
|
- <div class="complain Shows">
|
|
137
|
|
- <div class="toolBar clearfix">
|
|
138
|
|
- <div class="toolLeft">
|
|
139
|
|
- 交办时间范围:
|
|
140
|
|
- <input type="text" autocomplete="off" class="laydate-icon" id="startTime" />-
|
|
141
|
|
- <input type="text" autocomplete="off" class="laydate-icon" id="endTime" /> 部门:
|
|
142
|
|
- <div class="inpBox">
|
|
143
|
|
- <input class="inps inps1">
|
|
144
|
|
- <input type="hidden" id="deptid" />
|
|
145
|
|
- <i class="Cleans fa fa-close"></i>
|
|
146
|
|
- <i class="xl xl_two"></i>
|
|
147
|
|
- <div class="addTree xlAdd_two">
|
|
148
|
|
- <ul id="deptTree" class="ztree"></ul>
|
|
149
|
|
- </div>
|
|
150
|
|
- </div>
|
|
151
|
|
- 工单号:
|
|
152
|
|
- <input class="photo x-color inputs" type="text" id="workid" />
|
|
153
|
|
- <button class="btns search_1">查询</button>
|
|
154
|
|
- <a class="btns" id="exportPublicSentiments">导出</a>
|
|
155
|
|
- </div>
|
|
156
|
|
- </div>
|
|
157
|
|
- <!--data-formatter="comprehensiveScores"-->
|
|
158
|
|
- <!--table1-->
|
|
159
|
|
- <div style="width: 100%;padding: 10px;">
|
|
160
|
|
- <table id="publicSATable" class="tables" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
|
|
161
|
|
- <thead>
|
|
162
|
|
- <tr>
|
|
163
|
|
- <th data-field="F_WorkOrderId" data-formatter="orderDetail" data-align="center">工单号</th>
|
|
164
|
|
- <th data-field="DeptName" data-align="center">部门</th>
|
|
165
|
|
- <th data-field="total" data-align="center">交办量</th>
|
|
166
|
|
- </tr>
|
|
167
|
|
- </thead>
|
|
168
|
|
- <tbody class="list"></tbody>
|
|
169
|
|
- </table>
|
|
170
|
|
- </div>
|
|
171
|
|
- </div>
|
|
172
|
|
- </div>
|
|
173
|
|
- </div>
|
|
174
|
|
- <!--<script src="../js/laydate/laydate.js"></script>-->
|
|
175
|
|
- <script src="../css/laydate/laydate.js"></script>
|
|
176
|
|
- <script>
|
|
177
|
|
- var exportParams;
|
|
178
|
|
-
|
|
179
|
|
- $(document).ready(function() {
|
|
180
|
|
- //开始时间
|
|
181
|
|
- laydate({
|
|
182
|
|
- elem: '#startTime',
|
|
183
|
|
- event: 'focus',
|
|
184
|
|
- istoday: true,
|
|
185
|
|
- format: 'YYYY-MM-DD', // 分隔符可以任意定义,该例子表示只显示年月
|
|
186
|
|
- });
|
|
187
|
|
- //结束时间
|
|
188
|
|
- laydate({
|
|
189
|
|
- elem: '#endTime',
|
|
190
|
|
- event: 'focus',
|
|
191
|
|
- istoday: true,
|
|
192
|
|
- format: 'YYYY-MM-DD', // 分隔符可以任意定义,该例子表示只显示年月
|
|
193
|
|
- });
|
|
194
|
|
- getTimes('#squeryTime')
|
|
195
|
|
- initTable();
|
|
196
|
|
- bindtree();
|
|
197
|
|
- });
|
|
198
|
|
-
|
|
199
|
|
- //表格
|
|
200
|
|
- function initTable() {
|
|
201
|
|
- //先销毁表格
|
|
202
|
|
- $('#publicSATable').bootstrapTable('destroy');
|
|
203
|
|
- //初始化表格,动态从服务器加载数据
|
|
204
|
|
- // $.ajax({
|
|
205
|
|
- // url: huayi.config.callcenter_url + 'WorkOrderReport/GetAssignInfotReport',
|
|
206
|
|
- // type: 'get',
|
|
207
|
|
- // data: {
|
|
208
|
|
- // start: $('#startTime').val(),
|
|
209
|
|
- // end: $('#endTime').val(),
|
|
210
|
|
- // deptid: $("#deptid").val(),
|
|
211
|
|
- // workorderid: $("#workid").val(),
|
|
212
|
|
- // token: $.cookie("token")
|
|
213
|
|
- // },
|
|
214
|
|
- // dataType: "json",
|
|
215
|
|
- // async: true,
|
|
216
|
|
- // success: function(returnValue) {
|
|
217
|
|
- // //异步获取数据
|
|
218
|
|
- // var resultData = returnValue.rows;
|
|
219
|
|
- // $('#publicSATable').bootstrapTable('load', resultData);
|
|
220
|
|
- // }
|
|
221
|
|
- // });
|
|
222
|
|
- // $('#publicSATable').bootstrapTable('destroy').bootstrapTable({
|
|
223
|
|
- // pagination: true, //启动分页
|
|
224
|
|
- // pageSize: 10, //每页显示的记录数
|
|
225
|
|
- // pageNumber: 1, //当前第几页
|
|
226
|
|
- // pageList: [10, 20, 50, 100], //记录数可选列表
|
|
227
|
|
- // });
|
|
228
|
|
- $("#publicSATable").bootstrapTable({
|
|
229
|
|
- method: "get", //使用get请求到服务器获取数据
|
|
230
|
|
- url: huayi.config.callcenter_url + "WorkOrderReport/GetAssignInfotReport", //获取数据的Servlet地址
|
|
231
|
|
- contentType: "application/x-www-form-urlencoded",
|
|
232
|
|
- striped: true, //表格显示条纹
|
|
233
|
|
- pagination: true, //启动分页
|
|
234
|
|
- pageSize: 10, //每页显示的记录数
|
|
235
|
|
- pageNumber: 1, //当前第几页
|
|
236
|
|
- pageList: [10, 20, 50, 100], //记录数可选列表
|
|
237
|
|
- search: false, //是否启用查询
|
|
238
|
|
- showColumns: false, //显示下拉框勾选要显示的列
|
|
239
|
|
- showRefresh: false, //显示刷新按钮
|
|
240
|
|
- sidePagination: "server", //表示服务端请求
|
|
241
|
|
- //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
|
|
242
|
|
- //设置为limit可以获取limit, offset, search, sort, order
|
|
243
|
|
- queryParamsType: "undefined",
|
|
244
|
|
- queryParams: function queryParams(params) { //设置查询参数
|
|
245
|
|
- var param = {
|
|
246
|
|
- pageIndex: params.pageNumber,
|
|
247
|
|
- pageSize: params.pageSize,
|
|
248
|
|
- start: $('#startTime').val(),
|
|
249
|
|
- end: $('#endTime').val(),
|
|
250
|
|
- deptid: $("#deptid").val(),
|
|
251
|
|
- workorderid: $("#workid").val(),
|
|
252
|
|
- token: $.cookie("token")
|
|
253
|
|
- };
|
|
254
|
|
- exportParams = param
|
|
255
|
|
- return param;
|
|
256
|
|
- },
|
|
257
|
|
- onLoadSuccess: function(data) { //加载成功时执行
|
|
258
|
|
- // layer.msg("加载成功");
|
|
259
|
|
- //console.log(data);
|
|
260
|
|
- },
|
|
261
|
|
- onLoadError: function() { //加载失败时执行
|
|
262
|
|
- //layer.msg("加载数据失败", { time: 1500, icon: 2 });
|
|
263
|
|
- }
|
|
264
|
|
- });
|
|
265
|
|
- }
|
|
266
|
|
-
|
|
267
|
|
- //搜索
|
|
268
|
|
- $(".search_1").click(function() {
|
|
269
|
|
- initTable();
|
|
270
|
|
- });
|
|
271
|
|
-
|
|
272
|
|
- $(".inps").focus(function() {
|
|
273
|
|
- $(this).siblings(".addTree").css("display", "block");
|
|
274
|
|
- });
|
|
275
|
|
-
|
|
276
|
|
- $(".xl").click(function() {
|
|
277
|
|
- var xl = $(this).siblings(".addTree");
|
|
278
|
|
- if(xl.css("display") == "block") {
|
|
279
|
|
- xl.css("display", "none");
|
|
280
|
|
- } else {
|
|
281
|
|
- xl.css("display", "block");
|
|
282
|
|
- }
|
|
283
|
|
- });
|
|
284
|
|
-
|
|
285
|
|
- function getTimes(dom) {
|
|
286
|
|
- function p(s) {
|
|
287
|
|
- return s < 10 ? '0' + s : s;
|
|
288
|
|
- }
|
|
289
|
|
- var currentYear = new Date().getFullYear();
|
|
290
|
|
- var currentMonth = new Date().getMonth() + 1;
|
|
291
|
|
- var currentDate = new Date().getDate();
|
|
292
|
|
- var prevCurrentYear = 0;
|
|
293
|
|
- var prevCurrentMonth = 0;
|
|
294
|
|
- if(currentMonth == 1) {
|
|
295
|
|
- prevCurrentYear = currentYear - 1;
|
|
296
|
|
- prevCurrentMonth = 12;
|
|
297
|
|
- } else {
|
|
298
|
|
- prevCurrentYear = currentYear;
|
|
299
|
|
- prevCurrentMonth = currentMonth - 1;
|
|
300
|
|
- }
|
|
301
|
|
- let hh = new Date().getHours()
|
|
302
|
|
- let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes()
|
|
303
|
|
- let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds() : new Date().getSeconds()
|
|
304
|
|
- var data = currentYear + "-" + p(currentMonth) + "-" + '01';
|
|
305
|
|
- var current = currentYear + "-" + p(currentMonth);
|
|
306
|
|
- $(dom).val(current)
|
|
307
|
|
- }
|
|
308
|
|
-
|
|
309
|
|
- function bindtree() {
|
|
310
|
|
- $.getJSON(
|
|
311
|
|
- huayi.config.callcenter_url + "Department/GetDeptList", {
|
|
312
|
|
- token: $.cookie("token")
|
|
313
|
|
- },
|
|
314
|
|
- function(result) {
|
|
315
|
|
- if(result.state.toLowerCase() == "success") {
|
|
316
|
|
- $.fn.zTree.init($("#deptTree"), setting, result.data);
|
|
317
|
|
- }
|
|
318
|
|
- }
|
|
319
|
|
- );
|
|
320
|
|
- }
|
|
321
|
|
-
|
|
322
|
|
- //获取所属部门
|
|
323
|
|
- var setting = {
|
|
324
|
|
- data: {
|
|
325
|
|
- key: {
|
|
326
|
|
- name: "F_DeptName",
|
|
327
|
|
- },
|
|
328
|
|
- simpleData: {
|
|
329
|
|
- enable: true,
|
|
330
|
|
- idKey: "F_DeptId",
|
|
331
|
|
- pIdKey: "F_PartentId",
|
|
332
|
|
- rootPId: 0,
|
|
333
|
|
- },
|
|
334
|
|
- },
|
|
335
|
|
- callback: {
|
|
336
|
|
- onClick: zTreeOnClick,
|
|
337
|
|
- },
|
|
338
|
|
- };
|
|
339
|
|
-
|
|
340
|
|
- function zTreeOnClick(event, treeId, treeNode) {
|
|
341
|
|
- $(".inps1").val(treeNode.F_DeptName);
|
|
342
|
|
- $("#deptid").val(treeNode.F_DeptId);
|
|
343
|
|
- $(".Cleans").show();
|
|
344
|
|
- $('.addTree').css('display', 'none');
|
|
345
|
|
- }
|
|
346
|
|
-
|
|
347
|
|
- $(".Cleans").click(function() {
|
|
348
|
|
- $(".inps1").val("");
|
|
349
|
|
- $("#deptid").val("");
|
|
350
|
|
- })
|
|
351
|
|
-
|
|
352
|
|
- //导出
|
|
353
|
|
- $('#exportPublicSentiments').click(function() {
|
|
354
|
|
- dcexcelDispath(this);
|
|
355
|
|
- });
|
|
356
|
|
-
|
|
357
|
|
- function dcexcelDispath(obj) {
|
|
358
|
|
- var url = huayi.config.callcenter_url + "WorkOrderReport/GetAssignInfotReport?token=" + $.cookie("token");
|
|
359
|
|
- url += "&start=" + $("#startTime").val() + "&end=" + $("#endTime").val() + "&workorderid=" + $("#workid").val() + "&deptid=" + $('#deptid').val() + "&isExport=true";
|
|
360
|
|
- obj.href = url;
|
|
361
|
|
- }
|
|
362
|
|
-
|
|
363
|
|
- function InformationScores(val, row) {
|
|
364
|
|
- return '<a onclick="btn_comprehensiveScores(\'' + row.deptid + '\',\'' + 0 + '\',\'' + 0 + '\')">' + val + '</a>'
|
|
365
|
|
- }
|
|
366
|
|
- //工单实时签收率
|
|
367
|
|
- function recoveryrateList(val, row) {
|
|
368
|
|
- return '<a onclick="btn_orderView(\'' + row.deptid + '\',\'' + 1 + '\')">' + val + '</a>'
|
|
369
|
|
- }
|
|
370
|
|
- //实时退单率
|
|
371
|
|
- function overtimerateList(val, row) {
|
|
372
|
|
- return '<a onclick="btn_orderView(\'' + row.deptid + '\',\'' + 2 + '\')">' + val + '</a>'
|
|
373
|
|
- }
|
|
374
|
|
- //重复退单率
|
|
375
|
|
- function refundrateList(val, row) {
|
|
376
|
|
- return '<a onclick="btn_orderView(\'' + row.deptid + '\',\'' + 3 + '\')">' + val + '</a>'
|
|
377
|
|
- }
|
|
378
|
|
- //按时办结率
|
|
379
|
|
- function finishontimerateList(val, row) {
|
|
380
|
|
- return '<a onclick="btn_orderView(\'' + row.deptid + '\',\'' + 4 + '\')">' + val + '</a>'
|
|
381
|
|
- }
|
|
382
|
|
- //扫描件上传速率
|
|
383
|
|
- function scanningList(val, row) {
|
|
384
|
|
- return '<a onclick="btn_orderView(\'' + row.deptid + '\',\'' + 5 + '\')">' + val + '</a>'
|
|
385
|
|
- }
|
|
386
|
|
- //办件数量
|
|
387
|
|
- function handlingList(val, row) {
|
|
388
|
|
- return '<a onclick="btn_orderView(\'' + row.deptid + '\',\'' + 6 + '\')">' + val + '</a>'
|
|
389
|
|
- }
|
|
390
|
|
-
|
|
391
|
|
- function ExcellentScores(val, row) {
|
|
392
|
|
- return '<a onclick="btn_comprehensiveScores(\'' + row.deptid + '\',\'' + 0 + '\',\'' + 1 + '\')">' + val + '</a>'
|
|
393
|
|
- }
|
|
394
|
|
-
|
|
395
|
|
- function ImmediateScores(val, row) {
|
|
396
|
|
- return '<a onclick="btn_comprehensiveScores(\'' + row.deptid + '\',\'' + 0 + '\',\'' + 2 + '\')">' + val + '</a>'
|
|
397
|
|
- }
|
|
398
|
|
-
|
|
399
|
|
- function superviseScores(val, row) {
|
|
400
|
|
- return '<a onclick="btn_comprehensiveScores(\'' + row.deptid + '\',\'' + 1 + '\')">' + val + '</a>'
|
|
401
|
|
- }
|
|
402
|
|
-
|
|
403
|
|
- function btn_orderView(deptid, tmptype) {
|
|
404
|
|
- var time = $("#squeryTime").val()
|
|
405
|
|
- layer.open({
|
|
406
|
|
- type: 2,
|
|
407
|
|
- content: "./commonHtml/workListReport.html?deptid=" + deptid + '&tmptype=' + tmptype + '&dateT=' + time, //iframe的url,no代表不显示滚动条
|
|
408
|
|
- title: '工单列表',
|
|
409
|
|
- area: ['100%', '100%'], //宽高
|
|
410
|
|
- });
|
|
411
|
|
- }
|
|
412
|
|
-
|
|
413
|
|
- function btn_comprehensiveScores(id, state, type) {
|
|
414
|
|
- var time = $("#squeryTime").val()
|
|
415
|
|
- layer.open({
|
|
416
|
|
- type: 2,
|
|
417
|
|
- content: "../YeWu/changeComprehensiveScoresGongYi.html?id=" + id + '&state=' + state + '&dateT=' + time + '&type=' + type, //iframe的url,no代表不显示滚动条
|
|
418
|
|
- title: '综合考评分数',
|
|
419
|
|
- area: ['80%', '50%'], //宽高
|
|
420
|
|
- });
|
|
421
|
|
- }
|
|
422
|
|
-
|
|
423
|
|
- function orderDetail(val, row) {
|
|
424
|
|
- if(row.F_WorkOrderId) {
|
|
425
|
|
- return '<a onclick="ckxq(\'' + row.F_WorkOrderId + '\')">' + row.F_WorkOrderId + '</a>'
|
|
426
|
|
- }
|
|
427
|
|
- }
|
|
428
|
|
-
|
|
429
|
|
- function ckxq(str) {
|
|
430
|
|
- layer.open({
|
|
431
|
|
- type: 2,
|
|
432
|
|
- content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
|
|
433
|
|
- title: '工单详情',
|
|
434
|
|
- area: ['87%', '80%'], //宽高
|
|
435
|
|
- });
|
|
436
|
|
- }
|
|
437
|
|
- </script>
|
|
438
|
|
- </body>
|
|
439
|
|
-
|
|
440
|
|
-</html>
|