Browse Source

详情加回退详情,修改退回信息

miaofuhao 6 years ago
parent
commit
985cc15b9f

+ 34 - 1
WebUI/CallCenterWeb.UI/Appeal/workDetail.js

@@ -225,6 +225,18 @@ function load() {
225 225
                     '</tr>';
226 226
             })
227 227
             $(htmlss).appendTo($(".HGXX"));
228
+            //回退信息
229
+			$(".HTXX").empty();
230
+			$(result.data.htdata).each(function(i, n) {
231
+				var str = '<tr>' +
232
+					'<td class="text-center">' + n.UserName + '</td>' +
233
+					'<td class="text-center">' + n.F_SuperOpinion + '</td>' +
234
+					'<td class="text-center">' + n.F_CreateTime + '</td>'
235
+					str += '</td>' +
236
+						'<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>' +
237
+						'</tr>';
238
+					$(str).appendTo($(".HTXX"));
239
+			})
228 240
             //交办信息
229 241
             var jbxx = '';
230 242
             $(".JBXX").empty();
@@ -359,7 +371,23 @@ function load() {
359 371
                     '</tr>';
360 372
                 $(html).appendTo($("#BLGC_"));
361 373
             });
362
-
374
+			//回退信息
375
+			$(".HTXX").empty();
376
+			$(result.data.htdata).each(function(i, n) {
377
+				var str = '<tr>' +
378
+					'<td class="text-center">' + n.UserName + '</td>' +
379
+					'<td class="text-center">' + n.F_SuperOpinion + '</td>' +
380
+					'<td class="text-center">' + n.F_CreateTime + '</td>'
381
+//											'<td class="text-center">';
382
+//											//办理情况附件
383
+//											$(n.File).each(function(j, m) {
384
+//												str += '<a style="margin-right:5px;" href="' + m.F_FileUrl + '" download="' + m.F_FileUrl + '">' + m.F_FileName.substring(19) + '</a>';
385
+//											})
386
+					str += '</td>' +
387
+						'<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>' +
388
+						'</tr>';
389
+					$(str).appendTo($(".HTXX"));
390
+			})
363 391
             //领导批示
364 392
             $(".LDPS").empty();
365 393
             $(result.data.psdata).each(function(i, n) {
@@ -430,6 +458,11 @@ function load() {
430 458
                 //								});
431 459
                 window.location.href = "../CommonHtml/XGHF.html?wid=" + index; //iframe的url,no代表不显示滚动条
432 460
             });
461
+            //修改回退信息
462
+			$(".HtxxBtn").click(function() {
463
+				var index = $(this).attr('index');
464
+				window.location.href = "../CommonHtml/BackDatil.html?wid=" + index+'&tab=0'
465
+			})
433 466
             //领导批示
434 467
             $(".LDPSS").click(function() {
435 468
                 var index = $(this).attr('index'); //批示ID

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

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

+ 20 - 0
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html

@@ -239,6 +239,7 @@
239 239
             <li itemtype="1" itemtype="1">交办信息</li>
240 240
             <li itemtype="1" itemtype="1">监察意见</li>
241 241
             <li itemtype="2" itemtype="2">领导批示</li>
242
+            <li itemtype="2" itemtype="2">回退信息</li>
242 243
             <li itemtype="3" itemtype="3">办理情况</li>
243 244
             <li itemtype="3" itemtype="3">延时审核</li>
244 245
             <li itemtype="3" itemtype="3">退回审核</li>
@@ -379,6 +380,25 @@
379 380
                     </div>
380 381
                 </div>
381 382
             </div>
383
+            <!--回退信息-->
384
+			<div class="complain  DCL">
385
+				<div style="width: 100%;padding: 10px;">
386
+					<div style="text-align: center; height: ">
387
+						<table class="Table" border="" cellspacing="0" cellpadding="0">
388
+							<theard>
389
+								<tr>
390
+									<td class="text-center" style="min-width:100px;">退回人</td>
391
+									<td class="text-center" style="min-width:100px;">退回内容</td>
392
+									<td class="text-center" style="min-width:100px;">退回时间</td>
393
+									<td class="text-center authority" style="min-width:100px;">操作</td>
394
+								</tr>
395
+							</theard>
396
+							<tbody class="HTXX">
397
+							</tbody>
398
+						</table>
399
+					</div>
400
+				</div>
401
+			</div>
382 402
             <!--办理情况-->
383 403
             <div class="complain  DCL ">
384 404
                 <div style="width: 100%;padding: 10px;">