|
|
@@ -48,13 +48,22 @@
|
|
48
|
48
|
<table class="table" border="" cellspacing="0" cellpadding="0" style="border: 1px solid #e7eaec;">
|
|
49
|
49
|
<theard>
|
|
50
|
50
|
<tr>
|
|
51
|
|
- <td class="text-center" style="min-width: 100px;">序号</td>
|
|
52
|
|
- <td class="text-center" style="min-width: 100px;">办理时间</td>
|
|
53
|
|
- <td class="text-center" style="min-width: 100px;">内容</td>
|
|
54
|
|
- <td class="text-center" style="min-width: 100px;">附件</td>
|
|
55
|
|
- <td class="text-center" style="min-width: 100px;">审批时间</td>
|
|
56
|
|
- <td class="text-center" style="min-width: 100px;">审批内容</td>
|
|
57
|
|
- <td class="text-center" style="min-width: 100px;">审批意见</td>
|
|
|
51
|
+ <td class="text-center" style="min-width:50px;">序号</td>
|
|
|
52
|
+ <td class="text-center" style="min-width:50px;">办理时间</td>
|
|
|
53
|
+ <td class="text-center" style="min-width:50px;">内容</td>
|
|
|
54
|
+ <td class="text-center" style="min-width:50px;">审批时间</td>
|
|
|
55
|
+ <td class="text-center" style="min-width:50px;">审批内容</td>
|
|
|
56
|
+ <td class="text-center" style="min-width:50px;">审批意见</td>
|
|
|
57
|
+ <td class="text-center" style="min-width:50px;">类型</td>
|
|
|
58
|
+ <td class="text-center" style="min-width:50px;">是否有处理结果</td>
|
|
|
59
|
+ <td class="text-center" style="min-width:50px;">处理方案/进程</td>
|
|
|
60
|
+ <td class="text-center" style="min-width:50px;">是否保密</td>
|
|
|
61
|
+ <td class="text-center" style="min-width:50px;">联系方式</td>
|
|
|
62
|
+ <td class="text-center" style="min-width:50px;">沟通时间</td>
|
|
|
63
|
+ <td class="text-center" style="min-width:50px;">沟通方式</td>
|
|
|
64
|
+ <td class="text-center" style="min-width:50px;">答复内容</td>
|
|
|
65
|
+ <td class="text-center" style="min-width:50px;">是否满意</td>
|
|
|
66
|
+ <td class="text-center" style="min-width:50px;">附件</td>
|
|
58
|
67
|
</tr>
|
|
59
|
68
|
</theard>
|
|
60
|
69
|
<tbody class="HGXX" style="border-top: none; padding: 8px;"></tbody>
|
|
|
@@ -65,7 +74,7 @@
|
|
65
|
74
|
<div class="Common">
|
|
66
|
75
|
<table>
|
|
67
|
76
|
<tr>
|
|
68
|
|
- <th class="Importent">办理人:</th>
|
|
|
77
|
+ <th class="Importent">承办人:</th>
|
|
69
|
78
|
<td> <input id="dealman" type="text" style="height: 32px;"></td>
|
|
70
|
79
|
</tr>
|
|
71
|
80
|
<tr>
|
|
|
@@ -76,9 +85,6 @@
|
|
76
|
85
|
<tr>
|
|
77
|
86
|
<th>是否有处理结果:</th>
|
|
78
|
87
|
<td id="isProResultRadio" style="font-size: 12px">
|
|
79
|
|
- <label style="margin-right: 10px">
|
|
80
|
|
- <input type="radio" value="0" name="isDisposeResult" style="vertical-align: -2px;" checked="checked" />默认
|
|
81
|
|
- </label>
|
|
82
|
88
|
<label style="margin-right: 10px">
|
|
83
|
89
|
<input type="radio" value="1" name="isDisposeResult" style="vertical-align: -2px;" />是
|
|
84
|
90
|
</label>
|
|
|
@@ -106,7 +112,7 @@
|
|
106
|
112
|
<tr class="connecttime-wrapper">
|
|
107
|
113
|
<th>沟通时间:</th>
|
|
108
|
114
|
<td>
|
|
109
|
|
- <input type="text" id="connecttime">
|
|
|
115
|
+ <input type="text" class="laydate-icon" id="connecttime" style="width: 172px; height: 32px; border-color: rgb(158, 158, 158);">
|
|
110
|
116
|
</td>
|
|
111
|
117
|
</tr>
|
|
112
|
118
|
<tr class="connectmode-wrapper">
|
|
|
@@ -165,12 +171,20 @@
|
|
165
|
171
|
var a = $("#ID").val()
|
|
166
|
172
|
Detail();
|
|
167
|
173
|
$(document).ready(function () {
|
|
|
174
|
+ laydate.skin('blue');
|
|
|
175
|
+ laydate({
|
|
|
176
|
+ elem: '#connecttime',
|
|
|
177
|
+ event: 'focus',
|
|
|
178
|
+ istoday: true,
|
|
|
179
|
+ istime: true,
|
|
|
180
|
+ type: 'datetime',
|
|
|
181
|
+ format: 'YYYY-MM-DD hh:mm:ss',
|
|
|
182
|
+ });
|
|
168
|
183
|
HGXX();
|
|
169
|
184
|
BLNR();
|
|
170
|
185
|
// Hove();
|
|
171
|
186
|
// LOAD();
|
|
172
|
187
|
|
|
173
|
|
-
|
|
174
|
188
|
//上传附件
|
|
175
|
189
|
$("#scwj").click(function () {
|
|
176
|
190
|
$("#upFile").trigger("click");
|
|
|
@@ -203,6 +217,7 @@
|
|
203
|
217
|
JA();
|
|
204
|
218
|
}
|
|
205
|
219
|
})
|
|
|
220
|
+
|
|
206
|
221
|
$(".prosituation-wrapper").hide(); //处理方案/进程
|
|
207
|
222
|
$(".annotation-wrapper").hide(); //注释
|
|
208
|
223
|
$(".dealcontact-wrapper").hide(); //联系方式
|
|
|
@@ -210,56 +225,27 @@
|
|
210
|
225
|
$(".connectmode-wrapper").hide(); //沟通方式
|
|
211
|
226
|
$(".replycontent-wrapper").hide(); //答复内容
|
|
212
|
227
|
$(".isstaisfied-wrapper").hide(); //是否满意
|
|
213
|
|
-
|
|
|
228
|
+
|
|
214
|
229
|
/*
|
|
215
|
230
|
* 处理结果
|
|
216
|
|
- * 默认 0
|
|
217
|
231
|
* 是 1
|
|
218
|
232
|
* 否 2
|
|
219
|
233
|
*/
|
|
220
|
234
|
$('#isProResultRadio').find('input[type="radio"]').on('change', function() {
|
|
221
|
|
- if($(this).val() === '0') {
|
|
222
|
|
- $(".prosituation-wrapper").hide(); //处理方案/进程
|
|
223
|
|
- $(".annotation-wrapper").hide(); //注释
|
|
224
|
|
- $(".dealcontact-wrapper").hide(); //联系方式
|
|
225
|
|
- $(".connecttime-wrapper").hide(); //沟通时间
|
|
226
|
|
- $(".connectmode-wrapper").hide(); //沟通方式
|
|
227
|
|
- $(".replycontent-wrapper").hide(); //答复内容
|
|
228
|
|
- $(".isstaisfied-wrapper").hide(); //是否满意
|
|
229
|
|
- } else if($(this).val() === '1') {
|
|
230
|
|
- if (isProtect === "1" ) {
|
|
231
|
|
- $(".prosituation-wrapper").hide(); //处理方案/进程
|
|
232
|
|
- $(".annotation-wrapper").hide(); //注释
|
|
233
|
|
- $(".dealcontact-wrapper").show(); //联系方式
|
|
234
|
|
- $(".connecttime-wrapper").hide(); //沟通时间
|
|
235
|
|
- $(".connectmode-wrapper").hide(); //沟通方式
|
|
236
|
|
- $(".replycontent-wrapper").hide(); //答复内容
|
|
237
|
|
- $(".isstaisfied-wrapper").hide(); //是否满意
|
|
238
|
|
- } else if (isProtect === "0") {
|
|
239
|
|
- $(".prosituation-wrapper").hide(); //处理方案/进程
|
|
240
|
|
- $(".annotation-wrapper").hide(); //注释
|
|
241
|
|
- $(".dealcontact-wrapper").hide(); //联系方式
|
|
242
|
|
- $(".connecttime-wrapper").show(); //沟通时间
|
|
243
|
|
- $(".connectmode-wrapper").show(); //沟通方式
|
|
244
|
|
- $(".replycontent-wrapper").show(); //答复内容
|
|
245
|
|
- $(".isstaisfied-wrapper").show(); //是否满意
|
|
246
|
|
- }
|
|
247
|
|
- } else if ($(this).val() === '2') {
|
|
248
|
|
- $(".prosituation-wrapper").show(); //处理方案/进程
|
|
249
|
|
- $(".annotation-wrapper").show(); //注释
|
|
250
|
|
- $(".dealcontact-wrapper").hide(); //联系方式
|
|
251
|
|
- $(".connecttime-wrapper").hide(); //沟通时间
|
|
252
|
|
- $(".connectmode-wrapper").hide(); //沟通方式
|
|
253
|
|
- $(".replycontent-wrapper").hide(); //答复内容
|
|
254
|
|
- $(".isstaisfied-wrapper").hide(); //是否满意
|
|
255
|
|
- }
|
|
|
235
|
+ $("#prosituation").val(""); //处理方案/进程
|
|
|
236
|
+ $("#dealcontact").val(""); //联系方式
|
|
|
237
|
+ $("#connecttime").val(""); //沟通时间
|
|
|
238
|
+ $("#connectmode").val(""); //沟通方式
|
|
|
239
|
+ $("#replycontent").val(""); //答复内容
|
|
|
240
|
+ $('#isStaisfiedRadio input[name="isstaisfied"]:checked').prop("checked", false); //是否满意
|
|
|
241
|
+ isProResultJudge($(this).val());
|
|
256
|
242
|
});
|
|
257
|
243
|
});
|
|
258
|
244
|
//交办
|
|
259
|
245
|
function JA() {
|
|
260
|
246
|
$.post(huayi.config.callcenter_url + 'WorkOrder/DealWorkOrder', {
|
|
261
|
247
|
workorderid: wid,
|
|
262
|
|
- dealman: $("#dealman").val(), //办理人
|
|
|
248
|
+ dealman: $("#dealman").val(), //承办人
|
|
263
|
249
|
result: $('#result').val(), //办理内容
|
|
264
|
250
|
isproresult: $('#isProResultRadio input[name="isDisposeResult"]:checked').val(), //处理结果
|
|
265
|
251
|
prosituation: $("#prosituation").val(), //处理方案/进程
|
|
|
@@ -298,27 +284,117 @@
|
|
298
|
284
|
var temp;
|
|
299
|
285
|
var Agree;
|
|
300
|
286
|
$.each(result.data.fkinfo, function (i, n) {
|
|
301
|
|
- // var r = JSON.stringify(n.File);
|
|
302
|
|
-
|
|
|
287
|
+ // var r = JSON.stringify(n.File);
|
|
303
|
288
|
if (n.F_IsAudit == 1) {
|
|
304
|
289
|
Agree = "同意";
|
|
305
|
290
|
} else if (n.F_IsAudit == 2) {
|
|
306
|
291
|
Agree = "拒绝";
|
|
|
292
|
+ } else if (n.F_IsAudit == 0) {
|
|
|
293
|
+ Agree = "";
|
|
307
|
294
|
}
|
|
308
|
|
- temp = '<tr><td class="text-center">' + (i + 1) + '</td><td class="text-center">'
|
|
309
|
|
- + n.F_CreateTime + '</td><td class="text-center">' + n.F_Result
|
|
310
|
|
- + '</td><td class="text-center FJ" style="color:#00a1cb;"></td><td class="text-center">'
|
|
311
|
|
- + n.F_AuditTime + '</td><td class="text-center">' + n.F_AuditReason
|
|
312
|
|
- + '</td><td class="text-center">' + Agree + '</td></tr>';
|
|
|
295
|
+ var bval = n.F_Type;
|
|
|
296
|
+ switch(bval + '') {
|
|
|
297
|
+ case '1':
|
|
|
298
|
+ bval = '主办';
|
|
|
299
|
+ break;
|
|
|
300
|
+ case '2':
|
|
|
301
|
+ bval = '协办';
|
|
|
302
|
+ break;
|
|
|
303
|
+ }
|
|
|
304
|
+ //是否有处理结果
|
|
|
305
|
+ var isProResultValue = n.F_IsProResult + "";
|
|
|
306
|
+ switch (isProResultValue) {
|
|
|
307
|
+ case "0":
|
|
|
308
|
+ isProResultValue = "默认";
|
|
|
309
|
+ break;
|
|
|
310
|
+ case "1":
|
|
|
311
|
+ isProResultValue = "是";
|
|
|
312
|
+ break;
|
|
|
313
|
+ case "2":
|
|
|
314
|
+ isProResultValue = "否";
|
|
|
315
|
+ break;
|
|
|
316
|
+ }
|
|
|
317
|
+ //是否保密
|
|
|
318
|
+ var isProtectValue = n.F_IsProtect + "";
|
|
|
319
|
+ switch (isProtectValue) {
|
|
|
320
|
+ case "1":
|
|
|
321
|
+ isProtectValue = "是";
|
|
|
322
|
+ break;
|
|
|
323
|
+ case "0":
|
|
|
324
|
+ isProtectValue = "否";
|
|
|
325
|
+ break;
|
|
|
326
|
+ }
|
|
|
327
|
+ //是否保密
|
|
|
328
|
+ var isSatisfiedValue = n.F_IsSatisfied + "";
|
|
|
329
|
+ switch (isSatisfiedValue) {
|
|
|
330
|
+ case "0":
|
|
|
331
|
+ isSatisfiedValue = "未评价";
|
|
|
332
|
+ break;
|
|
|
333
|
+ case "1":
|
|
|
334
|
+ isSatisfiedValue = "满意";
|
|
|
335
|
+ break;
|
|
|
336
|
+ case "2":
|
|
|
337
|
+ isSatisfiedValue = "基本满意";
|
|
|
338
|
+ break;
|
|
|
339
|
+ case "3":
|
|
|
340
|
+ isSatisfiedValue = "不满意";
|
|
|
341
|
+ break;
|
|
|
342
|
+ }
|
|
|
343
|
+ // 审批时间
|
|
|
344
|
+ var auditTimeValue
|
|
|
345
|
+ switch (n.F_AuditTime) {
|
|
|
346
|
+ case "":
|
|
|
347
|
+ auditTimeValue = ""
|
|
|
348
|
+ break;
|
|
|
349
|
+ case null:
|
|
|
350
|
+ auditTimeValue = ""
|
|
|
351
|
+ break;
|
|
|
352
|
+ default:
|
|
|
353
|
+ auditTimeValue = n.F_AuditTime
|
|
|
354
|
+ break;
|
|
|
355
|
+ }
|
|
|
356
|
+ //审批内容
|
|
|
357
|
+ var auditReasonValue
|
|
|
358
|
+ switch (n.F_AuditReason) {
|
|
|
359
|
+ case "":
|
|
|
360
|
+ auditReasonValue = ""
|
|
|
361
|
+ break;
|
|
|
362
|
+ case null:
|
|
|
363
|
+ auditReasonValue = ""
|
|
|
364
|
+ break;
|
|
|
365
|
+ default:
|
|
|
366
|
+ auditReasonValue = n.F_AuditReason
|
|
|
367
|
+ break;
|
|
|
368
|
+ }
|
|
313
|
369
|
|
|
|
370
|
+ temp = '<tr>' +
|
|
|
371
|
+ '<td class="text-center">' + (i + 1) + '</td>' +
|
|
|
372
|
+ '<td class="text-center">' + n.F_CreateTime + '</td>' +
|
|
|
373
|
+ '<td class="text-center">' + n.F_Result + '</td>' +
|
|
|
374
|
+ '<td class="text-center">' + auditTimeValue + '</td>' +
|
|
|
375
|
+ '<td class="text-center">' + auditReasonValue + '</td>' +
|
|
|
376
|
+ '<td class="text-center">' + Agree + '</td>' +
|
|
|
377
|
+ '<td class="text-center" data-formatter="shtype">' + bval + '</td>' +
|
|
|
378
|
+ '<td class="text-center">' + isProResultValue + '</td>' +
|
|
|
379
|
+ '<td class="text-center">' + n.F_ProSituation + '</td>' +
|
|
|
380
|
+ '<td class="text-center">' + isProtectValue + '</td>' +
|
|
|
381
|
+ '<td class="text-center">' + n.F_DealUserContact + '</td>' +
|
|
|
382
|
+ '<td class="text-center">' + n.F_ConnectTime + '</td>' +
|
|
|
383
|
+ '<td class="text-center">' + n.F_ConnectMode + '</td>' +
|
|
|
384
|
+ '<td class="text-center">' + n.F_ReplyContent + '</td>' +
|
|
|
385
|
+ '<td class="text-center">' + isSatisfiedValue + '</td>' +
|
|
|
386
|
+ '<td class="text-center FJ" style="color:#00a1cb;"></td>' +
|
|
|
387
|
+ '</tr>';
|
|
314
|
388
|
|
|
315
|
|
- var tmp = '';
|
|
316
|
|
- if (n.File) {
|
|
317
|
|
- $.each(n.File, function (d, f) {
|
|
318
|
|
- tmp += '<a style="margin-right:5px;" href="' + f.F_FileUrl + '" download="' + f.F_FileUrl + '">' + f.F_FileName.substring(19) + '</a>';
|
|
319
|
|
- })
|
|
320
|
|
- }
|
|
321
|
|
- $(temp).appendTo($('.HGXX')).find('.FJ').append(tmp);
|
|
|
389
|
+// var tmp = '';
|
|
|
390
|
+// if (n.File) {
|
|
|
391
|
+// $.each(n.File, function (d, f) {
|
|
|
392
|
+// tmp += '<a style="margin-right:5px;" href="' + f.F_FileUrl + '" download="' + f.F_FileUrl + '">' + f.F_FileName.substring(19) + '</a>';
|
|
|
393
|
+// })
|
|
|
394
|
+// }
|
|
|
395
|
+ $(temp).appendTo($('.HGXX'))
|
|
|
396
|
+// .find('.FJ')
|
|
|
397
|
+// .append(tmp);
|
|
322
|
398
|
|
|
323
|
399
|
});
|
|
324
|
400
|
|
|
|
@@ -395,8 +471,17 @@
|
|
395
|
471
|
}, function (result) {
|
|
396
|
472
|
if (result.state.toLowerCase() == "success") {
|
|
397
|
473
|
if (result.data.length > 0) {
|
|
398
|
|
- $("#dealman").val(result.data[0].F_DealUser);
|
|
399
|
|
- $('#result').val(result.data[0].F_Result);
|
|
|
474
|
+ var IsProResultValue = result.data[0].F_IsProResult + "";
|
|
|
475
|
+ isProResultJudge(IsProResultValue);
|
|
|
476
|
+ $("#dealman").val(result.data[0].F_DealUser); //承办人
|
|
|
477
|
+ $("#result").val(result.data[0].F_Result); //办理内容
|
|
|
478
|
+ $('#isProResultRadio input[name="isDisposeResult"][value="' + result.data[0].F_IsProResult +'"]').prop("checked", true);//是否有处理结果
|
|
|
479
|
+ $("#prosituation").val(result.data[0].F_ProSituation); //处理方案/进程
|
|
|
480
|
+ $("#dealcontact").val(result.data[0].F_DealUserContact); //联系方式
|
|
|
481
|
+ $("#connecttime").val(result.data[0].F_ConnectTime); //沟通时间
|
|
|
482
|
+ $("#connectmode").val(result.data[0].F_ConnectMode); //沟通方式
|
|
|
483
|
+ $("#replycontent").val(result.data[0].F_ReplyContent); //答复内容
|
|
|
484
|
+ $('#isStaisfiedRadio input[name="isstaisfied"][value="' + result.data[0].F_IsSatisfied +'"]').prop("checked", true); //是否满意
|
|
400
|
485
|
a = result.data[0].F_Id;
|
|
401
|
486
|
};
|
|
402
|
487
|
|
|
|
@@ -474,6 +559,37 @@
|
|
474
|
559
|
})
|
|
475
|
560
|
$("#file").val(Str);
|
|
476
|
561
|
}
|
|
|
562
|
+ // 处理结果判断
|
|
|
563
|
+ function isProResultJudge (isProResultdata) {
|
|
|
564
|
+ if(isProResultdata === '1') {
|
|
|
565
|
+ if (isProtect === "1" ) {
|
|
|
566
|
+ $(".prosituation-wrapper").hide(); //处理方案/进程
|
|
|
567
|
+ $(".annotation-wrapper").hide(); //注释
|
|
|
568
|
+ $(".dealcontact-wrapper").show(); //联系方式
|
|
|
569
|
+ $(".connecttime-wrapper").hide(); //沟通时间
|
|
|
570
|
+ $(".connectmode-wrapper").hide(); //沟通方式
|
|
|
571
|
+ $(".replycontent-wrapper").hide(); //答复内容
|
|
|
572
|
+ $(".isstaisfied-wrapper").hide(); //是否满意
|
|
|
573
|
+ } else if (isProtect === "0") {
|
|
|
574
|
+ $(".prosituation-wrapper").hide(); //处理方案/进程
|
|
|
575
|
+ $(".annotation-wrapper").hide(); //注释
|
|
|
576
|
+ $(".dealcontact-wrapper").hide(); //联系方式
|
|
|
577
|
+ $(".connecttime-wrapper").show(); //沟通时间
|
|
|
578
|
+ $(".connectmode-wrapper").show(); //沟通方式
|
|
|
579
|
+ $(".replycontent-wrapper").show(); //答复内容
|
|
|
580
|
+ $(".isstaisfied-wrapper").show(); //是否满意
|
|
|
581
|
+ }
|
|
|
582
|
+ } else if (isProResultdata === '2') {
|
|
|
583
|
+ $(".prosituation-wrapper").show(); //处理方案/进程
|
|
|
584
|
+ $(".annotation-wrapper").show(); //注释
|
|
|
585
|
+ $(".dealcontact-wrapper").hide(); //联系方式
|
|
|
586
|
+ $(".connecttime-wrapper").hide(); //沟通时间
|
|
|
587
|
+ $(".connectmode-wrapper").hide(); //沟通方式
|
|
|
588
|
+ $(".replycontent-wrapper").hide(); //答复内容
|
|
|
589
|
+ $(".isstaisfied-wrapper").hide(); //是否满意
|
|
|
590
|
+ }
|
|
|
591
|
+ }
|
|
|
592
|
+
|
|
477
|
593
|
</script>
|
|
478
|
594
|
</body>
|
|
479
|
595
|
|