miaofuhao лет назад: 7
Родитель
Сommit
1a18fd47f6
2 измененных файлов с 141 добавлено и 124 удалено
  1. 62 64
      CallCenterWeb.UI/callScreen/call.js
  2. 79 60
      CallCenterWeb.UI/callScreen/callScreen.html

+ 62 - 64
CallCenterWeb.UI/callScreen/call.js

@@ -41,20 +41,31 @@ laydate({
41 41
 	event: 'focus'
42 42
 });
43 43
 
44
-//权限展示
45
-$.getJSON(huayi.config.callcenter_url + 'CallInScreen/GetCurrUserDep', {
46
-	"token": $.cookie("token")
47
-}, function(result) {
48
-	if(result.state.toLowerCase() == "success") {
49
-		console.log(result);
50
-		if(result.data.groname == "思念组") {
51
-			$(".KF").show();
52
-		} else {
53
-			$(".SC").show();
54
-			$("#SCorderlist").show();
44
+$(document).ready(function(){
45
+	//权限展示
46
+	$.ajax({
47
+		type: "get",
48
+		url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
49
+		dataType: 'json',
50
+		async: false,
51
+		data: {
52
+			token: $.cookie("token")
53
+		},
54
+		success: function(result) {
55
+			if(result.data.groname == "思念组") {
56
+				$(".KF").show();
57
+				debugger
58
+				typeGroup=1
59
+			} else {
60
+				typeGroup=2
61
+				$(".SC").show();
62
+				$("#SCorderlist").show();
63
+			}
55 64
 		}
56
-	}
65
+	});	
57 66
 })
67
+
68
+
58 69
 //弹屏右侧切换效果
59 70
 $(".ldtp-cr ul.ld-service li").click(function() {
60 71
 	$(this).addClass("cr-click").siblings().removeClass("cr-click");
@@ -399,7 +410,7 @@ $(".addts").click(function() {
399 410
 			batchnumber: $('#batchNumber').val(), //生产批号     
400 411
 			buyaddress: $('#buyAddress').val(), //购买地址  
401 412
 			productdate: $('#proDuctdate').val(),
402
-			buydate: $('.buyDate').val(), //购买日期
413
+			buydate: $('#buyDate').val(), //购买日期
403 414
 			userdate: $('.userDate').val(), //使用日期  userDate  
404 415
 			type: $('.orderType2').val(), //工单类型id
405 416
 			province: $('.inps3').val(), //省
@@ -414,7 +425,6 @@ $(".addts").click(function() {
414 425
 				debugger
415 426
 				loadOld();
416 427
 				$('#name').val(""); //姓名
417
-				$('#tel').val(''); //号码
418 428
 				$('.inps2').val(''); //区域
419 429
 				$('#vipName').val(''); //专员id     
420 430
 				$('#vipTel').val(''); //专员号码     
@@ -423,8 +433,8 @@ $(".addts").click(function() {
423 433
 				$('#batchNumber').val(''); //生产批号     
424 434
 				$('#buyAddress').val(''); //购买地址  
425 435
 				$('#proDuctdate').val('');
426
-				$('.buyDate').val(''); //购买日期
427
-				$('.userDate').val(''); //使用日期  userDate  
436
+				$('#buyDate').val(''); //购买日期
437
+				$('#userDate').val(''); //使用日期  userDate  
428 438
 				$('.orderType2').val(''); //工单类型id
429 439
 				$('.inps3').val(''); //省
430 440
 				$('.inps4').val(''); //市
@@ -488,7 +498,7 @@ $(".add_").click(function() {
488 498
 			buyaddress: $('#buyAddressm').val(), //购买地址  
489 499
 			producttype: $('#productTypem').val(), //产品类别   
490 500
 			batchnumber: $('#batchNumberm').val(), //生产批号     
491
-			userdate: $('#userDatem').val(), //使用日期  userDate  
501
+			userdate: $('#userDatem').val(), //使用日期    
492 502
 			source: $('#DicValueListm').val(), //工单来源
493 503
 			type: $('.orderType2').val(), //工单类型id
494 504
 			area: $('.inps2').val(), //区域
@@ -505,13 +515,12 @@ $(".add_").click(function() {
505 515
 				debugger
506 516
 				layer.msg("保存成功!");
507 517
 				$('#namem').val(""); //姓名
508
-				$('#telm').val(""); //号码
509 518
 				$('#buyDatem').val(""); //购买日期
510 519
 				$('#productnamem').val(""); //产品名称
511 520
 				$('#buyAddressm').val(""); //购买地址  
512 521
 				$('#productTypem').val(""); //产品类别   
513 522
 				$('#batchNumberm').val(""); //生产批号     
514
-				$('#userDatem').val(""); //使用日期  userDate  
523
+				$('#userDatem').val(""); //使用日期    
515 524
 				$('#DicValueListm').val(""); //工单来源
516 525
 				$('.orderType2').val(""); //工单类型id
517 526
 				$('.inps2').val(""); //区域
@@ -668,11 +677,31 @@ $('input:radio[name="banli"]').change(function() {
668 677
 loadOld()
669 678
 //获取历史记录
670 679
 function loadOld() {
680
+	//权限展示
681
+	$.ajax({
682
+		type: "get",
683
+		url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
684
+		dataType: 'json',
685
+		async: false,
686
+		data: {
687
+			token: $.cookie("token")
688
+		},
689
+		success: function(result) {
690
+			if(result.data.groname == "思念组") {
691
+				$(".KF").show();
692
+				typeGroup=1
693
+			} else {
694
+				typeGroup=2
695
+				$(".SC").show();
696
+				$("#SCorderlist").show();
697
+			}
698
+		}
699
+	});	
671 700
 	$(".addgd").hide();
672 701
 	$(".tbold").show();
673 702
 	$(".zxbg").hide();
674 703
 	var type = $(".ldtp-cr ul.ld-service .cr-click").attr("itemtype");
675
-	if(type != '0') {
704
+	if(type == '1'||type=='3') {
676 705
 		$(".complain").hide();
677 706
 		$(".complain").eq(1).show();
678 707
 		//先销毁表格
@@ -715,7 +744,7 @@ function loadOld() {
715 744
 				//layer.msg("加载数据失败", { time: 1500, icon: 2 });
716 745
 			}
717 746
 		});
718
-	} else if(type = '0') {
747
+	} else if(type == '0') {
719 748
 		$(".complain").hide();
720 749
 		$(".complain").eq(0).show();
721 750
 		//先销毁表格
@@ -756,49 +785,18 @@ function loadOld() {
756 785
 				//layer.msg("加载数据失败", { time: 1500, icon: 2 });
757 786
 			}
758 787
 		});
759
-	} else {
760
-		//          	 $(".complain").hide();
761
-		//              $(".complain").eq(1).show();
762
-		//先销毁表格
763
-		$('#SCorderlist').bootstrapTable('destroy');
764
-		//初始化表格,动态从服务器加载数据
765
-		$("#SCorderlist").bootstrapTable({
766
-			method: "get", //使用get请求到服务器获取数据
767
-			url: huayi.config.callcenter_url + "CallInScreen/GetOldList", //获取数据的Servlet地址
768
-			contentType: 'application/x-www-form-urlencoded',
769
-			striped: true, //表格显示条纹
770
-			pagination: true, //启动分页
771
-			pageSize: 5, //每页显示的记录数
772
-			pageNumber: 1, //当前第几页
773
-			pageList: [5, 10, 50, 100], //记录数可选列表
774
-			search: false, //是否启用查询
775
-			showColumns: false, //显示下拉框勾选要显示的列
776
-			showRefresh: false, //显示刷新按钮
777
-			sidePagination: "server", //表示服务端请求
778
-			//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
779
-			//设置为limit可以获取limit, offset, search, sort, order
780
-			queryParamsType: "undefined",
781
-			queryParams: function queryParams(params) { //设置查询参数
782
-				var param = {
783
-					page: params.pageNumber,
784
-					pagesize: params.pageSize,
785
-					tel: $(".hidTel").val(),
786
-					starttime: $("#con_startTime").val(),
787
-					endtime: $("#con_endTime").val(),
788
-					token: $.cookie("token"),
789
-					//                           isldtp:1,
790
-					fkdep: $("#fkdep").val()
791
-
792
-				};
793
-				return param;
794
-			},
795
-			onLoadSuccess: function() { //加载成功时执行
796
-				//layer.msg("加载成功");
797
-			},
798
-			onLoadError: function() { //加载失败时执行
799
-				//layer.msg("加载数据失败", { time: 1500, icon: 2 });
800
-			}
801
-		});
788
+	 } else {
789
+      	$(".complain").hide();
790
+        $(".complain").eq(2).show();
791
+		
792
+		if(typeGroup==1){
793
+			$(".zxbg").show();
794
+		}else{
795
+			$(".addgd").show();
796
+		}
797
+		
798
+	
799
+	
802 800
 	}
803 801
 	if(type == '3') {
804 802
 		getLX($("#tslx"), "TSLX");

+ 79 - 60
CallCenterWeb.UI/callScreen/callScreen.html

@@ -424,39 +424,51 @@
424 424
 				display: none;
425 425
 			}
426 426
 			
427
-			.time-box {
428
-				
429
-			}
430
-			.time-box_flbox{
427
+			.time-box {}
428
+			
429
+			.time-box_flbox {
431 430
 				display: none;
432 431
 			}
433
-			.customerService tbody tr th{
432
+			
433
+			.customerService tbody tr th {
434 434
 				padding-left: 20px;
435 435
 			}
436
-			.customerService tbody tr th{
436
+			
437
+			.customerService tbody tr th {
437 438
 				padding-left: 20px;
438 439
 			}
439
-			.tub{
440
+			
441
+			.tub {
440 442
 				position: absolute;
441 443
 				right: 10px;
442 444
 				top: 8px;
443 445
 			}
444
-			.add_bj{
445
-				    display: inline-block;
446
-				    -webkit-border-radius: 5px;
447
-				    -moz-border-radius: 5px;
448
-				    border-radius: 5px;
449
-				    text-align: center;
450
-				    padding: 5px 10px;
451
-				    font-size: 12px;
452
-				    cursor: pointer;
453
-				    background: #1ab394;
454
-				    color: #fff;
455
-				    margin-top: 15px;
456
-			}
457
-			#typeclass_market1m{
446
+			
447
+			.add_bj {
448
+				display: inline-block;
449
+				-webkit-border-radius: 5px;
450
+				-moz-border-radius: 5px;
451
+				border-radius: 5px;
452
+				text-align: center;
453
+				padding: 5px 10px;
454
+				font-size: 12px;
455
+				cursor: pointer;
456
+				background: #1ab394;
457
+				color: #fff;
458
+				margin-top: 15px;
459
+			}
460
+			
461
+			#typeclass_market1m {
458 462
 				background: #FFFFFF;
459 463
 			}
464
+			.market tr th{
465
+				padding-left: 30px;
466
+			}
467
+			.ld-sercon input {
468
+			    /* width: 128px; */
469
+			    height: 36px;
470
+			  
471
+			}
460 472
 		</style>
461 473
 		<script>
462 474
 			function clearInter() {
@@ -590,17 +602,16 @@
590 602
 				<!--右侧内容-->
591 603
 				<div class="ldtp-cr col-sm-9">
592 604
 					<ul class="ld-service clearfix">
593
-						<li style="border-bottom:1px solid #243747;" itemtype="0" class="cr-click">历史记录</li>
594
-						<li style="border-bottom:1px solid #69cbd0;display: none;" itemtype="1" class="KF">思念组</li>
595
-						<!--<--<li style="border-bottom:1px solid #f95a83;" itemtype="2">保修服务</li>-->
596
-						<li style="border-bottom:1px solid #243747;display: none;" itemtype="3" class="SC">杜康组</li>
605
+						<li style="border-bottom:1px solid #f95a83;" itemtype="2" class="cr-click">新增工单</li>
606
+						<li style="border-bottom:1px solid #243747;" itemtype="0">历史记录</li>
607
+						<li style="border-bottom:1px solid #69cbd0;display: none;" itemtype="1" class="KF">历史工单</li>
608
+						<li style="border-bottom:1px solid #243747;display: none;" itemtype="3" class="SC">历史工单</li>
597 609
 					</ul>
598 610
 					<div class="ld-sercon">
599
-						<div class="complain" style="display:block;">
611
+						<div class="complain" style="display:none;">
600 612
 							<div class="ld-sercon-con clearfix">
601 613
 								<div class="Ps-chaxun">
602 614
 									<span>查询: <input type="text" id="old_startTime" class="laydate-icon" />&nbsp;——&nbsp;<input type="text" id="old_endTime" class="laydate-icon" /></span>
603
-
604 615
 									<span class="searchbtn"></span>
605 616
 								</div>
606 617
 								<div class="table-responsive col-sm-12 tbold" style="padding-left: 0;">
@@ -625,6 +636,7 @@
625 636
 							</div>
626 637
 
627 638
 						</div>
639
+						
628 640
 						<div class="complain" style="display:none;">
629 641
 							<div class="ld-sercon-con clearfix">
630 642
 								<div class="Ps-chaxun">
@@ -634,7 +646,6 @@
634 646
 										<input type="text" id="con_endTime" class="laydate-icon" />
635 647
 									</span>
636 648
 									<span class="searchbtn"></span>
637
-									<span class="addjl g" style="margin-left:5em;">新增工单</span>
638 649
 								</div>
639 650
 								<div id="zxlbs" class="table-responsive col-sm-12 tbold" style="padding-left: 0;">
640 651
 
@@ -656,6 +667,10 @@
656 667
 									</table>
657 668
 								</div>
658 669
 							</div>
670
+
671
+						</div>
672
+						
673
+						<div class="complain" style="display: block;">
659 674
 							<div class="Pre-second second-con addgd" style="display:none;">
660 675
 								<form>
661 676
 									<table class="market">
@@ -673,19 +688,19 @@
673 688
 														<input type="text" class="form-control" id="tel" />
674 689
 													</div>
675 690
 												</td>
676
-												
691
+
677 692
 												<th>区域:</th>
678 693
 												<td>
679
-													<div class="form-group"  style="position: relative;">
694
+													<div class="form-group" style="position: relative;">
680 695
 														<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
681 696
 														<input class="form-control" type="text" id="typeclass_market1" readonly="readonly">
682 697
 														<input type="text" class="inps2">
683
-															<input type="text" class="inps3">
684
-															<input type="text" class="inps4">
698
+														<input type="text" class="inps3">
699
+														<input type="text" class="inps4">
685 700
 														<input type="hidden" id="typeclassId1" />
686 701
 														<div class="addTree1 treeList_market1">
687 702
 															<ul id="TreeDemo_market1" class="ztree">
688
-					
703
+
689 704
 															</ul>
690 705
 														</div>
691 706
 													</div>
@@ -696,33 +711,33 @@
696 711
 												<td>
697 712
 													<div class="form-group">
698 713
 														<select name="" class="form-control" id="vipName">
699
-														
714
+
700 715
 														</select>
701 716
 													</div>
702 717
 												</td>
703 718
 												<th>专员电话:</th>
704 719
 												<td style="position: relative;">
705 720
 													<div class="form-group">
706
-														<input type="text" class="form-control" id="vipTel"/>
721
+														<input type="text" class="form-control" id="vipTel" />
707 722
 													</div>
708 723
 												</td>
709
-												
724
+
710 725
 											</tr>
711 726
 											<tr>
712 727
 												<th>问题分类:</th>
713 728
 												<td>
714 729
 													<div class="form-group">
715 730
 														<select name="" class="form-control orderType2">
716
-														
731
+
717 732
 														</select>
718 733
 													</div>
719
-													
734
+
720 735
 												</td>
721 736
 												<th>工单来源:</th>
722 737
 												<td>
723 738
 													<div class="form-group">
724 739
 														<select name="" class="form-control" id="DicValueList">
725
-														
740
+
726 741
 														</select>
727 742
 													</div>
728 743
 												</td>
@@ -743,7 +758,7 @@
743 758
 												<th>购买地址:</th>
744 759
 												<td>
745 760
 													<div class="form-group">
746
-														<input type="text" class="form-control" id="buyAddress"/>
761
+														<input type="text" class="form-control" id="buyAddress" />
747 762
 													</div>
748 763
 												</td>
749 764
 											</tr>
@@ -751,32 +766,35 @@
751 766
 												<th>生产日期:</th>
752 767
 												<td style="position: relative;">
753 768
 													<div class="time-box form-group">
754
-														<input type="text" id="proDuctdate" class="laydate-icon" autocomplete="off"/>
769
+														<input type="text" id="proDuctdate" class="laydate-icon" autocomplete="off" />
755 770
 													</div>
756 771
 												</td>
757 772
 												<th>购买日期:</th>
758 773
 												<td style="position: relative;">
759
-													
774
+
760 775
 													<div class="time-box form-group">
761
-														<input type="text" id="buyDate" class="laydate-icon" autocomplete="off"/>
776
+														<input type="text" id="buyDate" class="laydate-icon" autocomplete="off" />
762 777
 													</div>
763 778
 												</td>
764 779
 												<th>使用日期:</th>
765 780
 												<td style="position: relative;">
766 781
 													<div class="time-box form-group">
767
-														<input type="text" id="userDate" class="laydate-icon" autocomplete="off"/>
782
+														<input type="text" id="userDate" class="laydate-icon" autocomplete="off" />
768 783
 													</div>
769
-													
784
+
770 785
 												</td>
771 786
 											</tr>
772 787
 											<tr>
773 788
 												<th>样品寄回:</th>
774 789
 												<td style="position: relative;">
775
-													<select name="" class="form-control" id="sendBack">
776
-														<option value="0">否</option>
777
-														<option value="1">是</option>
778
-													</select>
790
+													<div class="time-box form-group">
791
+														<select name="" class="form-control" id="sendBack">
792
+															<option value="0">否</option>
793
+															<option value="1">是</option>
794
+														</select>
795
+													</div>
779 796
 												</td>
797
+												
780 798
 											</tr>
781 799
 											<tr>
782 800
 												<th>投诉事件描述:</th>
@@ -787,14 +805,14 @@
787 805
 											<tr>
788 806
 												<td colspan="6" style="text-align: center;">
789 807
 													<span class="addts add_bj">保&nbsp;存</span>
790
-													
808
+
791 809
 												</td>
792 810
 											</tr>
793 811
 										</tbody>
794 812
 									</table>
795 813
 								</form>
796 814
 							</div>
797
-							
815
+
798 816
 							<div class="Pre-second second-con zxbg " style="display: none;">
799 817
 								<form>
800 818
 									<table class="customerService">
@@ -803,20 +821,20 @@
803 821
 												<th>姓名:</th>
804 822
 												<td>
805 823
 													<div class="form-group">
806
-														<input type="text" class="form-control" id="namem" autocomplete="off"/>
824
+														<input type="text" class="form-control" id="namem" autocomplete="off" />
807 825
 													</div>
808 826
 												</td>
809 827
 												<th>电话:</th>
810 828
 												<td>
811 829
 													<div class="form-group">
812
-														<input type="text" class="form-control" id="telm" autocomplete="off"/>
830
+														<input type="text" class="form-control" id="telm" autocomplete="off" />
813 831
 													</div>
814 832
 												</td>
815 833
 
816 834
 												<th>购买日期:</th>
817 835
 												<td style="position: relative;">
818 836
 													<div class="time-box form-group">
819
-														<input type="text" id="buyDatem" class="laydate-icon" autocomplete="off"/>
837
+														<input type="text" id="buyDatem" class="laydate-icon" autocomplete="off" />
820 838
 													</div>
821 839
 												</td>
822 840
 											</tr>
@@ -830,14 +848,14 @@
830 848
 												<th>购买地址:</th>
831 849
 												<td>
832 850
 													<div class="form-group">
833
-														<input type="text" class="form-control" id="buyAddressm" autocomplete="off"/>
851
+														<input type="text" class="form-control" id="buyAddressm" autocomplete="off" />
834 852
 													</div>
835 853
 												</td>
836 854
 
837 855
 												<th>产品类别:</th>
838 856
 												<td style="position: relative;">
839 857
 													<div class="form-group">
840
-														<input type="text" class="form-control" id="productTypem" autocomplete="off"/>
858
+														<input type="text" class="form-control" id="productTypem" autocomplete="off" />
841 859
 													</div>
842 860
 												</td>
843 861
 											</tr>
@@ -845,14 +863,14 @@
845 863
 												<th>生产批号:</th>
846 864
 												<td>
847 865
 													<div class="form-group">
848
-														<input type="text" class="form-control" id="batchNumberm" autocomplete="off"/>
866
+														<input type="text" class="form-control" id="batchNumberm" autocomplete="off" />
849 867
 													</div>
850 868
 												</td>
851 869
 
852 870
 												<th>使用日期:</th>
853 871
 												<td style="position: relative;">
854 872
 													<div class="time-box form-group">
855
-														<input type="text" id="userDatem" class="laydate-icon" autocomplete="off"/>
873
+														<input type="text" id="userDatem" class="laydate-icon" autocomplete="off" />
856 874
 													</div>
857 875
 												</td>
858 876
 											</tr>
@@ -917,15 +935,16 @@
917 935
 											<tr>
918 936
 												<td colspan="6" style="text-align: center;">
919 937
 													<span class="add_ add_bj">保&nbsp;存</span>
920
-													
938
+
921 939
 												</td>
922 940
 											</tr>
923 941
 										</tbody>
924 942
 									</table>
925 943
 								</form>
926 944
 							</div>
927
-						
945
+
928 946
 						</div>
947
+
929 948
 					</div>
930 949
 					<!--右侧下方内容区-->
931 950
 					<div class="ldcr-bottom" style="margin-top:10px;">