Kaynağa Gözat

工单列表数字提示

liuyifan 5 yıl önce
ebeveyn
işleme
5786392ba4

+ 6 - 7
CallCenterWeb.UI/js/WorkOrder/WorkOrder.js

@@ -616,14 +616,14 @@ function getProductFactory() {
616 616
 function getSubmitterManager() {
617 617
 	$("#searchNotifications").empty();
618 618
 	$("#searchNotifications").append('<option selected="selected" value="" deptId="">请选择通知人</option>');
619
-	$.getJSON(huayi.config.callcenter_url + "UserAccount/GetList", {
619
+	$.getJSON(huayi.config.callcenter_url + "UserAccount/GetDeptUserAccount", {
620 620
 		"token": $.cookie("token"),
621 621
 		type: 1,
622 622
 		dptid: $("#searchRegionId").val(),
623 623
 	}, function (data) {
624 624
 			var content = data.rows;
625 625
 			$(content).each(function (i, n) {
626
-				$("<option value='" + n.F_UserName + "'deptId='" + n.F_DeptId + "'>" + n.F_UserName + "</option>").appendTo($("#searchNotifications"));
626
+				$("<option value='" + n.F_UserCode + "'deptId='" + n.F_DeptId + "'>" + n.F_UserName + "</option>").appendTo($("#searchNotifications"));
627 627
 			})
628 628
 	})
629 629
 }
@@ -632,14 +632,14 @@ function getSubmitterManager() {
632 632
 function getSubmitterSalesman() {
633 633
 	$("#searchNotifications").empty();
634 634
 	$("#searchNotifications").append('<option selected="selected" value="" deptId="">请选择通知人</option>');
635
-	$.getJSON(huayi.config.callcenter_url + "UserAccount/GetList", {
635
+	$.getJSON(huayi.config.callcenter_url + "UserAccount/GetDeptUserAccount", {
636 636
 		"token": $.cookie("token"),
637 637
 		type: 2,
638 638
 		dptid: $("#searchOfficeId").val(),
639 639
 	}, function (data) {
640 640
 			var content = data.rows;
641 641
 			$(content).each(function (i, n) {
642
-				$("<option value='" + n.F_UserName + "'deptId='" + n.F_DeptId + "'>" + n.F_UserName + "</option>").appendTo($("#searchNotifications"));
642
+				$("<option value='" + n.F_UserCode + "'deptId='" + n.F_DeptId + "'>" + n.F_UserName + "</option>").appendTo($("#searchNotifications"));
643 643
 			})
644 644
 	})
645 645
 }
@@ -680,8 +680,8 @@ var setting = {
680 680
 		enable: true,
681 681
 		autoCheckTrigger: true,
682 682
 		chkboxType: {
683
-			"Y": "p",
684
-			"N": "s"
683
+			"Y": "",
684
+			"N": ""
685 685
 		},
686 686
 		chkStyle: "checkbox",
687 687
 	},
@@ -727,7 +727,6 @@ function onCheck(e, treeId, treeNode) {
727 727
 		$('#searchOfficeId').attr("value",officeId);
728 728
 		getSubmitterSalesman();
729 729
 	}
730
-	e.stopPropagation();
731 730
 }
732 731
 
733 732
 function addRegion() {

+ 6 - 7
CallCenterWeb.UI/js/index.js

@@ -242,10 +242,10 @@ $(document).ready(function() {
242 242
 	//加载左侧导航菜单
243 243
 	loadMenu();
244 244
 
245
-	//workcount();
246
-	//setInterval(function() {
247
-	//	workcount();
248
-	//}, huayi.config.menuworktime);
245
+	workcount();
246
+	setInterval(function() {
247
+		workcount();
248
+	}, huayi.config.menuworktime);
249 249
 
250 250
 	//关闭录音弹出
251 251
 	$(".setwin").click(function() {
@@ -531,8 +531,8 @@ function workcount() {
531 531
 		"token": $.cookie("token")
532 532
 	}, function(result) {
533 533
 		if(result.state.toLowerCase() == "success") {
534
-			$(".dpd").text(result.data.dpd);
535
-			$(".djd").text(result.data.djd);
534
+			$(".dtj").text(result.data.dtj); //待提交
535
+			$(".thdtj").text(result.data.thdtj); //退回待提交
536 536
 			//   $(".dcl").text(result.data.dcl);
537 537
 		}
538 538
 	})
@@ -921,7 +921,6 @@ function logout() {
921 921
 	} else {
922 922
 		layer.msg("退出失败!");
923 923
 	}
924
-
925 924
 }
926 925
 
927 926
 //加载左侧导航菜单