Browse Source

回访工单

miaofuhao 6 years ago
parent
commit
593e7da5bd
1 changed files with 23 additions and 5 deletions
  1. 23 5
      WebUI/CallCenterWeb.UI/CommonHtml/Back.html

+ 23 - 5
WebUI/CallCenterWeb.UI/CommonHtml/Back.html

@@ -146,11 +146,29 @@
146 146
 			
147 147
 			//结案
148 148
 			function Closure(){
149
-				JA();
150
-				var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
151
-				console.log(index);
152
-				parent.layer.close(index); //再执行关闭
153
-				parent.Lawsuit(wid);
149
+				$.post(huayi.config.callcenter_url + 'WorkOrder/VisitWorkOrder', {
150
+					workorderid: wid,
151
+					visituser:$("#visituser").val(),//回访人
152
+					result:$("#result").val(),//回访内容
153
+					type:$("#type").val(),
154
+					issatisfie:$(' input[name="huifang"]:checked ').val(),
155
+					state: State,
156
+					visitid:a,
157
+					token: $.cookie("token")
158
+				}, function(result) {
159
+					result = JSON.parse(result);
160
+					if(result.state.toLowerCase() == "success") {
161
+						var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
162
+						console.log(index);
163
+						parent.layer.close(index); //再执行关闭
164
+						parent.layer.msg("操作成功");
165
+						parent.load();
166
+						parent.Lawsuit(wid);
167
+					}
168
+				})
169
+				
170
+				
171
+				
154 172
 			}
155 173
 			
156 174
 			//草稿详情