Просмотр исходного кода

来电弹屏,退回待提交APP,提交人显示修改

miaofuhao месяцев назад: 8
Родитель
Сommit
64e82949eb

+ 9 - 0
CallCenterWeb.UI/.project

@@ -33,5 +33,14 @@
33 33
 				<arguments>1.0-name-matches-false-false-node_modules</arguments>
34 34
 			</matcher>
35 35
 		</filter>
36
+		<filter>
37
+			<id>1748308761988</id>
38
+			<name></name>
39
+			<type>26</type>
40
+			<matcher>
41
+				<id>org.eclipse.ui.ide.multiFilter</id>
42
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
43
+			</matcher>
44
+		</filter>
36 45
 	</filteredResources>
37 46
 </projectDescription>

+ 3 - 1
CallCenterWeb.UI/callScreen/call.js

@@ -1406,7 +1406,8 @@ function Clean() {
1406 1406
 }
1407 1407
 
1408 1408
 //保存
1409
-function saveCustomer() {
1409
+function saveCustomer() {	
1410
+	
1410 1411
     if($('#order_isover input[name="type"]:checked').val() === "4")  {
1411 1412
         if(!$("#spotCheckCusPhone").val()) {
1412 1413
             layer.confirm('请输入电话!', {
@@ -1592,6 +1593,7 @@ function saveCustomer() {
1592 1593
                 layer.msg("保存成功!");
1593 1594
                 Clean();
1594 1595
                 //window.location.reload()
1596
+                window.parent.closeScreen()
1595 1597
                 $('.customerSubmit').attr("disabled", false);
1596 1598
 	            $('.customerSubmit').text('新建');
1597 1599
             } else {

+ 1 - 0
CallCenterWeb.UI/callScreen/callScreen.html

@@ -1084,6 +1084,7 @@
1084 1084
 		<script src="select.js"></script>
1085 1085
 		<script src="../js/comboSelect/jquery.combo.select.js"></script>
1086 1086
 		<script src="./../js/main.js?v=1.5"></script>
1087
+		
1087 1088
 		<script src="call.js"></script>
1088 1089
 	</body>
1089 1090
 

+ 86 - 1
CallCenterWeb.UI/js/contabs.min.js

@@ -192,6 +192,7 @@ var p = '<a href="javascript:;" class="active J_menuTab" data-id="' + o + '">' +
192 192
 	$(".J_menuItem").on("click", c);
193 193
 
194 194
 	function h() {
195
+		debugger
195 196
 		var m = $(this).parents(".J_menuTab").data("id");
196 197
 		var l = $(this).parents(".J_menuTab").width();
197 198
 		if($(this).parents(".J_menuTab").hasClass("active")) {
@@ -247,6 +248,7 @@ var p = '<a href="javascript:;" class="active J_menuTab" data-id="' + o + '">' +
247 248
 		}
248 249
 		return false
249 250
 	}
251
+	
250 252
 	$(".J_menuTabs").on("click", ".J_menuTab i", h);
251 253
 
252 254
 	function i() {
@@ -296,4 +298,87 @@ var p = '<a href="javascript:;" class="active J_menuTab" data-id="' + o + '">' +
296 298
 		});
297 299
 		$(".page-tabs-content").css("margin-left", "0")
298 300
 	})
299
-});
301
+});
302
+
303
+function closeScreen() {
304
+		var _this
305
+		debugger
306
+		$(".J_menuTabs  .J_menuTab").each(function(e){
307
+			console.log()
308
+			if($(".J_menuTabs  .J_menuTab").eq(e).hasClass("active")){
309
+				console.log($(".J_menuTabs  .J_menuTab").eq(e).children("i"))
310
+				_this = $(".J_menuTabs  .J_menuTab").eq(e).children("i")
311
+			}
312
+		})
313
+		var m = $(_this).parents(".J_menuTab").data("id");
314
+		var l = $(_this).parents(".J_menuTab").width();
315
+		if($(_this).parents(".J_menuTab").hasClass("active")) {
316
+			if($(_this).parents(".J_menuTab").next(".J_menuTab").size()) {
317
+				var k = $(_this).parents(".J_menuTab").next(".J_menuTab:eq(0)").data("id");
318
+				$(_this).parents(".J_menuTab").next(".J_menuTab:eq(0)").addClass("active");
319
+				$(".J_mainContent .J_iframe").each(function() {
320
+					if($(_this).data("id") == k) {
321
+						$(_this).show().siblings(".J_iframe").hide();
322
+						return false
323
+					}
324
+				});
325
+				var n = parseInt($(".page-tabs-content").css("margin-left"));
326
+				if(n < 0) {
327
+					$(".page-tabs-content").animate({
328
+						marginLeft: (n + l) + "px"
329
+					}, "fast")
330
+				}
331
+				$(_this).parents(".J_menuTab").remove();
332
+				$(".J_mainContent .J_iframe").each(function() {
333
+					if($(_this).data("id") == m) {
334
+						$(_this).remove();
335
+						return false
336
+					}
337
+				})
338
+			}
339
+			if($(_this).parents(".J_menuTab").prev(".J_menuTab").size()) {
340
+				var k = $(_this).parents(".J_menuTab").prev(".J_menuTab:last").data("id");
341
+				$(_this).parents(".J_menuTab").prev(".J_menuTab:last").addClass("active");
342
+				$(".J_mainContent .J_iframe").each(function(ele) {
343
+					console.log($(".J_mainContent .J_iframe").eq(ele).data("id"))
344
+					if($(".J_mainContent .J_iframe").eq(ele).data("id") == k) {
345
+						$(".J_mainContent .J_iframe").eq(ele).show().siblings(".J_iframe").hide();
346
+						return false
347
+					}
348
+				});
349
+				$(_this).parents(".J_menuTab").remove();
350
+				$(".J_mainContent .J_iframe").each(function() {
351
+					if($(_this).data("id") == m) {
352
+						$(_this).remove();
353
+						return false
354
+					}
355
+				})
356
+			} else {
357
+				$(".J_menuTabs  .J_menuTab").each(function(e){
358
+					var  kOther
359
+					if($(".J_menuTabs  .J_menuTab").eq(e).hasClass("active")){
360
+						console.log($(".J_menuTabs  .J_menuTab").eq(e).children("i"))
361
+						kOther = $(".J_menuTabs  .J_menuTab").eq(e).data("id");
362
+					}
363
+					$(".J_mainContent .J_iframe").each(function(ele) {
364
+						console.log($(".J_mainContent .J_iframe").eq(ele).data("id"))
365
+						if($(".J_mainContent .J_iframe").eq(ele).data("id") == kOther) {
366
+							$(".J_mainContent .J_iframe").eq(ele).show().siblings(".J_iframe").hide();
367
+							return false
368
+						}
369
+					});
370
+				})
371
+			}
372
+		} else {
373
+			$(_this).parents(".J_menuTab").remove();
374
+			$(".J_mainContent .J_iframe").each(function() {
375
+				if($(_this).data("id") == m) {
376
+					$(_this).remove();
377
+					return false
378
+				}
379
+			});
380
+			g($(".J_menuTab.active"))
381
+		}
382
+		return false
383
+	}
384
+	

+ 2 - 2
双汇APP-h5/js/huayi.config.js

@@ -2,9 +2,9 @@ if(huayi == undefined) {
2 2
 	var huayi = {};
3 3
 }
4 4
 huayi.config = {
5
-	  callcenter_url: "http://oa.shuanghui.net:8046/",//生产环境
5
+	  // callcenter_url: "http://oa.shuanghui.net:8046/",//生产环境
6 6
 	//callcenter_url: "http://121.196.219.217:8046/",//生产环境
7
-//	callcenter_url: "http://192.168.8.9:1001/",//生产环境
7
+	callcenter_url: "http://192.168.8.9:1001/",//生产环境
8 8
 	socket_ip: "222.143.137.63", //ip
9 9
 	socket_port: "8081", //端口
10 10
 	indexOutTime: 2000, //菜单工单数量刷新间隔

+ 1 - 1
双汇APP-h5/workOrder/js/work-assign.js

@@ -54,7 +54,7 @@ mui.ready(function() {
54 54
 						res.forEach(function(v, i) {
55 55
 							var obj = {};
56 56
 							obj.value = v.F_UserId;
57
-							obj.text = v.F_RoleName+"-"+v.F_UserName;
57
+							obj.text = v.F_DeptName+"-"+v.F_UserName;
58 58
 							renyuan.push(obj);
59 59
 							//$('<option value="' + v.F_UserId + '">' + v.F_UserName + '</option>').appendTo('#order_recive');
60 60
 						});