瀏覽代碼

承办单位模糊搜索

miaofuhao 2 年之前
父節點
當前提交
227d7c5cdb

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

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

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

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

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

@@ -183,16 +183,16 @@ $(".xl_box").on("click", "li", function() {
183 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 196
 $("#reflectCategoryList").on("click", "li", function() {
197 197
 	$(".reflectCategoryList-wrapper").hide();
198 198
 	$("#reflectCategory").val($(this).attr("indexName"));
@@ -204,39 +204,41 @@ $("#sponsor").on("click", "li", function() {
204 204
 	$("#PID").val($(this).attr("index"));
205 205
 	$("#Dpment").val($(this).attr("index"));
206 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 238
 	$.get(
237 239
 		huayi.config.callcenter_url + "Department/GetDeptList", {
238 240
 			token: $.cookie("token"),
239
-			iscbdw
241
+			iscbdw:iscbdw
240 242
 		},
241 243
 		function(result) {
242 244
 			result = $.parseJSON(result);