liuyifan 5 years ago
parent
commit
34de423652

+ 1 - 1
WebUI/CallCenterWeb.UI/Business/appealOrder.html

@@ -65,7 +65,7 @@
65 65
 							<th data-field="F_Remark" data-align="center">申诉详情</th>
66 66
 							<th data-field="F_CreateTime" data-align="center">申诉时间</th>
67 67
 							<th data-field="F_State" data-align="center" data-formatter="formatterAppealState">申诉是否通过</th>
68
-							<!-- <th data-field="" data-align="center">操作</th> -->
68
+							<th data-field="F_Id" data-align="center" data-formatter="formatterOperation">操作</th>
69 69
 						</tr>
70 70
 					</thead>
71 71
 				</table>

+ 0 - 14
WebUI/CallCenterWeb.UI/CommonHtml/addAppealOrder.html

@@ -168,16 +168,6 @@
168 168
 							<label class="col-md-2" style="float: left;">申诉详情:</label>
169 169
 							<textarea name="" rows="" cols="" class="remark"></textarea>
170 170
 						</li>
171
-						<li class="form-group deal-with-appeal" style="display: none">
172
-							<label for="customer_layer" class="col-md-2" style="float: left;">处理申诉:</label>
173
-							<div class="col-md-9" style="width: 75%; float: left; padding: 0;">
174
-                                <select name="" class="form-control" id="dealWithappeal">
175
-									<option value="">请选择是否处理申诉</option>
176
-                                	<option value="1">是</option>
177
-                                	<option value="2">否</option>
178
-                                </select>
179
-                            </div>
180
-						</li>
181 171
 					</ul>
182 172
 					<div class="form-group clearfix" style="text-align: center;">
183 173
 						<div class="col-md-offset-5 col-md-10">
@@ -192,9 +182,6 @@
192 182
 				$(function(){
193 183
 					var id = helper.request.queryString("ids");
194 184
 					var wid = helper.request.queryString("wid")
195
-						if (wid) {
196
-							$(".deal-with-appeal").show();
197
-						}
198 185
 					 	tree();
199 186
 					    //所属分类下拉
200 187
 					    $('.inps').focus(function () {
@@ -315,7 +302,6 @@
315 302
 								noticeinfo: noticeinfo,//通报内容
316 303
 								workorderid: wid, //工单编号
317 304
 								remark: $(".remark").val(),//申诉详情
318
-								state: $("#dealWithappeal").val(),
319 305
 								"token": $.cookie("token")
320 306
 							}, function(result) {
321 307
 								result = $.parseJSON(result);

+ 64 - 0
WebUI/CallCenterWeb.UI/CommonHtml/dealWithAppeal.html

@@ -0,0 +1,64 @@
1
+<!DOCTYPE html>
2
+<html>
3
+	<head>
4
+		<meta charset="UTF-8">
5
+		<script src="../Script/Common/huayi.load.js"></script>
6
+		<script src="../Script/Common/huayi.config.js"></script>
7
+		<!--<link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />-->
8
+		<link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
9
+		<link rel="stylesheet" href="../css/init.css" />
10
+		<link rel="stylesheet" href="../css/notification/css/notifucation.css" />
11
+		<link rel="stylesheet" href="../css/notification/css/addNotifucation.css">
12
+		<title></title>
13
+		<style type="text/css">
14
+			ul li{
15
+				list-style: none;
16
+			}
17
+		</style>
18
+	</head>
19
+	<body>
20
+		<div class="container" style="margin-left: 15px;">
21
+				<div class="tab_contents" id="tab_user_contents">
22
+					<ul class="project_items form-horizontal showtabs">
23
+						<li class="form-group">
24
+							<label for="customer_layer" class="col-md-2" style="float: left;">处理申诉:</label>
25
+							<div class="col-md-9" style="width: 75%; float: left; padding: 0;">
26
+                                <select name="" class="form-control" id="dealWithappeal">
27
+									<option value="0">请选择是否处理申诉</option>
28
+                                	<option value="1">是</option>
29
+                                	<option value="2">否</option>
30
+                                </select>
31
+                            </div>
32
+						</li>
33
+					</ul>
34
+					<div class="form-group clearfix" style="text-align: center;">
35
+						<div class="col-md-offset-5 col-md-10">
36
+							<button class="project_save btn btn-primary" id="save_btns" type="submit">保存</button>
37
+						</div>
38
+					</div>
39
+				</div>
40
+			</div>
41
+			<input type="hidden" id="PID" />
42
+        	<input type="hidden" id="Dpment" />
43
+			<script type="text/javascript">
44
+				$(function(){
45
+					var id = helper.request.queryString("ids");
46
+					$('#save_btns').click(function() {
47
+						$.post(huayi.config.callcenter_url + 'Appeal/DealAppeal', {
48
+							nid:id,
49
+							state: $("#dealWithappeal").val(),
50
+							"token": $.cookie("token"),
51
+						}, function(result) {
52
+							result = $.parseJSON(result);
53
+							if(result.state.toLowerCase() == "success") {
54
+								var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
55
+								parent.layer.close(index); //再执行关闭
56
+								parent.layer.msg("处理成功!");
57
+								parent.$('#table1').bootstrapTable('refresh');
58
+							}
59
+						})
60
+					})
61
+				})
62
+			</script>
63
+	</body>
64
+</html>

+ 17 - 1
WebUI/CallCenterWeb.UI/js/notification/appealOrder.js

@@ -134,6 +134,7 @@ $(function(){
134 134
         }
135 135
     })
136 136
 
137
+
137 138
     //获取部门
138 139
     function getDepartment() {
139 140
         $.ajax({
@@ -166,4 +167,19 @@ function formatterAppealState(val, row) {
166 167
     }
167 168
 }
168 169
 
169
-    
170
+//操作
171
+function formatterOperation(val, row) {
172
+    return '<a href="javascript:;" class="deal-with" authorize="yes" id="HY_dealWith_' + row.F_Id + '" onclick="btn_dealWith(\'' + row.F_Id + '\')" title="处理">处理</a>';
173
+}
174
+
175
+//处理申诉
176
+function btn_dealWith(ids) {
177
+    did = ids.toString();
178
+    layer.open({
179
+        type: 2,
180
+        title: '处理申诉信息',
181
+        maxmin: true, //开启最大化最小化按钮
182
+        area: ['40%', '30%'],
183
+        content: '../CommonHtml/dealWithAppeal.html?ids=' + did
184
+    });
185
+}