Selaa lähdekoodia

搜索添加产品类别

miaofuhao 7 vuotta sitten
vanhempi
commit
cece68caae

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

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

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

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

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

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

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

126
 	//工单类型
126
 	//工单类型
127
 	getOrderType();
127
 	getOrderType();
128
 	//工单来源
128
 	//工单来源
129
-	getOrderSource()
129
+	getOrderSource();
130
+	//	产品类别
131
+	getprdoctSource();
130
 	//工单类型
132
 	//工单类型
131
 	getOrderTypeSel()
133
 	getOrderTypeSel()
132
 	//	//反馈单位 、来电单位
134
 	//	//反馈单位 、来电单位
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
 function getOrderTypeSel() {
250
 function getOrderTypeSel() {
229
 	$.ajax({
251
 	$.ajax({