liuyifan %!s(int64=5) %!d(string=před) roky
rodič
revize
bf5bd29fb3

+ 79 - 25
CallCenterWeb.UI/callScreen/call.js

@@ -1,11 +1,14 @@
1 1
 
2 2
 //来电时传输的数据
3 3
 var Number = helper.request.queryString("Number");
4
+var Number = "123"
4 5
 var CallID = helper.request.queryString("CallID");
6
+var seartGroup = '';
5 7
 $(document).ready(function () {
6 8
     //获取省
7 9
     getProvinceCounty($("#customerProvince"), 0, "请选择省")
8
-
10
+    //获取当前登录人
11
+    getCurrentLoginInformation()
9 12
     //来电弹屏
10 13
     // laydate.skin('molv'); 
11 14
     laydate({
@@ -311,14 +314,14 @@ $(document).ready(function () {
311 314
     })
312 315
     //获取归属地
313 316
     getAreaType();
317
+    //获取省
318
+    getProvinceCounty($("#formProvince"), 0, "请选择省")
314 319
     //被投诉单位所属办事处
315 320
     getComplainedUnitOffice();
316 321
     //投诉案件承办人
317 322
     getComplaintUndertaker();
318 323
     //咨询问题级别
319 324
     getQuestionLevel();
320
-    //被投诉单位
321
-    getFormComplainedUnit();
322 325
     //新建
323 326
     $('.customerSubmit').click(function () {
324 327
         saveCustomer();
@@ -642,13 +645,13 @@ function changeTreeClick1(event, treeId, treeNode) {
642 645
 };
643 646
 //清空
644 647
 function Clean() {
645
-    // $('#formName').val('');
646
-    // $('#formTel').val('');
647
-    // $('#formSex').val('');
648
-    // $('#formProvince').val('');
649
-    // $('#formCity').val('');
650
-    // $('#formCounty').val('');
651
-    // $('#formAddress').val('');
648
+    $('#formName').val('');
649
+    $('#formTel').val('');
650
+    $('#formSex').val('');
651
+    $('#formProvince').val('');
652
+    $('#formCity').val('');
653
+    $('#formCounty').val('');
654
+    $('#formAddress').val('');
652 655
     $("#formRegistrationType input[name='type'][value='1']").prop("checked","checked"); //工单类型
653 656
     $('#formComplainedUnit').val('');
654 657
     $('#formRegistrationContent').val('');
@@ -657,12 +660,12 @@ function Clean() {
657 660
 
658 661
 //保存
659 662
 function saveCustomer() {
660
-    if (!$("#khid").val()) {
661
-        layer.confirm('请先保存用户档案!', {
662
-            btn: ['确定']
663
-        });
664
-        return;
665
-    }
663
+    // if (!$("#khid").val()) {
664
+    //     layer.confirm('请先保存用户档案!', {
665
+    //         btn: ['确定']
666
+    //     });
667
+    //     return;
668
+    // }
666 669
     $.ajax({
667 670
         type: "post",
668 671
         url: huayi.config.callcenter_url + "RegRecords/Save",
@@ -677,12 +680,27 @@ function saveCustomer() {
677 680
             cusid: $("#khid").val(), //档案id
678 681
             direction: 0, // 0来电,1去电
679 682
             type: $('#formRegistrationType input[name="type"]:checked').val(), //登记类型
680
-            complained: $("#formComplainedUnit").val(), //被投诉单位
683
+            F_userName: $("#formName").val(), //姓名
684
+            F_userPhone: $("#formTel").val(), //电话
685
+            F_userSex: $("#formSex").val(), //性别
686
+            F_userProvince: $("#formProvince").val(), //省
687
+            F_userCity: $("#formCity").val(), //市
688
+            F_userArea: $("#formCounty").val(), //县/区
689
+            F_userAddress: $("#formAddress").val(), //详细地址
690
+            // complained: $("#formComplainedUnit").val(), //被投诉单位
681 691
             content: $("#formRegistrationContent").val(), //登记内容/投诉事项
682 692
             remark: $("#formRegistrationRemark").val(), //备注
683 693
             tel: Number,
684 694
             callid: CallID,
685
-
695
+            F_Unit: $("#formComplainedUnit").val(), //被投诉单位
696
+            F_UnitOffice: $("#formComplainedUnitOffice").val(), //单位办事处
697
+            F_CaseParty: $("#formComplaintUndertaker").text(), //投诉案件承办人
698
+            F_CasePartyId: $("#formComplaintUndertaker").val(), //投诉案件承办人id
699
+            F_CitizensType: $("#formCitizenClassification").val(), //市民分类
700
+            F_PutRecord: $("#formPutRecord input[name='putRecord']:checked").val(), //是否立案
701
+            F_ZXZType: seartGroup, //坐席组类型
702
+            F_ProblemType:  $("#formQuestionLevel").val(), //问题类型
703
+            F_ProblemTypeB: $("#formQuestionType").val(), //二级问题类型B
686 704
         },
687 705
         success: function (data) {
688 706
             if (data.state.toLowerCase() == 'success') {
@@ -698,6 +716,23 @@ function saveCustomer() {
698 716
     });
699 717
 }
700 718
 
719
+//获取当前登陆人信息
720
+function getCurrentLoginInformation(){
721
+	$.ajax({
722
+		type: "get",
723
+		url: huayi.config.callcenter_url + 'UserAccount/GetNowUser',
724
+		async: true,
725
+		dataType: 'json',
726
+		data: {
727
+			"token": $.cookie("token")
728
+		},
729
+		success: function(data) {
730
+            seartGroup = data.data.user.F_SeartGroup
731
+		}
732
+	});
733
+}
734
+
735
+
701 736
 /* 
702 737
     获取 省 市 县/区
703 738
     parameter:
@@ -726,6 +761,13 @@ $("#customerCity").on('change',function(){
726 761
 	getProvinceCounty($("#customerCounty"), $("#customerCity").val(), "请选择县/区");
727 762
 });
728 763
 
764
+$("#formProvince").on('change',function(){
765
+	getProvinceCounty($("#formCity"), $("#formProvince").val(), "请选择市");
766
+});
767
+$("#formCity").on('change',function(){
768
+	getProvinceCounty($("#formCounty"), $("#formCity").val(), "请选择县/区");
769
+});
770
+
729 771
 //被投诉单位所属办事处
730 772
 function getComplainedUnitOffice() {
731 773
     $("#formComplainedUnitOffice").empty();
@@ -763,7 +805,7 @@ function getComplaintUndertaker () {
763 805
         success: function(data) {
764 806
             var Count = data.data;
765 807
             $(Count).each(function(i, n) {
766
-                $('<option value="' + n.F_UserName + '">' + n.F_UserName + '</option>').appendTo($("#formComplaintUndertaker"));
808
+                $('<option value="' + n.F_UserId + '">' + n.F_UserName + '</option>').appendTo($("#formComplaintUndertaker"));
767 809
             })
768 810
         }
769 811
     });
@@ -849,31 +891,43 @@ $('#formQuestionLevel').on('change',function(){
849 891
 })
850 892
 
851 893
 //被投诉单位
894
+function darptSearch() {
895
+    $(".selDpart1").css('display', 'block');
896
+    getFormComplainedUnit();
897
+}
898
+
899
+$("#sponsor").on('click', 'li', function() {
900
+	$(".selDpart1").css('display', 'none');
901
+	$("#formComplainedUnit").val($(this).html());
902
+	$(".Cleans").show();
903
+})
904
+
852 905
 function getFormComplainedUnit() {
853
-    $("#formComplainedUnitDataList").empty();
854
-    $("#formComplainedUnitDataList").append('<option value="请选择"></option>');
906
+	$("#sponsor").empty();
855 907
     $.ajax({
856 908
         type: "get",
857
-        url: huayi.config.callcenter_url + "DockingController/SendGetCompanylist",
909
+        url: huayi.config.callcenter_url + "Docking/SendGetCompanylist",
858 910
         dataType: 'json',
859 911
         async: true,
860 912
         data: {
861 913
             token: $.cookie("token"),
862
-            name: '',
914
+            name: $("#formComplainedUnit").val(),
863 915
             pageno: 1,
864 916
             pagesize: 100,
865 917
         },
866 918
         success: function(data) {
867 919
             if (data.state.toLowerCase() == "success") {
868
-                var content = data.rows;
920
+                var content = data.data.records;
869 921
                 $(content).each(function (i, n) {
870
-                    $("#formComplainedUnitDataList").append('<option value="'+ n.F_Production + '">');
922
+    				$("<li index='" + n.name + "'>" + n.name + "</li>").appendTo("#sponsor");
871 923
                 })
872 924
             }
873 925
         }
874 926
     });
875 927
 }
876 928
 
929
+
930
+
877 931
 // 快捷回复
878 932
 var quickReplyFloatSign = 1;
879 933
 $(".quickReplyButton").click(function(){

+ 21 - 19
CallCenterWeb.UI/callScreen/callScreen.html

@@ -652,19 +652,19 @@
652 652
                                                 <th>姓名:</th>
653 653
                                                 <td>
654 654
                                                     <div class="form-group">
655
-                                                        <input type="text" class="form-control" id="formName" disabled="disabled" />
655
+                                                        <input type="text" class="form-control" id="formName" />
656 656
                                                     </div>
657 657
                                                 </td>
658 658
                                                 <th>电话:</th>
659 659
                                                 <td>
660 660
                                                     <div class="form-group">
661
-                                                        <input type="text" class="form-control" id="formTel" disabled="disabled" />
661
+                                                        <input type="text" class="form-control" id="formTel" />
662 662
                                                     </div>
663 663
                                                 </td>
664 664
                                                 <th>性别:</th>
665 665
                                                 <td>
666 666
                                                     <div class="form-group">
667
-                                                        <select class="form-control" id="formSex" disabled="disabled">
667
+                                                        <select class="form-control" id="formSex">
668 668
                                                             <option value="男">男</option>
669 669
                                                             <option value="女">女</option>
670 670
                                                         </select>
@@ -675,7 +675,7 @@
675 675
                                                 <th>省:</th>
676 676
                                                 <td>
677 677
                                                     <div class="form-group">
678
-                                                        <select class="form-control" id="formProvince" disabled="disabled">
678
+                                                        <select class="form-control" id="formProvince">
679 679
                                                             <option value="">请选择省</option>
680 680
                                                         </select>
681 681
                                                     </div>
@@ -683,7 +683,7 @@
683 683
                                                 <th>市:</th>
684 684
                                                 <td>
685 685
                                                     <div class="form-group">
686
-                                                        <select class="form-control" id="formCity" disabled="disabled">
686
+                                                        <select class="form-control" id="formCity">
687 687
                                                             <option value="">请选择市</option>
688 688
                                                         </select>
689 689
                                                     </div>
@@ -691,7 +691,7 @@
691 691
                                                 <th>县/区:</th>
692 692
                                                 <td>
693 693
                                                     <div class="form-group">
694
-                                                        <select class="form-control" id="formCounty" disabled="disabled">
694
+                                                        <select class="form-control" id="formCounty">
695 695
                                                             <option value="">请选择县/区</option>
696 696
                                                         </select>
697 697
                                                     </div>
@@ -701,21 +701,23 @@
701 701
                                                 <th>详细地址</th>
702 702
                                                 <td>
703 703
                                                     <div class="form-group">
704
-                                                        <input type="text" class="form-control" id="formAddress" disabled="disabled" />
704
+                                                        <input type="text" class="form-control" id="formAddress"/>
705 705
                                                     </div>
706 706
                                                 </td>
707 707
                                             </tr>
708 708
                                             <tr>
709 709
                                                 <th>被投诉单位:</th>
710
-                                                <td>
710
+                                                <td style="position: relative">
711 711
 													<div class="form-group">
712
-														<input type="text" class="form-control" id="formComplainedUnit" list="formComplainedUnitDataList" placeholder="请输入"/>
713
-														<datalist id="formComplainedUnitDataList">
714
-														</datalist>
712
+														<input type="text" class="form-control" id="formComplainedUnit" placeholder="请输入" onkeyup="darptSearch()" autocomplete="off" />
713
+													</div>
714
+													<div class="selDpart1">
715
+														<ul id="sponsor">
716
+															<li>123</li>
717
+															<li>123</li>
718
+															<li>123</li>
719
+														</ul>
715 720
 													</div>
716
-                                                    <!-- <div class="form-group">
717
-                                                        <input type="text" class="form-control" id="formComplainedUnit" />
718
-                                                    </div> -->
719 721
 												</td>
720 722
 												<th>被投诉单位所属办事处:</th>
721 723
                                                 <td>
@@ -761,17 +763,17 @@
761 763
 												<th>是否立案:</th>
762 764
 												<td>
763 765
 													<div id="formPutRecord" class="col-md-6">
764
-														<label class="radio-inline" for="over-no">
765
-															<input id="over-no" type="radio" name="putRecord" value="0" checked="checked">
766
+														<label class="radio-inline">
767
+															<input type="radio" name="putRecord" value="0" checked="checked">
766 768
767 769
 														</label>
768
-														<label class="radio-inline" for="over-yes">
769
-															<input id="over-yes" type="radio" name="putRecord" value="1">
770
+														<label class="radio-inline" >
771
+															<input type="radio" name="putRecord" value="1">
770 772
771 773
 														</label>
772 774
 													</div>
773 775
 												</td>
774
-                                            </tr>
776
+											</tr>
775 777
                                             <tr>
776 778
                                                 <th>备注:</th>
777 779
                                                 <td colspan="8">

+ 32 - 0
CallCenterWeb.UI/callScreen/css/call.css

@@ -556,6 +556,38 @@
556 556
 		.knowledgeBaseDetail:hover{
557 557
 			color: #1ab394;
558 558
 		}
559
+		.selDpart1{
560
+            display: none;
561
+			position: absolute;
562
+            left: 0px;
563
+            top: 30px;
564
+            z-index: 11111;
565
+            width: 280px;
566
+            line-height: 30px;
567
+            background: #FFFFFF;
568
+		}
569
+		#sponsor{
570
+			width: 280px;
571
+			border: 1px solid #00a1cb;
572
+			margin: 0;
573
+			padding: 0;
574
+			list-style: none;
575
+			max-height: 212px;
576
+			overflow-x: hidden;
577
+			overflow-y: scroll;
578
+		}
579
+		#sponsor li{
580
+			margin: 0;
581
+			padding-left: 10px;
582
+			width: 280px;
583
+			height: 30px;
584
+			line-height: 30px;
585
+			list-style: none;
586
+		}
587
+		#sponsor li:hover{
588
+			background: #00a1cb;
589
+		}
590
+
559 591
 
560 592
 		
561 593
 

+ 0 - 1
CallCenterWeb.UI/js/index.js

@@ -268,7 +268,6 @@ $(document).ready(function() {
268 268
 				token: $.cookie("token")
269 269
 			},
270 270
 			success: function(result) {
271
-
272 271
 				if(result.state.toLowerCase() == "success") {
273 272
 					var con = result.data.user;
274 273
 					console.log(con)

+ 0 - 12
CallCenterWeb.UI/login.html

@@ -216,18 +216,6 @@
216 216
 					}
217 217
 				})
218 218
 			})
219
-			$.getJSON(huayi.config.callcenter_url + 'Deploy/GetVersion', {
220
-			    "token": $.cookie("token")
221
-			}, function (result) {
222
-			    if (result.state.toLowerCase() == "success") {
223
-			        console.log(result);
224
-			        $.cookie("softname", result.data.SoftName);
225
-			        $.cookie("version", result.data.Version);
226
-			        $.cookie("companyname", result.data.CompanyName);
227
-			        $(document).attr("title", result.data.CompanyName + "_" + result.data.SoftName);
228
-			        $('.version').html(result.data.Version);
229
-			    }
230
-			})
231 219
     </script>
232 220
 </body>
233 221
 </html>