|
|
@@ -0,0 +1,627 @@
|
|
|
1
|
+<!DOCTYPE html>
|
|
|
2
|
+<html>
|
|
|
3
|
+
|
|
|
4
|
+<head>
|
|
|
5
|
+ <meta charset="UTF-8" />
|
|
|
6
|
+ <script src="../Script/Common/huayi.load.js"></script>
|
|
|
7
|
+ <script src="../Script/Common/huayi.config.js"></script>
|
|
|
8
|
+ <link href="../css/layer/need/layer.css" />
|
|
|
9
|
+ <link rel="stylesheet" href="../css/init.css" />
|
|
|
10
|
+ <title>追加回复</title>
|
|
|
11
|
+ <style>
|
|
|
12
|
+ .input {
|
|
|
13
|
+ background-color: #fff;
|
|
|
14
|
+ background-image: none;
|
|
|
15
|
+ border: 1px solid #ccc;
|
|
|
16
|
+ border-radius: 1px;
|
|
|
17
|
+ color: inherit;
|
|
|
18
|
+ padding: 6px 12px;
|
|
|
19
|
+ }
|
|
|
20
|
+
|
|
|
21
|
+ .fjnr {
|
|
|
22
|
+ padding: 0 !important;
|
|
|
23
|
+ border: none !important;
|
|
|
24
|
+ }
|
|
|
25
|
+ </style>
|
|
|
26
|
+</head>
|
|
|
27
|
+
|
|
|
28
|
+<body>
|
|
|
29
|
+ <div class="Common">
|
|
|
30
|
+ <table>
|
|
|
31
|
+ <tr>
|
|
|
32
|
+ <th class="Importent">承办人:</th>
|
|
|
33
|
+ <td>
|
|
|
34
|
+ <input id="dealman" list="dealmanList" type="text" style="height: 32px" autocomplete="off" />
|
|
|
35
|
+ <datalist id="dealmanList">
|
|
|
36
|
+ </datalist>
|
|
|
37
|
+ </td>
|
|
|
38
|
+ <th class="Importent">职务:</th>
|
|
|
39
|
+ <td>
|
|
|
40
|
+ <input type="text" id="duties" />
|
|
|
41
|
+ </td>
|
|
|
42
|
+ <th class="Importent">联系方式:</th>
|
|
|
43
|
+ <td>
|
|
|
44
|
+ <input type="text" id="dealcontact" />
|
|
|
45
|
+ </td>
|
|
|
46
|
+ </tr>
|
|
|
47
|
+ <tr>
|
|
|
48
|
+ <th class="Importent">审核领导:</th>
|
|
|
49
|
+ <td>
|
|
|
50
|
+ <input type="text" id="auditUser" />
|
|
|
51
|
+ </td>
|
|
|
52
|
+ <th class="Importent">职务:</th>
|
|
|
53
|
+ <td>
|
|
|
54
|
+ <input type="text" id="auditUserDuties" />
|
|
|
55
|
+ </td>
|
|
|
56
|
+ <th class="Importent">联系方式:</th>
|
|
|
57
|
+ <td>
|
|
|
58
|
+ <input type="text" id="auditContact" />
|
|
|
59
|
+ </td>
|
|
|
60
|
+ </tr>
|
|
|
61
|
+ <tr>
|
|
|
62
|
+ <th class="Importent">办理结果:</th>
|
|
|
63
|
+ <td colspan="5">
|
|
|
64
|
+ <textarea data-adaptheight id="situation" maxlength="1000" onkeyup="OnFocusFun(this)" name="" rows="6" cols=""></textarea>
|
|
|
65
|
+ <textarea data-adaptheight id="result" hidden="hidden" name="" rows="6" cols=""></textarea>
|
|
|
66
|
+ </td>
|
|
|
67
|
+ </tr>
|
|
|
68
|
+ <tr>
|
|
|
69
|
+ <th>工单内容:</th>
|
|
|
70
|
+ <td colspan="5">
|
|
|
71
|
+ <span id="workremark" name="" rows="6" cols="" readonly="readonly"></span>
|
|
|
72
|
+ </td>
|
|
|
73
|
+ </tr>
|
|
|
74
|
+ <tr>
|
|
|
75
|
+ <th class="Importent">是/否向当事人反馈:</th>
|
|
|
76
|
+ <td id="isProResultRadio" style="font-size: 12px">
|
|
|
77
|
+ <label style="margin-right: 10px">
|
|
|
78
|
+ <input type="radio" value="1" name="isDisposeResult" style="vertical-align: -2px" />是
|
|
|
79
|
+ </label>
|
|
|
80
|
+ <label>
|
|
|
81
|
+ <input type="radio" value="0" name="isDisposeResult" style="vertical-align: -2px" />否
|
|
|
82
|
+ </label>
|
|
|
83
|
+ </td>
|
|
|
84
|
+ </tr>
|
|
|
85
|
+ <tr class="dealWithRemark-wrapper">
|
|
|
86
|
+ <th>已办未果备注:</th>
|
|
|
87
|
+ <td colspan="5">
|
|
|
88
|
+ <textarea data-adaptheight id="dealWithRemark" name="" rows="6" cols=""></textarea>
|
|
|
89
|
+ </td>
|
|
|
90
|
+ </tr>
|
|
|
91
|
+ <tr class="prosituation-wrapper">
|
|
|
92
|
+ <th>处理方案/进程:</th>
|
|
|
93
|
+ <td colspan="5">
|
|
|
94
|
+ <textarea data-adaptheight id="prosituation" name="" rows="6" cols=""></textarea>
|
|
|
95
|
+ </td>
|
|
|
96
|
+ </tr>
|
|
|
97
|
+ <tr class="annotation-wrapper">
|
|
|
98
|
+ <th style="color: #ff0000">注释:</th>
|
|
|
99
|
+ <td style="color: #ff0000" colspan="5">
|
|
|
100
|
+ 请提交加盖单位公章的相关说明文件,不添加文件说明将被扣考核分
|
|
|
101
|
+ </td>
|
|
|
102
|
+ </tr>
|
|
|
103
|
+ <tr class="connecttime-wrapper">
|
|
|
104
|
+ <th>沟通时间:</th>
|
|
|
105
|
+ <td>
|
|
|
106
|
+ <input type="text" class="laydate-icon" id="connecttime" style="
|
|
|
107
|
+ width: 172px;
|
|
|
108
|
+ height: 32px;
|
|
|
109
|
+ border-color: rgb(158, 158, 158);
|
|
|
110
|
+ " />
|
|
|
111
|
+ </td>
|
|
|
112
|
+ </tr>
|
|
|
113
|
+ <tr class="connectmode-wrapper">
|
|
|
114
|
+ <th>沟通方式:</th>
|
|
|
115
|
+ <td>
|
|
|
116
|
+ <input type="text" id="connectmode" />
|
|
|
117
|
+ </td>
|
|
|
118
|
+ </tr>
|
|
|
119
|
+ <tr class="isstaisfied-wrapper">
|
|
|
120
|
+ <th>是否满意:</th>
|
|
|
121
|
+ <td id="isStaisfiedRadio" style="font-size: 12px" colspan="5">
|
|
|
122
|
+ <label style="margin-right: 10px">
|
|
|
123
|
+ <input type="radio" value="1" name="isstaisfied" style="vertical-align: -2px" />满意
|
|
|
124
|
+ </label>
|
|
|
125
|
+ <label style="margin-right: 10px">
|
|
|
126
|
+ <input type="radio" value="2" name="isstaisfied" style="vertical-align: -2px" />基本满意
|
|
|
127
|
+ </label>
|
|
|
128
|
+ <label style="margin-right: 10px">
|
|
|
129
|
+ <input type="radio" value="3" name="isstaisfied" style="vertical-align: -2px" />不满意
|
|
|
130
|
+ </label>
|
|
|
131
|
+ </td>
|
|
|
132
|
+ </tr>
|
|
|
133
|
+ <tr class="files-wrappper">
|
|
|
134
|
+ <th class="Importent">附件:</th>
|
|
|
135
|
+ <td colspan="5">
|
|
|
136
|
+ <div class="fileBox"></div>
|
|
|
137
|
+ <!--<span class="fjnr"></span>-->
|
|
|
138
|
+ <input class="input" type="file" name="upFile" id="upFile" multiple="multiple"
|
|
|
139
|
+ style="display: none" />
|
|
|
140
|
+ <input class="input" type="button" value="上传" id="scwj" />
|
|
|
141
|
+ <!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
|
|
|
142
|
+ <input type="hidden" id="file" />
|
|
|
143
|
+ <span style="color: #ff0000; border: none">
|
|
|
144
|
+ (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
|
|
|
145
|
+ </span>
|
|
|
146
|
+ </td>
|
|
|
147
|
+ </tr>
|
|
|
148
|
+ <tr style="display: none;">
|
|
|
149
|
+ <td>
|
|
|
150
|
+ <button class="btns handleBtn">查看办理结果</button>
|
|
|
151
|
+ </td>
|
|
|
152
|
+ <td colspan="5">
|
|
|
153
|
+ <textarea data-adaptheight id="result" name="" rows="4" cols=""></textarea>
|
|
|
154
|
+ </td>
|
|
|
155
|
+ <input type="hidden" id="ID" />
|
|
|
156
|
+ </tr>
|
|
|
157
|
+ </table>
|
|
|
158
|
+ <div class="btn_box">
|
|
|
159
|
+ <!-- <button class="btns BC">保存</button> -->
|
|
|
160
|
+ <button class="btns Submit">提交</button>
|
|
|
161
|
+ </div>
|
|
|
162
|
+ </div>
|
|
|
163
|
+ <script src="../css/laydate/laydate.js"></script>
|
|
|
164
|
+ <script src="../js/adjustHeight.js"></script>
|
|
|
165
|
+ <script src="../Script/Common/huayi.common.js"></script>
|
|
|
166
|
+ <script>
|
|
|
167
|
+ var wid = helper.request.queryString("wid");
|
|
|
168
|
+ var isProtect = helper.request.queryString("isProtect");
|
|
|
169
|
+ var isSPT = helper.request.queryString("isSPT");
|
|
|
170
|
+ var State;
|
|
|
171
|
+ var a = $("#ID").val();
|
|
|
172
|
+ var simpleDetailStrStart = "";
|
|
|
173
|
+ var simpleDetailStrEnd = "";
|
|
|
174
|
+ var simpleDetailStr = "";
|
|
|
175
|
+ Detail();
|
|
|
176
|
+ $(document).ready(function () {
|
|
|
177
|
+ laydate.skin("blue");
|
|
|
178
|
+ laydate({
|
|
|
179
|
+ elem: "#connecttime",
|
|
|
180
|
+ event: "focus",
|
|
|
181
|
+ istoday: true,
|
|
|
182
|
+ istime: true,
|
|
|
183
|
+ type: "datetime",
|
|
|
184
|
+ format: "YYYY-MM-DD hh:mm:ss",
|
|
|
185
|
+ });
|
|
|
186
|
+ simpleDetail();
|
|
|
187
|
+ getHistoryList();
|
|
|
188
|
+ orderdetail();
|
|
|
189
|
+ //上传附件
|
|
|
190
|
+ $("#scwj").click(function () {
|
|
|
191
|
+ $("#upFile").trigger("click");
|
|
|
192
|
+ });
|
|
|
193
|
+ $("#upFile").change(function () {
|
|
|
194
|
+ upload('upFile','.fileBox',['png','jpg','mp3','mp4','pdf','doc','docx','xls','xlsx'],"#file");
|
|
|
195
|
+ });
|
|
|
196
|
+ $("#scfj").click(function () {
|
|
|
197
|
+ $(".fjnr").text("");
|
|
|
198
|
+ $("#scfj").hide();
|
|
|
199
|
+ });
|
|
|
200
|
+ $(".BC").click(function () {
|
|
|
201
|
+ if ($('#isProResultRadio input[name="isDisposeResult"]:checked').val() == "1") {
|
|
|
202
|
+ if ($("#dealman").val() == "") {
|
|
|
203
|
+ layer.msg("办理人不能为空");
|
|
|
204
|
+ } else if ($("#situation").val() == "") {
|
|
|
205
|
+ layer.msg("处理情况不能为空");
|
|
|
206
|
+ } else if ($("#dealcontact").val() == "") {
|
|
|
207
|
+ layer.msg("联系方式不能为空");
|
|
|
208
|
+ } else if ($("#duties").val() == "") {
|
|
|
209
|
+ layer.msg("职务不能为空");
|
|
|
210
|
+ } else if ($("#result").val() == "") {
|
|
|
211
|
+ layer.msg("请生成办理结果");
|
|
|
212
|
+ } else {
|
|
|
213
|
+ State = 0;
|
|
|
214
|
+ JA();
|
|
|
215
|
+ }
|
|
|
216
|
+ } else if ($('#isProResultRadio input[name="isDisposeResult"]:checked').val() == "2") {
|
|
|
217
|
+ State = 0;
|
|
|
218
|
+ JA();
|
|
|
219
|
+ } else if ($('#isProResultRadio input[name="isDisposeResult"]:checked').val() == "0") {
|
|
|
220
|
+ State = 0;
|
|
|
221
|
+ JA();
|
|
|
222
|
+ } else {
|
|
|
223
|
+ layer.msg("请选择是/否向当事人反馈");
|
|
|
224
|
+ }
|
|
|
225
|
+ });
|
|
|
226
|
+ $(".Submit").click(function () {
|
|
|
227
|
+ if(decodeURI(isSPT) === '省12345平台' && $("#situation").val().length > 1000){
|
|
|
228
|
+ layer.msg("办理结果不能超过1000字");
|
|
|
229
|
+ return;
|
|
|
230
|
+ }
|
|
|
231
|
+ if ($('#isProResultRadio input[name="isDisposeResult"]:checked').val() == "1") {
|
|
|
232
|
+ if ($("#dealman").val() == "") {
|
|
|
233
|
+ layer.msg("办理人不能为空");
|
|
|
234
|
+ } else if ($("#situation").val() == "") {
|
|
|
235
|
+ layer.msg("处理情况不能为空");
|
|
|
236
|
+ } else if ($("#dealcontact").val() == "") {
|
|
|
237
|
+ layer.msg("联系方式不能为空");
|
|
|
238
|
+ } else if ($("#duties").val() == "") {
|
|
|
239
|
+ layer.msg("职务不能为空");
|
|
|
240
|
+ }
|
|
|
241
|
+ else {
|
|
|
242
|
+ State = 1;
|
|
|
243
|
+ $("#result").val($("#situation").val().replace(simpleDetailStrStart, ''))
|
|
|
244
|
+ JA();
|
|
|
245
|
+ }
|
|
|
246
|
+ } else if ($('#isProResultRadio input[name="isDisposeResult"]:checked').val() == "2") {
|
|
|
247
|
+ State = 1;
|
|
|
248
|
+ JA();
|
|
|
249
|
+ } else if ($('#isProResultRadio input[name="isDisposeResult"]:checked').val() == "0") {
|
|
|
250
|
+ State = 1;
|
|
|
251
|
+ JA();
|
|
|
252
|
+ } else {
|
|
|
253
|
+ layer.msg("请选择是/否向当事人反馈");
|
|
|
254
|
+ }
|
|
|
255
|
+ });
|
|
|
256
|
+
|
|
|
257
|
+ $(".prosituation-wrapper").hide(); //处理方案/进程
|
|
|
258
|
+ $(".annotation-wrapper").hide(); //注释
|
|
|
259
|
+ $(".connecttime-wrapper").hide(); //沟通时间
|
|
|
260
|
+ $(".connectmode-wrapper").hide(); //沟通方式
|
|
|
261
|
+ // $(".replycontent-wrapper").hide(); //答复内容
|
|
|
262
|
+ $(".isstaisfied-wrapper").hide(); //是否满意
|
|
|
263
|
+ $(".dealWithRemark-wrapper").hide(); // 已办未果备注
|
|
|
264
|
+
|
|
|
265
|
+ /*
|
|
|
266
|
+ * 处理结果
|
|
|
267
|
+ * 默认 0
|
|
|
268
|
+ * 是 1
|
|
|
269
|
+ * 否 2
|
|
|
270
|
+ */
|
|
|
271
|
+ $("#isProResultRadio")
|
|
|
272
|
+ .find('input[type="radio"]')
|
|
|
273
|
+ .on("change", function () {
|
|
|
274
|
+ $("#prosituation").val(""); //处理方案/进程
|
|
|
275
|
+ $("#connecttime").val(""); //沟通时间
|
|
|
276
|
+ $("#connectmode").val(""); //沟通方式
|
|
|
277
|
+ // $("#replycontent").val(""); //答复内容
|
|
|
278
|
+ $("#result").val(""); //办理结果
|
|
|
279
|
+ $(
|
|
|
280
|
+ '#isStaisfiedRadio input[name="isstaisfied"]:checked'
|
|
|
281
|
+ ).prop("checked", false); //是否满意
|
|
|
282
|
+ isProResultJudge($(this).val());
|
|
|
283
|
+ });
|
|
|
284
|
+
|
|
|
285
|
+ $(".handleBtn").click(function () {
|
|
|
286
|
+ // if ($('#isProResultRadio input[name="isDisposeResult"]:checked').val() === "1") {
|
|
|
287
|
+ // var isStaisfiedRadioData;
|
|
|
288
|
+ // if (
|
|
|
289
|
+ // $(
|
|
|
290
|
+ // '#isStaisfiedRadio input[name="isstaisfied"]:checked'
|
|
|
291
|
+ // ).val() === "1"
|
|
|
292
|
+ // ) {
|
|
|
293
|
+ // isStaisfiedRadioData = "满意";
|
|
|
294
|
+ // } else if (
|
|
|
295
|
+ // $(
|
|
|
296
|
+ // '#isStaisfiedRadio input[name="isstaisfied"]:checked'
|
|
|
297
|
+ // ).val() === "2"
|
|
|
298
|
+ // ) {
|
|
|
299
|
+ // isStaisfiedRadioData = "基本满意";
|
|
|
300
|
+ // } else if (
|
|
|
301
|
+ // $(
|
|
|
302
|
+ // '#isStaisfiedRadio input[name="isstaisfied"]:checked'
|
|
|
303
|
+ // ).val() === "3"
|
|
|
304
|
+ // ) {
|
|
|
305
|
+ // isStaisfiedRadioData = "不满意";
|
|
|
306
|
+ // } else {
|
|
|
307
|
+ // isStaisfiedRadioData = "未评价";
|
|
|
308
|
+ // }
|
|
|
309
|
+ // simpleDetailStrEnd =
|
|
|
310
|
+ // $("#situation").val() +
|
|
|
311
|
+ // " [办理结果:" +
|
|
|
312
|
+ // "已办理,承办人:" +
|
|
|
313
|
+ // $("#dealman").val() +
|
|
|
314
|
+ // ",职务:" +
|
|
|
315
|
+ // $("#duties").val() +
|
|
|
316
|
+ // ",联系电话:" +
|
|
|
317
|
+ // $("#dealcontact").val() +
|
|
|
318
|
+ // "," +
|
|
|
319
|
+ // $("#dealman").val() +
|
|
|
320
|
+ // "向当事人进行了反馈,当事人对结果表示" +
|
|
|
321
|
+ // isStaisfiedRadioData +
|
|
|
322
|
+ // "。]";
|
|
|
323
|
+ // simpleDetailStr =
|
|
|
324
|
+ // simpleDetailStrStart + simpleDetailStrEnd;
|
|
|
325
|
+ // $("#result").val(simpleDetailStr);
|
|
|
326
|
+ // } else if ($('#isProResultRadio input[name="isDisposeResult"]:checked').val() === "0") {
|
|
|
327
|
+ // simpleDetailStrEnd =
|
|
|
328
|
+ // $("#situation").val() +
|
|
|
329
|
+ // " [办理结果:" +
|
|
|
330
|
+ // "已办理,承办人:" +
|
|
|
331
|
+ // $("#dealman").val() +
|
|
|
332
|
+ // ",职务:" +
|
|
|
333
|
+ // $("#duties").val() +
|
|
|
334
|
+ // ",联系电话:" +
|
|
|
335
|
+ // $("#dealcontact").val() +
|
|
|
336
|
+ // "," +
|
|
|
337
|
+ // $("#dealman").val() +
|
|
|
338
|
+ // "没有向当事人进行反馈" +
|
|
|
339
|
+ // "。]";
|
|
|
340
|
+ // simpleDetailStr =
|
|
|
341
|
+ // simpleDetailStrStart + simpleDetailStrEnd;
|
|
|
342
|
+ // $("#result").val(simpleDetailStr);
|
|
|
343
|
+ // }
|
|
|
344
|
+ simpleDetailStrEnd = $("#situation").val()
|
|
|
345
|
+ simpleDetailStr =
|
|
|
346
|
+ simpleDetailStrStart + simpleDetailStrEnd;
|
|
|
347
|
+ $("#result").val(simpleDetailStr);
|
|
|
348
|
+ });
|
|
|
349
|
+ });
|
|
|
350
|
+ //得到焦点时触发事件
|
|
|
351
|
+ function OnFocusFun(element) {
|
|
|
352
|
+ (element.value.indexOf(simpleDetailStrStart) === 0) || (element.value = simpleDetailStrStart);
|
|
|
353
|
+ }
|
|
|
354
|
+ //交办
|
|
|
355
|
+ function JA() {
|
|
|
356
|
+ $.post(
|
|
|
357
|
+ huayi.config.callcenter_url + "WorkOrder/AppendWorkOrder", {
|
|
|
358
|
+ workorderid: wid,
|
|
|
359
|
+ dealman: $("#dealman").val(), //承办人
|
|
|
360
|
+ dealcontact: $("#dealcontact").val(), //联系方式
|
|
|
361
|
+ duties: $("#duties").val(), //职务
|
|
|
362
|
+ AuditUser: $("#auditUser").val(), //审核领导
|
|
|
363
|
+ post: $("#auditUserDuties").val(), //审核领导职务
|
|
|
364
|
+ auditContact: $("#auditContact").val(), //审核领导联系方式
|
|
|
365
|
+ situation: $("#situation").val().replace(simpleDetailStrStart, ''), //处理情况
|
|
|
366
|
+ result: $("#situation").val(), //办理结果
|
|
|
367
|
+ isproresult: $(
|
|
|
368
|
+ '#isProResultRadio input[name="isDisposeResult"]:checked'
|
|
|
369
|
+ ).val(), //处理结果
|
|
|
370
|
+ IsProResultState: "", // 已办未果状态
|
|
|
371
|
+ prosituation: $("#prosituation").val(), //处理方案/进程
|
|
|
372
|
+ Unsuccessful: $("#dealWithRemark").val(), //已办未果备注
|
|
|
373
|
+ connecttime: $("#connecttime").val(), //沟通时间
|
|
|
374
|
+ connectmode: $("#connectmode").val(), //沟通方式
|
|
|
375
|
+ // replycontent: $("#replycontent").val(), //答复内容
|
|
|
376
|
+ isstaisfied: $(
|
|
|
377
|
+ '#isStaisfiedRadio input[name="isstaisfied"]:checked'
|
|
|
378
|
+ ).val(), //是否满意
|
|
|
379
|
+ state: State,
|
|
|
380
|
+ feedbackid: a,
|
|
|
381
|
+ files: $("#file").val(),
|
|
|
382
|
+ token: $.cookie("token"),
|
|
|
383
|
+ },
|
|
|
384
|
+ function (result) {
|
|
|
385
|
+ result = JSON.parse(result);
|
|
|
386
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
387
|
+ addHistory();
|
|
|
388
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
389
|
+ parent.layer.close(index); //再执行关闭
|
|
|
390
|
+ parent.$("#orderlist").bootstrapTable("refresh");
|
|
|
391
|
+ parent.layer.msg("办理成功");
|
|
|
392
|
+ $(".fileBox").html("");
|
|
|
393
|
+ }
|
|
|
394
|
+ }
|
|
|
395
|
+ );
|
|
|
396
|
+ }
|
|
|
397
|
+ //工单详情
|
|
|
398
|
+ function orderdetail(){
|
|
|
399
|
+ $.getJSON(
|
|
|
400
|
+ huayi.config.callcenter_url + "WorkOrder/GetWorkOrderNew", {
|
|
|
401
|
+ workorderid: wid,
|
|
|
402
|
+ type: 0,
|
|
|
403
|
+ token: $.cookie("token"),
|
|
|
404
|
+ },
|
|
|
405
|
+ function (result) {
|
|
|
406
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
407
|
+ var Data = result.data.data;
|
|
|
408
|
+ $('#workremark').text(Data[0].F_Content);
|
|
|
409
|
+ }
|
|
|
410
|
+ }
|
|
|
411
|
+ );
|
|
|
412
|
+ }
|
|
|
413
|
+ //草稿详情
|
|
|
414
|
+ function Detail() {
|
|
|
415
|
+ $.getJSON(
|
|
|
416
|
+ huayi.config.callcenter_url + "WorkOrder/GetDraftInfo", {
|
|
|
417
|
+ workorderid: wid,
|
|
|
418
|
+ type: 2,
|
|
|
419
|
+ token: $.cookie("token"),
|
|
|
420
|
+ },
|
|
|
421
|
+ function (result) {
|
|
|
422
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
423
|
+ if (result.data.length > 0) {
|
|
|
424
|
+ var IsProResultValue =
|
|
|
425
|
+ result.data[0].F_IsProResult + "";
|
|
|
426
|
+ isProResultJudge(IsProResultValue);
|
|
|
427
|
+ $("#dealman").val(result.data[0].F_DealUser); //承办人
|
|
|
428
|
+ // $("#result").text(result.data[0].F_Result); //办理结果
|
|
|
429
|
+ $("#situation").val(result.data[0].F_Situation); //处理情况
|
|
|
430
|
+ $("#duties").val(result.data[0].F_Duties); //职务
|
|
|
431
|
+ $('#isProResultRadio input[name="isDisposeResult"][value="' + result.data[0]
|
|
|
432
|
+ .F_IsProResult + '"]').prop("checked", true); //是/否向当事人反馈
|
|
|
433
|
+ $("#prosituation").val(
|
|
|
434
|
+ result.data[0].F_ProSituation
|
|
|
435
|
+ ); //处理方案/进程
|
|
|
436
|
+ $("#dealcontact").val(
|
|
|
437
|
+ result.data[0].F_DealUserContact
|
|
|
438
|
+ ); //联系方式
|
|
|
439
|
+ $("#connecttime").val(
|
|
|
440
|
+ result.data[0].F_ConnectTime
|
|
|
441
|
+ ); //沟通时间
|
|
|
442
|
+ $("#connectmode").val(
|
|
|
443
|
+ result.data[0].F_ConnectMode
|
|
|
444
|
+ ); //沟通方式
|
|
|
445
|
+ // $("#replycontent").val(result.data[0].F_ReplyContent); //答复内容
|
|
|
446
|
+ $(
|
|
|
447
|
+ '#isStaisfiedRadio input[name="isstaisfied"][value="' +
|
|
|
448
|
+ result.data[0].F_IsSatisfied +
|
|
|
449
|
+ '"]'
|
|
|
450
|
+ ).prop("checked", true); //是否满意
|
|
|
451
|
+ a = result.data[0].F_Id;
|
|
|
452
|
+ }
|
|
|
453
|
+ }
|
|
|
454
|
+ }
|
|
|
455
|
+ );
|
|
|
456
|
+ }
|
|
|
457
|
+ //清除
|
|
|
458
|
+ function Clean() {
|
|
|
459
|
+ $("#startTime").val(""), $("#assignedopinion").val("");
|
|
|
460
|
+ }
|
|
|
461
|
+
|
|
|
462
|
+ // 处理结果判断
|
|
|
463
|
+ function isProResultJudge(isProResultdata) {
|
|
|
464
|
+ if (isProResultdata === "1") {
|
|
|
465
|
+
|
|
|
466
|
+ $(".prosituation-wrapper").hide(); //处理方案/进程
|
|
|
467
|
+ $(".annotation-wrapper").hide(); //注释
|
|
|
468
|
+ $(".connecttime-wrapper").hide(); //沟通时间
|
|
|
469
|
+ $(".connectmode-wrapper").hide(); //沟通方式
|
|
|
470
|
+ $(".isstaisfied-wrapper").show(); //是否满意
|
|
|
471
|
+ $(".dealWithRemark-wrapper").hide(); // 已办未果备注
|
|
|
472
|
+ } else if (isProResultdata === "2") {
|
|
|
473
|
+ $(".prosituation-wrapper").show(); //处理方案/进程
|
|
|
474
|
+ $(".annotation-wrapper").show(); //注释
|
|
|
475
|
+ $(".connecttime-wrapper").hide(); //沟通时间
|
|
|
476
|
+ $(".connectmode-wrapper").hide(); //沟通方式
|
|
|
477
|
+ $(".isstaisfied-wrapper").hide(); //是否满意
|
|
|
478
|
+ $(".dealWithRemark-wrapper").show(); // 已办未果备注
|
|
|
479
|
+ } else if (isProResultdata === "0") {
|
|
|
480
|
+ $(".prosituation-wrapper").hide(); //处理方案/进程
|
|
|
481
|
+ $(".annotation-wrapper").hide(); //注释
|
|
|
482
|
+ $(".connecttime-wrapper").hide(); //沟通时间
|
|
|
483
|
+ $(".connectmode-wrapper").hide(); //沟通方式
|
|
|
484
|
+ $(".isstaisfied-wrapper").hide(); //是否满意
|
|
|
485
|
+ $(".dealWithRemark-wrapper").hide(); // 已办未果备注
|
|
|
486
|
+ }
|
|
|
487
|
+ }
|
|
|
488
|
+
|
|
|
489
|
+ //简易版工单详情
|
|
|
490
|
+ function simpleDetail() {
|
|
|
491
|
+ $.getJSON(
|
|
|
492
|
+ huayi.config.callcenter_url + "WorkOrder/GetWorkorderSimp", {
|
|
|
493
|
+ workorderid: wid,
|
|
|
494
|
+ token: $.cookie("token"),
|
|
|
495
|
+ },
|
|
|
496
|
+ function (result) {
|
|
|
497
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
498
|
+ var data = result.data[0];
|
|
|
499
|
+ // var date = (new Date(data.F_CreateTime)).getTime();
|
|
|
500
|
+ var date = new Date()
|
|
|
501
|
+ var year = date.getFullYear();
|
|
|
502
|
+ var month = date.getMonth();
|
|
|
503
|
+ var day = date.getDate();
|
|
|
504
|
+ var hour = date.getHours();
|
|
|
505
|
+ var minutes = date.getMinutes();
|
|
|
506
|
+ var seconds = date.getSeconds();
|
|
|
507
|
+ month = month + 1;
|
|
|
508
|
+ if (month >= 1 && month <= 9) {
|
|
|
509
|
+ month = "0" + month
|
|
|
510
|
+ }
|
|
|
511
|
+ if (day >= 1 && day <= 9) {
|
|
|
512
|
+ day = "0" + day
|
|
|
513
|
+ }
|
|
|
514
|
+ var daysTime = year + "年" + month + "月" + day + "日 " + hour + "时" + minutes + "分" +
|
|
|
515
|
+ seconds + "秒"
|
|
|
516
|
+ simpleDetailStrStart =
|
|
|
517
|
+ data.deptname +
|
|
|
518
|
+ "于时间(" +
|
|
|
519
|
+ daysTime +
|
|
|
520
|
+ ")回复:"
|
|
|
521
|
+ $("#situation").val(simpleDetailStrStart);
|
|
|
522
|
+ }
|
|
|
523
|
+ }
|
|
|
524
|
+ );
|
|
|
525
|
+ }
|
|
|
526
|
+
|
|
|
527
|
+ function getHistoryList() {
|
|
|
528
|
+ $("#dealmanList").empty()
|
|
|
529
|
+ $.ajax({
|
|
|
530
|
+ type: "get",
|
|
|
531
|
+ url: huayi.config.callcenter_url + "History/GetList",
|
|
|
532
|
+ async: true,
|
|
|
533
|
+ dataType: "json",
|
|
|
534
|
+ data: {
|
|
|
535
|
+ name: "contractor",
|
|
|
536
|
+ token: $.cookie("token"),
|
|
|
537
|
+ },
|
|
|
538
|
+ success: function (res) {
|
|
|
539
|
+ if (res.state == "success") {
|
|
|
540
|
+ $.each(res.data, function (index, val) {
|
|
|
541
|
+ if (val.F_Count !== "") {
|
|
|
542
|
+ var data = JSON.parse(val.F_Count)
|
|
|
543
|
+ $("#dealmanList").append("<option value='" + data.name +
|
|
|
544
|
+ "'data-contact='" + data.contact + "'data-job='" + data
|
|
|
545
|
+ .job + "'>")
|
|
|
546
|
+ }
|
|
|
547
|
+ })
|
|
|
548
|
+ $("#dealmanList").append("<option value='清除历史记录'>")
|
|
|
549
|
+ } else {
|
|
|
550
|
+ layer.confirm(res.message, {
|
|
|
551
|
+ icon: 2,
|
|
|
552
|
+ btn: ['确定']
|
|
|
553
|
+ });
|
|
|
554
|
+ }
|
|
|
555
|
+ }
|
|
|
556
|
+ });
|
|
|
557
|
+ }
|
|
|
558
|
+
|
|
|
559
|
+ $("#dealman").change(function () {
|
|
|
560
|
+ var name = $("#dealman").val()
|
|
|
561
|
+ if (name === "清除历史记录") {
|
|
|
562
|
+ $("#dealman").val("")
|
|
|
563
|
+ deleteHistory()
|
|
|
564
|
+ return
|
|
|
565
|
+ }
|
|
|
566
|
+ $("#dealmanList").find("option").each(function () {
|
|
|
567
|
+ if (name == $(this).val()) {
|
|
|
568
|
+ $("#dealcontact").val($(this).attr("data-contact"))
|
|
|
569
|
+ $("#duties").val($(this).attr("data-job"))
|
|
|
570
|
+ }
|
|
|
571
|
+ })
|
|
|
572
|
+ })
|
|
|
573
|
+
|
|
|
574
|
+ function addHistory() {
|
|
|
575
|
+ var contractorObject = {
|
|
|
576
|
+ name: $("#dealman").val(),
|
|
|
577
|
+ contact: $("#dealcontact").val(),
|
|
|
578
|
+ job: $("#duties").val(),
|
|
|
579
|
+ }
|
|
|
580
|
+ var contractorObjectStr = JSON.stringify(contractorObject);
|
|
|
581
|
+ $.ajax({
|
|
|
582
|
+ type: "post",
|
|
|
583
|
+ url: huayi.config.callcenter_url + "History/Add",
|
|
|
584
|
+ async: true,
|
|
|
585
|
+ dataType: "json",
|
|
|
586
|
+ data: {
|
|
|
587
|
+ name: "contractor",
|
|
|
588
|
+ count: contractorObjectStr,
|
|
|
589
|
+ token: $.cookie("token"),
|
|
|
590
|
+ },
|
|
|
591
|
+ success: function (res) {
|
|
|
592
|
+ debugger
|
|
|
593
|
+ if (res.state == "success") {
|
|
|
594
|
+
|
|
|
595
|
+ } else {
|
|
|
596
|
+ layer.confirm(res.message, {
|
|
|
597
|
+ icon: 2,
|
|
|
598
|
+ btn: ['确定']
|
|
|
599
|
+ });
|
|
|
600
|
+ }
|
|
|
601
|
+ }
|
|
|
602
|
+ });
|
|
|
603
|
+ }
|
|
|
604
|
+
|
|
|
605
|
+ function deleteHistory() {
|
|
|
606
|
+ $.ajax({
|
|
|
607
|
+ type: "post",
|
|
|
608
|
+ url: huayi.config.callcenter_url + "History/Delete",
|
|
|
609
|
+ async: true,
|
|
|
610
|
+ dataType: "json",
|
|
|
611
|
+ data: {
|
|
|
612
|
+ type: 1,
|
|
|
613
|
+ token: $.cookie("token"),
|
|
|
614
|
+ },
|
|
|
615
|
+ success: function (res) {
|
|
|
616
|
+ if (res.state == "success") {
|
|
|
617
|
+ getHistoryList()
|
|
|
618
|
+ } else {
|
|
|
619
|
+
|
|
|
620
|
+ }
|
|
|
621
|
+ }
|
|
|
622
|
+ });
|
|
|
623
|
+ }
|
|
|
624
|
+ </script>
|
|
|
625
|
+</body>
|
|
|
626
|
+
|
|
|
627
|
+</html>
|