Explorar el Código

高新区代码上传

miaofuhao %!s(int64=5) %!d(string=hace) años
padre
commit
97474a8a50

+ 57 - 26
CallCenterWeb.UI/callScreen/call.js

@@ -3,6 +3,7 @@
3 3
 var Number = helper.request.queryString("Number");
4 4
 var CallID = helper.request.queryString("CallID");
5 5
 var callDirection = helper.request.queryString("callDirection");
6
+var unit,unitOffice,caseParty,CasePartyId;
6 7
 $(document).ready(function () {
7 8
     //获取省
8 9
     getProvinceCounty($("#formProvince"), 0, "请选择省")
@@ -240,6 +241,7 @@ $(document).ready(function () {
240 241
             typeSmall =$(".complaintType1").val();
241 242
         }
242 243
     });
244
+    
243 245
     $(".complaintType2").change(function () {
244 246
 		typeSmall=$(".complaintType2").val();
245 247
     });
@@ -354,6 +356,19 @@ $(document).ready(function () {
354 356
    			return false;
355 357
 		}
356 358
 	});
359
+	$("#formRegistrationType").change(function () {
360
+		$('#formComplainedUnit').val('');
361
+		$('#formRegistrationContent').val('');
362
+	  	$('#formRegistrationRemark').val('');
363
+	  	$('#formComplainedUnitOffice').val('');
364
+	  	$('#formComplaintUndertaker').val('');
365
+        if($('#formRegistrationType input[name="type"]:checked').val() =="2"){
366
+        	$(".complaintDIV").show()
367
+        } else{
368
+        	$(".complaintDIV").hide()
369
+        }
370
+    });
371
+    
357 372
 });
358 373
 
359 374
 
@@ -471,12 +486,12 @@ function loadOld() {
471 486
         });
472 487
     } else if (type == '3') {
473 488
         // window.onload = function () {
474
-            // window.frames["relatedCasesFrames"].postMessage({mobile: 15512102563}, 'http://222.143.48.99:82')
475
-            window.frames["relatedCasesFrames"].postMessage({mobile: Number}, 'http://222.143.48.99:82')
489
+            // window.frames["relatedCasesFrames"].postMessage({mobile: 15512102563}, 'http://10.1.200.47:82')
490
+            window.frames["relatedCasesFrames"].postMessage({mobile: Number}, 'http://10.1.200.47:82')
476 491
         // }
477 492
     } else if (type == '4') {
478 493
         // window.onload = function () {
479
-            window.frames["serviceDocumentFrames"].postMessage({mobile: Number}, 'http://222.143.48.99:82')
494
+            window.frames["serviceDocumentFrames"].postMessage({mobile: Number}, 'http://10.1.200.47:82')
480 495
         // }
481 496
     }
482 497
 }
@@ -674,24 +689,39 @@ function Clean() {
674 689
 
675 690
 //保存
676 691
 function saveCustomer() {
677
-    if (!$("#formComplainedUnit").val()) {
678
-        layer.confirm('请选择被投诉单位!', {
679
-            btn: ['确定']
680
-        });
681
-        return;
682
-    }
683
-    if (!$("#formComplainedUnitOffice").val()) {
684
-        layer.confirm('请选择被投诉单位所属办事处!', {
685
-            btn: ['确定']
686
-        });
687
-        return;
688
-    }
689
-    if (!$("#formComplaintUndertaker").val()) {
690
-        layer.confirm('请选择投诉案件承办人!', {
691
-            btn: ['确定']
692
-        });
693
-        return;
694
-    }
692
+	if($('#formRegistrationType input[name="type"]:checked').val() =="2"){
693
+		if (!$("#formComplainedUnit").val()) {
694
+			
695
+	        layer.confirm('请选择被投诉单位!', {
696
+	            btn: ['确定']
697
+	        });
698
+	        $("#formRegistrationType input[name='type'][value='1']").prop("checked","checked"); //工单类型
699
+	        return;
700
+	    }
701
+	    if (!$("#formComplainedUnitOffice").val()) {
702
+	        layer.confirm('请选择被投诉单位所属办事处!', {
703
+	            btn: ['确定']
704
+	        });
705
+	        $("#formRegistrationType input[name='type'][value='1']").prop("checked","checked"); //工单类型
706
+	        return;
707
+	    }
708
+	    if (!$("#formComplaintUndertaker").val()) {
709
+	        layer.confirm('请选择投诉案件承办人!', {
710
+	            btn: ['确定']
711
+	        });
712
+	        $("#formRegistrationType input[name='type'][value='1']").prop("checked","checked"); //工单类型
713
+	        return;
714
+	    }
715
+        unit = $("#formComplainedUnit").val()
716
+		unitOffice = $("#formComplainedUnitOffice").val()
717
+		caseParty = $("#formComplaintUndertaker option:selected").text()
718
+	    CasePartyId =$("#formComplaintUndertaker").val()
719
+	}else{
720
+		unit = "0"
721
+		unitOffice = "0"
722
+		caseParty = "0"
723
+		CasePartyId ="0"
724
+	}
695 725
     $.ajax({
696 726
         type: "post",
697 727
         url: huayi.config.callcenter_url + "RegRecords/Save",
@@ -704,7 +734,7 @@ function saveCustomer() {
704 734
         data: {
705 735
             token: $.cookie("token"),
706 736
             cusid: $("#khid").val(), //档案id
707
-            direction: callDirection, // 0来电,1去电
737
+            direction: 0, // 0来电,1去电
708 738
             type: $('#formRegistrationType input[name="type"]:checked').val(), //登记类型
709 739
             userName: $("#formName").val(), //姓名
710 740
             userPhone: $("#formTel").val(), //电话
@@ -717,10 +747,10 @@ function saveCustomer() {
717 747
             remark: $("#formRegistrationRemark").val(), //备注
718 748
             tel: Number,
719 749
             callid: CallID,
720
-            unit: $("#formComplainedUnit").val(), //被投诉单位
721
-            unitOffice: $("#formComplainedUnitOffice").val(), //单位办事处
722
-            caseParty: $("#formComplaintUndertaker option:selected").text(), //投诉案件承办人
723
-            CasePartyId: $("#formComplaintUndertaker").val(), //投诉案件承办人id
750
+            unit: unit, //被投诉单位
751
+            unitOffice: unitOffice, //单位办事处
752
+            caseParty: caseParty, //投诉案件承办人
753
+            CasePartyId: CasePartyId, //投诉案件承办人id
724 754
             citizensType: $("#formCitizenClassification").val(), //市民分类
725 755
             putRecord: $("#formPutRecord input[name='putRecord']:checked").val(), //是否立案
726 756
             zXZType: $.cookie("seatGroupName"), //坐席组类型
@@ -728,6 +758,7 @@ function saveCustomer() {
728 758
             ProblemTypeB: $("#formQuestionType").val(), //二级问题类型B
729 759
         },
730 760
         success: function (data) {
761
+        	debugger
731 762
             if (data.state.toLowerCase() == 'success') {
732 763
                 layer.msg("保存成功!");
733 764
                 Clean();

+ 6 - 6
CallCenterWeb.UI/callScreen/callScreen.html

@@ -701,8 +701,8 @@
701 701
                                                     </div>
702 702
                                                 </td>
703 703
                                             </tr>
704
-                                            <tr>
705
-                                                <th><i style="color: #FF0000;">*&nbsp;</i>被投诉单位:</th>
704
+                                            <tr class="complaintDIV" style="display: none;">
705
+                                                <th>被投诉单位:&nbsp&nbsp<i style="color: #FF0000;">*&nbsp;</i></th>
706 706
                                                 <td style="position: relative">
707 707
 													<div class="form-group">
708 708
 														<input type="text" class="form-control" id="formComplainedUnit" placeholder="请输入" onkeyup="darptSearch()" autocomplete="off" />
@@ -712,14 +712,14 @@
712 712
 														</ul>
713 713
 													</div>
714 714
 												</td>
715
-												<th><i style="color: #FF0000;">*&nbsp;</i>被投诉单位所属办事处:</th>
715
+												<th>被投诉单位所属办事处:<i style="color: #FF0000;">*&nbsp;</i></th>
716 716
                                                 <td>
717 717
                                                     <div class="form-group">
718 718
 														<select class="form-control" id="formComplainedUnitOffice">
719 719
 														</select>
720 720
                                                     </div>
721 721
 												</td>
722
-												<th><i style="color: #FF0000;">*&nbsp;</i>投诉案件承办人:</th>
722
+												<th>投诉案件承办人:<i style="color: #FF0000;">*&nbsp;</i></th>
723 723
                                                 <td>
724 724
                                                     <div class="form-group">
725 725
 														<select class="form-control" id="formComplaintUndertaker">
@@ -855,14 +855,14 @@
855 855
                         <div class="complain" style="display:none;">
856 856
                             <div class="ld-sercon-con clearfix">
857 857
                                 <div id="zxlbs" class="table-responsive col-sm-12 tbold" style="padding: 20px 0 20px 20px;">
858
-                                    <iframe src="http://222.143.48.99:82/#/iframList" width="1160px" height="600px" frameborder="0" name="relatedCasesFrames" ></iframe>
858
+                                    <iframe src="http://10.1.200.47:82/#/iframList" width="1160px" height="600px" frameborder="0" name="relatedCasesFrames" ></iframe>
859 859
                                 </div>
860 860
                             </div>
861 861
                         </div>
862 862
                         <div class="complain" style="display:none;">
863 863
                             <div class="ld-sercon-con clearfix">
864 864
                                 <div id="zxlbs" class="table-responsive col-sm-12 tbold" style="padding: 20px 0 20px 20px;">
865
-                                    <iframe src="http://222.143.48.99:82/#/iframList2" width="1160px" height="600px" frameborder="0" name="serviceDocumentFrames" ></iframe>
865
+                                    <iframe src="http://10.1.200.47:82/#/iframList2" width="1160px" height="600px" frameborder="0" name="serviceDocumentFrames" ></iframe>
866 866
                                 </div>
867 867
                             </div>
868 868
                         </div>

+ 29 - 28
CallCenterWeb.UI/js/main.js

@@ -377,7 +377,6 @@ function LoginBack() {
377 377
 }
378 378
 //签出
379 379
 function LogoutBack() {
380
-	clearInterval(timeId);
381 380
 	$("#top-search li i").removeClass("active");
382 381
 	$(".Login").addClass("active");
383 382
 	$(".zxzt").removeClass("bl").addClass("br");
@@ -416,9 +415,8 @@ function CallIDBack(data) {
416 415
 
417 416
 //挂断
418 417
 function DropCallBack() {
419
-	timeId = setInterval(function() {
420
-	    judgmentCallOut()
421
-	},huayi.config.outCallTime);
418
+	
419
+	
422 420
 	var makeCallPhone = obj.DestinationNumber;
423 421
 	$("#top-search li i").removeClass("active");
424 422
 	$(".Logout").addClass("active");
@@ -434,23 +432,30 @@ function DropCallBack() {
434 432
 		$(".zxzt").removeClass("bl").addClass("br");
435 433
 		$(".hwzt").text('置忙');
436 434
 	}
437
-	if (iframeOutbound === 1) {
438
-		//结束通话
439
-		$.ajax({
440
-			type: "get",
441
-			url: huayi.config.callcenter_url + "RegRecordsCallOut/Update2",
442
-			async: true,
443
-			dataType: 'json',
444
-			data: {
445
-				token: $.cookie("token"),
446
-				phone: makeCallPhone,
447
-			},
448
-			success: function(result) {
449
-				if(result.state.toLowerCase() == "success") {
450
-				}
451
-			}
452
-		});
453
-	}
435
+	timeId = setInterval(function() {
436
+		judgmentCallOut()
437
+	},huayi.config.outCallTime);
438
+	iframeOutbound === 0
439
+//	if (iframeOutbound === 1) {
440
+//		//结束通话
441
+//		$.ajax({
442
+//			type: "get",
443
+//			url: huayi.config.callcenter_url + "RegRecordsCallOut/Update2",
444
+//			async: true,
445
+//			dataType: 'json',
446
+//			data: {
447
+//				token: $.cookie("token"),
448
+//				phone: makeCallPhone,
449
+//			},
450
+//			success: function(result) {
451
+//				if(result.state.toLowerCase() == "success") {
452
+//					timeId = setInterval(function() {
453
+//					    judgmentCallOut()
454
+//					},huayi.config.outCallTime);
455
+//				}
456
+//			}
457
+//		});
458
+//	}
454 459
 }
455 460
 //线路状态通知
456 461
 function LineStateAgentBack(data) {
@@ -571,11 +576,11 @@ function toDub(i) {
571 576
 //外呼
572 577
 function MakeCallBack(data) {
573 578
 	// var makeCallPhone = $.cookie("makeCallPhone");
574
-	clearInterval(timeId);
575 579
 	var makeCallPhone = obj.DestinationNumber;
576 580
 	$("#top-search li i").removeClass("active");
577 581
 	$(".DropCall").addClass("active");
578 582
 	//外呼弹屏
583
+	debugger
579 584
 	if(data.CallID!=0){
580 585
 		if (iframeOutbound === 0) {
581 586
 			var p = '<a href="javascript:;" class="active J_menuTab" data-id="./callScreen/callScreen.html?tel=' + makeCallPhone + '&CallID=' + makeCallId + '">外呼弹屏' + makeCallPhone + ' <i class="fa fa-times-circle close_call"></i></a>';
@@ -595,12 +600,8 @@ function MakeCallBack(data) {
595 600
 			hidTel=makeCallPhone;
596 601
 			hidCallID=makeCallId;
597 602
 			hidActionID=data.ActionID;
598
-			$(".J_mainContent .J_iframe").each(function() {
599
-				if($(this).attr("src") === "./TelCall/outboundPlan.html") {
600
-					var childWindow = $(this)[0].contentWindow
601
-					childWindow.recordsCallOut()
602
-				}
603
-			})
603
+			
604
+			
604 605
 		}
605 606
 	} else {
606 607
 		var timestamp = Date.parse(new Date());

+ 16 - 0
CallCenterWeb.UI/js/outboundCall.js

@@ -49,6 +49,19 @@ function timingCallOut() {
49 49
                 var res = result.rows[0]
50 50
                 if (res.F_RecCode === "0") {
51 51
                     btn_outbound(res.F_userPhone, res.F_ID)
52
+                    $.ajax({
53
+				        type: "get",
54
+				        url: huayi.config.callcenter_url + "RegRecordsCallOut/Update3",
55
+				        async: true,
56
+				        dataType: 'json',
57
+				        data: {
58
+				            token: $.cookie("token"),
59
+				            id: res.F_ID
60
+				        },
61
+				        success: function(result) {
62
+				            $("#workorderlist").bootstrapTable('refresh');
63
+				        }
64
+				   	});
52 65
 
53 66
                 } else {
54 67
                 }
@@ -69,6 +82,9 @@ function judgmentCallOut() {
69 82
         success: function(result) {
70 83
             if(result.state.toLowerCase() == "success") {
71 84
                 if(result.data == true) {
85
+                	console.log("1111")
86
+                	clearInterval(timeId);
87
+                	iframeOutbound === 1
72 88
                     timingCallOut()
73 89
                 }
74 90
             }

+ 4 - 1
CallCenterWeb.UI/registrationManagement/registrationList/addRegistrationList.html

@@ -207,6 +207,9 @@
207 207
 			#formPutRecord input[type="radio"] {
208 208
 				margin-top: 5px;
209 209
 			}
210
+			.customerService th{
211
+				width: 200px;
212
+			}
210 213
 		</style>
211 214
 	</head>
212 215
 
@@ -311,7 +314,7 @@
311 314
                                 </div>
312 315
                             </td>
313 316
                         </tr>
314
-						<tr>
317
+						<tr class="complaintDIV" style="display: none;">
315 318
 							<th><i style="color: #FF0000;">*&nbsp;</i>被投诉单位:</th>
316 319
 							<td style="position: relative">
317 320
 								<div class="form-group">

+ 50 - 23
CallCenterWeb.UI/registrationManagement/registrationList/js/addRegistrationList.js

@@ -3,6 +3,7 @@ var id = helper.request.queryString("ids");
3 3
 var phone = helper.request.queryString("phone");
4 4
 var CallID = helper.request.queryString("CallID");
5 5
 var cusid = 0;
6
+var unit,unitOffice,caseParty,CasePartyId;
6 7
 $(document).ready(function() {
7 8
     if (phone) {
8 9
         $("#formTel").val(phone)
@@ -19,7 +20,18 @@ $(document).ready(function() {
19 20
     //根据当前登录人坐席组,判断字段
20 21
     currentLogInAgentGroup()
21 22
 })
22
-
23
+$("#formRegistrationType").change(function () {	
24
+	$('#formComplainedUnit').val('');
25
+	$('#formRegistrationContent').val('');
26
+  	$('#formRegistrationRemark').val('');
27
+  	$('#formComplainedUnitOffice').val('');
28
+  	$('#formComplaintUndertaker').val('');
29
+    if($('#formRegistrationType input[name="type"]:checked').val() =="2"){
30
+    	$(".complaintDIV").show()
31
+    } else{
32
+    	$(".complaintDIV").hide()
33
+    }
34
+});
23 35
 //点击获取用户档案
24 36
 $(".btnArchives").click(function() {
25 37
     if (!$("#formTel").val()) {
@@ -68,24 +80,39 @@ function getUserProfile() {
68 80
 
69 81
 //保存按钮
70 82
 $('.customerSubmit').click(function() {
71
-    if (!$("#formComplainedUnit").val()) {
72
-        layer.confirm('请选择被投诉单位!', {
73
-            btn: ['确定']
74
-        });
75
-        return;
76
-    }
77
-    if (!$("#formComplainedUnitOffice").val()) {
78
-        layer.confirm('请选择被投诉单位所属办事处!', {
79
-            btn: ['确定']
80
-        });
81
-        return;
82
-    }
83
-    if (!$("#formComplaintUndertaker").val()) {
84
-        layer.confirm('请选择投诉案件承办人!', {
85
-            btn: ['确定']
86
-        });
87
-        return;
88
-    }
83
+	if($('#formRegistrationType input[name="type"]:checked').val() =="2"){
84
+	    if (!$("#formComplainedUnit").val()) {
85
+	        layer.confirm('请选择被投诉单位!', {
86
+	            btn: ['确定']
87
+	        });
88
+	        return;
89
+	    }
90
+	    if (!$("#formComplainedUnitOffice").val()) {
91
+	        layer.confirm('请选择被投诉单位所属办事处!', {
92
+	            btn: ['确定']
93
+	        });
94
+	        return;
95
+	    }
96
+	    if (!$("#formComplaintUndertaker").val()) {
97
+	        layer.confirm('请选择投诉案件承办人!', {
98
+	            btn: ['确定']
99
+	        });
100
+	        return;
101
+	    }
102
+    	unit = $("#formComplainedUnit").val()
103
+		unitOffice = $("#formComplainedUnitOffice").val()
104
+		caseParty = $("#formComplaintUndertaker option:selected").text()
105
+	    CasePartyId =$("#formComplaintUndertaker").val()
106
+	}else{
107
+		unit = "0"
108
+		unitOffice = "0"
109
+		caseParty = "0"
110
+		CasePartyId ="0"
111
+	}
112
+	console.log(unit)
113
+	console.log(unitOffice)
114
+	console.log(caseParty)
115
+	console.log(CasePartyId)
89 116
     judgmentFormComplainedUnit()
90 117
     $.post(huayi.config.callcenter_url + 'RegRecords/Save', {
91 118
         "token": $.cookie("token"),
@@ -105,10 +132,10 @@ $('.customerSubmit').click(function() {
105 132
         content: $("#formRegistrationContent").val(), //登记内容/投诉事项
106 133
         remark: $("#formRegistrationRemark").val(), //备注
107 134
         callid: CallID,
108
-        unit: $("#formComplainedUnit").val(), //被投诉单位
109
-        unitOffice: $("#formComplainedUnitOffice").val(), //单位办事处
110
-        caseParty: $("#formComplaintUndertaker option:selected").text(), //投诉案件承办人
111
-        CasePartyId: $("#formComplaintUndertaker").val(), //投诉案件承办人id
135
+        unit: unit, //被投诉单位
136
+        unitOffice: unitOffice, //单位办事处
137
+        caseParty: caseParty, //投诉案件承办人
138
+        CasePartyId: CasePartyId, //投诉案件承办人id
112 139
         citizensType: $("#formCitizenClassification").val(), //市民分类
113 140
         putRecord: $("#formPutRecord input[name='putRecord']:checked").val(), //是否立案
114 141
         zXZType: $.cookie("seatGroupName"), //坐席组类型