yangjunfeng %!s(int64=5) %!d(string=hace) años
padre
commit
a46e435ab2

+ 24 - 1
WebUI/CallCenterWeb.UI/Appeal/Lawsuit.html

@@ -1,4 +1,4 @@
1
-<!DOCTYPE html>
1
+<!DOCTYPE html>
2 2
 <html>
3 3
 
4 4
 	<head>
@@ -603,10 +603,12 @@
603 603
 			//操作
604 604
 			function Dispose(val, row) {
605 605
 				var Rows = row.Buttons;
606
+				
606 607
 				var html = '';
607 608
 				for(var i = 0; i < Rows.length; i++) {
608 609
 
609 610
 					var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
611
+					console.log(html1)
610 612
 					if(html1) {
611 613
 						html1 = html1.replace("data", val);
612 614
 						html1 = html1.replace("isProtect", row.F_IsProtect);
@@ -637,9 +639,11 @@
637 639
 			}
638 640
 			//删除
639 641
 			function move(str) {
642
+				
640 643
 				layer.confirm('确定删除工单?', {
641 644
 					btn: ['是', '否'] //按钮
642 645
 				}, function() {
646
+					
643 647
 					$.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
644 648
 						ids: str,
645 649
 						token: $.cookie("token")
@@ -652,6 +656,25 @@
652 656
 					})
653 657
 				});
654 658
 			}
659
+			
660
+			//移出
661
+			function remove(str) {
662
+				layer.confirm('确定移出工单?', {
663
+					btn: ['是', '否'] //按钮
664
+				}, function() {
665
+					console.log(str)
666
+					$.post(huayi.config.callcenter_url + "WorkOrder/RemoveObservation", {
667
+						workorderid: str,
668
+						token: $.cookie("token")
669
+					}, function(result) {
670
+						result = JSON.parse(result);
671
+						if(result.state.toLowerCase() == "success") {
672
+							layer.msg("移出成功");
673
+							load();
674
+						}
675
+					})
676
+				});
677
+			}
655 678
 			//提交
656 679
 			function tj(str) {
657 680
 				layer.confirm('确定要提交工单么?', {

+ 25 - 1
WebUI/CallCenterWeb.UI/Business/LeaderYTH.html

@@ -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 = '';

+ 2 - 1
WebUI/CallCenterWeb.UI/Script/Common/huayi.config.js

@@ -36,7 +36,8 @@ huayi.config = {
36 36
         "<a class='xg' onclick='sign(data)' title='签收'>签收</a>", //签收
37 37
         "<a class='xg' onclick='refuse(data)' title='拒收'>拒收</a>", //拒收
38 38
         "<a class='xg' onclick='withdraw(data)' title='撤单'>撤单</a>", //撤单
39
-        "<a class='xg' onclick='thCountry(data)' title='退回申请'>退回申请</a>" //退回申请
39
+        "<a class='xg' onclick='thCountry(data)' title='退回申请'>退回申请</a>", //退回申请
40
+		 "<a class='xg' onclick='remove(data)' title='移出'>移出</a>" //移出
40 41
     ],
41 42
      kapArr :["<a class='xg' onclick='goDetail(data,data_id)' title='查看'>查看</a>",
42 43
 		"<a class='xg' onclick='goEdit(data,data_id)' title='编辑'>编辑</a>",

+ 2 - 2
WebUI/CallCenterWeb.UI/js/index.js

@@ -1,4 +1,4 @@
1
-
1
+
2 2
 $(document).ready(function () {
3 3
 
4 4
     if ($.cookie("token") == null) {
@@ -1873,7 +1873,7 @@ function getReminder(){
1873 1873
 		url:huayi.config.callcenter_url + "InternalMessages/GetMsg",
1874 1874
 		async:true,
1875 1875
 		data:{
1876
-			smstype:4,
1876
+			smstype:2,
1877 1877
 			token: $.cookie("token"),
1878 1878
 		},
1879 1879
 		success:function(res){