Преглед на файлове

承办单位模糊搜索

miaofuhao преди 2 години
родител
ревизия
227d7c5cdb

+ 2 - 1
WebUI/CallCenterWeb.UI/YeWu/specialExamination.html

89
 		<script>
89
 		<script>
90
 			var columnsArray = [];
90
 			var columnsArray = [];
91
 			var columnsWidth
91
 			var columnsWidth
92
+			var iscbdw =1
92
 			var apiUrl = "WorkOrderReport/SpecialAssessment"
93
 			var apiUrl = "WorkOrderReport/SpecialAssessment"
93
 			$(document).ready(function() {
94
 			$(document).ready(function() {
94
 				laydate.render({
95
 				laydate.render({
104
 						$(".layui-laydate-footer [lay-type='date'].laydate-btns-time").click();
105
 						$(".layui-laydate-footer [lay-type='date'].laydate-btns-time").click();
105
 					}
106
 					}
106
 				});
107
 				});
107
-				tree(1)
108
+				tree()
108
 				initTable()
109
 				initTable()
109
 			})
110
 			})
110
 
111
 

+ 6 - 3
WebUI/CallCenterWeb.UI/YeWu/treatmentEffeciency.html

101
 		<script>
101
 		<script>
102
 			var columnsArray = [];
102
 			var columnsArray = [];
103
 			var columnsWidth
103
 			var columnsWidth
104
+			var iscbdw =1
104
 			var apiUrl = "WorkOrderReport/GetProcessingEfficiency"
105
 			var apiUrl = "WorkOrderReport/GetProcessingEfficiency"
105
 			$(document).ready(function() {
106
 			$(document).ready(function() {
106
 				laydate.render({
107
 				laydate.render({
117
 					}
118
 					}
118
 				});
119
 				});
119
 				LY($("#source"));
120
 				LY($("#source"));
120
-				tree(1)
121
+				tree()
121
 				initTable()
122
 				initTable()
122
 			})
123
 			})
123
 			$('.ul_tab li').click(function() {
124
 			$('.ul_tab li').click(function() {
125
 				var index = $(this).index();
126
 				var index = $(this).index();
126
 				if(index === 0) {
127
 				if(index === 0) {
127
 					apiUrl = "WorkOrderReport/GetProcessingEfficiency";
128
 					apiUrl = "WorkOrderReport/GetProcessingEfficiency";
128
-					tree(1)
129
+					iscbdw =1
130
+					tree()
129
 				} else if(index === 1) {
131
 				} else if(index === 1) {
130
-					tree(3)
132
+					iscbdw =3
133
+					tree()
131
 					apiUrl = "WorkOrderReport/GetSJProcessingEfficiency";
134
 					apiUrl = "WorkOrderReport/GetSJProcessingEfficiency";
132
 				}
135
 				}
133
 				
136
 				

+ 38 - 36
WebUI/CallCenterWeb.UI/js/reportCommon/common.js

183
 	obj.find(".xl_common").hide();
183
 	obj.find(".xl_common").hide();
184
 })
184
 })
185
 // 承办单位搜索
185
 // 承办单位搜索
186
-//$(".inps").bind("input propertychange", function() {
187
-//	$(".xlAdd").css("display", "none");
188
-//	$(".selDpart1").css("display", "block");
189
-//	if($(".inps").val() == "") {
190
-//		$(".selDpart1").css("display", "none");
191
-//		return;
192
-//	}
193
-//	var debounceDepart = debounce(depart, 500);
194
-//	debounceDepart($(".inps").val());
195
-//});
186
+$(".inps").bind("input propertychange", function() {
187
+	$(".xlAdd").css("display", "none");
188
+	$(".selDpart1").css("display", "block");
189
+	if($(".inps").val() == "") {
190
+		$(".selDpart1").css("display", "none");
191
+		return;
192
+	}
193
+	var debounceDepart = debounce(depart, 500);
194
+	debounceDepart($(".inps").val());
195
+});
196
 $("#reflectCategoryList").on("click", "li", function() {
196
 $("#reflectCategoryList").on("click", "li", function() {
197
 	$(".reflectCategoryList-wrapper").hide();
197
 	$(".reflectCategoryList-wrapper").hide();
198
 	$("#reflectCategory").val($(this).attr("indexName"));
198
 	$("#reflectCategory").val($(this).attr("indexName"));
204
 	$("#PID").val($(this).attr("index"));
204
 	$("#PID").val($(this).attr("index"));
205
 	$("#Dpment").val($(this).attr("index"));
205
 	$("#Dpment").val($(this).attr("index"));
206
 	$(".Cleans").show();
206
 	$(".Cleans").show();
207
+	console.log($("#PID").val())
207
 });
208
 });
208
 
209
 
209
 ///部门
210
 ///部门
210
-//function depart(dept) {
211
-//	$("#sponsor").empty();
212
-//	$.getJSON(
213
-//		huayi.config.callcenter_url + "Department/GetDeptList", {
214
-//			token: $.cookie("token"),
215
-//			dept: dept,
216
-//		},
217
-//		function(data) {
218
-//			if(data.state.toLowerCase() == "success") {
219
-//				var content = data.data;
220
-//				console.log(content)
221
-//				$(content).each(function(i, n) {
222
-//					$(
223
-//						"<li index='" +
224
-//						n.F_DeptId +
225
-//						"'>" +
226
-//						n.F_DeptName +
227
-//						"</li>"
228
-//					).appendTo("#sponsor");
229
-//				});
230
-//			}
231
-//		}
232
-//	);
233
-//}
211
+function depart(dept) {
212
+	$("#sponsor").empty();
213
+	$.getJSON(
214
+		huayi.config.callcenter_url + "Department/GetDeptList", {
215
+			token: $.cookie("token"),
216
+			iscbdw:iscbdw,
217
+			deptname: dept,
218
+		},
219
+		function(data) {
220
+			if(data.state.toLowerCase() == "success") {
221
+				var content = data.data;
222
+				console.log(content)
223
+				$(content).each(function(i, n) {
224
+					$(
225
+						"<li index='" +
226
+						n.F_DeptId +
227
+						"'>" +
228
+						n.F_DeptName +
229
+						"</li>"
230
+					).appendTo("#sponsor");
231
+				});
232
+			}
233
+		}
234
+	);
235
+}
234
 
236
 
235
-function tree(iscbdw) {
237
+function tree() {
236
 	$.get(
238
 	$.get(
237
 		huayi.config.callcenter_url + "Department/GetDeptList", {
239
 		huayi.config.callcenter_url + "Department/GetDeptList", {
238
 			token: $.cookie("token"),
240
 			token: $.cookie("token"),
239
-			iscbdw
241
+			iscbdw:iscbdw
240
 		},
242
 		},
241
 		function(result) {
243
 		function(result) {
242
 			result = $.parseJSON(result);
244
 			result = $.parseJSON(result);