miaofuhao лет назад: 6
Родитель
Сommit
db2470ea1b

+ 46 - 4
WebUI/CallCenterWeb.UI/CommonHtml/BackDatil.html

@@ -11,10 +11,9 @@
11 11
 	<body>
12 12
 		<div class="Common">
13 13
 		<table  >
14
-		
15 14
 			<tr>
16 15
 				<th class="Importent">退回原因:</th>
17
-					<td colspan="7"><textarea data-adaptheight id="result" name="" rows="4" cols=""></textarea></td>
16
+				<td colspan="7"><textarea data-adaptheight id="result" name="" rows="4" cols=""></textarea></td>
18 17
 			</tr>
19 18
 		</table>
20 19
 		<div class="btn_box">
@@ -24,17 +23,40 @@
24 23
 		<script src="../js/adjustHeight.js"></script>
25 24
 		<script>
26 25
 			var wid = helper.request.queryString("wid");
26
+			var tab = helper.request.queryString("tab");
27 27
 			$(document).ready(function() {
28 28
 				$('.BC').click(function() {
29 29
                     if(!$("#result").val()){
30 30
                     	layer.msg("原因不能为空");
31
+                    }else if(tab){
32
+                    	editTh();
31 33
                     }else{
32 34
                     	JA();
33 35
                     }
34
-					
35 36
 				})
36 37
 
37 38
 			});
39
+			if (tab) {
40
+				XQ();
41
+			}
42
+			//回退
43
+			function editTh() {
44
+				$.post(huayi.config.callcenter_url + 'WorkOrder/EditSuperInfoByAdmin', {
45
+					id: wid,
46
+					superopinion:$("#result").val(),//回访内容
47
+					token: $.cookie("token")
48
+				}, function(result) {
49
+					result = JSON.parse(result);
50
+					if(result.state.toLowerCase() == "success") {
51
+						var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
52
+						console.log(index);
53
+						parent.layer.close(index); //再执行关闭
54
+						parent.load();
55
+						parent.layer.msg("操作成功");
56
+
57
+					}
58
+				})
59
+			}
38 60
 			//回退
39 61
 			function JA() {
40 62
 				$.post(huayi.config.callcenter_url + 'WorkOrder/ReturnWorkOrder', {
@@ -44,7 +66,6 @@
44 66
 				}, function(result) {
45 67
 					result = JSON.parse(result);
46 68
 					if(result.state.toLowerCase() == "success") {
47
-
48 69
 						var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
49 70
 						console.log(index);
50 71
 						parent.layer.close(index); //再执行关闭
@@ -54,6 +75,27 @@
54 75
 					}
55 76
 				})
56 77
 			}
78
+			function XQ(){
79
+				$.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetInfoByAdmin', {
80
+					id: wid,
81
+					type:5,
82
+					token: $.cookie("token")
83
+				}, function(result) {
84
+					if(result.state.toLowerCase() == "success") {
85
+						var type=result.data[0].F_Type;
86
+						var Ltype="";
87
+						if(type==1){
88
+							 Ltype="领导批示";
89
+						}else if(type==2){
90
+							Ltype="市长指示";
91
+						} else if(type==3){
92
+							Ltype="回退";
93
+						}
94
+						$("#result").val(result.data[0].F_SuperOpinion);
95
+						console.log(result);
96
+					}
97
+				})
98
+			}
57 99
 		</script>
58 100
 	</body>
59 101
 </html>

+ 35 - 34
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html

@@ -307,10 +307,10 @@
307 307
 							<table class="Table" border="" cellspacing="0" cellpadding="0">
308 308
 								<theard>
309 309
 									<tr>
310
-										<td class="text-center" style="min-width:100px;">批示人</td>
311
-										<td class="text-center" style="min-width:100px;">批示内容</td>
312
-										<td class="text-center" style="min-width:100px;">批示时间</td>
313
-										<td class="text-center" style="min-width:100px;">附件</td>
310
+										<td class="text-center" style="min-width:100px;">退回人</td>
311
+										<td class="text-center" style="min-width:100px;">退回内容</td>
312
+										<td class="text-center" style="min-width:100px;">退回时间</td>
313
+										<!--<td class="text-center" style="min-width:100px;">附件</td>-->
314 314
 										<td class="text-center authority" style="min-width:100px;">操作</td>
315 315
 									</tr>
316 316
 								</theard>
@@ -830,16 +830,16 @@
830 830
 										var str = '<tr>' +
831 831
 											'<td class="text-center">' + n.UserName + '</td>' +
832 832
 											'<td class="text-center">' + n.F_SuperOpinion + '</td>' +
833
-											'<td class="text-center">' + n.F_CreateTime + '</td>' +
834
-											'<td class="text-center">';
835
-										//办理情况附件
836
-										$(n.File).each(function(j, m) {
837
-											str += '<a style="margin-right:5px;" href="' + m.F_FileUrl + '" download="' + m.F_FileUrl + '">' + m.F_FileName.substring(19) + '</a>';
838
-										})
839
-										str += '</td>' +
840
-											'<td class="text-center authority"><botton class="btns  LDPSS "   superuser="' + n.F_BatchReason + '" superopinion="' + n.F_SuperOpinion + '" type="' + n.F_Type + '" index="' + n.F_Id + '">修改</botton></td>' +
841
-											'</tr>';
842
-										$(str).appendTo($(".HTXX"));
833
+											'<td class="text-center">' + n.F_CreateTime + '</td>'
834
+//											'<td class="text-center">';
835
+//											//办理情况附件
836
+//											$(n.File).each(function(j, m) {
837
+//												str += '<a style="margin-right:5px;" href="' + m.F_FileUrl + '" download="' + m.F_FileUrl + '">' + m.F_FileName.substring(19) + '</a>';
838
+//											})
839
+											str += '</td>' +
840
+												'<td class="text-center authority"><botton class="btns  HtxxBtn "   superuser="' + n.F_BatchReason + '" superopinion="' + n.F_SuperOpinion + '" type="' + n.F_Type + '" index="' + n.F_Id + '">修改</botton></td>' +
841
+												'</tr>';
842
+											$(str).appendTo($(".HTXX"));
843 843
 									})
844 844
 
845 845
 								}
@@ -897,39 +897,40 @@
897 897
 								//								})
898 898
 								window.location.href = "../CommonHtml/LDPS.html?wid=" + index + "&type=" + type; //iframe的url,no代表不显示滚动条
899 899
 							});
900
-							//办理情况
901
-							$(".BLQKS").click(function() {
902
-								var index = $(this).attr('index');
900
+							//领导批示
901
+							$(".LDPSS").click(function() {
902
+								var index = $(this).attr('index'); //批示ID
903
+								var superuser = $(this).attr('superuser'); //批示人
904
+								var superopinion = $(this).attr("superopinion"); //批示内容
905
+								var type = $(this).attr("type"); //批示类型
903 906
 								//								layer.open({
904 907
 								//									type: 2,
905
-								//									content: "../CommonHtml/XGBLS.html?wid=" + index + "&UserName=" + UserName + "&result=" + result, //iframe的url,no代表不显示滚动条
906
-								//									title: '修改办信息',
908
+								//									content: "../CommonHtml/LDPS.html?wid=" + index + "&superuser=" + superuser + "&superopinion=" + superopinion + "&type=" + type, //iframe的url,no代表不显示滚动条
909
+								//									title: '修改办信息',
907 910
 								//									area: ['58%', '60%'], //宽高
908 911
 								//								})
909
-								window.location.href = "../CommonHtml/XGBLS.html?wid=" + index;
912
+								window.location.href = "../CommonHtml/LDPS.html?wid=" + index + "&type=" + type; //iframe的url,no代表不显示滚动条
913
+							});
914
+							
915
+							//修改回退信息
916
+							$(".HtxxBtn").click(function() {
917
+								var index = $(this).attr('index');
918
+								window.location.href = "../CommonHtml/BackDatil.html?wid=" + index+'&tab=0'
910 919
 							})
911 920
 							//修改审核延时
912 921
 							$(".LYSSH").click(function() {
913 922
 								var index = $(this).attr('index');
914
-
915
-								//								layer.open({
916
-								//									type: 2,
917
-								//									content: "../CommonHtml/YSSH.html?wid=" + index + "&reason=" + result , //iframe的url,no代表不显示滚动条
918
-								//									title: '修改延时审核信息',
919
-								//									area: ['58%', '60%'], //宽高
920
-								//								})
921 923
 								window.location.href = "../CommonHtml/YSSH.html?wid=" + index;
922 924
 							})
923 925
 							//修改退回审核
924 926
 							$(".LTHSH").click(function() {
925 927
 								var index = $(this).attr('index');
926
-
927
-								//								layer.open({
928
-								//									type: 2,
929
-								//									content: "../CommonHtml/lSHTH.html?wid=" + index + "&reason=" + result , //iframe的url,no代表不显示滚动条
930
-								//									title: '修改延时审核信息',
931
-								//									area: ['58%', '60%'], //宽高
932
-								//								})
928
+								//layer.open({
929
+								//	type: 2,
930
+								//	content: "../CommonHtml/lSHTH.html?wid=" + index + "&reason=" + result , //iframe的url,no代表不显示滚动条
931
+								//	title: '修改延时审核信息',
932
+								//	area: ['58%', '60%'], //宽高
933
+								//})
933 934
 								window.location.href = "../CommonHtml/lSHTH.html?wid=" + index;
934 935
 							})
935 936