Quellcode durchsuchen

思念,工单增加城市筛选

miaofuhao vor 7 Jahren
Ursprung
Commit
673d868e81

+ 0 - 1
CallCenterWeb.UI/WorkOrder/AddWorkOrder.html

206
                             
206
                             
207
                         </tr>
207
                         </tr>
208
                         <tr>
208
                         <tr>
209
-
210
                             <th>产品名称:</th>
209
                             <th>产品名称:</th>
211
                             <td>
210
                             <td>
212
                                 <div class="form-group">
211
                                 <div class="form-group">

+ 22 - 0
CallCenterWeb.UI/WorkOrder/WorkOrderDispose.html

74
 			.imgs a{
74
 			.imgs a{
75
 				padding-right: 5px;
75
 				padding-right: 5px;
76
 			}
76
 			}
77
+			.inps2,.inps3{
78
+				display: none;
79
+			}
77
 		</style>
80
 		</style>
78
 	</head>
81
 	</head>
79
 	<body class="gray-bg">
82
 	<body class="gray-bg">
112
 								</select>
115
 								</select>
113
 							</div>
116
 							</div>
114
 							<div class="time-box form-group">
117
 							<div class="time-box form-group">
118
+								<i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
119
+								<input class="form-control" type="text" id="typeclass" placeholder="请选择城市" readonly="readonly">
120
+								<input type="text" class="inps2">
121
+                                <input type="text" class="inps3">
122
+								<input type="hidden" id="typeclassId" />
123
+								<div class="addTree treeList">
124
+									<p class="plasechoce">请选择</p>
125
+									<ul id="TreeDemo" class="ztree">
126
+
127
+									</ul>
128
+								</div>
129
+							</div>
130
+							<div class="time-box form-group">
115
 								<i class="tub fa fa-calendar"></i>
131
 								<i class="tub fa fa-calendar"></i>
116
 								<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
132
 								<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
117
 							</div>
133
 							</div>
558
 							token: $.cookie("token"),
574
 							token: $.cookie("token"),
559
 							source: $('#orderSource').val(), //工单来源
575
 							source: $('#orderSource').val(), //工单来源
560
 							producttype:$('#productTypeFilt').val(), //产品类别
576
 							producttype:$('#productTypeFilt').val(), //产品类别
577
+							province:$(".inps2").val(),
578
+							city:$(".inps3").val(),
561
 							type:$("#orderType").val(), //工单类型
579
 							type:$("#orderType").val(), //工单类型
562
 							key:$('#keyWord').val(), //内容关键字
580
 							key:$('#keyWord').val(), //内容关键字
563
 							workid:$('#orderNum').val(), //工单号
581
 							workid:$('#orderNum').val(), //工单号
605
 							source: $('#orderSource').val(), //工单来源
623
 							source: $('#orderSource').val(), //工单来源
606
 							type:$("#orderType").val(), //工单类型
624
 							type:$("#orderType").val(), //工单类型
607
 							producttype:$('#productTypeFilt').val(), //产品类别
625
 							producttype:$('#productTypeFilt').val(), //产品类别
626
+							province:$(".inps2").val(),
627
+							city:$(".inps3").val(),
608
 							key:$('#keyWord').val(), //内容关键字
628
 							key:$('#keyWord').val(), //内容关键字
609
 							workid:$('#orderNum').val(), //内容关键字
629
 							workid:$('#orderNum').val(), //内容关键字
610
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
630
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
631
 					url += "&source=" + $("#orderSource").val();//工单来源
651
 					url += "&source=" + $("#orderSource").val();//工单来源
632
 					url += "&type=" + $("#orderType").val();//工单类型
652
 					url += "&type=" + $("#orderType").val();//工单类型
633
 					url += "&producttype=" + $('#productTypeFilt').val();//产品类别
653
 					url += "&producttype=" + $('#productTypeFilt').val();//产品类别
654
+					url += "&province=" + $('.inps2').val();//省
655
+					url += "&city=" + $('.inps3').val();//市
634
 					url += "&key=" + $('#keyWord').val();//关键词
656
 					url += "&key=" + $('#keyWord').val();//关键词
635
 					url += "&workid=" + $('#orderNum').val();//关键词
657
 					url += "&workid=" + $('#orderNum').val();//关键词
636
 					url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间
658
 					url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间

+ 22 - 0
CallCenterWeb.UI/WorkOrder/WorkOrderParty.html

86
 				display: inline-block;
86
 				display: inline-block;
87
 				
87
 				
88
 			}
88
 			}
89
+			.inps2,.inps3{
90
+				display: none;
91
+			}
89
 		</style>
92
 		</style>
90
 
93
 
91
 	</head>
94
 	</head>
125
 								</select>
128
 								</select>
126
 							</div>
129
 							</div>
127
 							<div class="time-box form-group">
130
 							<div class="time-box form-group">
131
+								<i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
132
+								<input class="form-control" type="text" id="typeclass" placeholder="请选择城市" readonly="readonly">
133
+								<input type="text" class="inps2">
134
+                                <input type="text" class="inps3">
135
+								<input type="hidden" id="typeclassId" />
136
+								<div class="addTree treeList">
137
+									<p class="plasechoce">请选择</p>
138
+									<ul id="TreeDemo" class="ztree">
139
+
140
+									</ul>
141
+								</div>
142
+							</div>
143
+							<div class="time-box form-group">
128
 								<i class="tub fa fa-calendar"></i>
144
 								<i class="tub fa fa-calendar"></i>
129
 								<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
145
 								<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
130
 							</div>
146
 							</div>
509
 							source: $('#orderSource').val(), //工单来源
525
 							source: $('#orderSource').val(), //工单来源
510
 							type:$("#orderType").val(), //工单类型
526
 							type:$("#orderType").val(), //工单类型
511
 							producttype:$('#productTypeFilt').val(), //产品类别
527
 							producttype:$('#productTypeFilt').val(), //产品类别
528
+							province:$(".inps2").val(),
529
+							city:$(".inps3").val(),
512
 							key:$('#keyWord').val(), //内容关键字
530
 							key:$('#keyWord').val(), //内容关键字
513
 							workid:$('#orderNum').val(), //内容关键字
531
 							workid:$('#orderNum').val(), //内容关键字
514
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
532
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
566
 							source: $('#orderSource').val(), //工单来源
584
 							source: $('#orderSource').val(), //工单来源
567
 							type:$("#orderType").val(), //工单类型
585
 							type:$("#orderType").val(), //工单类型
568
 							producttype:$('#productTypeFilt').val(), //产品类别
586
 							producttype:$('#productTypeFilt').val(), //产品类别
587
+							province:$(".inps2").val(),
588
+							city:$(".inps3").val(),
569
 							key:$('#keyWord').val(), //内容关键字
589
 							key:$('#keyWord').val(), //内容关键字
570
 							workid:$('#orderNum').val(), //内容关键字
590
 							workid:$('#orderNum').val(), //内容关键字
571
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
591
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
602
 					url += "&source=" + $("#orderSource").val();//工单来源
622
 					url += "&source=" + $("#orderSource").val();//工单来源
603
 					url += "&type=" + $("#orderType").val();//工单类型
623
 					url += "&type=" + $("#orderType").val();//工单类型
604
 					url += "&producttype=" + $('#productTypeFilt').val();//产品类别
624
 					url += "&producttype=" + $('#productTypeFilt').val();//产品类别
625
+					url += "&province=" + $('.inps2').val();//省
626
+					url += "&city=" + $('.inps3').val();//市
605
 					url += "&key=" + $('#keyWord').val();//关键词
627
 					url += "&key=" + $('#keyWord').val();//关键词
606
 					url += "&workid=" + $('#orderNum').val();//关键词
628
 					url += "&workid=" + $('#orderNum').val();//关键词
607
 					url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间
629
 					url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间

+ 22 - 0
CallCenterWeb.UI/WorkOrder/WorkOrderSearch.html

78
 			.RemoveC a{
78
 			.RemoveC a{
79
 				display: inline;
79
 				display: inline;
80
 			}
80
 			}
81
+			.inps2,.inps3{
82
+				display: none;
83
+			}
81
 		</style>
84
 		</style>
82
 
85
 
83
 	</head>
86
 	</head>
116
 								</select>
119
 								</select>
117
 							</div>
120
 							</div>
118
 							<div class="time-box form-group">
121
 							<div class="time-box form-group">
122
+								<i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
123
+								<input class="form-control" type="text" id="typeclass" placeholder="请选择城市" readonly="readonly">
124
+								<input type="text" class="inps2">
125
+                                <input type="text" class="inps3">
126
+								<input type="hidden" id="typeclassId" />
127
+								<div class="addTree treeList">
128
+									<p class="plasechoce">请选择</p>
129
+									<ul id="TreeDemo" class="ztree">
130
+
131
+									</ul>
132
+								</div>
133
+							</div>
134
+							<div class="time-box form-group">
119
 								<i class="tub fa fa-calendar"></i>
135
 								<i class="tub fa fa-calendar"></i>
120
 								<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
136
 								<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
121
 							</div>
137
 							</div>
405
 							source: $('#orderSource').val(), //工单来源
421
 							source: $('#orderSource').val(), //工单来源
406
 							type:$("#orderType").val(), //工单类型
422
 							type:$("#orderType").val(), //工单类型
407
 							producttype:$('#productTypeFilt').val(), //产品类别
423
 							producttype:$('#productTypeFilt').val(), //产品类别
424
+							province:$(".inps2").val(),
425
+							city:$(".inps3").val(),
408
 							key:$('#keyWord').val(), //内容关键字
426
 							key:$('#keyWord').val(), //内容关键字
409
 							workid:$('#orderNum').val(), //内容关键字
427
 							workid:$('#orderNum').val(), //内容关键字
410
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
428
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
450
 							source: $('#orderSource').val(), //工单来源
468
 							source: $('#orderSource').val(), //工单来源
451
 							type:$("#orderType").val(), //工单类型
469
 							type:$("#orderType").val(), //工单类型
452
 							producttype:$('#productTypeFilt').val(), //产品类别
470
 							producttype:$('#productTypeFilt').val(), //产品类别
471
+							province:$(".inps2").val(),
472
+							city:$(".inps3").val(),
453
 							key:$('#keyWord').val(), //内容关键字
473
 							key:$('#keyWord').val(), //内容关键字
454
 							workid:$('#orderNum').val(), //内容关键字
474
 							workid:$('#orderNum').val(), //内容关键字
455
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
475
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
474
 					url += "&source=" + $("#orderSource").val();//工单来源
494
 					url += "&source=" + $("#orderSource").val();//工单来源
475
 					url += "&type=" + $("#orderType").val();//工单类型
495
 					url += "&type=" + $("#orderType").val();//工单类型
476
 					url += "&producttype=" + $('#productTypeFilt').val();//产品类别
496
 					url += "&producttype=" + $('#productTypeFilt').val();//产品类别
497
+					url += "&province=" + $('.inps2').val();//省
498
+					url += "&city=" + $('.inps3').val();//市
477
 					url += "&key=" + $('#keyWord').val();//关键词
499
 					url += "&key=" + $('#keyWord').val();//关键词
478
 					url += "&workid=" + $('#orderNum').val();//关键词
500
 					url += "&workid=" + $('#orderNum').val();//关键词
479
 					url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间
501
 					url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间

+ 17 - 9
CallCenterWeb.UI/js/WorkOrder/WorkOrder.js

136
 	$('#comeCall_deps').comboSelect();
136
 	$('#comeCall_deps').comboSelect();
137
 
137
 
138
 	function getOrderType() {
138
 	function getOrderType() {
139
-		$.get(huayi.config.callcenter_url + 'WorkType/GetTreeList', {
139
+		$.get(huayi.config.callcenter_url + 'Area/GetAreaList', {
140
 			"token": $.cookie("token"),
140
 			"token": $.cookie("token"),
141
 		}, function(result) {
141
 		}, function(result) {
142
 			result = $.parseJSON(result);
142
 			result = $.parseJSON(result);
146
 	var setting3 = {
146
 	var setting3 = {
147
 		data: {
147
 		data: {
148
 			key: {
148
 			key: {
149
-				name: "text"
149
+				name: "F_AreaName"
150
 			},
150
 			},
151
 			simpleData: {
151
 			simpleData: {
152
 				enable: true,
152
 				enable: true,
153
-				idKey: "id",
153
+				idKey: "F_Id",
154
+				pIdKey: "F_ParentId",
154
 				rootPId: 0
155
 				rootPId: 0
155
 			}
156
 			}
156
 		},
157
 		},
160
 	}
161
 	}
161
 
162
 
162
 	function changeTreeClick(event, treeId, treeNode) {
163
 	function changeTreeClick(event, treeId, treeNode) {
163
-		if(treeNode.level == 2){
164
-			var chanId = treeNode.id;
165
-			var changeName = treeNode.text;
166
-			$('#typeclass').val(changeName);
167
-			$('#typeclassId').val(chanId);
168
-			var pidnode = treeNode.getParentNode();
164
+		var areaParent = treeNode.getPath();
165
+		if (areaParent[1]) {
166
+			areaParent1=areaParent[0].F_AreaName
167
+			areaParent2=areaParent[1].F_AreaName
168
+			
169
+			$('#typeclass').val(areaParent1+"/"+areaParent2);
170
+			$('.inps2').val(areaParent1);
171
+	        $('.inps3').val(areaParent2);
172
+	       
173
+			
174
+		}else{
175
+			layer.msg("请选择最下级菜单");
169
 		}
176
 		}
177
+		$('.addTree1').hide();
170
 		
178
 		
171
 	};
179
 	};
172
 
180