Explorar el Código

高新区代码上传

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

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

3
 var Number = helper.request.queryString("Number");
3
 var Number = helper.request.queryString("Number");
4
 var CallID = helper.request.queryString("CallID");
4
 var CallID = helper.request.queryString("CallID");
5
 var callDirection = helper.request.queryString("callDirection");
5
 var callDirection = helper.request.queryString("callDirection");
6
+var unit,unitOffice,caseParty,CasePartyId;
6
 $(document).ready(function () {
7
 $(document).ready(function () {
7
     //获取省
8
     //获取省
8
     getProvinceCounty($("#formProvince"), 0, "请选择省")
9
     getProvinceCounty($("#formProvince"), 0, "请选择省")
240
             typeSmall =$(".complaintType1").val();
241
             typeSmall =$(".complaintType1").val();
241
         }
242
         }
242
     });
243
     });
244
+    
243
     $(".complaintType2").change(function () {
245
     $(".complaintType2").change(function () {
244
 		typeSmall=$(".complaintType2").val();
246
 		typeSmall=$(".complaintType2").val();
245
     });
247
     });
354
    			return false;
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
         });
486
         });
472
     } else if (type == '3') {
487
     } else if (type == '3') {
473
         // window.onload = function () {
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
     } else if (type == '4') {
492
     } else if (type == '4') {
478
         // window.onload = function () {
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
 
689
 
675
 //保存
690
 //保存
676
 function saveCustomer() {
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
     $.ajax({
725
     $.ajax({
696
         type: "post",
726
         type: "post",
697
         url: huayi.config.callcenter_url + "RegRecords/Save",
727
         url: huayi.config.callcenter_url + "RegRecords/Save",
704
         data: {
734
         data: {
705
             token: $.cookie("token"),
735
             token: $.cookie("token"),
706
             cusid: $("#khid").val(), //档案id
736
             cusid: $("#khid").val(), //档案id
707
-            direction: callDirection, // 0来电,1去电
737
+            direction: 0, // 0来电,1去电
708
             type: $('#formRegistrationType input[name="type"]:checked').val(), //登记类型
738
             type: $('#formRegistrationType input[name="type"]:checked').val(), //登记类型
709
             userName: $("#formName").val(), //姓名
739
             userName: $("#formName").val(), //姓名
710
             userPhone: $("#formTel").val(), //电话
740
             userPhone: $("#formTel").val(), //电话
717
             remark: $("#formRegistrationRemark").val(), //备注
747
             remark: $("#formRegistrationRemark").val(), //备注
718
             tel: Number,
748
             tel: Number,
719
             callid: CallID,
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
             citizensType: $("#formCitizenClassification").val(), //市民分类
754
             citizensType: $("#formCitizenClassification").val(), //市民分类
725
             putRecord: $("#formPutRecord input[name='putRecord']:checked").val(), //是否立案
755
             putRecord: $("#formPutRecord input[name='putRecord']:checked").val(), //是否立案
726
             zXZType: $.cookie("seatGroupName"), //坐席组类型
756
             zXZType: $.cookie("seatGroupName"), //坐席组类型
728
             ProblemTypeB: $("#formQuestionType").val(), //二级问题类型B
758
             ProblemTypeB: $("#formQuestionType").val(), //二级问题类型B
729
         },
759
         },
730
         success: function (data) {
760
         success: function (data) {
761
+        	debugger
731
             if (data.state.toLowerCase() == 'success') {
762
             if (data.state.toLowerCase() == 'success') {
732
                 layer.msg("保存成功!");
763
                 layer.msg("保存成功!");
733
                 Clean();
764
                 Clean();

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

701
                                                     </div>
701
                                                     </div>
702
                                                 </td>
702
                                                 </td>
703
                                             </tr>
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
                                                 <td style="position: relative">
706
                                                 <td style="position: relative">
707
 													<div class="form-group">
707
 													<div class="form-group">
708
 														<input type="text" class="form-control" id="formComplainedUnit" placeholder="请输入" onkeyup="darptSearch()" autocomplete="off" />
708
 														<input type="text" class="form-control" id="formComplainedUnit" placeholder="请输入" onkeyup="darptSearch()" autocomplete="off" />
712
 														</ul>
712
 														</ul>
713
 													</div>
713
 													</div>
714
 												</td>
714
 												</td>
715
-												<th><i style="color: #FF0000;">*&nbsp;</i>被投诉单位所属办事处:</th>
715
+												<th>被投诉单位所属办事处:<i style="color: #FF0000;">*&nbsp;</i></th>
716
                                                 <td>
716
                                                 <td>
717
                                                     <div class="form-group">
717
                                                     <div class="form-group">
718
 														<select class="form-control" id="formComplainedUnitOffice">
718
 														<select class="form-control" id="formComplainedUnitOffice">
719
 														</select>
719
 														</select>
720
                                                     </div>
720
                                                     </div>
721
 												</td>
721
 												</td>
722
-												<th><i style="color: #FF0000;">*&nbsp;</i>投诉案件承办人:</th>
722
+												<th>投诉案件承办人:<i style="color: #FF0000;">*&nbsp;</i></th>
723
                                                 <td>
723
                                                 <td>
724
                                                     <div class="form-group">
724
                                                     <div class="form-group">
725
 														<select class="form-control" id="formComplaintUndertaker">
725
 														<select class="form-control" id="formComplaintUndertaker">
855
                         <div class="complain" style="display:none;">
855
                         <div class="complain" style="display:none;">
856
                             <div class="ld-sercon-con clearfix">
856
                             <div class="ld-sercon-con clearfix">
857
                                 <div id="zxlbs" class="table-responsive col-sm-12 tbold" style="padding: 20px 0 20px 20px;">
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
                                 </div>
859
                                 </div>
860
                             </div>
860
                             </div>
861
                         </div>
861
                         </div>
862
                         <div class="complain" style="display:none;">
862
                         <div class="complain" style="display:none;">
863
                             <div class="ld-sercon-con clearfix">
863
                             <div class="ld-sercon-con clearfix">
864
                                 <div id="zxlbs" class="table-responsive col-sm-12 tbold" style="padding: 20px 0 20px 20px;">
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
                                 </div>
866
                                 </div>
867
                             </div>
867
                             </div>
868
                         </div>
868
                         </div>

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

377
 }
377
 }
378
 //签出
378
 //签出
379
 function LogoutBack() {
379
 function LogoutBack() {
380
-	clearInterval(timeId);
381
 	$("#top-search li i").removeClass("active");
380
 	$("#top-search li i").removeClass("active");
382
 	$(".Login").addClass("active");
381
 	$(".Login").addClass("active");
383
 	$(".zxzt").removeClass("bl").addClass("br");
382
 	$(".zxzt").removeClass("bl").addClass("br");
416
 
415
 
417
 //挂断
416
 //挂断
418
 function DropCallBack() {
417
 function DropCallBack() {
419
-	timeId = setInterval(function() {
420
-	    judgmentCallOut()
421
-	},huayi.config.outCallTime);
418
+	
419
+	
422
 	var makeCallPhone = obj.DestinationNumber;
420
 	var makeCallPhone = obj.DestinationNumber;
423
 	$("#top-search li i").removeClass("active");
421
 	$("#top-search li i").removeClass("active");
424
 	$(".Logout").addClass("active");
422
 	$(".Logout").addClass("active");
434
 		$(".zxzt").removeClass("bl").addClass("br");
432
 		$(".zxzt").removeClass("bl").addClass("br");
435
 		$(".hwzt").text('置忙');
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
 function LineStateAgentBack(data) {
461
 function LineStateAgentBack(data) {
571
 //外呼
576
 //外呼
572
 function MakeCallBack(data) {
577
 function MakeCallBack(data) {
573
 	// var makeCallPhone = $.cookie("makeCallPhone");
578
 	// var makeCallPhone = $.cookie("makeCallPhone");
574
-	clearInterval(timeId);
575
 	var makeCallPhone = obj.DestinationNumber;
579
 	var makeCallPhone = obj.DestinationNumber;
576
 	$("#top-search li i").removeClass("active");
580
 	$("#top-search li i").removeClass("active");
577
 	$(".DropCall").addClass("active");
581
 	$(".DropCall").addClass("active");
578
 	//外呼弹屏
582
 	//外呼弹屏
583
+	debugger
579
 	if(data.CallID!=0){
584
 	if(data.CallID!=0){
580
 		if (iframeOutbound === 0) {
585
 		if (iframeOutbound === 0) {
581
 			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>';
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
 			hidTel=makeCallPhone;
600
 			hidTel=makeCallPhone;
596
 			hidCallID=makeCallId;
601
 			hidCallID=makeCallId;
597
 			hidActionID=data.ActionID;
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
 	} else {
606
 	} else {
606
 		var timestamp = Date.parse(new Date());
607
 		var timestamp = Date.parse(new Date());

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

49
                 var res = result.rows[0]
49
                 var res = result.rows[0]
50
                 if (res.F_RecCode === "0") {
50
                 if (res.F_RecCode === "0") {
51
                     btn_outbound(res.F_userPhone, res.F_ID)
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
                 } else {
66
                 } else {
54
                 }
67
                 }
69
         success: function(result) {
82
         success: function(result) {
70
             if(result.state.toLowerCase() == "success") {
83
             if(result.state.toLowerCase() == "success") {
71
                 if(result.data == true) {
84
                 if(result.data == true) {
85
+                	console.log("1111")
86
+                	clearInterval(timeId);
87
+                	iframeOutbound === 1
72
                     timingCallOut()
88
                     timingCallOut()
73
                 }
89
                 }
74
             }
90
             }

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

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

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

3
 var phone = helper.request.queryString("phone");
3
 var phone = helper.request.queryString("phone");
4
 var CallID = helper.request.queryString("CallID");
4
 var CallID = helper.request.queryString("CallID");
5
 var cusid = 0;
5
 var cusid = 0;
6
+var unit,unitOffice,caseParty,CasePartyId;
6
 $(document).ready(function() {
7
 $(document).ready(function() {
7
     if (phone) {
8
     if (phone) {
8
         $("#formTel").val(phone)
9
         $("#formTel").val(phone)
19
     //根据当前登录人坐席组,判断字段
20
     //根据当前登录人坐席组,判断字段
20
     currentLogInAgentGroup()
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
 $(".btnArchives").click(function() {
36
 $(".btnArchives").click(function() {
25
     if (!$("#formTel").val()) {
37
     if (!$("#formTel").val()) {
68
 
80
 
69
 //保存按钮
81
 //保存按钮
70
 $('.customerSubmit').click(function() {
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
     judgmentFormComplainedUnit()
116
     judgmentFormComplainedUnit()
90
     $.post(huayi.config.callcenter_url + 'RegRecords/Save', {
117
     $.post(huayi.config.callcenter_url + 'RegRecords/Save', {
91
         "token": $.cookie("token"),
118
         "token": $.cookie("token"),
105
         content: $("#formRegistrationContent").val(), //登记内容/投诉事项
132
         content: $("#formRegistrationContent").val(), //登记内容/投诉事项
106
         remark: $("#formRegistrationRemark").val(), //备注
133
         remark: $("#formRegistrationRemark").val(), //备注
107
         callid: CallID,
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
         citizensType: $("#formCitizenClassification").val(), //市民分类
139
         citizensType: $("#formCitizenClassification").val(), //市民分类
113
         putRecord: $("#formPutRecord input[name='putRecord']:checked").val(), //是否立案
140
         putRecord: $("#formPutRecord input[name='putRecord']:checked").val(), //是否立案
114
         zXZType: $.cookie("seatGroupName"), //坐席组类型
141
         zXZType: $.cookie("seatGroupName"), //坐席组类型