|
|
@@ -1,4 +1,4 @@
|
|
1
|
|
-<!DOCTYPE html>
|
|
|
1
|
+<!DOCTYPE html>
|
|
2
|
2
|
<html>
|
|
3
|
3
|
|
|
4
|
4
|
<head>
|
|
|
@@ -222,6 +222,9 @@
|
|
222
|
222
|
top: 9px;
|
|
223
|
223
|
display: none;
|
|
224
|
224
|
}
|
|
|
225
|
+ .export{
|
|
|
226
|
+ display: none;
|
|
|
227
|
+ }
|
|
225
|
228
|
</style>
|
|
226
|
229
|
</head>
|
|
227
|
230
|
|
|
|
@@ -316,6 +319,7 @@
|
|
316
|
319
|
|
|
317
|
320
|
<div class="form-group tool_bars pull-right">
|
|
318
|
321
|
<botton class="btns Seach">搜索</botton>
|
|
|
322
|
+ <botton class="btns export">导出</botton>
|
|
319
|
323
|
</div>
|
|
320
|
324
|
</div>
|
|
321
|
325
|
</div>
|
|
|
@@ -381,6 +385,12 @@
|
|
381
|
385
|
range: '~',
|
|
382
|
386
|
theme: '#00a1cb',
|
|
383
|
387
|
});
|
|
|
388
|
+ var userNum=window.localStorage.getItem('userNum');
|
|
|
389
|
+ if(userNum=='8000'){
|
|
|
390
|
+ $('.export').show()
|
|
|
391
|
+ }else{
|
|
|
392
|
+ $('.export').hide()
|
|
|
393
|
+ }
|
|
384
|
394
|
///搜素
|
|
385
|
395
|
$(".Seach").click(function() {
|
|
386
|
396
|
load();
|
|
|
@@ -471,6 +481,20 @@
|
|
471
|
481
|
}
|
|
472
|
482
|
});
|
|
473
|
483
|
}
|
|
|
484
|
+ // 导出
|
|
|
485
|
+ $('.export').click(function () {
|
|
|
486
|
+ dcexcel(this);
|
|
|
487
|
+ })
|
|
|
488
|
+ function dcexcel(obj) {
|
|
|
489
|
+ var url = huayi.config.callcenter_url + "WorkOrder/GetLDDealList?token=" + $.cookie("token");
|
|
|
490
|
+ url += "&workid=" + $("#wids").val() + "&state=" + $("#state").val()+ "&type=" + $("#type").val();
|
|
|
491
|
+ url += "&key=" + $("#key").val()+ "&source=" + $("#source").val();
|
|
|
492
|
+ url += "&starttime=" + ($('#startTime').val() ? $('#startTime').val().split('~')[0] : '') + "&endtime=" + ($('#startTime').val() ? $('#startTime').val().split('~')[1] : '');
|
|
|
493
|
+ url += "&usercode=" + $("#ZX").val() +" &tab=2";
|
|
|
494
|
+ url += "&keyid=" + $("#keyid").val() + "&tel=" + $("#tel").val()+ "&name=" + $("#name").val();
|
|
|
495
|
+ url += "&deptid=" + $("#PID").val() + "&isexpt=1";
|
|
|
496
|
+ window.location.href = url;
|
|
|
497
|
+ }
|
|
474
|
498
|
//状态
|
|
475
|
499
|
function States(val,row) {
|
|
476
|
500
|
var html = '';
|