|
|
@@ -1,367 +1,380 @@
|
|
1
|
1
|
<!DOCTYPE html>
|
|
2
|
2
|
<html>
|
|
3
|
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
|
|
- .HGXX td{
|
|
26
|
|
- padding: 8px;
|
|
27
|
|
- }
|
|
28
|
|
- </style>
|
|
29
|
|
- </head>
|
|
|
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
|
+ }
|
|
30
|
20
|
|
|
31
|
|
- <body>
|
|
32
|
|
- <div class="Common" style="padding: 10px;">
|
|
33
|
|
- <table class="table" border="" cellspacing="0" cellpadding="0" style="border: 1px solid #e7eaec; text-align: center;">
|
|
34
|
|
- <theard>
|
|
35
|
|
- <tr>
|
|
36
|
|
- <td class="text-center" style="min-width:80px;">承办人</td>
|
|
37
|
|
- <td class="text-center" style="min-width:80px;">联系方式</td>
|
|
38
|
|
- <td class="text-center" style="min-width:80px;">职务</td>
|
|
39
|
|
- <td class="text-center" style="min-width:80px;">处理结果</td>
|
|
40
|
|
- <td class="text-center" style="min-width:80px;">办理时间</td>
|
|
41
|
|
- <td class="text-center" style="min-width:80px;">办理结果</td>
|
|
42
|
|
- <td class="text-center" style="min-width:80px;">类型</td>
|
|
43
|
|
- <td class="text-center" style="min-width:80px;">是否有处理结果</td>
|
|
44
|
|
- <td class="text-center" style="min-width:80px;">处理方案/进程</td>
|
|
45
|
|
- <!-- <td class="text-center" style="min-width:80px;">沟通时间</td>
|
|
|
21
|
+ .fjnr {
|
|
|
22
|
+ padding: 0 !important;
|
|
|
23
|
+ border: none !important;
|
|
|
24
|
+ }
|
|
|
25
|
+
|
|
|
26
|
+ .HGXX td {
|
|
|
27
|
+ padding: 8px;
|
|
|
28
|
+ }
|
|
|
29
|
+ </style>
|
|
|
30
|
+</head>
|
|
|
31
|
+
|
|
|
32
|
+<body>
|
|
|
33
|
+ <div class="Common" style="padding: 10px;">
|
|
|
34
|
+ <table class="table" border="" cellspacing="0" cellpadding="0"
|
|
|
35
|
+ style="border: 1px solid #e7eaec; text-align: center;">
|
|
|
36
|
+ <theard>
|
|
|
37
|
+ <tr>
|
|
|
38
|
+ <td class="text-center" style="min-width:80px;">承办人</td>
|
|
|
39
|
+ <td class="text-center" style="min-width:80px;">联系方式</td>
|
|
|
40
|
+ <td class="text-center" style="min-width:80px;">职务</td>
|
|
|
41
|
+ <td class="text-center" style="min-width:80px;">处理结果</td>
|
|
|
42
|
+ <td class="text-center" style="min-width:80px;">办理时间</td>
|
|
|
43
|
+ <td class="text-center" style="min-width:80px;">办理结果</td>
|
|
|
44
|
+ <td class="text-center" style="min-width:80px;">类型</td>
|
|
|
45
|
+ <td class="text-center" style="min-width:80px;">是否有处理结果</td>
|
|
|
46
|
+ <td class="text-center" style="min-width:80px;">处理方案/进程</td>
|
|
|
47
|
+ <!-- <td class="text-center" style="min-width:80px;">沟通时间</td>
|
|
46
|
48
|
<td class="text-center" style="min-width:80px;">沟通方式</td>
|
|
47
|
49
|
<td class="text-center" style="min-width:80px;">是否满意</td> -->
|
|
48
|
|
- <td class="text-center" style="min-width:80px;">附件</td>
|
|
49
|
|
- </tr>
|
|
50
|
|
- </theard>
|
|
51
|
|
- <tbody class="BLNR" style="border-top: none; padding: 8px;">
|
|
52
|
|
- </tbody>
|
|
53
|
|
- <!--<div class="FJ">
|
|
|
50
|
+ <td class="text-center" style="min-width:80px;">附件</td>
|
|
|
51
|
+ </tr>
|
|
|
52
|
+ </theard>
|
|
|
53
|
+ <tbody class="BLNR" style="border-top: none; padding: 8px;">
|
|
|
54
|
+ </tbody>
|
|
|
55
|
+ <!--<div class="FJ">
|
|
54
|
56
|
|
|
55
|
57
|
</div>-->
|
|
56
|
|
- </table>
|
|
57
|
|
- <table>
|
|
58
|
|
- <tr>
|
|
59
|
|
- <th class="Importent" style="text-align: left;"> 审核意见:</th>
|
|
60
|
|
- </tr>
|
|
61
|
|
- <tr>
|
|
62
|
|
- <td style="padding: 0px;"><textarea data-adaptheight id="reason" name="" rows="" cols="" style="text-indent: 2em;"></textarea></td>
|
|
63
|
|
- <input type="hidden" id="ID"/>
|
|
64
|
|
- </tr>
|
|
65
|
|
-
|
|
66
|
|
- </table>
|
|
67
|
|
- <div class="btn_box">
|
|
68
|
|
- <button class="btns BC">同意</button>
|
|
69
|
|
- <button class="btns Submit">拒绝</button>
|
|
70
|
|
- </div>
|
|
71
|
|
- </div>
|
|
72
|
|
- <script src="../css/laydate/laydate.js"></script>
|
|
73
|
|
- <script src="../js/adjustHeight.js" ></script>
|
|
74
|
|
- <script>
|
|
75
|
|
- var wid = helper.request.queryString("wid");
|
|
76
|
|
- var State;
|
|
77
|
|
- var a=$("#ID").val()
|
|
78
|
|
- Detail();
|
|
79
|
|
- $(document).ready(function() {
|
|
80
|
|
-// HGXX();
|
|
81
|
|
- BLNR();
|
|
82
|
|
- Hove();
|
|
83
|
|
-
|
|
84
|
|
- //上传附件
|
|
85
|
|
- $("#scwj").click(function() {
|
|
86
|
|
- $("#upFile").trigger("click");
|
|
87
|
|
- })
|
|
88
|
|
- $("#upFile").change(function() {
|
|
89
|
|
- upload();
|
|
90
|
|
- })
|
|
91
|
|
- $("#scfj").click(function() {
|
|
92
|
|
- $(".fjnr").text("");
|
|
93
|
|
- $("#scfj").hide();
|
|
94
|
|
- })
|
|
95
|
|
- $('.BC').click(function() {
|
|
96
|
|
- if($("#reason").val()==""){
|
|
97
|
|
- layer.msg("请填写审核意见");
|
|
98
|
|
- }else{
|
|
99
|
|
- State = 1;
|
|
100
|
|
- JA();
|
|
101
|
|
- }
|
|
102
|
|
-
|
|
103
|
|
- })
|
|
104
|
|
- $('.Submit').click(function() {
|
|
105
|
|
- if($("#reason").val()==""){
|
|
106
|
|
- layer.msg("请填写审核意见");
|
|
107
|
|
- }else{
|
|
108
|
|
- State = 2;
|
|
109
|
|
- JA();
|
|
110
|
|
- }
|
|
111
|
|
- })
|
|
112
|
|
- });
|
|
113
|
|
- //审批意见
|
|
114
|
|
- function JA() {
|
|
115
|
|
- $.post(huayi.config.callcenter_url + 'WorkOrder/AuditSplitWorkOrder', {
|
|
116
|
|
- workorderid: wid,
|
|
117
|
|
- reason: $('#reason').val(), //办理内容
|
|
118
|
|
- state: State,
|
|
119
|
|
- backid:ccc,
|
|
120
|
|
- token: $.cookie("token")
|
|
121
|
|
- }, function(result) {
|
|
122
|
|
- result = JSON.parse(result);
|
|
123
|
|
- if(result.state.toLowerCase() == "success") {
|
|
124
|
|
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
125
|
|
- parent.layer.close(index); //再执行关闭
|
|
126
|
|
- parent.$('#orderlist').bootstrapTable('refresh');
|
|
127
|
|
- parent.layer.msg("处理成功");
|
|
128
|
|
- }
|
|
129
|
|
- })
|
|
130
|
|
- }
|
|
131
|
|
-// 工单详情
|
|
132
|
|
-// function HGXX() {
|
|
133
|
|
-// $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetSecondDealInfo', {
|
|
134
|
|
-// workorderid: wid,
|
|
135
|
|
-// token: $.cookie("token")
|
|
136
|
|
-// }, function(result) {
|
|
137
|
|
-// // result = JSON.stringify(result)
|
|
138
|
|
-// if(result.state.toLowerCase() == "success") {
|
|
139
|
|
-// var temp;
|
|
140
|
|
-// $.each(result.data.pdinfo,function(i, n) {
|
|
141
|
|
-// var i=0;
|
|
142
|
|
-// i++;
|
|
143
|
|
-// temp = temp + '<td class="text-center">'+i+'</td><td class="text-center">'+n.F_CreateTime+'</td><td class="text-center">'+n.F_AssignedOpinion+'</td><td class="text-center">'+n.F_LimitTime+'</td><td class="text-center">'+n.F_OtherDeptIds+'</td>';
|
|
144
|
|
-//// ccc=n.F_Id;
|
|
145
|
|
-//
|
|
146
|
|
-// });
|
|
147
|
|
-//
|
|
148
|
|
-// $('.HGXX').append(temp);
|
|
149
|
|
-// }
|
|
150
|
|
-// })
|
|
151
|
|
-// }
|
|
152
|
|
- //办理内容
|
|
153
|
|
- function BLNR() {
|
|
154
|
|
- $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetNewSecondDealInfo', {
|
|
155
|
|
- workorderid: wid,
|
|
156
|
|
- token: $.cookie("token")
|
|
157
|
|
- }, function (result) {
|
|
158
|
|
- if (result.state.toLowerCase() == "success") {
|
|
159
|
|
- var temp1;
|
|
160
|
|
- $.each(result.data, function (i, n) {
|
|
161
|
|
- var bval = n.F_Type;
|
|
162
|
|
- switch(bval + '') {
|
|
163
|
|
- case '1':
|
|
164
|
|
- bval = '主办';
|
|
165
|
|
- break;
|
|
166
|
|
- case '2':
|
|
167
|
|
- bval = '协办';
|
|
168
|
|
- break;
|
|
169
|
|
- }
|
|
|
58
|
+ </table>
|
|
|
59
|
+ <table>
|
|
|
60
|
+ <!-- <tr>
|
|
|
61
|
+ <th class="Importent" style="text-align: left;"> 审核意见:</th>
|
|
|
62
|
+ </tr>
|
|
|
63
|
+ <tr>
|
|
|
64
|
+ <td style="padding: 0px;"><textarea data-adaptheight id="reason" name="" rows="" cols=""
|
|
|
65
|
+ style="text-indent: 2em;"></textarea></td>
|
|
|
66
|
+ <input type="hidden" id="ID" />
|
|
|
67
|
+ </tr> -->
|
|
|
68
|
+ </table>
|
|
|
69
|
+ <div class="btn_box">
|
|
|
70
|
+ <button class="btns BC">同意</button>
|
|
|
71
|
+ <button class="btns Submit">拒绝</button>
|
|
|
72
|
+ </div>
|
|
|
73
|
+ </div>
|
|
|
74
|
+ <script src="../css/laydate/laydate.js"></script>
|
|
|
75
|
+ <script src="../js/adjustHeight.js"></script>
|
|
|
76
|
+ <script>
|
|
|
77
|
+ var wid = helper.request.queryString("wid");
|
|
|
78
|
+ var State;
|
|
|
79
|
+ var a = $("#ID").val()
|
|
|
80
|
+ Detail();
|
|
|
81
|
+ $(document).ready(function () {
|
|
|
82
|
+ // HGXX();
|
|
|
83
|
+ BLNR();
|
|
|
84
|
+ Hove();
|
|
170
|
85
|
|
|
171
|
|
- //是否有处理结果
|
|
172
|
|
- var isProResultValue = n.F_IsProResult + "";
|
|
173
|
|
- switch (isProResultValue) {
|
|
174
|
|
- case "0":
|
|
175
|
|
- isProResultValue = "";
|
|
176
|
|
- break;
|
|
177
|
|
- case "1":
|
|
178
|
|
- isProResultValue = "是";
|
|
179
|
|
- break;
|
|
180
|
|
- case "2":
|
|
181
|
|
- isProResultValue = "已办未果";
|
|
182
|
|
- break;
|
|
183
|
|
- }
|
|
184
|
|
- //是否满意
|
|
185
|
|
- var isSatisfiedValue = n.F_IsSatisfied + "";
|
|
186
|
|
- switch (isSatisfiedValue) {
|
|
187
|
|
- case "0":
|
|
188
|
|
- isSatisfiedValue = "未评价";
|
|
189
|
|
- break;
|
|
190
|
|
- case "1":
|
|
191
|
|
- isSatisfiedValue = "满意";
|
|
192
|
|
- break;
|
|
193
|
|
- case "2":
|
|
194
|
|
- isSatisfiedValue = "基本满意";
|
|
195
|
|
- break;
|
|
196
|
|
- case "3":
|
|
197
|
|
- isSatisfiedValue = "不满意";
|
|
198
|
|
- break;
|
|
199
|
|
- }
|
|
200
|
|
- //沟通时间
|
|
201
|
|
- var connectTimeValue = n.F_ConnectTime;
|
|
202
|
|
- switch (connectTimeValue) {
|
|
203
|
|
- case null:
|
|
204
|
|
- connectTimeValue = "";
|
|
205
|
|
- break;
|
|
206
|
|
- default :
|
|
207
|
|
- connectTimeValue = n.F_ConnectTime;
|
|
208
|
|
- }
|
|
209
|
|
- //职务
|
|
210
|
|
- var dutiesValue
|
|
211
|
|
- switch (n.F_Duties) {
|
|
212
|
|
- case "":
|
|
213
|
|
- dutiesValue = ""
|
|
214
|
|
- break;
|
|
215
|
|
- case null:
|
|
216
|
|
- dutiesValue = ""
|
|
217
|
|
- break;
|
|
218
|
|
- default:
|
|
219
|
|
- dutiesValue = n.F_Duties
|
|
220
|
|
- break;
|
|
221
|
|
- }
|
|
222
|
|
- //处理情况
|
|
223
|
|
- var situationValue
|
|
224
|
|
- switch (n.F_Situation) {
|
|
225
|
|
- case "":
|
|
226
|
|
- situationValue = ""
|
|
227
|
|
- break;
|
|
228
|
|
- case null:
|
|
229
|
|
- situationValue = ""
|
|
230
|
|
- break;
|
|
231
|
|
- default:
|
|
232
|
|
- situationValue = n.F_Situation
|
|
233
|
|
- break;
|
|
234
|
|
- }
|
|
|
86
|
+ //上传附件
|
|
|
87
|
+ $("#scwj").click(function () {
|
|
|
88
|
+ $("#upFile").trigger("click");
|
|
|
89
|
+ })
|
|
|
90
|
+ $("#upFile").change(function () {
|
|
|
91
|
+ upload();
|
|
|
92
|
+ })
|
|
|
93
|
+ $("#scfj").click(function () {
|
|
|
94
|
+ $(".fjnr").text("");
|
|
|
95
|
+ $("#scfj").hide();
|
|
|
96
|
+ })
|
|
|
97
|
+ $('.BC').click(function () {
|
|
|
98
|
+ // if ($("#reason").val() == "") {
|
|
|
99
|
+ // layer.msg("请填写审核意见");
|
|
|
100
|
+ // } else {
|
|
|
101
|
+ State = 1;
|
|
|
102
|
+ JA();
|
|
|
103
|
+ // }
|
|
235
|
104
|
|
|
236
|
|
- temp1 = temp1 +
|
|
237
|
|
- '<td class="text-center">' + n.F_DealUser + '</td>' +
|
|
238
|
|
- '<td class="text-center">' + n.F_DealUserContact + '</td>' +
|
|
239
|
|
- '<td class="text-center">' + dutiesValue + '</td>' +
|
|
240
|
|
- '<td class="text-center">' + situationValue + '</td>' +
|
|
241
|
|
- '<td class="text-center">' + n.F_CreateTime + '</td>' +
|
|
242
|
|
- '<td class="text-center">' + n.F_Result + '</td>' +
|
|
243
|
|
- '<td class="text-center" data-formatter="shtype">' + bval + '</td>' +
|
|
244
|
|
- '<td class="text-center">' + isProResultValue + '</td>' +
|
|
245
|
|
- '<td class="text-center">' + n.F_ProSituation + '</td>' +
|
|
246
|
|
- // '<td class="text-center">' + connectTimeValue + '</td>' +
|
|
247
|
|
- // '<td class="text-center">' + n.F_ConnectMode + '</td>' +
|
|
248
|
|
- // '<td class="text-center">' + isSatisfiedValue + '</td>' +
|
|
249
|
|
- '<td class="text-center FJ" style="color:#00a1cb;"></td>';
|
|
250
|
|
- ccc = n.F_Id;
|
|
|
105
|
+ })
|
|
|
106
|
+ $('.Submit').click(function () {
|
|
|
107
|
+ layer.open({
|
|
|
108
|
+ type: 2,
|
|
|
109
|
+ content: "./processing_refuse.html?wid=" + wid + "&backid=" + ccc, //iframe的url,no代表不显示滚动条
|
|
|
110
|
+ title: "拒绝",
|
|
|
111
|
+ area: ["60%", "80%"], //宽高
|
|
|
112
|
+ });
|
|
|
113
|
+ })
|
|
|
114
|
+ });
|
|
|
115
|
+ //审批意见
|
|
|
116
|
+ function JA() {
|
|
|
117
|
+ $.post(huayi.config.callcenter_url + 'WorkOrder/AuditSplitWorkOrder', {
|
|
|
118
|
+ workorderid: wid,
|
|
|
119
|
+ // reason: $('#reason').val(), //办理内容
|
|
|
120
|
+ state: State,
|
|
|
121
|
+ backid: ccc,
|
|
|
122
|
+ token: $.cookie("token")
|
|
|
123
|
+ }, function (result) {
|
|
|
124
|
+ result = JSON.parse(result);
|
|
|
125
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
126
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
127
|
+ parent.layer.close(index); //再执行关闭
|
|
|
128
|
+ parent.$('#orderlist').bootstrapTable('refresh');
|
|
|
129
|
+ parent.layer.msg("处理成功");
|
|
|
130
|
+ }
|
|
|
131
|
+ })
|
|
|
132
|
+ }
|
|
|
133
|
+ // 工单详情
|
|
|
134
|
+ // function HGXX() {
|
|
|
135
|
+ // $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetSecondDealInfo', {
|
|
|
136
|
+ // workorderid: wid,
|
|
|
137
|
+ // token: $.cookie("token")
|
|
|
138
|
+ // }, function(result) {
|
|
|
139
|
+ // // result = JSON.stringify(result)
|
|
|
140
|
+ // if(result.state.toLowerCase() == "success") {
|
|
|
141
|
+ // var temp;
|
|
|
142
|
+ // $.each(result.data.pdinfo,function(i, n) {
|
|
|
143
|
+ // var i=0;
|
|
|
144
|
+ // i++;
|
|
|
145
|
+ // temp = temp + '<td class="text-center">'+i+'</td><td class="text-center">'+n.F_CreateTime+'</td><td class="text-center">'+n.F_AssignedOpinion+'</td><td class="text-center">'+n.F_LimitTime+'</td><td class="text-center">'+n.F_OtherDeptIds+'</td>';
|
|
|
146
|
+ //// ccc=n.F_Id;
|
|
|
147
|
+ //
|
|
|
148
|
+ // });
|
|
|
149
|
+ //
|
|
|
150
|
+ // $('.HGXX').append(temp);
|
|
|
151
|
+ // }
|
|
|
152
|
+ // })
|
|
|
153
|
+ // }
|
|
|
154
|
+ //办理内容
|
|
|
155
|
+ function BLNR() {
|
|
|
156
|
+ $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetNewSecondDealInfo', {
|
|
|
157
|
+ workorderid: wid,
|
|
|
158
|
+ token: $.cookie("token")
|
|
|
159
|
+ }, function (result) {
|
|
|
160
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
161
|
+ var temp1;
|
|
|
162
|
+ $.each(result.data, function (i, n) {
|
|
|
163
|
+ var bval = n.F_Type;
|
|
|
164
|
+ switch (bval + '') {
|
|
|
165
|
+ case '1':
|
|
|
166
|
+ bval = '主办';
|
|
|
167
|
+ break;
|
|
|
168
|
+ case '2':
|
|
|
169
|
+ bval = '协办';
|
|
|
170
|
+ break;
|
|
|
171
|
+ }
|
|
251
|
172
|
|
|
252
|
|
- });
|
|
253
|
|
- $('.BLNR').append(temp1);
|
|
254
|
|
- $(result.data[0].File).each(function (i, n) {
|
|
255
|
|
- HTML = '<a style="margin-right:5px;" href="' + n.F_FileUrl + '" download="' + n.F_FileName.substring(19)+ '">' + n.F_FileName.substring(19) + '</a>'
|
|
256
|
|
- $(HTML).appendTo($('.FJ'));
|
|
257
|
|
- })
|
|
258
|
|
- }
|
|
259
|
|
- })
|
|
260
|
|
- }
|
|
261
|
|
-// <a class="tiaozhuan" style="margin-left: -5px; width:100%; display:block; text-align: center;" href="' + (n.File == null ? '' : n.File[0].F_FileUrl) + '" download="' + (n.File == null ? '' : n.File[0].F_FileUrl) + '" >附件</a>
|
|
262
|
|
-// 判断附件
|
|
263
|
|
- function Hove(){
|
|
264
|
|
- $(document).on("mouseover mouseout",'.tiaozhuan',function(event){
|
|
265
|
|
- if(event.type == "mouseover"){
|
|
266
|
|
- //鼠标悬浮
|
|
267
|
|
- var miao=$(this).attr("href");
|
|
268
|
|
- if (miao=="") {
|
|
269
|
|
- $(this).removeAttr("href");
|
|
270
|
|
- $(this).removeAttr("download");
|
|
271
|
|
- $(this).html("")
|
|
272
|
|
- } else{
|
|
273
|
|
- $(this).attr("href");
|
|
274
|
|
- $(this).attr("download");
|
|
275
|
|
- }
|
|
276
|
|
- }else if(event.type == "mouseout"){
|
|
277
|
|
- //鼠标离开
|
|
278
|
|
- }
|
|
279
|
|
- })
|
|
|
173
|
+ //是否有处理结果
|
|
|
174
|
+ var isProResultValue = n.F_IsProResult + "";
|
|
|
175
|
+ switch (isProResultValue) {
|
|
|
176
|
+ case "0":
|
|
|
177
|
+ isProResultValue = "";
|
|
|
178
|
+ break;
|
|
|
179
|
+ case "1":
|
|
|
180
|
+ isProResultValue = "是";
|
|
|
181
|
+ break;
|
|
|
182
|
+ case "2":
|
|
|
183
|
+ isProResultValue = "已办未果";
|
|
|
184
|
+ break;
|
|
|
185
|
+ }
|
|
|
186
|
+ //是否满意
|
|
|
187
|
+ var isSatisfiedValue = n.F_IsSatisfied + "";
|
|
|
188
|
+ switch (isSatisfiedValue) {
|
|
|
189
|
+ case "0":
|
|
|
190
|
+ isSatisfiedValue = "未评价";
|
|
|
191
|
+ break;
|
|
|
192
|
+ case "1":
|
|
|
193
|
+ isSatisfiedValue = "满意";
|
|
|
194
|
+ break;
|
|
|
195
|
+ case "2":
|
|
|
196
|
+ isSatisfiedValue = "基本满意";
|
|
|
197
|
+ break;
|
|
|
198
|
+ case "3":
|
|
|
199
|
+ isSatisfiedValue = "不满意";
|
|
|
200
|
+ break;
|
|
|
201
|
+ }
|
|
|
202
|
+ //沟通时间
|
|
|
203
|
+ var connectTimeValue = n.F_ConnectTime;
|
|
|
204
|
+ switch (connectTimeValue) {
|
|
|
205
|
+ case null:
|
|
|
206
|
+ connectTimeValue = "";
|
|
|
207
|
+ break;
|
|
|
208
|
+ default:
|
|
|
209
|
+ connectTimeValue = n.F_ConnectTime;
|
|
|
210
|
+ }
|
|
|
211
|
+ //职务
|
|
|
212
|
+ var dutiesValue
|
|
|
213
|
+ switch (n.F_Duties) {
|
|
|
214
|
+ case "":
|
|
|
215
|
+ dutiesValue = ""
|
|
|
216
|
+ break;
|
|
|
217
|
+ case null:
|
|
|
218
|
+ dutiesValue = ""
|
|
|
219
|
+ break;
|
|
|
220
|
+ default:
|
|
|
221
|
+ dutiesValue = n.F_Duties
|
|
|
222
|
+ break;
|
|
|
223
|
+ }
|
|
|
224
|
+ //处理情况
|
|
|
225
|
+ var situationValue
|
|
|
226
|
+ switch (n.F_Situation) {
|
|
|
227
|
+ case "":
|
|
|
228
|
+ situationValue = ""
|
|
|
229
|
+ break;
|
|
|
230
|
+ case null:
|
|
|
231
|
+ situationValue = ""
|
|
|
232
|
+ break;
|
|
|
233
|
+ default:
|
|
|
234
|
+ situationValue = n.F_Situation
|
|
|
235
|
+ break;
|
|
|
236
|
+ }
|
|
280
|
237
|
|
|
281
|
|
- }
|
|
282
|
|
- //草稿详情
|
|
283
|
|
- function Detail() {
|
|
284
|
|
- $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetDraftInfo', {
|
|
285
|
|
- workorderid: wid,
|
|
286
|
|
- type: 2,
|
|
287
|
|
- token: $.cookie("token")
|
|
288
|
|
- }, function(result) {
|
|
289
|
|
- if (result.state.toLowerCase() == "success") {
|
|
290
|
|
- if (result.data.length > 0) {
|
|
291
|
|
- $("#dealman").val(result.data[0].F_DealUser);
|
|
292
|
|
- $('#result').val(result.data[0].F_Result);
|
|
293
|
|
- a = result.data[0].F_Id;
|
|
294
|
|
- };
|
|
295
|
|
- }
|
|
296
|
|
- })
|
|
297
|
|
- }
|
|
298
|
|
- //清除
|
|
299
|
|
- function Clean(){
|
|
300
|
|
- $("#startTime").val(''),
|
|
301
|
|
- $('#assignedopinion').val('')
|
|
302
|
|
- }
|
|
303
|
|
- //上传文件
|
|
304
|
|
- function upload() {
|
|
305
|
|
- var Files = document.getElementById("upFile").files;
|
|
306
|
|
- if (Files.length > 0) {
|
|
307
|
|
- var formData = new FormData();
|
|
308
|
|
- for (var i = 0; i < Files.length; i++) {
|
|
309
|
|
- formData.append('file' + i, Files[i]);
|
|
|
238
|
+ temp1 = temp1 +
|
|
|
239
|
+ '<td class="text-center">' + n.F_DealUser + '</td>' +
|
|
|
240
|
+ '<td class="text-center">' + n.F_DealUserContact + '</td>' +
|
|
|
241
|
+ '<td class="text-center">' + dutiesValue + '</td>' +
|
|
|
242
|
+ '<td class="text-center">' + situationValue + '</td>' +
|
|
|
243
|
+ '<td class="text-center">' + n.F_CreateTime + '</td>' +
|
|
|
244
|
+ '<td class="text-center">' + n.F_Result + '</td>' +
|
|
|
245
|
+ '<td class="text-center" data-formatter="shtype">' + bval + '</td>' +
|
|
|
246
|
+ '<td class="text-center">' + isProResultValue + '</td>' +
|
|
|
247
|
+ '<td class="text-center">' + n.F_ProSituation + '</td>' +
|
|
|
248
|
+ // '<td class="text-center">' + connectTimeValue + '</td>' +
|
|
|
249
|
+ // '<td class="text-center">' + n.F_ConnectMode + '</td>' +
|
|
|
250
|
+ // '<td class="text-center">' + isSatisfiedValue + '</td>' +
|
|
|
251
|
+ '<td class="text-center FJ" style="color:#00a1cb;"></td>';
|
|
|
252
|
+ ccc = n.F_Id;
|
|
|
253
|
+
|
|
|
254
|
+ });
|
|
|
255
|
+ $('.BLNR').append(temp1);
|
|
|
256
|
+ $(result.data[0].File).each(function (i, n) {
|
|
|
257
|
+ HTML = '<a style="margin-right:5px;" href="' + n.F_FileUrl + '" download="' + n
|
|
|
258
|
+ .F_FileName.substring(19) + '">' + n.F_FileName.substring(19) + '</a>'
|
|
|
259
|
+ $(HTML).appendTo($('.FJ'));
|
|
|
260
|
+ })
|
|
|
261
|
+ }
|
|
|
262
|
+ })
|
|
|
263
|
+ }
|
|
|
264
|
+ // <a class="tiaozhuan" style="margin-left: -5px; width:100%; display:block; text-align: center;" href="' + (n.File == null ? '' : n.File[0].F_FileUrl) + '" download="' + (n.File == null ? '' : n.File[0].F_FileUrl) + '" >附件</a>
|
|
|
265
|
+ // 判断附件
|
|
|
266
|
+ function Hove() {
|
|
|
267
|
+ $(document).on("mouseover mouseout", '.tiaozhuan', function (event) {
|
|
|
268
|
+ if (event.type == "mouseover") {
|
|
|
269
|
+ //鼠标悬浮
|
|
|
270
|
+ var miao = $(this).attr("href");
|
|
|
271
|
+ if (miao == "") {
|
|
|
272
|
+ $(this).removeAttr("href");
|
|
|
273
|
+ $(this).removeAttr("download");
|
|
|
274
|
+ $(this).html("")
|
|
|
275
|
+ } else {
|
|
|
276
|
+ $(this).attr("href");
|
|
|
277
|
+ $(this).attr("download");
|
|
310
|
278
|
}
|
|
311
|
|
- formData.append("token", $.cookie("token"));
|
|
312
|
|
- $.ajax({
|
|
313
|
|
- url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
|
|
314
|
|
- type: "POST",
|
|
315
|
|
- data: formData,
|
|
316
|
|
- /**
|
|
317
|
|
- *必须false才会自动加上正确的Content-Type
|
|
318
|
|
- */
|
|
319
|
|
- contentType: false,
|
|
320
|
|
- /**
|
|
321
|
|
- * 必须false才会避开jQuery对 formdata 的默认处理
|
|
322
|
|
- * XMLHttpRequest会对 formdata 进行正确的处理
|
|
323
|
|
- */
|
|
324
|
|
- processData: false,
|
|
325
|
|
- success: function (result) {
|
|
326
|
|
- document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
|
|
327
|
|
- $("#upFile").change(function () {
|
|
328
|
|
- upload();
|
|
329
|
|
- });
|
|
330
|
|
- var r = $.parseJSON(result);
|
|
331
|
|
- if (r.state.toLowerCase() == "success") {
|
|
332
|
|
- $(".fjnr").text(r.data[0].F_FileName);
|
|
333
|
|
- var a = r.data;
|
|
334
|
|
- $(a).each(function (i, n) {
|
|
335
|
|
- var strs = '<span class="files" fiel-num="' + n.F_FileId + '">' + n.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
|
|
336
|
|
- $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
|
|
337
|
|
- event.stopPropagation();
|
|
338
|
|
- $(this).parent().remove();
|
|
339
|
|
- file_num()
|
|
340
|
|
- })
|
|
|
279
|
+ } else if (event.type == "mouseout") {
|
|
|
280
|
+ //鼠标离开
|
|
|
281
|
+ }
|
|
|
282
|
+ })
|
|
|
283
|
+
|
|
|
284
|
+ }
|
|
|
285
|
+ //草稿详情
|
|
|
286
|
+ function Detail() {
|
|
|
287
|
+ $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetDraftInfo', {
|
|
|
288
|
+ workorderid: wid,
|
|
|
289
|
+ type: 2,
|
|
|
290
|
+ token: $.cookie("token")
|
|
|
291
|
+ }, function (result) {
|
|
|
292
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
293
|
+ if (result.data.length > 0) {
|
|
|
294
|
+ $("#dealman").val(result.data[0].F_DealUser);
|
|
|
295
|
+ $('#result').val(result.data[0].F_Result);
|
|
|
296
|
+ a = result.data[0].F_Id;
|
|
|
297
|
+ };
|
|
|
298
|
+ }
|
|
|
299
|
+ })
|
|
|
300
|
+ }
|
|
|
301
|
+ //清除
|
|
|
302
|
+ function Clean() {
|
|
|
303
|
+ $("#startTime").val(''),
|
|
|
304
|
+ $('#assignedopinion').val('')
|
|
|
305
|
+ }
|
|
|
306
|
+ //上传文件
|
|
|
307
|
+ function upload() {
|
|
|
308
|
+ var Files = document.getElementById("upFile").files;
|
|
|
309
|
+ if (Files.length > 0) {
|
|
|
310
|
+ var formData = new FormData();
|
|
|
311
|
+ for (var i = 0; i < Files.length; i++) {
|
|
|
312
|
+ formData.append('file' + i, Files[i]);
|
|
|
313
|
+ }
|
|
|
314
|
+ formData.append("token", $.cookie("token"));
|
|
|
315
|
+ $.ajax({
|
|
|
316
|
+ url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
|
|
|
317
|
+ type: "POST",
|
|
|
318
|
+ data: formData,
|
|
|
319
|
+ /**
|
|
|
320
|
+ *必须false才会自动加上正确的Content-Type
|
|
|
321
|
+ */
|
|
|
322
|
+ contentType: false,
|
|
|
323
|
+ /**
|
|
|
324
|
+ * 必须false才会避开jQuery对 formdata 的默认处理
|
|
|
325
|
+ * XMLHttpRequest会对 formdata 进行正确的处理
|
|
|
326
|
+ */
|
|
|
327
|
+ processData: false,
|
|
|
328
|
+ success: function (result) {
|
|
|
329
|
+ document.getElementById("upFile").outerHTML = document.getElementById("upFile")
|
|
|
330
|
+ .outerHTML;
|
|
|
331
|
+ $("#upFile").change(function () {
|
|
|
332
|
+ upload();
|
|
|
333
|
+ });
|
|
|
334
|
+ var r = $.parseJSON(result);
|
|
|
335
|
+ if (r.state.toLowerCase() == "success") {
|
|
|
336
|
+ $(".fjnr").text(r.data[0].F_FileName);
|
|
|
337
|
+ var a = r.data;
|
|
|
338
|
+ $(a).each(function (i, n) {
|
|
|
339
|
+ var strs = '<span class="files" fiel-num="' + n.F_FileId + '">' + n
|
|
|
340
|
+ .F_FileName.substring(19) +
|
|
|
341
|
+ '<i class="fa fa-remove del_file"></i></span>'
|
|
|
342
|
+ $(strs).appendTo($('.fileBox')).find('.del_file').click(function (
|
|
|
343
|
+ event) {
|
|
|
344
|
+ event.stopPropagation();
|
|
|
345
|
+ $(this).parent().remove();
|
|
|
346
|
+ file_num()
|
|
341
|
347
|
})
|
|
342
|
|
- file_num();
|
|
343
|
|
- }
|
|
|
348
|
+ })
|
|
|
349
|
+ file_num();
|
|
344
|
350
|
}
|
|
345
|
|
- });
|
|
346
|
|
- } else {
|
|
347
|
|
- layer.confirm('请上传文件!', {
|
|
348
|
|
- btn: ['确定']
|
|
349
|
|
- });
|
|
350
|
|
- }
|
|
|
351
|
+ }
|
|
|
352
|
+ });
|
|
|
353
|
+ } else {
|
|
|
354
|
+ layer.confirm('请上传文件!', {
|
|
|
355
|
+ btn: ['确定']
|
|
|
356
|
+ });
|
|
351
|
357
|
}
|
|
352
|
|
- //上传文件隐藏域值
|
|
353
|
|
- function file_num(){
|
|
354
|
|
- var str = '';
|
|
355
|
|
- var Str;
|
|
356
|
|
- $('.fileBox .files').each(function(j,m){
|
|
357
|
|
- var aa=$(m).attr("fiel-num")
|
|
358
|
|
- console.log(aa);
|
|
359
|
|
- str += aa + ",";
|
|
360
|
|
- Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
|
|
361
|
|
- })
|
|
362
|
|
- $("#file").val(Str);
|
|
363
|
|
- }
|
|
364
|
|
- </script>
|
|
365
|
|
- </body>
|
|
|
358
|
+ }
|
|
|
359
|
+ //上传文件隐藏域值
|
|
|
360
|
+ function file_num() {
|
|
|
361
|
+ var str = '';
|
|
|
362
|
+ var Str;
|
|
|
363
|
+ $('.fileBox .files').each(function (j, m) {
|
|
|
364
|
+ var aa = $(m).attr("fiel-num")
|
|
|
365
|
+ console.log(aa);
|
|
|
366
|
+ str += aa + ",";
|
|
|
367
|
+ Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
|
|
|
368
|
+ })
|
|
|
369
|
+ $("#file").val(Str);
|
|
|
370
|
+ }
|
|
|
371
|
+ // 关闭页面
|
|
|
372
|
+ function closePage() {
|
|
|
373
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
374
|
+ parent.layer.close(index); //再执行关闭
|
|
|
375
|
+ parent.$('#orderlist').bootstrapTable('refresh');
|
|
|
376
|
+ }
|
|
|
377
|
+ </script>
|
|
|
378
|
+</body>
|
|
366
|
379
|
|
|
367
|
380
|
</html>
|