|
|
@@ -43,7 +43,8 @@ $(function() {
|
|
43
|
43
|
format: 'yyyy-MM-dd',
|
|
44
|
44
|
theme: '#114a97',
|
|
45
|
45
|
done: function(value, date) {
|
|
46
|
|
- twoScreen(value && value.split(' ~ ')[0], value && value.split(' ~ ')[1])
|
|
|
46
|
+ twoScreen(value && value.split(' ~ ')[0], value && value.split(' ~ ')[1],$(".areaTwo").val())
|
|
|
47
|
+ satisfaction(value && value.split(' ~ ')[0], value && value.split(' ~ ')[1],$(".areaTwo").val())
|
|
47
|
48
|
}
|
|
48
|
49
|
});
|
|
49
|
50
|
laydate.render({
|
|
|
@@ -51,25 +52,16 @@ $(function() {
|
|
51
|
52
|
format: 'yyyy-MM-dd',
|
|
52
|
53
|
theme: '#114a97',
|
|
53
|
54
|
done: function(value) {
|
|
54
|
|
- threeScreen(value)
|
|
|
55
|
+ threeScreen(value,$(".areaThree").val())
|
|
55
|
56
|
}
|
|
56
|
|
- });
|
|
57
|
|
- laydate.render({
|
|
58
|
|
- elem: '#time4',
|
|
59
|
|
- range: '~',
|
|
60
|
|
- format: 'yyyy-MM-dd',
|
|
61
|
|
- theme: '#114a97',
|
|
62
|
|
- done: function(value, date) {
|
|
63
|
|
- fourScreen(value && value.split(' ~ ')[0], value && value.split(' ~ ')[1])
|
|
64
|
|
- }
|
|
65
|
|
- });
|
|
|
57
|
+ });
|
|
66
|
58
|
laydate.render({
|
|
67
|
59
|
elem: '#test6',
|
|
68
|
60
|
range: '~',
|
|
69
|
61
|
format: 'yyyy-MM-dd',
|
|
70
|
62
|
theme: '#114a97',
|
|
71
|
63
|
done: function(value, date) {
|
|
72
|
|
- fiveScreen(value && value.split(' ~ ')[0], value && value.split(' ~ ')[1])
|
|
|
64
|
+ fiveScreen(value && value.split(' ~ ')[0], value && value.split(' ~ ')[1],$(".areaFive").val())
|
|
73
|
65
|
}
|
|
74
|
66
|
});
|
|
75
|
67
|
})
|
|
|
@@ -201,7 +193,7 @@ function turn(aa) {
|
|
201
|
193
|
}
|
|
202
|
194
|
$.ajax({
|
|
203
|
195
|
type: "get",
|
|
204
|
|
- url: huayi.config.callcenter_url + "info/GetSourceByDate",
|
|
|
196
|
+ url: huayi.config.callcenter_url + "info/GetSourceByDateNew",
|
|
205
|
197
|
async: true,
|
|
206
|
198
|
dataType: 'json',
|
|
207
|
199
|
data: {
|
|
|
@@ -211,14 +203,11 @@ function turn(aa) {
|
|
211
|
203
|
},
|
|
212
|
204
|
success: function(data) {
|
|
213
|
205
|
if(data.state.toLowerCase() == 'success') {
|
|
214
|
|
- // layer.close(index);
|
|
|
206
|
+ //layer.close(index);
|
|
215
|
207
|
$('.orderSource ul li .rectangle').remove();
|
|
216
|
208
|
var con = data.data;
|
|
217
|
|
-
|
|
|
209
|
+ var Percent;
|
|
218
|
210
|
$(con).each(function(i, n) {
|
|
219
|
|
- if(!n.Percent) {
|
|
220
|
|
- n.Percent = '0.00%'
|
|
221
|
|
- }
|
|
222
|
211
|
if(n.Source.indexOf('信箱') != -1) {
|
|
223
|
212
|
n.Source = '信箱'
|
|
224
|
213
|
}
|
|
|
@@ -233,7 +222,7 @@ function turn(aa) {
|
|
233
|
222
|
'<div class="percent_box">' +
|
|
234
|
223
|
'<div class="percent_out"></div> ' +
|
|
235
|
224
|
' <div class="percent_in"></div>' +
|
|
236
|
|
- ' <div class="percent_word"><p>' + n.Percent.split('%')[0] + '</p>%<p style="margin-top: 16px;">占总量</p>' +
|
|
|
225
|
+ ' <div class="percent_word"><p>' + n.Rate.split('%')[0] + '</p>%<p style="margin-top: 16px;">占总量</p>' +
|
|
237
|
226
|
'</div>' +
|
|
238
|
227
|
'</div>' +
|
|
239
|
228
|
'</div>' +
|
|
|
@@ -249,7 +238,7 @@ function turn(aa) {
|
|
249
|
238
|
}
|
|
250
|
239
|
|
|
251
|
240
|
//第三屏
|
|
252
|
|
- function threeScreen(sd) {
|
|
|
241
|
+ function threeScreen(sd,areaTwoVal) {
|
|
253
|
242
|
$.ajax({
|
|
254
|
243
|
type: "get",
|
|
255
|
244
|
url: huayi.config.callcenter_url + "Info/GetTypeCountNew",
|
|
|
@@ -257,6 +246,7 @@ function turn(aa) {
|
|
257
|
246
|
dataType: 'json',
|
|
258
|
247
|
data: {
|
|
259
|
248
|
date: sd,
|
|
|
249
|
+ branchcode: areaTwoVal
|
|
260
|
250
|
},
|
|
261
|
251
|
success: function(data) {
|
|
262
|
252
|
if(data.state.toLowerCase() == 'success') {
|
|
|
@@ -304,90 +294,37 @@ function turn(aa) {
|
|
304
|
294
|
}
|
|
305
|
295
|
});
|
|
306
|
296
|
}
|
|
307
|
|
-
|
|
308
|
|
- //第四屏 数字滚动
|
|
309
|
|
- function fourScreen(sd,ed) {
|
|
310
|
|
- $.ajax({
|
|
311
|
|
- type: "get",
|
|
312
|
|
- url: huayi.config.callcenter_url + "Info/GetStateCountByMonth",
|
|
313
|
|
- async: true,
|
|
314
|
|
- dataType: 'json',
|
|
315
|
|
- data:{
|
|
316
|
|
- start: sd,
|
|
317
|
|
- end: ed,
|
|
318
|
|
- },
|
|
319
|
|
- success: function(data) {
|
|
320
|
|
- if(data.state.toLowerCase() == 'success') {
|
|
321
|
|
- // layer.close(index);
|
|
322
|
|
- var con = data.data;
|
|
323
|
|
- $(con).each(function(i, n) {
|
|
324
|
|
- if(n.Name.indexOf('延时审核') != -1) {
|
|
325
|
|
- $("#state_yssh").rollNum({
|
|
326
|
|
- deVal: n.Count
|
|
327
|
|
- });
|
|
328
|
|
- }
|
|
329
|
|
- if(n.Name.indexOf('已办理') != -1) {
|
|
330
|
|
- $("#state_ybl").rollNum({
|
|
331
|
|
- deVal: n.Count
|
|
332
|
|
- });
|
|
333
|
|
- }
|
|
334
|
|
- if(n.Name.indexOf('已回访') != -1) {
|
|
335
|
|
-
|
|
336
|
|
- $("#state_yhf").rollNum({
|
|
337
|
|
- deVal: n.Count
|
|
338
|
|
- });
|
|
339
|
|
- }
|
|
340
|
|
- if(n.Name.indexOf('重办中') != -1) {
|
|
341
|
|
- $("#state_cbz").rollNum({
|
|
342
|
|
- deVal: n.Count
|
|
343
|
|
- });
|
|
344
|
|
- }
|
|
345
|
|
- if(n.Name.indexOf('已结案') != -1) {
|
|
346
|
|
- $("#state_yja").rollNum({
|
|
347
|
|
- deVal: n.Count
|
|
348
|
|
- });
|
|
349
|
|
- }
|
|
350
|
|
- if(n.Name.indexOf('新工单') != -1) {
|
|
351
|
|
- $("#state_xzgd").rollNum({
|
|
352
|
|
- deVal: n.Count
|
|
353
|
|
- });
|
|
354
|
|
- }
|
|
355
|
|
- if(n.Name.indexOf('待交办') != -1) {
|
|
356
|
|
- $("#state_djb").rollNum({
|
|
357
|
|
- deVal: n.Count
|
|
358
|
|
- });
|
|
359
|
|
- }
|
|
360
|
|
- if(n.Name.indexOf('待查收') != -1) {
|
|
361
|
|
- $("#state_dcs").rollNum({
|
|
362
|
|
- deVal: n.Count
|
|
363
|
|
- });
|
|
364
|
|
- }
|
|
365
|
|
- if(n.Name.indexOf('退回审核') != -1) {
|
|
366
|
|
- $("#state_thsh").rollNum({
|
|
367
|
|
- deVal: n.Count
|
|
368
|
|
- });
|
|
369
|
|
- }
|
|
370
|
|
- if(n.Name.indexOf('办理中') != -1) {
|
|
371
|
|
- $("#state_blz").rollNum({
|
|
372
|
|
- deVal: n.Count
|
|
373
|
|
- });
|
|
374
|
|
- }
|
|
375
|
|
- });
|
|
376
|
|
- }
|
|
377
|
|
- }
|
|
378
|
|
- });
|
|
379
|
|
-
|
|
380
|
|
- }
|
|
381
|
297
|
//第五屏js
|
|
382
|
|
- function fiveScreen(sd,ed) {
|
|
383
|
|
- keyWord(sd, ed);
|
|
|
298
|
+ function fiveScreen(sd,ed,areaTwoVal) {
|
|
|
299
|
+ keyWord(sd, ed,areaTwoVal);
|
|
384
|
300
|
}
|
|
385
|
301
|
$(".depart").change(function() {
|
|
386
|
|
- keyWordDetail($('#test6').val() && $('#test6').val().split(' ~ ')[0], $('#test6').val() && $('#test6').val().split(' ~ ')[1]);
|
|
|
302
|
+ keyWordDetail($('#test6').val() && $('#test6').val().split(' ~ ')[0], $('#test6').val() && $('#test6').val().split(' ~ ')[1],$(".areaFive").val());
|
|
387
|
303
|
})
|
|
|
304
|
+ // 第二屏
|
|
|
305
|
+ $(".areaTwo").change(function() {
|
|
|
306
|
+ var areaTwoVal=$(this).val();
|
|
|
307
|
+ twoScreen($('#time2').val() && $('#time2').val().split(' ~ ')[0], $('#time2').val() && $('#time2').val().split(' ~ ')[1],areaTwoVal);
|
|
|
308
|
+ satisfaction($('#time2').val() && $('#time2').val().split(' ~ ')[0], $('#time2').val() && $('#time2').val().split(' ~ ')[1],areaTwoVal)
|
|
|
309
|
+ });
|
|
|
310
|
+ //第三屏
|
|
|
311
|
+ $(".areaThree").change(function() {
|
|
|
312
|
+ var areaTwoVal=$(this).val();
|
|
|
313
|
+ threeScreen($('#time3').val(),areaTwoVal);
|
|
|
314
|
+ });
|
|
|
315
|
+ //第五屏
|
|
|
316
|
+ $(".areaFive").change(function() {
|
|
|
317
|
+ var areaTwoVal=$(this).val();
|
|
|
318
|
+ fiveScreen($('#test6').val() && $('#test6').val().split(' ~ ')[0], $('#test6').val() && $('#test6').val().split(' ~ ')[1],areaTwoVal);
|
|
|
319
|
+ deprtment ()
|
|
|
320
|
+ });
|
|
388
|
321
|
//部门下拉框
|
|
389
|
322
|
function deprtment () {
|
|
390
|
|
- $.getJSON( huayi.config.callcenter_url +"info/GetDeptList", function(result) {
|
|
|
323
|
+ $.getJSON( huayi.config.callcenter_url +"info/GetDeptList",
|
|
|
324
|
+ {
|
|
|
325
|
+ branchcode: $(".areaFive").val()
|
|
|
326
|
+ },
|
|
|
327
|
+ function(result) {
|
|
391
|
328
|
if(result.state.toLowerCase() == "success") {
|
|
392
|
329
|
goodslist = result.data;
|
|
393
|
330
|
$(".depart").empty();
|
|
|
@@ -400,9 +337,38 @@ function turn(aa) {
|
|
400
|
337
|
}
|
|
401
|
338
|
});
|
|
402
|
339
|
}
|
|
403
|
|
-
|
|
|
340
|
+ //区县筛选
|
|
|
341
|
+ areaSelect ();
|
|
|
342
|
+ function areaSelect () {
|
|
|
343
|
+ $.getJSON( huayi.config.callcenter_url +"CountyBranch/GetBranchListS", function(result) {
|
|
|
344
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
345
|
+ goodslist = result.data;
|
|
|
346
|
+// 第五屏
|
|
|
347
|
+ $(".areaFive").empty();
|
|
|
348
|
+ $(goodslist).each(function(i, n) {
|
|
|
349
|
+ $('<option value="' + n.F_Code
|
|
|
350
|
+ + '">' + n.F_Name
|
|
|
351
|
+ + '</option>').appendTo($(".areaFive"));
|
|
|
352
|
+ });
|
|
|
353
|
+ //第3屏
|
|
|
354
|
+ $(".areaThree").empty();
|
|
|
355
|
+ $(goodslist).each(function(i, n) {
|
|
|
356
|
+ $('<option value="' + n.F_Code
|
|
|
357
|
+ + '">' + n.F_Name
|
|
|
358
|
+ + '</option>').appendTo($(".areaThree"));
|
|
|
359
|
+ });
|
|
|
360
|
+ //第2屏
|
|
|
361
|
+ $(".areaTwo").empty();
|
|
|
362
|
+ $(goodslist).each(function(i, n) {
|
|
|
363
|
+ $('<option value="' + n.F_Code
|
|
|
364
|
+ + '">' + n.F_Name
|
|
|
365
|
+ + '</option>').appendTo($(".areaTwo"));
|
|
|
366
|
+ });
|
|
|
367
|
+ }
|
|
|
368
|
+ });
|
|
|
369
|
+ }
|
|
404
|
370
|
// 左侧关键词
|
|
405
|
|
-function keyWord(sd, ed) {
|
|
|
371
|
+function keyWord(sd, ed,areaTwoVal) {
|
|
406
|
372
|
$.ajax({
|
|
407
|
373
|
type: "get",
|
|
408
|
374
|
url: huayi.config.callcenter_url + "info/GetKeyCountRankByDate",
|
|
|
@@ -410,32 +376,38 @@ function keyWord(sd, ed) {
|
|
410
|
376
|
dataType: 'json',
|
|
411
|
377
|
data: {
|
|
412
|
378
|
start: sd,
|
|
413
|
|
- end: ed
|
|
|
379
|
+ end: ed,
|
|
|
380
|
+ branchcode: areaTwoVal
|
|
414
|
381
|
},
|
|
415
|
382
|
success: function(data) {
|
|
416
|
383
|
if(data.state.toLowerCase() == 'success') {
|
|
417
|
384
|
var con = data.data;
|
|
418
|
|
- $(".keyW_t").text(con[0].TypeName)
|
|
419
|
|
- $('.tagcloud').html('');
|
|
420
|
|
- $(con).each(function(k, j) {
|
|
421
|
|
- if(k < 12) {
|
|
422
|
|
- var strs = '<div index="'+j.Id+'" class="tagcloud_bj">' +
|
|
423
|
|
- '<p class="tag_title">' + j.TypeName + '</p>' +
|
|
424
|
|
- '<p class="imgs">' + j.Count + '</p>' +
|
|
425
|
|
- '</div>'
|
|
426
|
|
- $('.tagcloud').append(strs);
|
|
427
|
|
- }
|
|
428
|
|
- })
|
|
429
|
|
- $(".tagcloud div:first-child").removeClass("tagcloud_bj");
|
|
430
|
|
- $(".tagcloud div:first-child").addClass("tagcloud_bjShine");
|
|
431
|
|
- keyWordDetail(sd, ed);
|
|
|
385
|
+ if (con.length>0) {
|
|
|
386
|
+ $(".keyW_t").text(con[0].TypeName)
|
|
|
387
|
+ $('.tagcloud').html('');
|
|
|
388
|
+ $(con).each(function(k, j) {
|
|
|
389
|
+ if(k < 12) {
|
|
|
390
|
+ var strs = '<div index="'+j.Id+'" class="tagcloud_bj">' +
|
|
|
391
|
+ '<p class="tag_title">' + j.TypeName + '</p>' +
|
|
|
392
|
+ '<p class="imgs">' + j.Count + '</p>' +
|
|
|
393
|
+ '</div>'
|
|
|
394
|
+ $('.tagcloud').append(strs);
|
|
|
395
|
+ }
|
|
|
396
|
+ })
|
|
|
397
|
+ $(".tagcloud div:first-child").removeClass("tagcloud_bj");
|
|
|
398
|
+ $(".tagcloud div:first-child").addClass("tagcloud_bjShine");
|
|
|
399
|
+ keyWordDetail(sd, ed,areaTwoVal);
|
|
|
400
|
+ }else{
|
|
|
401
|
+ $('.tagcloud').html('');
|
|
|
402
|
+ }
|
|
|
403
|
+
|
|
432
|
404
|
}
|
|
433
|
405
|
}
|
|
434
|
406
|
});
|
|
435
|
407
|
}
|
|
436
|
408
|
|
|
437
|
409
|
// 右侧部门
|
|
438
|
|
-function keyWordDetail(sd, ed) {
|
|
|
410
|
+function keyWordDetail(sd, ed,areaTwoVal) {
|
|
439
|
411
|
$.ajax({
|
|
440
|
412
|
type: "get",
|
|
441
|
413
|
url: huayi.config.callcenter_url + "info/GetDeptKeyCountByDateNew",
|
|
|
@@ -444,6 +416,7 @@ function keyWordDetail(sd, ed) {
|
|
444
|
416
|
data: {
|
|
445
|
417
|
start: sd,
|
|
446
|
418
|
end: ed,
|
|
|
419
|
+ branchcode: areaTwoVal,
|
|
447
|
420
|
deptid: $('.depart').val(),
|
|
448
|
421
|
keyid: $(".tagcloud_bjShine").eq(0).attr("index")
|
|
449
|
422
|
},
|
|
|
@@ -471,13 +444,12 @@ function keyWordDetail(sd, ed) {
|
|
471
|
444
|
$(".tagcloud div").removeClass("tagcloud_bjShine");
|
|
472
|
445
|
$(this).removeClass("tagcloud_bj");
|
|
473
|
446
|
$(this).addClass("tagcloud_bjShine");
|
|
474
|
|
-
|
|
475
|
|
- keyWordDetail($('#test6').val() && $('#test6').val().split(' ~ ')[0], $('#test6').val() && $('#test6').val().split(' ~ ')[1]);
|
|
|
447
|
+ keyWordDetail($('#test6').val() && $('#test6').val().split(' ~ ')[0], $('#test6').val() && $('#test6').val().split(' ~ ')[1],$(".areaFive").val());
|
|
476
|
448
|
});
|
|
477
|
449
|
function Ajax() {
|
|
478
|
450
|
oneScreen($('#time1').val() && $('#time1').val().split(' ~ ')[0], $('#time1').val() && $('#time1').val().split(' ~ ')[1])
|
|
479
|
451
|
twoScreen($('#time2').val() && $('#time2').val().split(' ~ ')[0], $('#time2').val() && $('#time2').val().split(' ~ ')[1])
|
|
480
|
|
- threeScreen();
|
|
481
|
|
- fourScreen($('#time4').val() && $('#time4').val().split(' ~ ')[0], $('#time4').val() && $('#time4').val().split(' ~ ')[1])
|
|
482
|
|
- fiveScreen($('#test6').val() && $('#test6').val().split(' ~ ')[0], $('#test6').val() && $('#test6').val().split(' ~ ')[1])
|
|
|
452
|
+ satisfaction($('#time2').val() && $('#time2').val().split(' ~ ')[0], $('#time2').val() && $('#time2').val().split(' ~ ')[1])
|
|
|
453
|
+ threeScreen($('#time3').val(),$(".areaThree").val());
|
|
|
454
|
+ fiveScreen($('#test6').val() && $('#test6').val().split(' ~ ')[0], $('#test6').val() && $('#test6').val().split(' ~ ')[1],$(".areaFive").val())
|
|
483
|
455
|
}
|