|
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+<!DOCTYPE html>
|
|
|
2
|
+<html>
|
|
|
3
|
+
|
|
|
4
|
+<head>
|
|
|
5
|
+ <meta charset="UTF-8">
|
|
|
6
|
+ <title>未接电话</title>
|
|
|
7
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
8
|
+ <link href="../css/init.css" rel="stylesheet" />
|
|
|
9
|
+ <link href="../css/Table/table1.css" rel="stylesheet" />
|
|
|
10
|
+ <link rel="stylesheet" href="../js/select2/css/select2.min.css" />
|
|
|
11
|
+ <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
|
|
|
12
|
+ <script src="../Script/Common/huayi.load.js"></script>
|
|
|
13
|
+ <script src="../Script/Common/huayi.config.js"></script>
|
|
|
14
|
+ <script src="../js/zTree/jquery.ztree.core.js"></script>
|
|
|
15
|
+ <script src="../js/laydate/laydate.js"></script>
|
|
|
16
|
+ <style>
|
|
|
17
|
+ .select2-container--default .select2-selection--single {
|
|
|
18
|
+ border: 1px solid #e5e6e7;
|
|
|
19
|
+ }
|
|
|
20
|
+
|
|
|
21
|
+ .select2-dropdown {
|
|
|
22
|
+ border: 1px solid #e5e6e7;
|
|
|
23
|
+ width: 200px;
|
|
|
24
|
+ }
|
|
|
25
|
+
|
|
|
26
|
+ .select2-container .select2-selection--single {
|
|
|
27
|
+ height: 34px;
|
|
|
28
|
+ }
|
|
|
29
|
+
|
|
|
30
|
+ .select2-container {
|
|
|
31
|
+ width: 130px !important;
|
|
|
32
|
+ }
|
|
|
33
|
+
|
|
|
34
|
+ .select2-selection__rendered {
|
|
|
35
|
+ line-height: 34px;
|
|
|
36
|
+ }
|
|
|
37
|
+
|
|
|
38
|
+ .LY:hover {
|
|
|
39
|
+ color: #fff;
|
|
|
40
|
+ }
|
|
|
41
|
+
|
|
|
42
|
+ .LY:active {
|
|
|
43
|
+ color: #fff !important;
|
|
|
44
|
+ }
|
|
|
45
|
+
|
|
|
46
|
+ .xl {
|
|
|
47
|
+ margin-left: -17px;
|
|
|
48
|
+ margin-top: -4px;
|
|
|
49
|
+ cursor: pointer;
|
|
|
50
|
+ }
|
|
|
51
|
+
|
|
|
52
|
+ #menuContent {
|
|
|
53
|
+ background: #fff;
|
|
|
54
|
+ position: absolute;
|
|
|
55
|
+ width: 100%;
|
|
|
56
|
+ border: 1px solid darkgrey;
|
|
|
57
|
+ right: 0;
|
|
|
58
|
+ top: 34px;
|
|
|
59
|
+ z-index: 10;
|
|
|
60
|
+ display: none;
|
|
|
61
|
+ overflow-y: auto;
|
|
|
62
|
+ }
|
|
|
63
|
+
|
|
|
64
|
+ #treeDemo li {
|
|
|
65
|
+ width: 100%;
|
|
|
66
|
+ }
|
|
|
67
|
+
|
|
|
68
|
+ #citySel {
|
|
|
69
|
+ border: none;
|
|
|
70
|
+ height: 25px;
|
|
|
71
|
+ padding-left: 12px;
|
|
|
72
|
+ }
|
|
|
73
|
+
|
|
|
74
|
+ .clears {
|
|
|
75
|
+ cursor: pointer;
|
|
|
76
|
+ padding-left: 19px;
|
|
|
77
|
+ padding-top: 5px;
|
|
|
78
|
+ }
|
|
|
79
|
+
|
|
|
80
|
+ .clears:hover {
|
|
|
81
|
+ background: #ebebeb;
|
|
|
82
|
+ }
|
|
|
83
|
+
|
|
|
84
|
+ .toolBox .form-group {
|
|
|
85
|
+ margin-bottom: 10px;
|
|
|
86
|
+ }
|
|
|
87
|
+
|
|
|
88
|
+ .call_num {
|
|
|
89
|
+ vertical-align: middle;
|
|
|
90
|
+ cursor: pointer;
|
|
|
91
|
+ color: #337ab7;
|
|
|
92
|
+ }
|
|
|
93
|
+ </style>
|
|
|
94
|
+</head>
|
|
|
95
|
+
|
|
|
96
|
+<body class="gray-bg">
|
|
|
97
|
+ <div class="daoHang clearfix">
|
|
|
98
|
+ <div class="dhLeft">
|
|
|
99
|
+ <sapn><i class="syIcon"></i>位置:
|
|
|
100
|
+ <a href="javaScript:;" id="ReIndex">首页</a>>
|
|
|
101
|
+ <a href="javaScript:;">话务管理</a>>
|
|
|
102
|
+ <a href="" class="nowPosition">未接电话</a>
|
|
|
103
|
+ </sapn>
|
|
|
104
|
+ </div>
|
|
|
105
|
+ <div class="dhRight">
|
|
|
106
|
+ <a href="#" title="刷新"><i class="fa fa-refresh"></i></a>
|
|
|
107
|
+ </div>
|
|
|
108
|
+ </div>
|
|
|
109
|
+ <div class="wrapper wrapper-content animated fadeInRight">
|
|
|
110
|
+ <div class="toolBox clearfix">
|
|
|
111
|
+ <div class="pull-left">
|
|
|
112
|
+ <div class="form-inline">
|
|
|
113
|
+ <div class="time-box form-group">
|
|
|
114
|
+ <i class="tub fa fa-calendar"></i>
|
|
|
115
|
+ <input class="form-control search_time" type="text" id="ss_kssj" placeholder="请选择起止时间">
|
|
|
116
|
+ </div>
|
|
|
117
|
+ <div class="form-group">
|
|
|
118
|
+ <select id="ss_hcfx" class="form-control">
|
|
|
119
|
+ <option value="">请选择呼出方向</option>
|
|
|
120
|
+ <option value="0">呼入</option>
|
|
|
121
|
+ <option value="1">呼出</option>
|
|
|
122
|
+ </select>
|
|
|
123
|
+ </div>
|
|
|
124
|
+
|
|
|
125
|
+ <div class="form-group BMs" style="position: relative;">
|
|
|
126
|
+ <div class="company">
|
|
|
127
|
+ <div class="inpBox" id="organizer">
|
|
|
128
|
+ <input id="citySel" class="photo x-color" readonly autocomplete="off" placeholder="请选择部门" />
|
|
|
129
|
+ <i class="xl xl_one caret" id="xl_one"></i>
|
|
|
130
|
+ <div id="menuContent" class="menuContent">
|
|
|
131
|
+ <div class="clears">请选择部门</div>
|
|
|
132
|
+ <ul id="treeDemo" class="ztree"></ul>
|
|
|
133
|
+ </div>
|
|
|
134
|
+ </div>
|
|
|
135
|
+ </div>
|
|
|
136
|
+ </div>
|
|
|
137
|
+ <div class="form-group">
|
|
|
138
|
+ <input id="tel" type="text" class="form-control" placeholder="请输入电话号码" />
|
|
|
139
|
+ </div>
|
|
|
140
|
+ <div class="form-group">
|
|
|
141
|
+ <select id="seat" class="form-control">
|
|
|
142
|
+ <option value="">请选择坐席</option>
|
|
|
143
|
+ </select>
|
|
|
144
|
+ </div>
|
|
|
145
|
+ </div>
|
|
|
146
|
+ </div>
|
|
|
147
|
+ <div class="pull-right">
|
|
|
148
|
+ <a class="sc_btn search">搜索</a>
|
|
|
149
|
+ <a class="sc_btn export">导出</a>
|
|
|
150
|
+ </div>
|
|
|
151
|
+ </div>
|
|
|
152
|
+
|
|
|
153
|
+ <div style="width: 100%;padding: 10px;">
|
|
|
154
|
+ <table id="list" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
|
|
|
155
|
+ <thead>
|
|
|
156
|
+ <tr>
|
|
|
157
|
+ <th data-field="CallNumber" data-align="center" data-formatter="Code">编号</th>
|
|
|
158
|
+ <th data-field="CusName" data-align="center">客户姓名</th>
|
|
|
159
|
+ <th data-field="CallNumber" data-formatter="formatterCallNumber" data-align="center">电话号码</th>
|
|
|
160
|
+ <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
|
|
|
161
|
+ <th data-field="CallType" data-formatter="callType" data-align="center">呼叫方向</th>
|
|
|
162
|
+ <th data-field="DealType" data-formatter="formatterDealType" data-align="center">处理方式</th>
|
|
|
163
|
+ <th data-field="CallState" data-formatter="states" data-align="center">呼叫状态</th>
|
|
|
164
|
+ <th data-field="DeptName" data-align="center">部门</th>
|
|
|
165
|
+ <th data-field="UserCode" data-align="center">坐席工号</th>
|
|
|
166
|
+ <th data-field="UserName" data-align="center">坐席姓名</th>
|
|
|
167
|
+ <th data-field="BeginTime" data-align="center">开始时间</th>
|
|
|
168
|
+ <th data-field="TalkStartTime" data-align="center">通话开始时间</th>
|
|
|
169
|
+ <th data-field="TalkEndTime" data-align="center">通话结束时间</th>
|
|
|
170
|
+ <th data-field="TalkLongTime" data-align="center">通话时长(S)</th>
|
|
|
171
|
+ <th data-field="CallId" data-align="center" data-formatter="TX">操作</th>
|
|
|
172
|
+ </tr>
|
|
|
173
|
+ </thead>
|
|
|
174
|
+ </table>
|
|
|
175
|
+ <!--高级搜索框-->
|
|
|
176
|
+ </div>
|
|
|
177
|
+ </div>
|
|
|
178
|
+ <!--下载框-->
|
|
|
179
|
+ <div class="t-shade">
|
|
|
180
|
+ <div class="shade_k">
|
|
|
181
|
+ <div class="shade_title">
|
|
|
182
|
+ <span>录音播放与下载<srong class="cknum"></srong></span>
|
|
|
183
|
+ <span class="setwin"><a>x</a></span>
|
|
|
184
|
+ </div>
|
|
|
185
|
+ <div class="shade_content">
|
|
|
186
|
+ <div class="Ly_box audiojs">
|
|
|
187
|
+ </div>
|
|
|
188
|
+ <div class="boxCon LY_box">
|
|
|
189
|
+
|
|
|
190
|
+ </div>
|
|
|
191
|
+ </div>
|
|
|
192
|
+ </div>
|
|
|
193
|
+ </div>
|
|
|
194
|
+
|
|
|
195
|
+ <script>
|
|
|
196
|
+ var stype = 1;
|
|
|
197
|
+ var seatlist = [];
|
|
|
198
|
+ var RoleId;
|
|
|
199
|
+ var saveArrs = [];
|
|
|
200
|
+ var IDs = '';
|
|
|
201
|
+ var Names;
|
|
|
202
|
+ $(document).ready(function () {
|
|
|
203
|
+ //留言时间
|
|
|
204
|
+ laydate.render({
|
|
|
205
|
+ elem: '#ss_kssj',
|
|
|
206
|
+ theme: '#1ab394',
|
|
|
207
|
+ calendar: true,
|
|
|
208
|
+ range: '~'
|
|
|
209
|
+ });
|
|
|
210
|
+ $('.clears').click(function () {
|
|
|
211
|
+ $('#citySel').val('请选择部门');
|
|
|
212
|
+ IDs = '';
|
|
|
213
|
+ $('#menuContent').css('display', 'none');
|
|
|
214
|
+ });
|
|
|
215
|
+ $('#citySel').click(function () {
|
|
|
216
|
+ $('#menuContent').css('display', 'block')
|
|
|
217
|
+ });
|
|
|
218
|
+ $('#menuContent').mouseleave(function () {
|
|
|
219
|
+ $(this).css('display', 'none')
|
|
|
220
|
+ });
|
|
|
221
|
+
|
|
|
222
|
+ $.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
|
|
|
223
|
+ "token": $.cookie("token")
|
|
|
224
|
+ }, function (result) {
|
|
|
225
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
226
|
+ RoleId = result.data.role.F_RoleId
|
|
|
227
|
+ if (RoleId != "17") { //非系统管理员显示
|
|
|
228
|
+ $('.BMs').hide();
|
|
|
229
|
+ $('.SZBN').hide();
|
|
|
230
|
+ }
|
|
|
231
|
+ }
|
|
|
232
|
+ })
|
|
|
233
|
+ /*获取选中行对象*/
|
|
|
234
|
+ $('#list').on("click-row.bs.table", function (e, row, ele) {
|
|
|
235
|
+ $('.success').removeClass('success'); //去除之前选中的行的,选中样式
|
|
|
236
|
+ $(ele).addClass('success'); //添加当前选中的 success样式用于区别
|
|
|
237
|
+ });
|
|
|
238
|
+ $(".setwin").click(function () {
|
|
|
239
|
+ $(".t-shade").removeClass("cx");
|
|
|
240
|
+ $('audio')[0].pause();
|
|
|
241
|
+ });
|
|
|
242
|
+ //坐席
|
|
|
243
|
+ $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
|
|
|
244
|
+ token: $.cookie("token")
|
|
|
245
|
+ }, function (result) {
|
|
|
246
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
247
|
+ seatlist = result.data;
|
|
|
248
|
+ bindseat($("#seat"));
|
|
|
249
|
+ }
|
|
|
250
|
+ });
|
|
|
251
|
+
|
|
|
252
|
+ //搜索
|
|
|
253
|
+ $(".search").click(function () {
|
|
|
254
|
+ stype = 1;
|
|
|
255
|
+ initTable();
|
|
|
256
|
+ });
|
|
|
257
|
+
|
|
|
258
|
+ initTable();
|
|
|
259
|
+
|
|
|
260
|
+ //部门
|
|
|
261
|
+ tree()
|
|
|
262
|
+
|
|
|
263
|
+ function tree() {
|
|
|
264
|
+ $.get(huayi.config.callcenter_url + "Department/GetDeptList", {
|
|
|
265
|
+ "token": $.cookie("token"),
|
|
|
266
|
+ // "pid": pid
|
|
|
267
|
+ }, function (result) {
|
|
|
268
|
+ result = $.parseJSON(result);
|
|
|
269
|
+ $.fn.zTree.init($("#treeDemo"), setting2, result.data); //实例化树形图
|
|
|
270
|
+ });
|
|
|
271
|
+ }
|
|
|
272
|
+
|
|
|
273
|
+ var setting2 = {
|
|
|
274
|
+ data: {
|
|
|
275
|
+ key: {
|
|
|
276
|
+ name: "text"
|
|
|
277
|
+ },
|
|
|
278
|
+ simpleData: {
|
|
|
279
|
+ enable: true,
|
|
|
280
|
+ idKey: "id",
|
|
|
281
|
+ rootPId: 0
|
|
|
282
|
+ }
|
|
|
283
|
+ },
|
|
|
284
|
+ callback: {
|
|
|
285
|
+ onClick: addTreeClick
|
|
|
286
|
+ }
|
|
|
287
|
+ }
|
|
|
288
|
+
|
|
|
289
|
+ function addTreeClick(event, treeId, treeNode) {
|
|
|
290
|
+ IDs = treeNode.id;
|
|
|
291
|
+ Names = treeNode.text;
|
|
|
292
|
+ $('#citySel').val(Names);
|
|
|
293
|
+
|
|
|
294
|
+ };
|
|
|
295
|
+ $(".xl").click(function () {
|
|
|
296
|
+ if ($(this).parent().find(".menuContent").is(":hidden")) {
|
|
|
297
|
+ $(this).parent().find(".menuContent").show();
|
|
|
298
|
+ } else {
|
|
|
299
|
+ $(this).parent().find(".menuContent").hide();
|
|
|
300
|
+ }
|
|
|
301
|
+ });
|
|
|
302
|
+ });
|
|
|
303
|
+
|
|
|
304
|
+ function bindseat(obj) {
|
|
|
305
|
+ obj.empty();
|
|
|
306
|
+ obj.append('<option value="">请选择坐席</option>');
|
|
|
307
|
+ $(seatlist).each(function (i, n) {
|
|
|
308
|
+ obj.append('<option value="' + n.F_UserCode + '">' + n.F_UserName + '</option>');
|
|
|
309
|
+ })
|
|
|
310
|
+ }
|
|
|
311
|
+
|
|
|
312
|
+ function initTable() {
|
|
|
313
|
+ //先销毁表格
|
|
|
314
|
+ $('#list').bootstrapTable('destroy');
|
|
|
315
|
+ //初始化表格,动态从服务器加载数据
|
|
|
316
|
+ $("#list").bootstrapTable({
|
|
|
317
|
+ method: "get", //使用get请求到服务器获取数据
|
|
|
318
|
+ url: huayi.config.callcenter_url + "Callrecords/GetList", //获取数据的Servlet地址
|
|
|
319
|
+ contentType: 'application/x-www-form-urlencoded',
|
|
|
320
|
+ striped: true, //表格显示条纹
|
|
|
321
|
+ pagination: true, //启动分页
|
|
|
322
|
+ pageSize: 10, //每页显示的记录数
|
|
|
323
|
+ pageNumber: 1, //当前第几页
|
|
|
324
|
+ pageList: [10, 20, 50, 100], //记录数可选列表
|
|
|
325
|
+ search: false, //是否启用查询
|
|
|
326
|
+ showColumns: false, //显示下拉框勾选要显示的列
|
|
|
327
|
+ showRefresh: false, //显示刷新按钮
|
|
|
328
|
+ sidePagination: "server", //表示服务端请求
|
|
|
329
|
+ //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
|
|
|
330
|
+ //设置为limit可以获取limit, offset, search, sort, order
|
|
|
331
|
+ queryParamsType: "undefined",
|
|
|
332
|
+ queryParams: function queryParams(params) { //设置查询参数
|
|
|
333
|
+ var param = {
|
|
|
334
|
+ page: params.pageNumber,
|
|
|
335
|
+ pagesize: params.pageSize,
|
|
|
336
|
+ usercode: $("#seat").val(),
|
|
|
337
|
+ phone: $("#tel").val(),
|
|
|
338
|
+ dept: IDs,
|
|
|
339
|
+ callstate: 0,
|
|
|
340
|
+ calltype: $("#ss_hcfx").val(),
|
|
|
341
|
+ starttime: $("#ss_kssj").val() && $("#ss_kssj").val().split(' ~ ')[0],
|
|
|
342
|
+ endtime: $("#ss_kssj").val() && $("#ss_kssj").val().split(' ~ ')[1],
|
|
|
343
|
+ token: $.cookie("token")
|
|
|
344
|
+ };
|
|
|
345
|
+
|
|
|
346
|
+ return param;
|
|
|
347
|
+ },
|
|
|
348
|
+ onLoadSuccess: function () { //加载成功时执行
|
|
|
349
|
+ //layer.msg("加载成功");
|
|
|
350
|
+ },
|
|
|
351
|
+ onLoadError: function () { //加载失败时执行
|
|
|
352
|
+ //layer.msg("加载数据失败", { time: 1500, icon: 2 });
|
|
|
353
|
+ }
|
|
|
354
|
+ });
|
|
|
355
|
+ }
|
|
|
356
|
+
|
|
|
357
|
+ // 格式化电话
|
|
|
358
|
+ function formatterCallNumber(val, row) {
|
|
|
359
|
+ return '<span class="call_num" onclick="calloutopt(\''+ val + '\',\''+ row.CallId + '\',\''+ row.CallRecordsId +'\')" title="点击进行回访">' + val + '<img src="../img/Phones.png"/></span>';
|
|
|
360
|
+ }
|
|
|
361
|
+
|
|
|
362
|
+ //格式化处理方式
|
|
|
363
|
+ function formatterDealType(val, row) {
|
|
|
364
|
+ //处理方式0:IVR处理1骚扰电话2自助服务3转值班电话4留言5呼损6人工处理
|
|
|
365
|
+ var str = '-';
|
|
|
366
|
+ switch (val) {
|
|
|
367
|
+ case 0:
|
|
|
368
|
+ str = 'IVR处理';
|
|
|
369
|
+ break;
|
|
|
370
|
+ case 1:
|
|
|
371
|
+ str = '骚扰电话';
|
|
|
372
|
+ break;
|
|
|
373
|
+ case 2:
|
|
|
374
|
+ str = '自助服务';
|
|
|
375
|
+ break;
|
|
|
376
|
+ case 3:
|
|
|
377
|
+ str = '转值班电话';
|
|
|
378
|
+ break;
|
|
|
379
|
+ case 4:
|
|
|
380
|
+ str = '留言';
|
|
|
381
|
+ break;
|
|
|
382
|
+ case 5:
|
|
|
383
|
+ str = '呼损';
|
|
|
384
|
+ break;
|
|
|
385
|
+ case 6:
|
|
|
386
|
+ str = '人工处理';
|
|
|
387
|
+ break;
|
|
|
388
|
+ }
|
|
|
389
|
+ return str;
|
|
|
390
|
+ }
|
|
|
391
|
+
|
|
|
392
|
+ //音频
|
|
|
393
|
+ function setCode(val) {
|
|
|
394
|
+ if (val) {
|
|
|
395
|
+ return '<div class="imgs">' +
|
|
|
396
|
+ '<img src="../img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
|
|
|
397
|
+ '</div>';
|
|
|
398
|
+ } else {
|
|
|
399
|
+ return '';
|
|
|
400
|
+ }
|
|
|
401
|
+ }
|
|
|
402
|
+ //编号
|
|
|
403
|
+ function Code(val, row, index) {
|
|
|
404
|
+ return index + 1;
|
|
|
405
|
+ }
|
|
|
406
|
+ //方向呼出
|
|
|
407
|
+ function callType(val) {
|
|
|
408
|
+ if (val == 0) {
|
|
|
409
|
+ return '<div class="imgs">呼入</div>';
|
|
|
410
|
+ } else {
|
|
|
411
|
+ return '<div class="imgs">呼出</div>';
|
|
|
412
|
+ }
|
|
|
413
|
+ }
|
|
|
414
|
+
|
|
|
415
|
+ function states(val) {
|
|
|
416
|
+ if (val == 0) {
|
|
|
417
|
+ return '<div class="imgs">未接通</div>';
|
|
|
418
|
+ } else {
|
|
|
419
|
+ return '<div class="imgs">已接通</div>';
|
|
|
420
|
+ }
|
|
|
421
|
+ }
|
|
|
422
|
+ //回访
|
|
|
423
|
+ function dealType(val) {
|
|
|
424
|
+ if (val == 1) {
|
|
|
425
|
+ return '<div >已回访</div>';
|
|
|
426
|
+ } else {
|
|
|
427
|
+ return '';
|
|
|
428
|
+ }
|
|
|
429
|
+ }
|
|
|
430
|
+ //处理
|
|
|
431
|
+ function isDeal(val) {
|
|
|
432
|
+ if (val == 0) {
|
|
|
433
|
+ return '<div >未处理</div>';
|
|
|
434
|
+ } else {
|
|
|
435
|
+ return '<div >已处理</div>';
|
|
|
436
|
+ }
|
|
|
437
|
+ }
|
|
|
438
|
+ //录音
|
|
|
439
|
+ function ck(val) {
|
|
|
440
|
+ var path = $(val).attr("item");
|
|
|
441
|
+ $(".t-shade").addClass("cx");
|
|
|
442
|
+ $(".Ly_box").empty();
|
|
|
443
|
+ $(".LY_box").empty();
|
|
|
444
|
+ $('<audio style="width:100%;"class=" " src="' + path + '" loop="loop" controls="controls"></audio>').appendTo(".Ly_box");
|
|
|
445
|
+ $('<a href="' + path + '" class="sc_btn LY "download="' + path + '">下载录音</a>').appendTo(".LY_box");
|
|
|
446
|
+ }
|
|
|
447
|
+ //导出
|
|
|
448
|
+ $('.export').click(function () {
|
|
|
449
|
+ dcexcel(this);
|
|
|
450
|
+ })
|
|
|
451
|
+
|
|
|
452
|
+ function dcexcel(obj) {
|
|
|
453
|
+ var url = huayi.config.callcenter_url + "Callrecords/GetListExpt?token=" + $.cookie("token");
|
|
|
454
|
+ url += "&usercode=" + $("#seat").val() +
|
|
|
455
|
+ "&phone=" + $("#tel").val() +
|
|
|
456
|
+ "&callstate=0" +
|
|
|
457
|
+ "&calltype=" + $("#ss_hcfx").val() +
|
|
|
458
|
+ "&starttime=" + ($("#ss_kssj").val() && $("#ss_kssj").val().split(' ~ ')[0]) +
|
|
|
459
|
+ "&endtime=" + ($("#ss_kssj").val() && $("#ss_kssj").val().split(' ~ ')[1]) +
|
|
|
460
|
+ "&dept=" + IDs;
|
|
|
461
|
+ obj.href = url;
|
|
|
462
|
+ }
|
|
|
463
|
+
|
|
|
464
|
+ //格式化 操作
|
|
|
465
|
+ function TX(val, row) {
|
|
|
466
|
+ var html = '';
|
|
|
467
|
+ if (row.IsExitWorkOrder == false) {
|
|
|
468
|
+ return '<div class="warning" onclick=CL("' + val + '","' + row.CallNumber + '","' + row.CusName + '")><a class="warning">添加工单</a></div>'
|
|
|
469
|
+ }
|
|
|
470
|
+ }
|
|
|
471
|
+
|
|
|
472
|
+ function CL(id, phone, cCustomerName) {
|
|
|
473
|
+ top.$('#side-menu').find('.J_menuItem[data-id="Menu_26"]').parent().removeClass('sub_active');
|
|
|
474
|
+ top.$('#side-menu').find('.Click[data-id="Menu_41"]').trigger('click');
|
|
|
475
|
+ top.$('#side-menu').find('.J_menuItem[data-id="Menu_42"]').parent().addClass('sub_active').siblings().removeClass('sub_active');
|
|
|
476
|
+ top.$("iframe:visible")[0].src = "./WorkOrder/AddWorkOrder.html?cid=" + id + "&cphone=" + phone + "&cCustomerName=" + cCustomerName;
|
|
|
477
|
+ }
|
|
|
478
|
+
|
|
|
479
|
+ /**
|
|
|
480
|
+ * 外呼
|
|
|
481
|
+ * @telphone 电话号码
|
|
|
482
|
+ * @callid 记录callid
|
|
|
483
|
+ * @callRecordsId 记录电话的ID
|
|
|
484
|
+ */
|
|
|
485
|
+ function calloutopt(telphone, callid, callRecordsId) {
|
|
|
486
|
+ event.stopPropagation();
|
|
|
487
|
+ if (telphone) {
|
|
|
488
|
+ $.ajax({
|
|
|
489
|
+ type: "get",
|
|
|
490
|
+ url: huayi.config.callcenter_url + "CallOutOpt/GetCallOutprefix",
|
|
|
491
|
+ async: true,
|
|
|
492
|
+ dataType: 'json',
|
|
|
493
|
+ data: {
|
|
|
494
|
+ phone: telphone,
|
|
|
495
|
+ token: $.cookie("token")
|
|
|
496
|
+ },
|
|
|
497
|
+ success: function (result) {
|
|
|
498
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
499
|
+ top.obj.Type = "MakeCall";
|
|
|
500
|
+ top.obj.DestinationNumber = result.data.phone;
|
|
|
501
|
+ top.obj.Header = result.data.fix;
|
|
|
502
|
+ top.obj.TaskType = "2"; //0:拨号外呼;1:问卷外呼;2未接来电外呼
|
|
|
503
|
+ top.obj.TaskPhoneID = callRecordsId; //记录电话的ID
|
|
|
504
|
+ top.obj.TaskID = callid; //记录callid
|
|
|
505
|
+ top.Send();
|
|
|
506
|
+ }
|
|
|
507
|
+ }
|
|
|
508
|
+ });
|
|
|
509
|
+ }
|
|
|
510
|
+ }
|
|
|
511
|
+
|
|
|
512
|
+ </script>
|
|
|
513
|
+
|
|
|
514
|
+</body>
|
|
|
515
|
+
|
|
|
516
|
+</html>
|