|
|
@@ -14,12 +14,12 @@
|
|
14
|
14
|
</head>
|
|
15
|
15
|
|
|
16
|
16
|
<body>
|
|
17
|
|
- <input type="hidden" id="PID" value="" />
|
|
|
17
|
+ <input type="hidden" id="PID" value="" />
|
|
18
|
18
|
<div class="wrapper wrapper-content animated fadeInRight">
|
|
19
|
19
|
<div style="padding: 10px;" class="tj_content clearFix">
|
|
20
|
20
|
<div class="Common">
|
|
21
|
21
|
<table>
|
|
22
|
|
-
|
|
|
22
|
+
|
|
23
|
23
|
<!-- <tr>
|
|
24
|
24
|
<th>邮箱:</th>
|
|
25
|
25
|
<td>
|
|
|
@@ -43,13 +43,15 @@
|
|
43
|
43
|
<tr class="content-wrapper">
|
|
44
|
44
|
<th class="Importent">来电内容:</th>
|
|
45
|
45
|
<td colspan="7">
|
|
46
|
|
- <textarea data-adaptheight id="content" name="" rows="" cols="" style="width: 100%;" readonly="readonly"></textarea>
|
|
|
46
|
+ <textarea data-adaptheight id="content" name="" rows="" cols="" style="width: 100%;"
|
|
|
47
|
+ readonly="readonly"></textarea>
|
|
47
|
48
|
</td>
|
|
48
|
49
|
</tr>
|
|
49
|
50
|
<tr class="workcontent-wrapper">
|
|
50
|
51
|
<th class="Importent">工单内容:</th>
|
|
51
|
52
|
<td colspan="7">
|
|
52
|
|
- <textarea data-adaptheight id="workcontent" name="" rows="" cols="" style="width: 100%;"></textarea>
|
|
|
53
|
+ <textarea data-adaptheight id="workcontent" name="" rows="" cols=""
|
|
|
54
|
+ style="width: 100%;"></textarea>
|
|
53
|
55
|
</td>
|
|
54
|
56
|
</tr>
|
|
55
|
57
|
<tr>
|
|
|
@@ -59,12 +61,13 @@
|
|
59
|
61
|
|
|
60
|
62
|
</div>
|
|
61
|
63
|
<!--<span class="fjnr"></span>-->
|
|
62
|
|
- <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
|
|
|
64
|
+ <input class="input" type="file" name="upFile" id="upFile" multiple="multiple"
|
|
|
65
|
+ style="display: none;">
|
|
63
|
66
|
<input class="input" type="button" value="上传" id="scwj" />
|
|
64
|
67
|
<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
|
|
65
|
68
|
<input type="hidden" id="file" />
|
|
66
|
|
- <span style="color:#FF0000; border: none;">
|
|
67
|
|
- (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
|
|
|
69
|
+ <span style="color:#FF0000; border: none;">
|
|
|
70
|
+ (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
|
|
68
|
71
|
</span>
|
|
69
|
72
|
</td>
|
|
70
|
73
|
</tr>
|
|
|
@@ -116,18 +119,18 @@
|
|
116
|
119
|
</select>
|
|
117
|
120
|
</td>-->
|
|
118
|
121
|
<td style="position: relative">
|
|
119
|
|
- <div class="inpBox">
|
|
120
|
|
- <input type="text" class="inps" onkeyup="darptSearch()" />
|
|
121
|
|
- <i class="Cleans fa fa-close"></i>
|
|
122
|
|
- <i class="xl xl_one"></i>
|
|
123
|
|
- <div class="addTree xlAdd">
|
|
124
|
|
- <ul id="addTreeDemo" class="ztree"></ul>
|
|
125
|
|
- </div>
|
|
126
|
|
- </div>
|
|
127
|
|
- <div class="selDpart1">
|
|
128
|
|
- <ul id="sponsor"></ul>
|
|
129
|
|
- </div>
|
|
130
|
|
- </td>
|
|
|
122
|
+ <div class="inpBox">
|
|
|
123
|
+ <input type="text" class="inps" onkeyup="darptSearch()" />
|
|
|
124
|
+ <i class="Cleans fa fa-close"></i>
|
|
|
125
|
+ <i class="xl xl_one"></i>
|
|
|
126
|
+ <div class="addTree xlAdd">
|
|
|
127
|
+ <ul id="addTreeDemo" class="ztree"></ul>
|
|
|
128
|
+ </div>
|
|
|
129
|
+ </div>
|
|
|
130
|
+ <div class="selDpart1">
|
|
|
131
|
+ <ul id="sponsor"></ul>
|
|
|
132
|
+ </div>
|
|
|
133
|
+ </td>
|
|
131
|
134
|
<th>来电号码密级:</th>
|
|
132
|
135
|
<td>
|
|
133
|
136
|
<input type="radio" name="mj" id="" value="0" />普通
|
|
|
@@ -141,17 +144,23 @@
|
|
141
|
144
|
<option value="2">紧急</option>
|
|
142
|
145
|
</select>
|
|
143
|
146
|
</td>
|
|
144
|
|
- <!--<th class="">分管领导:</th>
|
|
145
|
|
- <td colspan="4">
|
|
146
|
|
- <input id="splituser" type="text" placeholder="" style="width:100%" readonly="readonly" />
|
|
147
|
|
- </td>-->
|
|
|
147
|
+ </tr>
|
|
|
148
|
+ <tr class="leaderCharge-wrapper" style="display: none;">
|
|
|
149
|
+ <th class="">分管领导:</th>
|
|
|
150
|
+ <td>
|
|
|
151
|
+ <select class="select_" id="leaderCharge">
|
|
|
152
|
+ <option value="">请选择</option>
|
|
|
153
|
+ <option value="省长">省长</option>
|
|
|
154
|
+ <option value="市长">市长</option>
|
|
|
155
|
+ </select>
|
|
|
156
|
+ </td>
|
|
148
|
157
|
</tr>
|
|
149
|
158
|
<tr>
|
|
150
|
159
|
<td colspan="8" style="text-align: center;">
|
|
151
|
160
|
<div class="btn_box">
|
|
152
|
161
|
<button class="btns BC">保存</button>
|
|
153
|
162
|
<!--<button class="btns SavedSubmit">保存并提交</button>-->
|
|
154
|
|
- </div>
|
|
|
163
|
+ </div>
|
|
155
|
164
|
</td>
|
|
156
|
165
|
</tr>
|
|
157
|
166
|
<tr>
|
|
|
@@ -161,20 +170,21 @@
|
|
161
|
170
|
</td>
|
|
162
|
171
|
</tr>
|
|
163
|
172
|
<tr>
|
|
164
|
|
- <th class="Importent"></th>
|
|
|
173
|
+ <th class="Importent"></th>
|
|
165
|
174
|
<td colspan="7">
|
|
166
|
|
- <input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:50%; padding-left: 15px;" />
|
|
167
|
|
- </td>
|
|
|
175
|
+ <input id="sourceaddress" type="text" placeholder="输入详细地址"
|
|
|
176
|
+ style="width:50%; padding-left: 15px;" />
|
|
|
177
|
+ </td>
|
|
168
|
178
|
</tr>
|
|
169
|
179
|
<tr>
|
|
170
|
180
|
<th class="Importent"></th>
|
|
171
|
181
|
<td colspan="7">
|
|
172
|
|
- <div style="width:710px">
|
|
173
|
|
- <div id="myMap" style="width:100%;height:400px;"></div>
|
|
174
|
|
- <input type="hidden" class="store_Lng" value="115.659773"/>
|
|
175
|
|
- <input type="hidden" class="store_Lat" value="34.395449"/>
|
|
176
|
|
- </div>
|
|
177
|
|
- </td>
|
|
|
182
|
+ <div style="width:710px">
|
|
|
183
|
+ <div id="myMap" style="width:100%;height:400px;"></div>
|
|
|
184
|
+ <input type="hidden" class="store_Lng" value="115.659773" />
|
|
|
185
|
+ <input type="hidden" class="store_Lat" value="34.395449" />
|
|
|
186
|
+ </div>
|
|
|
187
|
+ </td>
|
|
178
|
188
|
</tr>
|
|
179
|
189
|
</table>
|
|
180
|
190
|
</div>
|
|
|
@@ -198,7 +208,7 @@
|
|
198
|
208
|
ZT($("#keys"))
|
|
199
|
209
|
|
|
200
|
210
|
// 管理员、中心话务员可编辑工单内容
|
|
201
|
|
- if(roleCode === "GLY") {
|
|
|
211
|
+ if (roleCode === "GLY") {
|
|
202
|
212
|
$("#content").removeAttr("readonly")
|
|
203
|
213
|
} else if (roleCode === "ZXHWY") {
|
|
204
|
214
|
$(".workcontent-wrapper").hide()
|
|
|
@@ -233,87 +243,96 @@
|
|
233
|
243
|
Add()
|
|
234
|
244
|
})
|
|
235
|
245
|
if (wid) {
|
|
236
|
|
- $.ajax({
|
|
|
246
|
+ $.ajax({
|
|
237
|
247
|
type: "get",
|
|
238
|
248
|
url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
|
|
239
|
249
|
dataType: 'json',
|
|
240
|
250
|
async: false,
|
|
241
|
251
|
data: {
|
|
242
|
|
- workorderid: wid,
|
|
243
|
|
- token: $.cookie("token")
|
|
|
252
|
+ workorderid: wid,
|
|
|
253
|
+ token: $.cookie("token")
|
|
244
|
254
|
},
|
|
245
|
255
|
success: function (data) {
|
|
246
|
256
|
if (data.state.toLowerCase() == "success") {
|
|
247
|
257
|
var Data = data.data.data;
|
|
248
|
|
- $("#cusname").val(Data[0].F_CusName);
|
|
249
|
|
- $("#cusphone").val(Data[0].F_CusPhone);
|
|
250
|
|
- $("#conphone").val(Data[0].F_ConPhone);
|
|
251
|
|
- $("#title").val(Data[0].F_ComTitle);
|
|
252
|
|
- $('#content').val(Data[0].F_ComContent);
|
|
|
258
|
+ $("#cusname").val(Data[0].F_CusName);
|
|
|
259
|
+ $("#cusphone").val(Data[0].F_CusPhone);
|
|
|
260
|
+ $("#conphone").val(Data[0].F_ConPhone);
|
|
|
261
|
+ $("#title").val(Data[0].F_ComTitle);
|
|
|
262
|
+ $('#content').val(Data[0].F_ComContent);
|
|
253
|
263
|
if (Data[0].F_Content === "" || Data[0].F_Content === null) {
|
|
254
|
264
|
$('#workcontent').val(Data[0].F_ComContent);
|
|
255
|
265
|
} else {
|
|
256
|
266
|
$('#workcontent').val(Data[0].F_Content);
|
|
257
|
267
|
}
|
|
258
|
|
- $('#email').val(Data[0].F_Email);
|
|
259
|
|
- $("#zipcode").val(Data[0].F_ZipCode);
|
|
260
|
|
- $("#result").val(Data[0].F_Result);
|
|
261
|
|
- if (Data[0].F_Longitude) {
|
|
262
|
|
- $(".store_Lng").val(Data[0].F_Longitude);
|
|
263
|
|
- $(".store_Lat").val(Data[0].F_Latitude);
|
|
264
|
|
- }
|
|
265
|
|
- //x性别
|
|
266
|
|
- $("#SEX option:selected").val(Data[0].F_CusSex + '');
|
|
267
|
|
- if (Data[0].F_CusSex=="0") {
|
|
268
|
|
- $("#SEX option:selected").text("男"); //乡镇
|
|
269
|
|
- } else{
|
|
270
|
|
- $("#SEX option:selected").text("女"); //乡镇
|
|
271
|
|
- }
|
|
272
|
|
- //来源
|
|
273
|
|
- $("#source option:selected").val(Data[0].F_InfoSource + '');
|
|
274
|
|
- $("#source option:selected").text(Data[0].SourceName); //来源
|
|
275
|
|
- //事件地址
|
|
276
|
|
- $("#sourcearea option:selected").val(Data[0].F_SourceArea + '');
|
|
277
|
|
- $("#sourcearea option:selected").text(Data[0].AreaName); //事件地址
|
|
278
|
|
- //主题词
|
|
279
|
|
- $("#keys option:selected").val(Data[0].F_Key + '');
|
|
280
|
|
- $("#keys option:selected").text(Data[0].KeyName); //主题词
|
|
|
268
|
+ $('#email').val(Data[0].F_Email);
|
|
|
269
|
+ $("#zipcode").val(Data[0].F_ZipCode);
|
|
|
270
|
+ $("#result").val(Data[0].F_Result);
|
|
|
271
|
+ if (Data[0].F_Longitude) {
|
|
|
272
|
+ $(".store_Lng").val(Data[0].F_Longitude);
|
|
|
273
|
+ $(".store_Lat").val(Data[0].F_Latitude);
|
|
|
274
|
+ }
|
|
|
275
|
+ //x性别
|
|
|
276
|
+ $("#SEX option:selected").val(Data[0].F_CusSex + '');
|
|
|
277
|
+ if (Data[0].F_CusSex == "0") {
|
|
|
278
|
+ $("#SEX option:selected").text("男"); //乡镇
|
|
|
279
|
+ } else {
|
|
|
280
|
+ $("#SEX option:selected").text("女"); //乡镇
|
|
|
281
|
+ }
|
|
|
282
|
+ //来源
|
|
|
283
|
+ $("#source option:selected").val(Data[0].F_InfoSource + '');
|
|
|
284
|
+ $("#source option:selected").text(Data[0].SourceName); //来源
|
|
|
285
|
+ if(Data[0].F_InfoSource + "" === "4") {
|
|
|
286
|
+ $(".leaderCharge-wrapper").show()
|
|
|
287
|
+ $("#leaderCharge").val(Data[0].splituser)
|
|
|
288
|
+ }
|
|
|
289
|
+ //事件地址
|
|
|
290
|
+ $("#sourcearea option:selected").val(Data[0].F_SourceArea + '');
|
|
|
291
|
+ $("#sourcearea option:selected").text(Data[0].AreaName); //事件地址
|
|
|
292
|
+ //主题词
|
|
|
293
|
+ $("#keys option:selected").val(Data[0].F_Key + '');
|
|
|
294
|
+ $("#keys option:selected").text(Data[0].KeyName); //主题词
|
|
281
|
295
|
$(".inps").val(Data[0].KeyName)
|
|
282
|
|
- $("#PID").val(Data[0].F_Key)
|
|
283
|
|
-
|
|
284
|
|
- //类型
|
|
285
|
|
- $("#type option:selected").val(Data[0].F_InfoType + '');
|
|
286
|
|
- $("#type option:selected").text(Data[0].TypeName1); //类型
|
|
287
|
|
- //紧急程度
|
|
288
|
|
- $("#level").val(Data[0].F_Level + '');
|
|
289
|
|
- if (Data[0].F_Level=="1") {
|
|
290
|
|
- $("#level option:selected").text("普通"); //乡镇
|
|
291
|
|
- } else{
|
|
292
|
|
- $("#level option:selected").text("紧急"); //乡镇
|
|
293
|
|
- }
|
|
294
|
|
- if (Data[0].F_IsResult == 1) {
|
|
295
|
|
- $(".Nows_box").toggle();
|
|
296
|
|
- }
|
|
297
|
|
- $(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop("checked", "checked");
|
|
298
|
|
- $(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
|
|
299
|
|
- $('#sourceaddress').val(Data[0].F_SourceAddress);
|
|
300
|
|
- $('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
|
|
301
|
|
- $(Data[0].File).each(function (k, q) {
|
|
302
|
|
- var strs = '<span class="files" fiel-num="' + q.F_FileId + '">' + q.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
|
|
303
|
|
- $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
|
|
304
|
|
- event.stopPropagation();
|
|
305
|
|
- $(this).parent().remove();
|
|
306
|
|
- file_num()
|
|
307
|
|
- })
|
|
308
|
|
- file_num()
|
|
309
|
|
- })
|
|
|
296
|
+ $("#PID").val(Data[0].F_Key)
|
|
|
297
|
+
|
|
|
298
|
+ //类型
|
|
|
299
|
+ $("#type option:selected").val(Data[0].F_InfoType + '');
|
|
|
300
|
+ $("#type option:selected").text(Data[0].TypeName1); //类型
|
|
|
301
|
+ //紧急程度
|
|
|
302
|
+ $("#level").val(Data[0].F_Level + '');
|
|
|
303
|
+ if (Data[0].F_Level == "1") {
|
|
|
304
|
+ $("#level option:selected").text("普通"); //乡镇
|
|
|
305
|
+ } else {
|
|
|
306
|
+ $("#level option:selected").text("紧急"); //乡镇
|
|
|
307
|
+ }
|
|
|
308
|
+ if (Data[0].F_IsResult == 1) {
|
|
|
309
|
+ $(".Nows_box").toggle();
|
|
|
310
|
+ }
|
|
|
311
|
+ $(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop(
|
|
|
312
|
+ "checked", "checked");
|
|
|
313
|
+ $(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop(
|
|
|
314
|
+ "checked", "checked");
|
|
|
315
|
+ $('#sourceaddress').val(Data[0].F_SourceAddress);
|
|
|
316
|
+ $('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
|
|
|
317
|
+ $(Data[0].File).each(function (k, q) {
|
|
|
318
|
+ var strs = '<span class="files" fiel-num="' + q.F_FileId +
|
|
|
319
|
+ '">' + q.F_FileName.substring(19) +
|
|
|
320
|
+ '<i class="fa fa-remove del_file"></i></span>'
|
|
|
321
|
+ $(strs).appendTo($('.fileBox')).find('.del_file').click(
|
|
|
322
|
+ function (event) {
|
|
|
323
|
+ event.stopPropagation();
|
|
|
324
|
+ $(this).parent().remove();
|
|
|
325
|
+ file_num()
|
|
|
326
|
+ })
|
|
|
327
|
+ file_num()
|
|
|
328
|
+ })
|
|
310
|
329
|
}
|
|
311
|
330
|
|
|
312
|
331
|
}
|
|
313
|
332
|
});
|
|
314
|
333
|
}
|
|
315
|
|
-
|
|
316
|
|
-
|
|
|
334
|
+
|
|
|
335
|
+
|
|
317
|
336
|
});
|
|
318
|
337
|
|
|
319
|
338
|
///修改工单
|
|
|
@@ -336,52 +355,53 @@
|
|
336
|
355
|
// } else if (value == 1 && !$('#result').val()) {
|
|
337
|
356
|
// layer.msg("请输入直办内容");
|
|
338
|
357
|
// } else {
|
|
339
|
|
- if (!$(".inps").val()) {
|
|
340
|
|
- layer.msg("请选择反映类别");
|
|
341
|
|
- return
|
|
342
|
|
- }
|
|
343
|
|
- $.ajax({
|
|
344
|
|
- type: "post",
|
|
345
|
|
- url: huayi.config.callcenter_url + "WorkOrder/EditWorkOrder",
|
|
346
|
|
- dataType: 'json',
|
|
347
|
|
- async: true,
|
|
348
|
|
- data: {
|
|
349
|
|
- workorderid: wid,
|
|
350
|
|
- cusname: $("#cusname").val(), //=来电人姓名
|
|
351
|
|
- cussex: $("#SEX").val(),
|
|
352
|
|
- cusphone: $("#cusphone").val(), //=来电人电话
|
|
353
|
|
- email: $("#email").val(),
|
|
354
|
|
- zipcode: $("#zipcode").val(),
|
|
355
|
|
- conphone: $("#conphone").val(),
|
|
356
|
|
- title: $("#title").val(),
|
|
357
|
|
- content: $("#content").val(),
|
|
358
|
|
- workcontent: $("#workcontent").val(),
|
|
359
|
|
- files: $("#file").val(), //(多个用英文逗号,隔开)
|
|
360
|
|
- sourcearea: $("#sourcearea").val(), //=事发地域id
|
|
361
|
|
- sourceaddress: $('#sourceaddress').val(), //=事发详细地址
|
|
362
|
|
- source: $("#source").val(), //=来源
|
|
363
|
|
- isresult: $(' input[name="banli"]:checked ').val(), //=(0转办1直办)
|
|
364
|
|
- result: $('#result').val(),
|
|
365
|
|
- keys: $("#PID").val(), //=关键词id(多个用英文逗号,隔开)
|
|
366
|
|
- type: $("#type").val(), //=类型
|
|
367
|
|
- bigtype: $("#bigtype").val(), //=大类别
|
|
368
|
|
- smalltype: $("#smalltype").val(), //=小类别
|
|
369
|
|
- isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)
|
|
370
|
|
- level: $('#level').val(), //=(1普通2紧急)
|
|
371
|
|
- issubmit: submit, //=(0保存1保存并提交)
|
|
372
|
|
- token: $.cookie("token")
|
|
373
|
|
- },
|
|
374
|
|
- success: function (data) {
|
|
375
|
|
- if (data.state.toLowerCase() == "success") {
|
|
376
|
|
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
377
|
|
- parent.layer.close(index); //再执行关闭
|
|
378
|
|
- parent.$('#orderlist').bootstrapTable('refresh');
|
|
379
|
|
- parent.layer.msg(data.message);
|
|
380
|
|
- $('.fileBox').html('');
|
|
381
|
|
-
|
|
382
|
|
- }
|
|
|
358
|
+ if (!$(".inps").val()) {
|
|
|
359
|
+ layer.msg("请选择反映类别");
|
|
|
360
|
+ return
|
|
|
361
|
+ }
|
|
|
362
|
+ $.ajax({
|
|
|
363
|
+ type: "post",
|
|
|
364
|
+ url: huayi.config.callcenter_url + "WorkOrder/EditWorkOrder",
|
|
|
365
|
+ dataType: 'json',
|
|
|
366
|
+ async: true,
|
|
|
367
|
+ data: {
|
|
|
368
|
+ workorderid: wid,
|
|
|
369
|
+ cusname: $("#cusname").val(), //=来电人姓名
|
|
|
370
|
+ cussex: $("#SEX").val(),
|
|
|
371
|
+ cusphone: $("#cusphone").val(), //=来电人电话
|
|
|
372
|
+ email: $("#email").val(),
|
|
|
373
|
+ zipcode: $("#zipcode").val(),
|
|
|
374
|
+ conphone: $("#conphone").val(),
|
|
|
375
|
+ title: $("#title").val(),
|
|
|
376
|
+ content: $("#content").val(),
|
|
|
377
|
+ workcontent: $("#workcontent").val(),
|
|
|
378
|
+ files: $("#file").val(), //(多个用英文逗号,隔开)
|
|
|
379
|
+ sourcearea: $("#sourcearea").val(), //=事发地域id
|
|
|
380
|
+ sourceaddress: $('#sourceaddress').val(), //=事发详细地址
|
|
|
381
|
+ source: $("#source").val(), //=来源
|
|
|
382
|
+ splituser: $("#leaderCharge").val(), // 分管领导
|
|
|
383
|
+ isresult: $(' input[name="banli"]:checked ').val(), //=(0转办1直办)
|
|
|
384
|
+ result: $('#result').val(),
|
|
|
385
|
+ keys: $("#PID").val(), //=关键词id(多个用英文逗号,隔开)
|
|
|
386
|
+ type: $("#type").val(), //=类型
|
|
|
387
|
+ bigtype: $("#bigtype").val(), //=大类别
|
|
|
388
|
+ smalltype: $("#smalltype").val(), //=小类别
|
|
|
389
|
+ isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)
|
|
|
390
|
+ level: $('#level').val(), //=(1普通2紧急)
|
|
|
391
|
+ issubmit: submit, //=(0保存1保存并提交)
|
|
|
392
|
+ token: $.cookie("token")
|
|
|
393
|
+ },
|
|
|
394
|
+ success: function (data) {
|
|
|
395
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
396
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
397
|
+ parent.layer.close(index); //再执行关闭
|
|
|
398
|
+ parent.$('#orderlist').bootstrapTable('refresh');
|
|
|
399
|
+ parent.layer.msg(data.message);
|
|
|
400
|
+ $('.fileBox').html('');
|
|
|
401
|
+
|
|
383
|
402
|
}
|
|
384
|
|
- });
|
|
|
403
|
+ }
|
|
|
404
|
+ });
|
|
385
|
405
|
// }
|
|
386
|
406
|
}
|
|
387
|
407
|
//上传文件隐藏域值
|
|
|
@@ -401,23 +421,24 @@
|
|
401
|
421
|
obj.empty();
|
|
402
|
422
|
obj.append('<option selected="selected" value="">请选择</option>');
|
|
403
|
423
|
$.ajax({
|
|
404
|
|
- type:"get",
|
|
405
|
|
- url:huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
|
|
406
|
|
- dataType:"json",
|
|
407
|
|
- async:false,
|
|
408
|
|
- data:{
|
|
409
|
|
- "token": $.cookie("token"),
|
|
410
|
|
- id: 1
|
|
411
|
|
- },
|
|
412
|
|
- success:function(data){
|
|
413
|
|
- if (data.state.toLowerCase() == "success") {
|
|
414
|
|
- var content = data.data;
|
|
415
|
|
- $(content).each(function (i, n) {
|
|
416
|
|
- $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
|
|
417
|
|
- })
|
|
418
|
|
-
|
|
419
|
|
- }
|
|
420
|
|
- }
|
|
|
424
|
+ type: "get",
|
|
|
425
|
+ url: huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
|
|
|
426
|
+ dataType: "json",
|
|
|
427
|
+ async: false,
|
|
|
428
|
+ data: {
|
|
|
429
|
+ "token": $.cookie("token"),
|
|
|
430
|
+ id: 1
|
|
|
431
|
+ },
|
|
|
432
|
+ success: function (data) {
|
|
|
433
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
434
|
+ var content = data.data;
|
|
|
435
|
+ $(content).each(function (i, n) {
|
|
|
436
|
+ $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>")
|
|
|
437
|
+ .appendTo(obj);
|
|
|
438
|
+ })
|
|
|
439
|
+
|
|
|
440
|
+ }
|
|
|
441
|
+ }
|
|
421
|
442
|
});
|
|
422
|
443
|
}
|
|
423
|
444
|
//类别
|
|
|
@@ -425,22 +446,23 @@
|
|
425
|
446
|
obj.empty();
|
|
426
|
447
|
obj.append('<option selected="selected" value="">请选择</option>');
|
|
427
|
448
|
$.ajax({
|
|
428
|
|
- type:"get",
|
|
429
|
|
- url:huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
|
|
430
|
|
- dataType:"json",
|
|
431
|
|
- async:false,
|
|
432
|
|
- data:{
|
|
433
|
|
- "token": $.cookie("token"),
|
|
434
|
|
- id: 2
|
|
435
|
|
- },
|
|
436
|
|
- success:function(data){
|
|
437
|
|
- if (data.state.toLowerCase() == "success") {
|
|
438
|
|
- var content = data.data;
|
|
439
|
|
- $(content).each(function (i, n) {
|
|
440
|
|
- $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
|
|
441
|
|
- })
|
|
442
|
|
- }
|
|
443
|
|
- }
|
|
|
449
|
+ type: "get",
|
|
|
450
|
+ url: huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
|
|
|
451
|
+ dataType: "json",
|
|
|
452
|
+ async: false,
|
|
|
453
|
+ data: {
|
|
|
454
|
+ "token": $.cookie("token"),
|
|
|
455
|
+ id: 2
|
|
|
456
|
+ },
|
|
|
457
|
+ success: function (data) {
|
|
|
458
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
459
|
+ var content = data.data;
|
|
|
460
|
+ $(content).each(function (i, n) {
|
|
|
461
|
+ $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>")
|
|
|
462
|
+ .appendTo(obj);
|
|
|
463
|
+ })
|
|
|
464
|
+ }
|
|
|
465
|
+ }
|
|
444
|
466
|
});
|
|
445
|
467
|
}
|
|
446
|
468
|
// 主题
|
|
|
@@ -448,22 +470,23 @@
|
|
448
|
470
|
obj.empty();
|
|
449
|
471
|
obj.append('<option selected="selected" value="">请选择</option>');
|
|
450
|
472
|
$.ajax({
|
|
451
|
|
- type:"get",
|
|
452
|
|
- url:huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
|
|
453
|
|
- dataType:"json",
|
|
454
|
|
- async:false,
|
|
455
|
|
- data:{
|
|
456
|
|
- "token": $.cookie("token"),
|
|
457
|
|
- id: 3
|
|
458
|
|
- },
|
|
459
|
|
- success:function(data){
|
|
460
|
|
- if (data.state.toLowerCase() == "success") {
|
|
461
|
|
- var content = data.data;
|
|
462
|
|
- $(content).each(function (i, n) {
|
|
463
|
|
- $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
|
|
464
|
|
- })
|
|
465
|
|
- }
|
|
466
|
|
- }
|
|
|
473
|
+ type: "get",
|
|
|
474
|
+ url: huayi.config.callcenter_url + "Dictionary/GetDicValueListById",
|
|
|
475
|
+ dataType: "json",
|
|
|
476
|
+ async: false,
|
|
|
477
|
+ data: {
|
|
|
478
|
+ "token": $.cookie("token"),
|
|
|
479
|
+ id: 3
|
|
|
480
|
+ },
|
|
|
481
|
+ success: function (data) {
|
|
|
482
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
483
|
+ var content = data.data;
|
|
|
484
|
+ $(content).each(function (i, n) {
|
|
|
485
|
+ $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>")
|
|
|
486
|
+ .appendTo(obj);
|
|
|
487
|
+ })
|
|
|
488
|
+ }
|
|
|
489
|
+ }
|
|
467
|
490
|
});
|
|
468
|
491
|
}
|
|
469
|
492
|
//区域
|
|
|
@@ -471,25 +494,33 @@
|
|
471
|
494
|
obj.empty();
|
|
472
|
495
|
obj.append('<option selected="selected" value="">请选择</option>');
|
|
473
|
496
|
$.ajax({
|
|
474
|
|
- type:"get",
|
|
475
|
|
- url:huayi.config.callcenter_url + "Area/GetAreaListById",
|
|
476
|
|
- dataType:"json",
|
|
477
|
|
- async:false,
|
|
478
|
|
- data:{
|
|
479
|
|
- "token": $.cookie("token"),
|
|
480
|
|
- },
|
|
481
|
|
- success:function(data){
|
|
482
|
|
- if (data.state.toLowerCase() == "success") {
|
|
483
|
|
- var content = data.data;
|
|
484
|
|
- $(content).each(function (i, n) {
|
|
485
|
|
- if (n.F_AreaName != '安阳市') {
|
|
486
|
|
- $("<option value='" + n.F_AreaId + "'>" + n.F_AreaName + "</option>").appendTo(obj);
|
|
487
|
|
- }
|
|
488
|
|
- })
|
|
489
|
|
- }
|
|
490
|
|
- }
|
|
|
497
|
+ type: "get",
|
|
|
498
|
+ url: huayi.config.callcenter_url + "Area/GetAreaListById",
|
|
|
499
|
+ dataType: "json",
|
|
|
500
|
+ async: false,
|
|
|
501
|
+ data: {
|
|
|
502
|
+ "token": $.cookie("token"),
|
|
|
503
|
+ },
|
|
|
504
|
+ success: function (data) {
|
|
|
505
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
506
|
+ var content = data.data;
|
|
|
507
|
+ $(content).each(function (i, n) {
|
|
|
508
|
+ if (n.F_AreaName != '安阳市') {
|
|
|
509
|
+ $("<option value='" + n.F_AreaId + "'>" + n.F_AreaName +
|
|
|
510
|
+ "</option>").appendTo(obj);
|
|
|
511
|
+ }
|
|
|
512
|
+ })
|
|
|
513
|
+ }
|
|
|
514
|
+ }
|
|
491
|
515
|
});
|
|
492
|
516
|
}
|
|
|
517
|
+ $("#source").click(function() {
|
|
|
518
|
+ if ($("#source").val() === "4") {
|
|
|
519
|
+ $(".leaderCharge-wrapper").show()
|
|
|
520
|
+ } else {
|
|
|
521
|
+ $(".leaderCharge-wrapper").hide()
|
|
|
522
|
+ }
|
|
|
523
|
+ })
|
|
493
|
524
|
//上传文件
|
|
494
|
525
|
function upload() {
|
|
495
|
526
|
var Files = document.getElementById("upFile").files;
|
|
|
@@ -499,44 +530,49 @@
|
|
499
|
530
|
formData.append('file' + i, Files[i]);
|
|
500
|
531
|
}
|
|
501
|
532
|
formData.append("token", $.cookie("token"));
|
|
502
|
|
- var typeName=Files[0].name.split('.')[1];
|
|
503
|
|
- if (typeName=="png"||typeName=='jpg'||typeName=='mp4'||typeName=='mp3'||typeName=='pdf'||typeName=='doc'||typeName=='docx'||typeName=='xls'||typeName=='xlsx') {
|
|
504
|
|
- $.ajax({
|
|
505
|
|
- url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
|
|
506
|
|
- type: "POST",
|
|
507
|
|
- data: formData,
|
|
508
|
|
- /**
|
|
509
|
|
- *必须false才会自动加上正确的Content-Type
|
|
510
|
|
- */
|
|
511
|
|
- contentType: false,
|
|
512
|
|
- /**
|
|
513
|
|
- * 必须false才会避开jQuery对 formdata 的默认处理
|
|
514
|
|
- * XMLHttpRequest会对 formdata 进行正确的处理
|
|
515
|
|
- */
|
|
516
|
|
- processData: false,
|
|
517
|
|
- success: function (result) {
|
|
518
|
|
- document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
|
|
519
|
|
- $("#upFile").change(function () {
|
|
520
|
|
- upload();
|
|
521
|
|
- });
|
|
522
|
|
- var r = $.parseJSON(result);
|
|
523
|
|
- if (r.state.toLowerCase() == "success") {
|
|
524
|
|
- var a = r.data;
|
|
525
|
|
- $(a).each(function (i, n) {
|
|
526
|
|
- var strs = '<span class="files" fiel-num="' + n.F_FileId + '">' + n.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
|
|
527
|
|
- $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
|
|
528
|
|
- event.stopPropagation();
|
|
529
|
|
- $(this).parent().remove();
|
|
530
|
|
- file_num()
|
|
531
|
|
- })
|
|
532
|
|
- })
|
|
533
|
|
- file_num();
|
|
534
|
|
- }
|
|
535
|
|
- }
|
|
536
|
|
- });
|
|
537
|
|
- }else{
|
|
538
|
|
- layer.msg("格式不正确");
|
|
539
|
|
- }
|
|
|
533
|
+ var typeName = Files[0].name.split('.')[1];
|
|
|
534
|
+ if (typeName == "png" || typeName == 'jpg' || typeName == 'mp4' || typeName == 'mp3' || typeName ==
|
|
|
535
|
+ 'pdf' || typeName == 'doc' || typeName == 'docx' || typeName == 'xls' || typeName == 'xlsx') {
|
|
|
536
|
+ $.ajax({
|
|
|
537
|
+ url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
|
|
|
538
|
+ type: "POST",
|
|
|
539
|
+ data: formData,
|
|
|
540
|
+ /**
|
|
|
541
|
+ *必须false才会自动加上正确的Content-Type
|
|
|
542
|
+ */
|
|
|
543
|
+ contentType: false,
|
|
|
544
|
+ /**
|
|
|
545
|
+ * 必须false才会避开jQuery对 formdata 的默认处理
|
|
|
546
|
+ * XMLHttpRequest会对 formdata 进行正确的处理
|
|
|
547
|
+ */
|
|
|
548
|
+ processData: false,
|
|
|
549
|
+ success: function (result) {
|
|
|
550
|
+ document.getElementById("upFile").outerHTML = document.getElementById("upFile")
|
|
|
551
|
+ .outerHTML;
|
|
|
552
|
+ $("#upFile").change(function () {
|
|
|
553
|
+ upload();
|
|
|
554
|
+ });
|
|
|
555
|
+ var r = $.parseJSON(result);
|
|
|
556
|
+ if (r.state.toLowerCase() == "success") {
|
|
|
557
|
+ var a = r.data;
|
|
|
558
|
+ $(a).each(function (i, n) {
|
|
|
559
|
+ var strs = '<span class="files" fiel-num="' + n.F_FileId +
|
|
|
560
|
+ '">' + n.F_FileName.substring(19) +
|
|
|
561
|
+ '<i class="fa fa-remove del_file"></i></span>'
|
|
|
562
|
+ $(strs).appendTo($('.fileBox')).find('.del_file').click(
|
|
|
563
|
+ function (event) {
|
|
|
564
|
+ event.stopPropagation();
|
|
|
565
|
+ $(this).parent().remove();
|
|
|
566
|
+ file_num()
|
|
|
567
|
+ })
|
|
|
568
|
+ })
|
|
|
569
|
+ file_num();
|
|
|
570
|
+ }
|
|
|
571
|
+ }
|
|
|
572
|
+ });
|
|
|
573
|
+ } else {
|
|
|
574
|
+ layer.msg("格式不正确");
|
|
|
575
|
+ }
|
|
540
|
576
|
} else {
|
|
541
|
577
|
layer.confirm('请上传文件!', {
|
|
542
|
578
|
btn: ['确定']
|