瀏覽代碼

搜索添加产品类别

miaofuhao 7 年之前
父節點
當前提交
cece68caae

+ 10 - 2
CallCenterWeb.UI/WorkOrder/WorkOrderDispose.html

@@ -106,6 +106,11 @@
106 106
 									<option value="">请选择工单类型</option>
107 107
 								</select>
108 108
 							</div>
109
+							<div class="form-group">
110
+								<select class="form-control selectpicker" id="productTypeFilt" data-live-search="true">
111
+									<option value="">请选择产品类别</option>
112
+								</select>
113
+							</div>
109 114
 							<div class="time-box form-group">
110 115
 								<i class="tub fa fa-calendar"></i>
111 116
 								<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
@@ -552,7 +557,8 @@
552 557
 							state: 0,
553 558
 							token: $.cookie("token"),
554 559
 							source: $('#orderSource').val(), //工单来源
555
-							type:$("#orderType").val(),
560
+							producttype:$('#productTypeFilt').val(), //产品类别
561
+							type:$("#orderType").val(), //工单类型
556 562
 							key:$('#keyWord').val(), //内容关键字
557 563
 							workid:$('#orderNum').val(), //工单号
558 564
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
@@ -597,7 +603,8 @@
597 603
 							state: 0,
598 604
 							token: $.cookie("token"),
599 605
 							source: $('#orderSource').val(), //工单来源
600
-							type:$("#orderType").val(),
606
+							type:$("#orderType").val(), //工单类型
607
+							producttype:$('#productTypeFilt').val(), //产品类别
601 608
 							key:$('#keyWord').val(), //内容关键字
602 609
 							workid:$('#orderNum').val(), //内容关键字
603 610
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
@@ -623,6 +630,7 @@
623 630
 					url += "&state=0";//状态
624 631
 					url += "&source=" + $("#orderSource").val();//工单来源
625 632
 					url += "&type=" + $("#orderType").val();//工单类型
633
+					url += "&producttype=" + $('#productTypeFilt').val();//产品类别
626 634
 					url += "&key=" + $('#keyWord').val();//关键词
627 635
 					url += "&workid=" + $('#orderNum').val();//关键词
628 636
 					url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间

+ 10 - 2
CallCenterWeb.UI/WorkOrder/WorkOrderParty.html

@@ -119,6 +119,11 @@
119 119
 									<option value="">请选择工单类型</option>
120 120
 								</select>
121 121
 							</div>
122
+							<div class="form-group">
123
+								<select class="form-control selectpicker" id="productTypeFilt" data-live-search="true">
124
+									<option value="">请选择产品类别</option>
125
+								</select>
126
+							</div>
122 127
 							<div class="time-box form-group">
123 128
 								<i class="tub fa fa-calendar"></i>
124 129
 								<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
@@ -502,7 +507,8 @@
502 507
 							token: $.cookie("token"),
503 508
 							state: 1,
504 509
 							source: $('#orderSource').val(), //工单来源
505
-							type:$("#orderType").val(),
510
+							type:$("#orderType").val(), //工单类型
511
+							producttype:$('#productTypeFilt').val(), //产品类别
506 512
 							key:$('#keyWord').val(), //内容关键字
507 513
 							workid:$('#orderNum').val(), //内容关键字
508 514
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
@@ -558,7 +564,8 @@
558 564
 							state: 1,
559 565
 							token: $.cookie("token"),
560 566
 							source: $('#orderSource').val(), //工单来源
561
-							type:$("#orderType").val(),
567
+							type:$("#orderType").val(), //工单类型
568
+							producttype:$('#productTypeFilt').val(), //产品类别
562 569
 							key:$('#keyWord').val(), //内容关键字
563 570
 							workid:$('#orderNum').val(), //内容关键字
564 571
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
@@ -594,6 +601,7 @@
594 601
 					url += "&state=1";//状态
595 602
 					url += "&source=" + $("#orderSource").val();//工单来源
596 603
 					url += "&type=" + $("#orderType").val();//工单类型
604
+					url += "&producttype=" + $('#productTypeFilt').val();//产品类别
597 605
 					url += "&key=" + $('#keyWord').val();//关键词
598 606
 					url += "&workid=" + $('#orderNum').val();//关键词
599 607
 					url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间

+ 10 - 2
CallCenterWeb.UI/WorkOrder/WorkOrderSearch.html

@@ -110,6 +110,11 @@
110 110
 									<option value="">请选择工单类型</option>
111 111
 								</select>
112 112
 							</div>
113
+							<div class="form-group">
114
+								<select class="form-control selectpicker" id="productTypeFilt" data-live-search="true">
115
+									<option value="">请选择产品类别</option>
116
+								</select>
117
+							</div>
113 118
 							<div class="time-box form-group">
114 119
 								<i class="tub fa fa-calendar"></i>
115 120
 								<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
@@ -398,7 +403,8 @@
398 403
 							pagesize: params.pageSize,
399 404
 							token: $.cookie("token"),
400 405
 							source: $('#orderSource').val(), //工单来源
401
-							type:$("#orderType").val(),
406
+							type:$("#orderType").val(), //工单类型
407
+							producttype:$('#productTypeFilt').val(), //产品类别
402 408
 							key:$('#keyWord').val(), //内容关键字
403 409
 							workid:$('#orderNum').val(), //内容关键字
404 410
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
@@ -442,7 +448,8 @@
442 448
 							pagesize: params.pageSize,
443 449
 							token: $.cookie("token"),
444 450
 							source: $('#orderSource').val(), //工单来源
445
-							type:$("#orderType").val(),
451
+							type:$("#orderType").val(), //工单类型
452
+							producttype:$('#productTypeFilt').val(), //产品类别
446 453
 							key:$('#keyWord').val(), //内容关键字
447 454
 							workid:$('#orderNum').val(), //内容关键字
448 455
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
@@ -466,6 +473,7 @@
466 473
 				if(stype == '1') {
467 474
 					url += "&source=" + $("#orderSource").val();//工单来源
468 475
 					url += "&type=" + $("#orderType").val();//工单类型
476
+					url += "&producttype=" + $('#productTypeFilt').val();//产品类别
469 477
 					url += "&key=" + $('#keyWord').val();//关键词
470 478
 					url += "&workid=" + $('#orderNum').val();//关键词
471 479
 					url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间

+ 23 - 1
CallCenterWeb.UI/js/WorkOrder/WorkOrder.js

@@ -126,7 +126,9 @@ $(document).ready(function() {
126 126
 	//工单类型
127 127
 	getOrderType();
128 128
 	//工单来源
129
-	getOrderSource()
129
+	getOrderSource();
130
+	//	产品类别
131
+	getprdoctSource();
130 132
 	//工单类型
131 133
 	getOrderTypeSel()
132 134
 	//	//反馈单位 、来电单位
@@ -224,6 +226,26 @@ function getOrderSource() {
224 226
 		}
225 227
 	});
226 228
 }
229
+//产品类别
230
+function getprdoctSource() {
231
+	$.ajax({
232
+		type: "get",
233
+		url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
234
+		dataType: 'json',
235
+		async: true,
236
+		data: {
237
+			token: $.cookie("token"),
238
+			flag: "CPLB"
239
+		},
240
+		success: function(data) {
241
+			var Count = data.data;
242
+			$(Count).each(function(i, n) {
243
+				$("<option value='" + n.F_DictionaryValueId + "'>" + n.F_Name + "</option>").appendTo($("#productTypeFilt"));
244
+			})
245
+			$('#orderSource').selectpicker('refresh');
246
+		}
247
+	});
248
+}
227 249
 //工单类型
228 250
 function getOrderTypeSel() {
229 251
 	$.ajax({