|
|
@@ -1,355 +1,380 @@
|
|
1
|
1
|
<!DOCTYPE html>
|
|
2
|
2
|
<html>
|
|
3
|
|
- <head>
|
|
4
|
|
- <meta charset="UTF-8">
|
|
|
3
|
+
|
|
|
4
|
+<head>
|
|
|
5
|
+ <meta charset="UTF-8">
|
|
5
|
6
|
<script src="../Script/Common/huayi.load.js"></script>
|
|
6
|
7
|
<script src="../Script/Common/huayi.config.js"></script>
|
|
7
|
8
|
<link rel="stylesheet" href="../css/init.css" />
|
|
8
|
9
|
<title>工单审核</title>
|
|
9
|
10
|
<style type="text/css">
|
|
10
|
|
- #msg1,
|
|
11
|
|
- #msg2,
|
|
12
|
|
- #msg3,
|
|
13
|
|
- #phone{
|
|
14
|
|
- border:none;
|
|
15
|
|
- border-bottom: 1px solid #ccc;
|
|
16
|
|
- margin-bottom: 20px;
|
|
17
|
|
- background-color: #FFFFFF;
|
|
18
|
|
- color: #00a1cb;
|
|
19
|
|
- }
|
|
20
|
|
- #msg4{
|
|
21
|
|
- width: 250px;
|
|
22
|
|
- height: 50px;
|
|
23
|
|
- border: none;
|
|
24
|
|
- border-bottom: 1px solid #ccc;
|
|
25
|
|
- margin-bottom: 20px;
|
|
26
|
|
- vertical-align: top;
|
|
27
|
|
- }
|
|
28
|
|
- #msg2{
|
|
29
|
|
- vertical-align: top;
|
|
30
|
|
- height: 25px;
|
|
31
|
|
- }
|
|
32
|
|
- #msg1:focus,
|
|
33
|
|
- #msg2:focus,
|
|
34
|
|
- #msg3:focus,
|
|
35
|
|
- #msg4:focus,
|
|
36
|
|
- #phone:focus{
|
|
37
|
|
- outline: none;
|
|
38
|
|
- }
|
|
|
11
|
+ #msg1,
|
|
|
12
|
+ #msg2,
|
|
|
13
|
+ #msg3,
|
|
|
14
|
+ #phone {
|
|
|
15
|
+ border: none;
|
|
|
16
|
+ border-bottom: 1px solid #ccc;
|
|
|
17
|
+ margin-bottom: 20px;
|
|
|
18
|
+ background-color: #FFFFFF;
|
|
|
19
|
+ color: #00a1cb;
|
|
|
20
|
+ }
|
|
|
21
|
+
|
|
|
22
|
+ #msg4 {
|
|
|
23
|
+ width: 250px;
|
|
|
24
|
+ height: 50px;
|
|
|
25
|
+ border: none;
|
|
|
26
|
+ border-bottom: 1px solid #ccc;
|
|
|
27
|
+ margin-bottom: 20px;
|
|
|
28
|
+ vertical-align: top;
|
|
|
29
|
+ }
|
|
|
30
|
+
|
|
|
31
|
+ #msg2 {
|
|
|
32
|
+ vertical-align: top;
|
|
|
33
|
+ height: 25px;
|
|
|
34
|
+ }
|
|
|
35
|
+
|
|
|
36
|
+ #msg1:focus,
|
|
|
37
|
+ #msg2:focus,
|
|
|
38
|
+ #msg3:focus,
|
|
|
39
|
+ #msg4:focus,
|
|
|
40
|
+ #phone:focus {
|
|
|
41
|
+ outline: none;
|
|
|
42
|
+ }
|
|
39
|
43
|
</style>
|
|
40
|
|
- </head>
|
|
41
|
|
- <body>
|
|
42
|
|
- <div class="Common">
|
|
43
|
|
- <table >
|
|
44
|
|
- <tr>
|
|
45
|
|
- <th>
|
|
46
|
|
- 来电号码:
|
|
47
|
|
- </th>
|
|
48
|
|
- <td><a class="CallOut" id="CallOut"><span class="F_CusPhone"></span><img class="cupImg" style="vertical-align: text-bottom;margin-left: 5px;" src="../img/Phones.png" /></a></td>
|
|
49
|
|
- <!-- <th>
|
|
|
44
|
+</head>
|
|
|
45
|
+
|
|
|
46
|
+<body>
|
|
|
47
|
+ <div class="Common">
|
|
|
48
|
+ <table>
|
|
|
49
|
+ <tr>
|
|
|
50
|
+ <th>
|
|
|
51
|
+ 来电号码:
|
|
|
52
|
+ </th>
|
|
|
53
|
+ <td><a class="CallOut" id="CallOut"><span class="F_CusPhone"></span><img class="cupImg"
|
|
|
54
|
+ style="vertical-align: text-bottom;margin-left: 5px;" src="../img/Phones.png" /></a></td>
|
|
|
55
|
+ <!-- <th>
|
|
50
|
56
|
联系号码:
|
|
51
|
57
|
</th>
|
|
52
|
58
|
<td><a class="CallOut1" id="CallOut1"><span class="F_ConPhone"></span><img class="copImg" style="vertical-align: text-bottom;margin-left: 5px;" src="../img/Phones.png" /></a></td>
|
|
53
|
59
|
-->
|
|
54
|
|
- </tr>
|
|
55
|
|
- <tr>
|
|
56
|
|
- <th class="Importent">
|
|
57
|
|
- 审核人:
|
|
58
|
|
- </th>
|
|
59
|
|
- <td><input type="text" id="visituser"/></td>
|
|
60
|
|
- <th>
|
|
61
|
|
- 审核方式:
|
|
62
|
|
- </th>
|
|
63
|
|
- <td>
|
|
64
|
|
-
|
|
65
|
|
-
|
|
66
|
|
- <select class="select_" id="type">
|
|
67
|
|
- <option value="0">电话</option>
|
|
68
|
|
- <option value="1">微信</option>
|
|
69
|
|
- <option value="2">APP</option>
|
|
70
|
|
- <option value="3">网站</option>
|
|
71
|
|
- <option value="4">微博</option>
|
|
72
|
|
- <option value="5">信箱</option>
|
|
73
|
|
- </select>
|
|
74
|
|
- </td>
|
|
75
|
|
- </tr>
|
|
76
|
|
- <tr>
|
|
77
|
|
- <th class="Importent">审核结果:</th>
|
|
78
|
|
- <td>
|
|
79
|
|
- <input checked="true" type="radio" value="1" name="huifang" />满意
|
|
80
|
|
- <input type="radio" value="0" name="huifang"/>不满意
|
|
81
|
|
-
|
|
82
|
|
- </td>
|
|
83
|
|
- </tr>
|
|
84
|
|
- <tr>
|
|
85
|
|
- <th class="Importent">审核内容:</th>
|
|
86
|
|
- <td colspan="7"><textarea data-adaptheight id="result" name="" rows="" cols=""></textarea></td>
|
|
87
|
|
- </tr>
|
|
88
|
|
- <tr>
|
|
89
|
|
- <th class="Importent">重办原因:</th>
|
|
90
|
|
- <td colspan="7"><textarea data-adaptheight id="replace" name="" rows="" cols=""></textarea></td>
|
|
91
|
|
- </tr>
|
|
92
|
|
- </table>
|
|
93
|
|
- <!-- <div class="" style="margin: 20px 0 0 0;">
|
|
|
60
|
+ </tr>
|
|
|
61
|
+ <tr>
|
|
|
62
|
+ <th class="Importent">
|
|
|
63
|
+ 审核人:
|
|
|
64
|
+ </th>
|
|
|
65
|
+ <td><input type="text" id="visituser" /></td>
|
|
|
66
|
+ <th>
|
|
|
67
|
+ 审核方式:
|
|
|
68
|
+ </th>
|
|
|
69
|
+ <td>
|
|
|
70
|
+ <select class="select_" id="type">
|
|
|
71
|
+ <option value="0">电话</option>
|
|
|
72
|
+ <option value="1">微信</option>
|
|
|
73
|
+ <option value="2">APP</option>
|
|
|
74
|
+ <option value="3">网站</option>
|
|
|
75
|
+ <option value="4">微博</option>
|
|
|
76
|
+ <option value="5">信箱</option>
|
|
|
77
|
+ </select>
|
|
|
78
|
+ </td>
|
|
|
79
|
+ </tr>
|
|
|
80
|
+ <tr>
|
|
|
81
|
+ <th class="Importent">审核结果:</th>
|
|
|
82
|
+ <td>
|
|
|
83
|
+ <input checked="true" type="radio" value="1" name="huifang" />满意
|
|
|
84
|
+ <input type="radio" value="0" name="huifang" />不满意
|
|
|
85
|
+
|
|
|
86
|
+ </td>
|
|
|
87
|
+ </tr>
|
|
|
88
|
+ <tr>
|
|
|
89
|
+ <th class="Importent">审核内容:</th>
|
|
|
90
|
+ <td colspan="7"><textarea data-adaptheight id="result" name="" rows="" cols=""></textarea></td>
|
|
|
91
|
+ </tr>
|
|
|
92
|
+ <tr>
|
|
|
93
|
+ <th class="Importent">重办原因:</th>
|
|
|
94
|
+ <td colspan="7"><textarea data-adaptheight id="replace" name="" rows="" cols=""></textarea></td>
|
|
|
95
|
+ </tr>
|
|
|
96
|
+ </table>
|
|
|
97
|
+ <!-- <div class="" style="margin: 20px 0 0 0;">
|
|
94
|
98
|
尊敬的市民,您于<input id="msg1" type="text" disabled/>反映的<textarea id="msg2" type="text" ></textarea>问题,工单号:<input id="msg3" type="text" disabled/>,<br />
|
|
95
|
99
|
处理结果如下:<textarea id="msg4" type="text"></textarea>如有异议,请您再次致电12345,感谢您的支持。<br />
|
|
96
|
100
|
通知号码:<input id="phone" type="text"/>
|
|
97
|
101
|
<button class="btns sendMsg">发送短信</button>
|
|
98
|
102
|
</div> -->
|
|
99
|
|
- <div class="btn_box">
|
|
100
|
|
- <input type="hidden" id="F_guid" value="" />
|
|
101
|
|
- <!-- <button class="btns BC">保存</button>
|
|
|
103
|
+ <div class="btn_box">
|
|
|
104
|
+ <input type="hidden" id="F_guid" value="" />
|
|
|
105
|
+ <!-- <button class="btns BC">保存</button>
|
|
102
|
106
|
<button class="btns Submit">保存并提交</button> -->
|
|
103
|
|
- <button class="btns CB">提交重办</button>
|
|
104
|
|
- <button class="btns Closure">结案</button>
|
|
105
|
|
- </div>
|
|
106
|
|
- </div>
|
|
107
|
|
-
|
|
108
|
|
- <!--<script src="../js/main.js?v=1.5"></script>-->
|
|
109
|
|
- <script src="../js/adjustHeight.js"></script>
|
|
110
|
|
- <script src="../js/guid.js"></script>
|
|
111
|
|
- <script>
|
|
112
|
|
- var wid = helper.request.queryString("wid");
|
|
113
|
|
- var State;
|
|
114
|
|
- var a = $("#ID").val()
|
|
115
|
|
- loadTEL();
|
|
116
|
|
- Detail();
|
|
117
|
|
- $(document).ready(function() {
|
|
118
|
|
- $('.BC').click(function() {
|
|
119
|
|
- State = 0;
|
|
120
|
|
- JA();
|
|
121
|
|
- });
|
|
122
|
|
- $('.Closure').click(function() {
|
|
123
|
|
- State = 1;
|
|
124
|
|
- Closure();
|
|
125
|
|
- });
|
|
126
|
|
- $('.CB').click(function() {
|
|
127
|
|
- State = 1;
|
|
128
|
|
- CB();
|
|
129
|
|
- })
|
|
130
|
|
- $('.Submit').click(function() {
|
|
131
|
|
- State = 1;
|
|
132
|
|
- JA();
|
|
133
|
|
- })
|
|
134
|
|
- $(".CallOut").click(function (event) {
|
|
135
|
|
- if ($(".F_CusPhone").text()) {
|
|
136
|
|
- calloutopt($(".F_CusPhone").text());
|
|
137
|
|
- }
|
|
138
|
|
- });
|
|
139
|
|
- $(".CallOut1").click(function (event) {
|
|
140
|
|
- if ($(".F_ConPhone").text()) {
|
|
141
|
|
- calloutopt($(".F_ConPhone").text());
|
|
142
|
|
- }
|
|
143
|
|
- });
|
|
144
|
|
- });
|
|
145
|
|
- //重办
|
|
146
|
|
- function CB() {
|
|
147
|
|
- if($('#replace').val()==''){
|
|
148
|
|
- layer.msg("请输入重办原因");
|
|
149
|
|
- return;
|
|
150
|
|
- }
|
|
151
|
|
- $.post(huayi.config.callcenter_url + 'WorkOrder/VisitWorkOrder', {
|
|
152
|
|
- workorderid: wid,
|
|
153
|
|
- visituser:$("#visituser").val(),//审核人
|
|
154
|
|
- nexttype:1,
|
|
155
|
|
- result:$("#result").val(),//审核内容
|
|
156
|
|
- type:$("#type").val(),
|
|
157
|
|
- cbreason:$('#replace').val(),//重办原因
|
|
158
|
|
- issatisfie:$(' input[name="huifang"]:checked ').val(),
|
|
159
|
|
- state: State,
|
|
160
|
|
- visitid:a,
|
|
161
|
|
- token: $.cookie("token")
|
|
162
|
|
- }, function(result) {
|
|
163
|
|
- result = JSON.parse(result);
|
|
164
|
|
- if(result.state.toLowerCase() == "success") {
|
|
165
|
|
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
166
|
|
- console.log(index);
|
|
167
|
|
- parent.layer.close(index); //再执行关闭
|
|
168
|
|
- parent.$('#orderlist').bootstrapTable('refresh');
|
|
169
|
|
- parent.layer.msg("操作成功");
|
|
170
|
|
- }
|
|
171
|
|
- })
|
|
172
|
|
- }
|
|
173
|
|
- //审核
|
|
174
|
|
- function JA() {
|
|
175
|
|
- $.post(huayi.config.callcenter_url + 'WorkOrder/VisitWorkOrder', {
|
|
176
|
|
- workorderid: wid,
|
|
177
|
|
- visituser:$("#visituser").val(),//审核人
|
|
178
|
|
- result:$("#result").val(),//审核内容
|
|
179
|
|
- type:$("#type").val(),
|
|
180
|
|
- issatisfie:$(' input[name="huifang"]:checked ').val(),
|
|
181
|
|
- state: State,
|
|
182
|
|
- visitid:a,
|
|
183
|
|
- token: $.cookie("token")
|
|
184
|
|
- }, function(result) {
|
|
185
|
|
- result = JSON.parse(result);
|
|
186
|
|
- if(result.state.toLowerCase() == "success") {
|
|
|
107
|
+ <button class="btns CB">提交重办</button>
|
|
|
108
|
+ <button class="btns Transfer">已办未果</button>
|
|
|
109
|
+ <button class="btns Closure">结案</button>
|
|
|
110
|
+ </div>
|
|
|
111
|
+ </div>
|
|
|
112
|
+
|
|
|
113
|
+ <!--<script src="../js/main.js?v=1.5"></script>-->
|
|
|
114
|
+ <script src="../js/adjustHeight.js"></script>
|
|
|
115
|
+ <script src="../js/guid.js"></script>
|
|
|
116
|
+ <script>
|
|
|
117
|
+ var wid = helper.request.queryString("wid");
|
|
|
118
|
+ var State;
|
|
|
119
|
+ var a = $("#ID").val()
|
|
|
120
|
+ loadTEL();
|
|
|
121
|
+ Detail();
|
|
|
122
|
+ $(document).ready(function () {
|
|
|
123
|
+ $('.BC').click(function () {
|
|
|
124
|
+ State = 0;
|
|
|
125
|
+ JA();
|
|
|
126
|
+ });
|
|
|
127
|
+ $('.Closure').click(function () {
|
|
|
128
|
+ State = 1;
|
|
|
129
|
+ Closure();
|
|
|
130
|
+ });
|
|
|
131
|
+ $('.CB').click(function () {
|
|
|
132
|
+ State = 1;
|
|
|
133
|
+ CB();
|
|
|
134
|
+ })
|
|
|
135
|
+ $('.Transfer').click(function () {
|
|
|
136
|
+ Transfer();
|
|
|
137
|
+ })
|
|
|
138
|
+ $('.Submit').click(function () {
|
|
|
139
|
+ State = 1;
|
|
|
140
|
+ JA();
|
|
|
141
|
+ })
|
|
|
142
|
+ $(".CallOut").click(function (event) {
|
|
|
143
|
+ if ($(".F_CusPhone").text()) {
|
|
|
144
|
+ calloutopt($(".F_CusPhone").text());
|
|
|
145
|
+ }
|
|
|
146
|
+ });
|
|
|
147
|
+ $(".CallOut1").click(function (event) {
|
|
|
148
|
+ if ($(".F_ConPhone").text()) {
|
|
|
149
|
+ calloutopt($(".F_ConPhone").text());
|
|
|
150
|
+ }
|
|
|
151
|
+ });
|
|
|
152
|
+ });
|
|
|
153
|
+ //重办
|
|
|
154
|
+ function CB() {
|
|
|
155
|
+ if ($('#replace').val() == '') {
|
|
|
156
|
+ layer.msg("请输入重办原因");
|
|
|
157
|
+ return;
|
|
|
158
|
+ }
|
|
|
159
|
+ $.post(huayi.config.callcenter_url + 'WorkOrder/VisitWorkOrder', {
|
|
|
160
|
+ workorderid: wid,
|
|
|
161
|
+ visituser: $("#visituser").val(), //审核人
|
|
|
162
|
+ nexttype: 1,
|
|
|
163
|
+ result: $("#result").val(), //审核内容
|
|
|
164
|
+ type: $("#type").val(),
|
|
|
165
|
+ cbreason: $('#replace').val(), //重办原因
|
|
|
166
|
+ issatisfie: $(' input[name="huifang"]:checked ').val(),
|
|
|
167
|
+ state: State,
|
|
|
168
|
+ visitid: a,
|
|
|
169
|
+ token: $.cookie("token")
|
|
|
170
|
+ }, function (result) {
|
|
|
171
|
+ result = JSON.parse(result);
|
|
|
172
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
173
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
174
|
+ console.log(index);
|
|
|
175
|
+ parent.layer.close(index); //再执行关闭
|
|
|
176
|
+ parent.$('#orderlist').bootstrapTable('refresh');
|
|
|
177
|
+ parent.layer.msg("操作成功");
|
|
|
178
|
+ }
|
|
|
179
|
+ })
|
|
|
180
|
+ }
|
|
|
181
|
+
|
|
|
182
|
+ function Transfer() {
|
|
|
183
|
+ $.post(huayi.config.callcenter_url + 'WorkOrder/Transfer', {
|
|
|
184
|
+ workorderid: wid,
|
|
|
185
|
+
|
|
|
186
|
+ token: $.cookie("token")
|
|
|
187
|
+ }, function (result) {
|
|
|
188
|
+ result = JSON.parse(result);
|
|
|
189
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
190
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
191
|
+ console.log(index);
|
|
|
192
|
+ parent.layer.close(index); //再执行关闭
|
|
|
193
|
+ parent.$('#orderlist').bootstrapTable('refresh');
|
|
|
194
|
+ parent.layer.msg("操作成功");
|
|
|
195
|
+ }
|
|
|
196
|
+ })
|
|
|
197
|
+ }
|
|
|
198
|
+
|
|
|
199
|
+ //审核
|
|
|
200
|
+ function JA() {
|
|
|
201
|
+ $.post(huayi.config.callcenter_url + 'WorkOrder/VisitWorkOrder', {
|
|
|
202
|
+ workorderid: wid,
|
|
|
203
|
+ visituser: $("#visituser").val(), //审核人
|
|
|
204
|
+ result: $("#result").val(), //审核内容
|
|
|
205
|
+ type: $("#type").val(),
|
|
|
206
|
+ issatisfie: $(' input[name="huifang"]:checked ').val(),
|
|
|
207
|
+ state: State,
|
|
|
208
|
+ visitid: a,
|
|
|
209
|
+ token: $.cookie("token")
|
|
|
210
|
+ }, function (result) {
|
|
|
211
|
+ result = JSON.parse(result);
|
|
|
212
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
213
|
+
|
|
|
214
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
215
|
+ console.log(index);
|
|
|
216
|
+ parent.layer.close(index); //再执行关闭
|
|
|
217
|
+ parent.parent.$('#orderlist').bootstrapTable('refresh');
|
|
|
218
|
+ parent.layer.msg("操作成功");
|
|
|
219
|
+ parent.closePage();
|
|
|
220
|
+ }
|
|
|
221
|
+ })
|
|
|
222
|
+ }
|
|
|
223
|
+ //发送短信
|
|
|
224
|
+ $('.sendMsg').click(function () {
|
|
|
225
|
+ if (!$('#msg4').val()) {
|
|
|
226
|
+ layer.msg('请填写结果')
|
|
|
227
|
+ return
|
|
|
228
|
+ }
|
|
|
229
|
+ if (!$('#phone').val()) {
|
|
|
230
|
+ layer.msg('请填写通知号码')
|
|
|
231
|
+ return
|
|
|
232
|
+ }
|
|
|
233
|
+ $.ajax({
|
|
|
234
|
+ type: "post",
|
|
|
235
|
+ url: huayi.config.callcenter_url + 'WorkOrder/SmsHand',
|
|
|
236
|
+ async: true,
|
|
|
237
|
+ data: {
|
|
|
238
|
+ msg1: $('#msg1').val(),
|
|
|
239
|
+ msg2: $('#msg2').val(),
|
|
|
240
|
+ msg3: $('#msg3').val(),
|
|
|
241
|
+ msg4: $('#msg4').val(),
|
|
|
242
|
+ mobile: $('#phone').val(),
|
|
|
243
|
+ token: $.cookie("token")
|
|
|
244
|
+ },
|
|
|
245
|
+ success: function (res) {
|
|
|
246
|
+ res = JSON.parse(res)
|
|
|
247
|
+ if (res.state.toLowerCase() == 'success') {
|
|
|
248
|
+ layer.msg('短信发送成功')
|
|
|
249
|
+ } else {
|
|
|
250
|
+ layer.msg('短信发送失败')
|
|
|
251
|
+ }
|
|
|
252
|
+ }
|
|
|
253
|
+ });
|
|
|
254
|
+ })
|
|
|
255
|
+ //结案
|
|
|
256
|
+ function Closure() {
|
|
|
257
|
+ $.post(huayi.config.callcenter_url + 'WorkOrder/VisitWorkOrder', {
|
|
|
258
|
+ workorderid: wid,
|
|
|
259
|
+ visituser: $("#visituser").val(), //审核人
|
|
|
260
|
+ result: $("#result").val(), //审核内容
|
|
|
261
|
+ type: $("#type").val(),
|
|
|
262
|
+ issatisfie: $(' input[name="huifang"]:checked ').val(),
|
|
|
263
|
+ state: State,
|
|
|
264
|
+ visitid: a,
|
|
|
265
|
+ token: $.cookie("token")
|
|
|
266
|
+ }, function (result) {
|
|
|
267
|
+ result = JSON.parse(result);
|
|
|
268
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
269
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
270
|
+ console.log(index);
|
|
|
271
|
+ parent.layer.close(index); //再执行关闭
|
|
|
272
|
+ parent.layer.msg("操作成功");
|
|
|
273
|
+ parent.$('#orderlist').bootstrapTable('refresh');
|
|
|
274
|
+ // parent.Lawsuit(wid);
|
|
|
275
|
+ }
|
|
|
276
|
+ })
|
|
|
277
|
+
|
|
|
278
|
+
|
|
|
279
|
+
|
|
|
280
|
+ }
|
|
|
281
|
+
|
|
|
282
|
+ //草稿详情
|
|
|
283
|
+ function Detail() {
|
|
|
284
|
+ $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetDraftInfo', {
|
|
|
285
|
+ workorderid: wid,
|
|
|
286
|
+ type: 3,
|
|
|
287
|
+ token: $.cookie("token")
|
|
|
288
|
+ }, function (result) {
|
|
|
289
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
290
|
+ if (result.data.length > 0) {
|
|
|
291
|
+ $("#visituser").val(result.data[0].F_VisitUser);
|
|
|
292
|
+ $("#issatisfie").val(result.data[0].F_IsSatisfie);
|
|
|
293
|
+ $("#type").val(result.data[0].F_Type);
|
|
|
294
|
+ $("#result").val(result.data[0].F_Result);
|
|
|
295
|
+ }
|
|
|
296
|
+
|
|
|
297
|
+
|
|
|
298
|
+ console.log(result);
|
|
|
299
|
+
|
|
|
300
|
+ }
|
|
|
301
|
+ })
|
|
|
302
|
+ }
|
|
|
303
|
+ //加载用户电话
|
|
|
304
|
+ function loadTEL() {
|
|
|
305
|
+ $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
|
|
|
306
|
+ workorderid: wid,
|
|
|
307
|
+ "token": $.cookie("token")
|
|
|
308
|
+ }, function (result) {
|
|
|
309
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
310
|
+ var Data = result.data.data;
|
|
|
311
|
+ $('#msg3').val(Data[0].F_WorkOrderId)
|
|
|
312
|
+ $('#msg1').val(Data[0].F_CreateTime)
|
|
|
313
|
+ $('#msg2').text(Data[0].F_ComTitle)
|
|
|
314
|
+ $('#msg4').val(result.data.bldata && result.data.bldata[result.data.bldata.length - 1]
|
|
|
315
|
+ .F_Situation)
|
|
|
316
|
+ if (Data[0].F_CusPhone) {
|
|
|
317
|
+ $(".F_CusPhone").text(Data[0].F_CusPhone);
|
|
|
318
|
+ $('.cupImg').css('display', 'inline-block')
|
|
|
319
|
+ } else {
|
|
|
320
|
+ $(".F_CusPhone").css('display', 'none');
|
|
|
321
|
+ $('.cupImg').css('display', 'none');
|
|
|
322
|
+ }
|
|
|
323
|
+ if (Data[0].F_ConPhone) {
|
|
|
324
|
+ $(".F_ConPhone").text(Data[0].F_ConPhone);
|
|
|
325
|
+ $('.copImg').css('display', 'inline-block')
|
|
|
326
|
+ } else {
|
|
|
327
|
+ $(".F_ConPhone").css('display', 'none');
|
|
|
328
|
+ $('.copImg').css('display', 'none');
|
|
|
329
|
+ }
|
|
|
330
|
+ }
|
|
|
331
|
+ })
|
|
|
332
|
+ }
|
|
187
|
333
|
|
|
188
|
|
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
189
|
|
- console.log(index);
|
|
190
|
|
- parent.layer.close(index); //再执行关闭
|
|
191
|
|
- parent.parent.$('#orderlist').bootstrapTable('refresh');
|
|
192
|
|
- parent.layer.msg("操作成功");
|
|
193
|
|
- parent.closePage();
|
|
194
|
|
- }
|
|
195
|
|
- })
|
|
196
|
|
- }
|
|
197
|
|
- //发送短信
|
|
198
|
|
- $('.sendMsg').click(function(){
|
|
199
|
|
- if(!$('#msg4').val()){
|
|
200
|
|
- layer.msg('请填写结果')
|
|
201
|
|
- return
|
|
202
|
|
- }
|
|
203
|
|
- if(!$('#phone').val()){
|
|
204
|
|
- layer.msg('请填写通知号码')
|
|
205
|
|
- return
|
|
206
|
|
- }
|
|
207
|
|
- $.ajax({
|
|
208
|
|
- type:"post",
|
|
209
|
|
- url:huayi.config.callcenter_url+'WorkOrder/SmsHand',
|
|
210
|
|
- async:true,
|
|
211
|
|
- data:{
|
|
212
|
|
- msg1:$('#msg1').val(),
|
|
213
|
|
- msg2:$('#msg2').val(),
|
|
214
|
|
- msg3:$('#msg3').val(),
|
|
215
|
|
- msg4:$('#msg4').val(),
|
|
216
|
|
- mobile:$('#phone').val(),
|
|
217
|
|
- token: $.cookie("token")
|
|
218
|
|
- },
|
|
219
|
|
- success:function(res){
|
|
220
|
|
- res=JSON.parse(res)
|
|
221
|
|
- if(res.state.toLowerCase()=='success'){
|
|
222
|
|
- layer.msg('短信发送成功')
|
|
223
|
|
- }else{
|
|
224
|
|
- layer.msg('短信发送失败')
|
|
225
|
|
- }
|
|
226
|
|
- }
|
|
227
|
|
- });
|
|
228
|
|
- })
|
|
229
|
|
- //结案
|
|
230
|
|
- function Closure(){
|
|
231
|
|
- $.post(huayi.config.callcenter_url + 'WorkOrder/VisitWorkOrder', {
|
|
232
|
|
- workorderid: wid,
|
|
233
|
|
- visituser:$("#visituser").val(),//审核人
|
|
234
|
|
- result:$("#result").val(),//审核内容
|
|
235
|
|
- type:$("#type").val(),
|
|
236
|
|
- issatisfie:$(' input[name="huifang"]:checked ').val(),
|
|
237
|
|
- state: State,
|
|
238
|
|
- visitid:a,
|
|
239
|
|
- token: $.cookie("token")
|
|
240
|
|
- }, function(result) {
|
|
241
|
|
- result = JSON.parse(result);
|
|
242
|
|
- if(result.state.toLowerCase() == "success") {
|
|
243
|
|
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
244
|
|
- console.log(index);
|
|
245
|
|
- parent.layer.close(index); //再执行关闭
|
|
246
|
|
- parent.layer.msg("操作成功");
|
|
247
|
|
- parent.$('#orderlist').bootstrapTable('refresh');
|
|
248
|
|
- // parent.Lawsuit(wid);
|
|
249
|
|
- }
|
|
250
|
|
- })
|
|
251
|
|
-
|
|
252
|
|
-
|
|
253
|
|
-
|
|
254
|
|
- }
|
|
255
|
|
-
|
|
256
|
|
- //草稿详情
|
|
257
|
|
- function Detail() {
|
|
258
|
|
- $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetDraftInfo', {
|
|
259
|
|
- workorderid: wid,
|
|
260
|
|
- type: 3,
|
|
261
|
|
- token: $.cookie("token")
|
|
262
|
|
- }, function(result) {
|
|
263
|
|
- if(result.state.toLowerCase() == "success") {
|
|
264
|
|
- if(result.data.length>0){
|
|
265
|
|
- $("#visituser").val(result.data[0].F_VisitUser);
|
|
266
|
|
- $("#issatisfie").val(result.data[0].F_IsSatisfie);
|
|
267
|
|
- $("#type").val(result.data[0].F_Type);
|
|
268
|
|
- $("#result").val(result.data[0].F_Result);
|
|
269
|
|
- }
|
|
270
|
|
-
|
|
271
|
|
-
|
|
272
|
|
- console.log(result);
|
|
|
334
|
+ function calloutopt(telphone) {
|
|
|
335
|
+ $.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
|
|
|
336
|
+ "token": $.cookie("token")
|
|
|
337
|
+ }, function (result) {
|
|
|
338
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
339
|
+ if (result.data.user.F_SeatFlag) { //判断是否话务人员
|
|
|
340
|
+ if ($.cookie("extno")) { //判断是否登录分机号
|
|
|
341
|
+ event.stopPropagation();
|
|
|
342
|
+ if (telphone) {
|
|
|
343
|
+ $.ajax({
|
|
|
344
|
+ type: "get",
|
|
|
345
|
+ url: huayi.config.callcenter_url + "CallOutOpt/GetCallOutprefix",
|
|
|
346
|
+ async: true,
|
|
|
347
|
+ dataType: 'json',
|
|
|
348
|
+ data: {
|
|
|
349
|
+ token: $.cookie("token"),
|
|
|
350
|
+ phone: telphone
|
|
|
351
|
+ },
|
|
|
352
|
+ success: function (result) {
|
|
|
353
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
354
|
+ var guid = uuid();
|
|
|
355
|
+ $("#F_guid").val(guid);
|
|
|
356
|
+ top.obj.Type = "MakeCall";
|
|
|
357
|
+ top.obj.DestinationNumber = result.data.phone;
|
|
|
358
|
+ top.obj.Header = result.data.fix;
|
|
|
359
|
+ top.obj.TaskType = "2"; //0:拨号外呼;1:未接来电外呼;2:审核外呼
|
|
|
360
|
+ top.obj.TaskPhoneID = wid; //审核的工单ID
|
|
|
361
|
+ top.obj.TaskID = guid; //审核记录编号
|
|
|
362
|
+ top.Send();
|
|
|
363
|
+ }
|
|
273
|
364
|
|
|
274
|
|
- }
|
|
275
|
|
- })
|
|
276
|
|
- }
|
|
277
|
|
- //加载用户电话
|
|
278
|
|
- function loadTEL() {
|
|
279
|
|
- $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
|
|
280
|
|
- workorderid: wid,
|
|
281
|
|
- "token": $.cookie("token")
|
|
282
|
|
- }, function (result) {
|
|
283
|
|
- if (result.state.toLowerCase() == "success") {
|
|
284
|
|
- var Data = result.data.data;
|
|
285
|
|
- $('#msg3').val(Data[0].F_WorkOrderId)
|
|
286
|
|
- $('#msg1').val(Data[0].F_CreateTime)
|
|
287
|
|
- $('#msg2').text(Data[0].F_ComTitle)
|
|
288
|
|
- $('#msg4').val(result.data.bldata && result.data.bldata[result.data.bldata.length-1].F_Situation)
|
|
289
|
|
- if(Data[0].F_CusPhone){
|
|
290
|
|
- $(".F_CusPhone").text(Data[0].F_CusPhone);
|
|
291
|
|
- $('.cupImg').css('display','inline-block')
|
|
292
|
|
- }else{
|
|
293
|
|
- $(".F_CusPhone").css('display','none');
|
|
294
|
|
- $('.cupImg').css('display','none');
|
|
295
|
|
- }
|
|
296
|
|
- if(Data[0].F_ConPhone){
|
|
297
|
|
- $(".F_ConPhone").text(Data[0].F_ConPhone);
|
|
298
|
|
- $('.copImg').css('display','inline-block')
|
|
299
|
|
- }else{
|
|
300
|
|
- $(".F_ConPhone").css('display','none');
|
|
301
|
|
- $('.copImg').css('display','none');
|
|
302
|
|
- }
|
|
303
|
|
- }
|
|
304
|
|
- })
|
|
305
|
|
- }
|
|
306
|
|
- function calloutopt(telphone)
|
|
307
|
|
- {
|
|
308
|
|
- $.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
|
|
309
|
|
- "token": $.cookie("token")
|
|
310
|
|
- }, function (result) {
|
|
311
|
|
- if (result.state.toLowerCase() == "success") {
|
|
312
|
|
- if (result.data.user.F_SeatFlag) {//判断是否话务人员
|
|
313
|
|
- if ($.cookie("extno")) { //判断是否登录分机号
|
|
314
|
|
- event.stopPropagation();
|
|
315
|
|
- if (telphone) {
|
|
316
|
|
- $.ajax({
|
|
317
|
|
- type: "get",
|
|
318
|
|
- url: huayi.config.callcenter_url + "CallOutOpt/GetCallOutprefix",
|
|
319
|
|
- async: true,
|
|
320
|
|
- dataType: 'json',
|
|
321
|
|
- data: {
|
|
322
|
|
- token: $.cookie("token"),
|
|
323
|
|
- phone: telphone
|
|
324
|
|
- },
|
|
325
|
|
- success: function (result) {
|
|
326
|
|
- if (result.state.toLowerCase() == "success") {
|
|
327
|
|
- var guid = uuid();
|
|
328
|
|
- $("#F_guid").val(guid);
|
|
329
|
|
- top.obj.Type = "MakeCall";
|
|
330
|
|
- top.obj.DestinationNumber = result.data.phone;
|
|
331
|
|
- top.obj.Header = result.data.fix;
|
|
332
|
|
- top.obj.TaskType = "2"; //0:拨号外呼;1:未接来电外呼;2:审核外呼
|
|
333
|
|
- top.obj.TaskPhoneID = wid; //审核的工单ID
|
|
334
|
|
- top.obj.TaskID = guid; //审核记录编号
|
|
335
|
|
- top.Send();
|
|
336
|
|
- }
|
|
|
365
|
+ }
|
|
|
366
|
+ });
|
|
|
367
|
+ }
|
|
|
368
|
+ } else
|
|
|
369
|
+ layer.msg("未绑定分机号,不能操作回拨");
|
|
|
370
|
+ } else
|
|
|
371
|
+ layer.msg("非话务人员登录,不能操作回拨");
|
|
|
372
|
+ }
|
|
|
373
|
+ });
|
|
337
|
374
|
|
|
338
|
|
- }
|
|
339
|
|
- });
|
|
340
|
|
- }
|
|
341
|
|
- }
|
|
342
|
|
- else
|
|
343
|
|
- layer.msg("未绑定分机号,不能操作回拨");
|
|
344
|
|
- }
|
|
345
|
|
- else
|
|
346
|
|
- layer.msg("非话务人员登录,不能操作回拨");
|
|
347
|
|
- }
|
|
348
|
|
- });
|
|
349
|
375
|
|
|
350
|
|
-
|
|
351
|
|
- }
|
|
352
|
|
- </script>
|
|
353
|
|
- </body>
|
|
354
|
|
-</html>
|
|
|
376
|
+ }
|
|
|
377
|
+ </script>
|
|
|
378
|
+</body>
|
|
355
|
379
|
|
|
|
380
|
+</html>
|