Browse Source

来电弹屏

liuyifan 5 years ago
parent
commit
797dc4b7bb

+ 163 - 3
CallCenterWeb.UI/callScreen/call.js

@@ -310,7 +310,15 @@ $(document).ready(function () {
310 310
         })
311 311
     })
312 312
     //获取归属地
313
-    getAreaType()
313
+    getAreaType();
314
+    //被投诉单位所属办事处
315
+    getComplainedUnitOffice();
316
+    //投诉案件承办人
317
+    getComplaintUndertaker();
318
+    //咨询问题级别
319
+    getQuestionLevel();
320
+    //被投诉单位
321
+    getFormComplainedUnit();
314 322
     //新建
315 323
     $('.customerSubmit').click(function () {
316 324
         saveCustomer();
@@ -674,6 +682,7 @@ function saveCustomer() {
674 682
             remark: $("#formRegistrationRemark").val(), //备注
675 683
             tel: Number,
676 684
             callid: CallID,
685
+
677 686
         },
678 687
         success: function (data) {
679 688
             if (data.state.toLowerCase() == 'success') {
@@ -717,6 +726,154 @@ $("#customerCity").on('change',function(){
717 726
 	getProvinceCounty($("#customerCounty"), $("#customerCity").val(), "请选择县/区");
718 727
 });
719 728
 
729
+//被投诉单位所属办事处
730
+function getComplainedUnitOffice() {
731
+    $("#formComplainedUnitOffice").empty();
732
+	$("#formComplainedUnitOffice").append("<option value='' selected='selected'>请选择</option>");
733
+    $.ajax({
734
+        type: "get",
735
+        url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
736
+        dataType: 'json',
737
+        async: true,
738
+        data: {
739
+            token: $.cookie("token"),
740
+            flag: "BTSDWSSBSC",
741
+        },
742
+        success: function(data) {
743
+            var Count = data.data;
744
+            $(Count).each(function(i, n) {
745
+                $('<option value="' + n.F_Name + '">' + n.F_Name + '</option>').appendTo($("#formComplainedUnitOffice"));
746
+            })
747
+        }
748
+    });
749
+}
750
+
751
+//投诉案件承办人
752
+function getComplaintUndertaker () {
753
+    $("#formComplaintUndertaker").empty();
754
+	$("#formComplaintUndertaker").append("<option value='' selected='selected'>请选择</option>");
755
+    $.ajax({
756
+        type: "get",
757
+        url: huayi.config.callcenter_url + "UserAccount/GetSeatList",
758
+        dataType: 'json',
759
+        async: true,
760
+        data: {
761
+            token: $.cookie("token"),
762
+        },
763
+        success: function(data) {
764
+            var Count = data.data;
765
+            $(Count).each(function(i, n) {
766
+                $('<option value="' + n.F_UserName + '">' + n.F_UserName + '</option>').appendTo($("#formComplaintUndertaker"));
767
+            })
768
+        }
769
+    });
770
+}
771
+
772
+//咨询问题级别
773
+function getQuestionLevel() {
774
+    $("#formQuestionLevel").empty();
775
+	$("#formQuestionLevel").append("<option value='' selected='selected'>请选择</option>");
776
+    $.ajax({
777
+        type: "get",
778
+        url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
779
+        dataType: 'json',
780
+        async: true,
781
+        data: {
782
+            token: $.cookie("token"),
783
+            flag: "ZXWTJB"
784
+        },
785
+        success: function(data) {
786
+            var Count = data.data;
787
+            $(Count).each(function(i, n) {
788
+                $('<option value="' + n.F_Name + '">' + n.F_Name + '</option>').appendTo($("#formQuestionLevel"));
789
+            })
790
+        }
791
+    });
792
+}
793
+
794
+// 重要级别原因(Ⅰ级)
795
+function getQuestionTypeOne() {
796
+	$("#formQuestionType").empty();
797
+	$("#formQuestionType").append("<option value='' selected='selected'>请选择</option>");
798
+    $.ajax({
799
+        type: "get",
800
+        url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
801
+        dataType: 'json',
802
+        async: true,
803
+        data: {
804
+            token: $.cookie("token"),
805
+            flag: "ZXWTYJFL"
806
+        },
807
+        success: function(data) {
808
+            var Count = data.data;
809
+            $(Count).each(function(i, n) {
810
+                $('<option value="' + n.F_Name + '">' + n.F_Name + '</option>').appendTo($("#formQuestionType"));
811
+            })
812
+        }
813
+    });
814
+}
815
+
816
+// 重要级别原因(Ⅱ级)
817
+function getQuestionTypeTwo() {
818
+	$("#formQuestionType").empty();
819
+	$("#formQuestionType").append("<option value='' selected='selected'>请选择</option>");
820
+    $.ajax({
821
+        type: "get",
822
+        url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
823
+        dataType: 'json',
824
+        async: true,
825
+        data: {
826
+            token: $.cookie("token"),
827
+            flag: "ZXWTEJFL"
828
+        },
829
+        success: function(data) {
830
+            var Count = data.data;
831
+            $(Count).each(function(i, n) {
832
+                $('<option value="' + n.F_Name + '">' + n.F_Name + '</option>').appendTo($("#formQuestionType"));
833
+            })
834
+        }
835
+    });
836
+}
837
+
838
+// 重要级别显示原因
839
+$('#formQuestionLevel').on('change',function(){
840
+	if ($('#formQuestionLevel').val() === '一级分类') {
841
+		$('#formQuestionType').val('');
842
+		getQuestionTypeOne();
843
+	} else if ($('#formQuestionLevel').val() === '二级分类') {
844
+		$('#formQuestionType').val('');
845
+		getQuestionTypeTwo();
846
+	} else {
847
+		$('#formQuestionType').val('');
848
+	}
849
+})
850
+
851
+//被投诉单位
852
+function getFormComplainedUnit() {
853
+    $("#formComplainedUnitDataList").empty();
854
+    $("#formComplainedUnitDataList").append('<option value="请选择"></option>');
855
+    $.ajax({
856
+        type: "get",
857
+        url: huayi.config.callcenter_url + "DockingController/SendGetCompanylist",
858
+        dataType: 'json',
859
+        async: true,
860
+        data: {
861
+            token: $.cookie("token"),
862
+            name: '',
863
+            pageno: 1,
864
+            pagesize: 100,
865
+        },
866
+        success: function(data) {
867
+            if (data.state.toLowerCase() == "success") {
868
+                var content = data.rows;
869
+                $(content).each(function (i, n) {
870
+                    $("#formComplainedUnitDataList").append('<option value="'+ n.F_Production + '">');
871
+                })
872
+            }
873
+        }
874
+    });
875
+}
876
+
720 877
 // 快捷回复
721 878
 var quickReplyFloatSign = 1;
722 879
 $(".quickReplyButton").click(function(){
@@ -734,9 +891,11 @@ $(".quickReplyButton").click(function(){
734 891
 
735 892
 $(".quickReplyFloatTab ul li").click(function () {
736 893
     $(this).addClass("quickReplyFloatTabActivity").siblings().removeClass("quickReplyFloatTabActivity");
894
+    quickReplyFloatInitTable()
737 895
 });
738 896
 
739
-function quickReplyFloatInitTable(token, id, keyWord) {
897
+function quickReplyFloatInitTable() {
898
+    var isorPersonType = $(".quickReplyFloatTab ul .quickReplyFloatTabActivity").attr("itemtype");
740 899
 	//先销毁表格
741 900
 	$("#quickReplyFloatTable").bootstrapTable('destroy');
742 901
 	//初始化表格,动态从服务器加载数据
@@ -762,7 +921,8 @@ function quickReplyFloatInitTable(token, id, keyWord) {
762 921
 				pagesize: params.pageSize,
763 922
 				token: $.cookie("token"),
764 923
 				pid: "",
765
-				keywords: "",
924
+                keywords: "",
925
+                F_isorPerson: isorPersonType,
766 926
 			};
767 927
 			return param;
768 928
 		},

+ 59 - 7
CallCenterWeb.UI/callScreen/callScreen.html

@@ -618,7 +618,6 @@
618 618
 												<thead>
619 619
 													<tr>
620 620
 														<th data-align="center" data-formatter="setCode">编号</th>
621
-														<!--<th data-align="center" data-field="id" data-formatter="setCode"></th>-->
622 621
 														<th data-field="F_Title" data-formatter="formatterTitle" data-align="center">标题</th>
623 622
 														<th data-field="F_Description" data-align="center" data-formatter="oper">内容</th>
624 623
 														<th data-field="F_KeyWords" data-formatter="formatterKey" data-align="center">关键字</th>
@@ -709,16 +708,69 @@
709 708
                                             <tr>
710 709
                                                 <th>被投诉单位:</th>
711 710
                                                 <td>
712
-                                                    <div class="form-group">
711
+													<div class="form-group">
712
+														<input type="text" class="form-control" id="formComplainedUnit" list="formComplainedUnitDataList" placeholder="请输入"/>
713
+														<datalist id="formComplainedUnitDataList">
714
+														</datalist>
715
+													</div>
716
+                                                    <!-- <div class="form-group">
713 717
                                                         <input type="text" class="form-control" id="formComplainedUnit" />
718
+                                                    </div> -->
719
+												</td>
720
+												<th>被投诉单位所属办事处:</th>
721
+                                                <td>
722
+                                                    <div class="form-group">
723
+														<select class="form-control" id="formComplainedUnitOffice">
724
+														</select>
725
+                                                    </div>
726
+												</td>
727
+												<th>投诉案件承办人:</th>
728
+                                                <td>
729
+                                                    <div class="form-group">
730
+														<select class="form-control" id="formComplaintUndertaker">
731
+														</select>
714 732
                                                     </div>
715 733
                                                 </td>
716
-                                            </tr>
734
+											</tr>
735
+											<tr>
736
+												<th>咨询问题级别:</th>
737
+												<td>
738
+                                                    <div class="form-group">
739
+														<select class="form-control" id="formQuestionLevel">
740
+														</select>
741
+                                                    </div>
742
+												</td>
743
+												<th>咨询问题类型:</th>
744
+												<td>
745
+                                                    <div class="form-group">
746
+														<select class="form-control" id="formQuestionType">
747
+														</select>
748
+                                                    </div>
749
+												</td>
750
+												<th>市民分类:</th>
751
+                                                <td>
752
+                                                    <div class="form-group">
753
+														<select class="form-control" id="formCitizenClassification">
754
+															<option value="农民工">农民工</option>
755
+															<option value="企业问题">企业问题</option>
756
+														</select>
757
+                                                    </div>
758
+                                                </td>												
759
+											</tr>
717 760
                                             <tr>
718
-                                                <th>登记内容/投诉事项:</th>
719
-                                                <td colspan="8">
720
-                                                    <textarea name="" rows="4" cols="" placeholder="" id="formRegistrationContent" style="margin-top:10px;"></textarea>
721
-                                                </td>
761
+												<th>是否立案:</th>
762
+												<td>
763
+													<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
+															否
767
+														</label>
768
+														<label class="radio-inline" for="over-yes">
769
+															<input id="over-yes" type="radio" name="putRecord" value="1">
770
+															是
771
+														</label>
772
+													</div>
773
+												</td>
722 774
                                             </tr>
723 775
                                             <tr>
724 776
                                                 <th>备注:</th>

+ 8 - 2
CallCenterWeb.UI/callScreen/css/call.css

@@ -412,8 +412,14 @@
412 412
 			display: inline-block;
413 413
         }
414 414
         #formRegistrationType input[type="radio"] {
415
-            margin-top: -2px
416
-        } 
415
+            margin-top: -2px;
416
+		}
417
+		#formPutRecord{
418
+			width: 100%;
419
+		}
420
+		#formPutRecord input[type="radio"] {
421
+			margin-top: -7px;
422
+		}
417 423
 		
418 424
 		/* 工单列表 */
419 425
 		.W50 {