|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+<!DOCTYPE html>
|
|
|
2
|
+<html>
|
|
|
3
|
+
|
|
|
4
|
+ <head>
|
|
|
5
|
+ <meta charset="utf-8">
|
|
|
6
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
7
|
+
|
|
|
8
|
+ <title>营业部热点问题清单统计</title>
|
|
|
9
|
+ <script src="../Script/Common/huayi.load.js"></script>
|
|
|
10
|
+ <script src="../Script/Common/huayi.config.js"></script>
|
|
|
11
|
+ <link href="../css/bootstrap.min.css" />
|
|
|
12
|
+ <link href="../css/init.css" rel="stylesheet" />
|
|
|
13
|
+ <link rel="stylesheet" href="../css/boot/bootstrap-table.css" />
|
|
|
14
|
+ <style>
|
|
|
15
|
+ .kpi-top {
|
|
|
16
|
+ background: #f3f3f4;
|
|
|
17
|
+ padding: 10px 20px;
|
|
|
18
|
+ margin: 30px 0;
|
|
|
19
|
+ }
|
|
|
20
|
+
|
|
|
21
|
+ .topCon {
|
|
|
22
|
+ float: left;
|
|
|
23
|
+ margin-left: 70px;
|
|
|
24
|
+ }
|
|
|
25
|
+
|
|
|
26
|
+ .kpi-content h2 {
|
|
|
27
|
+ font-size: 18px;
|
|
|
28
|
+ margin-bottom: 20px;
|
|
|
29
|
+ }
|
|
|
30
|
+
|
|
|
31
|
+ .kpi-content {
|
|
|
32
|
+ width: 90%;
|
|
|
33
|
+ margin: 0 auto;
|
|
|
34
|
+ }
|
|
|
35
|
+
|
|
|
36
|
+ .kpi-table table {
|
|
|
37
|
+ font-size: 12px;
|
|
|
38
|
+ }
|
|
|
39
|
+
|
|
|
40
|
+ .kpi-table table thead tr td {
|
|
|
41
|
+ background: #1ab394;
|
|
|
42
|
+ color: #fff;
|
|
|
43
|
+ font-size: 14px;
|
|
|
44
|
+ }
|
|
|
45
|
+ #table1 thead tr{
|
|
|
46
|
+ background-color: rgb(26,179,148);
|
|
|
47
|
+ color: #fff;
|
|
|
48
|
+ }
|
|
|
49
|
+ </style>
|
|
|
50
|
+ </head>
|
|
|
51
|
+
|
|
|
52
|
+ <body class="gray-bg">
|
|
|
53
|
+ <div class="hwkpi">
|
|
|
54
|
+ <div class="daoHang clearfix">
|
|
|
55
|
+ <div class="dhLeft">
|
|
|
56
|
+ <sapn><i class="syIcon"></i>位置:
|
|
|
57
|
+ <a id="ReIndex" href="javaScript:;">首页</a>>
|
|
|
58
|
+ <a href="javaScript:;">报表分析</a>>
|
|
|
59
|
+ <a href="javaScript:;">业务报表分析</a>>
|
|
|
60
|
+ <a href="" style="color: #000;">营业部热点问题清单统计</a>
|
|
|
61
|
+ </sapn>
|
|
|
62
|
+ </div>
|
|
|
63
|
+ </div>
|
|
|
64
|
+ <div class="kpi-top clearfix form-inline">
|
|
|
65
|
+ <div class="topCon">
|
|
|
66
|
+ 查询日期:
|
|
|
67
|
+ <input type="text" class="form-control" id="startTime" style="margin-right: 20px;"/>
|
|
|
68
|
+ 任务名称:
|
|
|
69
|
+ <select class="form-control" id="rwjg"></select>
|
|
|
70
|
+ 营业部:
|
|
|
71
|
+ <select class="form-control" id="yyb"></select>
|
|
|
72
|
+ 电话:
|
|
|
73
|
+ <input type="text" class="form-control" id="phone"/>
|
|
|
74
|
+ <button class="btns sear">搜索</button>
|
|
|
75
|
+ <a class="btns export ">导出</a>
|
|
|
76
|
+ </div>
|
|
|
77
|
+ </div>
|
|
|
78
|
+
|
|
|
79
|
+ <div class="kpi-content">
|
|
|
80
|
+ <div class="kpi-table">
|
|
|
81
|
+ <table id="table1" data-row-style="rowStyle" data-query-params="queryParams">
|
|
|
82
|
+ <thead>
|
|
|
83
|
+ <tr>
|
|
|
84
|
+ <th data-field="ExpandVchField1" data-align="center">目标用户</th>
|
|
|
85
|
+ <th data-field="Expandfield2" data-align="center">营业部</th>
|
|
|
86
|
+ <th data-field="F_Phone" data-align="center">号码</th>
|
|
|
87
|
+ <th data-field="Expandfield3" data-align="center">宽带账号</th>
|
|
|
88
|
+ <th data-field="F_typeValue12" data-align="center">移网上网质量</th>
|
|
|
89
|
+ <th data-field="F_typeValue22" data-align="center">移网通话质量</th>
|
|
|
90
|
+ <th data-field="F_typeValue32" data-align="center">光网网络质量</th>
|
|
|
91
|
+ <th data-field="F_typeValue42" data-align="center">装维服务</th>
|
|
|
92
|
+ <th data-field="F_typeValue52" data-align="center">营业厅服务</th>
|
|
|
93
|
+ <th data-field="F_typeValue62" data-align="center">资费政策</th>
|
|
|
94
|
+ <th data-field="createname" data-align="center">坐席姓名</th>
|
|
|
95
|
+ <th data-field="F_typeValue7" data-align="center">反映问题</th>
|
|
|
96
|
+ <th data-field="Clcontent" data-align="center">处理结果</th>
|
|
|
97
|
+ <th data-field="ExpandDatField1" data-align="center">呼叫时间</th>
|
|
|
98
|
+ <th data-field="CallState" data-align="center">是否接通</th>
|
|
|
99
|
+ <th data-field="F_HJJGName" data-align="center">呼叫结果</th>
|
|
|
100
|
+ </tr>
|
|
|
101
|
+ </thead>
|
|
|
102
|
+ </table>
|
|
|
103
|
+ </div>
|
|
|
104
|
+
|
|
|
105
|
+ </div>
|
|
|
106
|
+ </div>
|
|
|
107
|
+
|
|
|
108
|
+ <script src="../js/laydate/laydate.js"></script>
|
|
|
109
|
+
|
|
|
110
|
+ <script>
|
|
|
111
|
+ var token = $.cookie("token"),
|
|
|
112
|
+ endtime='' , //结束时间
|
|
|
113
|
+ stime='' ; //开始时间
|
|
|
114
|
+ var $tableLeft1 = $('#table1');
|
|
|
115
|
+ $(function() {
|
|
|
116
|
+ laydate.render({
|
|
|
117
|
+ elem: '#startTime',
|
|
|
118
|
+ range: '~',
|
|
|
119
|
+ theme: '#1ab394'
|
|
|
120
|
+ });
|
|
|
121
|
+ getTimes('#startTime')
|
|
|
122
|
+ getDepartList($('#yyb'))
|
|
|
123
|
+ GetRWJG()
|
|
|
124
|
+ Ajax();
|
|
|
125
|
+ //搜索事件
|
|
|
126
|
+ $(".sear").click(function() {
|
|
|
127
|
+ $('.thTable tbody').html('');
|
|
|
128
|
+ Ajax();
|
|
|
129
|
+ });
|
|
|
130
|
+ //导出
|
|
|
131
|
+ $('.export').click(function() {
|
|
|
132
|
+ dcexcel(this);
|
|
|
133
|
+ })
|
|
|
134
|
+ });
|
|
|
135
|
+
|
|
|
136
|
+ function dcexcel(obj) {
|
|
|
137
|
+ stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0]; //开始时间
|
|
|
138
|
+ endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1]; //结束时间
|
|
|
139
|
+ var url = huayi.config.callcenter_url + "CallOutReport/getSaleOfficeHotQuestionDetailData?token=" + token;
|
|
|
140
|
+ url += "&sdate=" + stime + "&edate=" + endtime;
|
|
|
141
|
+ url += '&phone=' + $('#phone').val()
|
|
|
142
|
+ url += '&taskid=' + $('#rwjg').val()
|
|
|
143
|
+ url += "&export=" + 1 ;
|
|
|
144
|
+ url += '&yingyebu=' + $('#yyb').val()
|
|
|
145
|
+ obj.href = url;
|
|
|
146
|
+ }
|
|
|
147
|
+
|
|
|
148
|
+ function getTimes(dom) {
|
|
|
149
|
+ function p(s) {
|
|
|
150
|
+ return s < 10 ? '0' + s : s;
|
|
|
151
|
+ }
|
|
|
152
|
+ var currentYear = new Date().getFullYear();
|
|
|
153
|
+ var currentMonth = new Date().getMonth() + 1;
|
|
|
154
|
+ var currentDate = new Date().getDate();
|
|
|
155
|
+ var prevCurrentYear = 0;
|
|
|
156
|
+ var prevCurrentMonth = 0;
|
|
|
157
|
+ if(currentMonth == 1) {
|
|
|
158
|
+ prevCurrentYear = currentYear - 1;
|
|
|
159
|
+ prevCurrentMonth = 12;
|
|
|
160
|
+ } else {
|
|
|
161
|
+ prevCurrentYear = currentYear;
|
|
|
162
|
+ prevCurrentMonth = currentMonth - 1;
|
|
|
163
|
+ }
|
|
|
164
|
+ var data = currentYear + "-" + p(currentMonth) + "-" + '01';
|
|
|
165
|
+ var current = currentYear + "-" + p(currentMonth)+"-" +currentDate;
|
|
|
166
|
+ $(dom).val(data+' ~ '+current)
|
|
|
167
|
+ }
|
|
|
168
|
+
|
|
|
169
|
+ function GetRWJG() {
|
|
|
170
|
+ $.ajax({
|
|
|
171
|
+ type: "get",
|
|
|
172
|
+ url: huayi.config.callcenter_url + "Questionnaire/GetTaskList",
|
|
|
173
|
+ dataType: 'json',
|
|
|
174
|
+ data: {
|
|
|
175
|
+ flag: 'HJJG',
|
|
|
176
|
+ token: $.cookie("token")
|
|
|
177
|
+ },
|
|
|
178
|
+ async: true,
|
|
|
179
|
+ success: function(data) {
|
|
|
180
|
+ var Count = data.data;
|
|
|
181
|
+ $("<option value='0'>--全部--</option>").appendTo($("#rwjg"));
|
|
|
182
|
+ for(var i = 0; i < Count.length; i++) {
|
|
|
183
|
+ console.log(Count[i].F_UserName);
|
|
|
184
|
+ $("<option value='" + Count[i].F_TaskID + "'>" + Count[i].F_TaskName + "</option>").appendTo($("#rwjg"));
|
|
|
185
|
+
|
|
|
186
|
+ }
|
|
|
187
|
+ }
|
|
|
188
|
+ });
|
|
|
189
|
+ }
|
|
|
190
|
+ function getDepartList(obj) {
|
|
|
191
|
+ obj.empty();
|
|
|
192
|
+ let str = '<option value="">请选择</option>'
|
|
|
193
|
+ $.getJSON(huayi.config.callcenter_url + 'CallOutPlan/GetDepartList', {
|
|
|
194
|
+ "token": $.cookie("token")
|
|
|
195
|
+ }, function(result) {
|
|
|
196
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
197
|
+ result.data.forEach(function(v, n) {
|
|
|
198
|
+ str += '<option value="' + v.F_DeptId + '">' + v.F_DeptName + '</option>'
|
|
|
199
|
+ })
|
|
|
200
|
+ obj.html(str)
|
|
|
201
|
+ }
|
|
|
202
|
+ })
|
|
|
203
|
+ }
|
|
|
204
|
+
|
|
|
205
|
+ function Ajax() {
|
|
|
206
|
+ //销毁表格
|
|
|
207
|
+ $tableLeft1.bootstrapTable('destroy');
|
|
|
208
|
+ //初始化表格,动态从服务器加载数据
|
|
|
209
|
+ $tableLeft1.bootstrapTable({
|
|
|
210
|
+ method: "get", //使用get请求到服务器获取数据
|
|
|
211
|
+ url: huayi.config.callcenter_url + "CallOutReport/getSaleOfficeHotQuestionDetailData",
|
|
|
212
|
+ contentType: 'application/x-www-form-urlencoded',
|
|
|
213
|
+ striped: true, //表格显示条纹
|
|
|
214
|
+ pagination: true, //启动分页
|
|
|
215
|
+ pageSize: 5, //每页显示的记录数
|
|
|
216
|
+ pageNumber: 1, //当前第几页
|
|
|
217
|
+ pageList: [15, 30, 45, 100], //记录数可选列表
|
|
|
218
|
+ search: false, //是否启用查询
|
|
|
219
|
+ showColumns: false, //显示下拉框勾选要显示的列
|
|
|
220
|
+ showRefresh: false, //显示刷新按钮
|
|
|
221
|
+ sidePagination: "server", //表示服务端请求
|
|
|
222
|
+ //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
|
|
|
223
|
+ //设置为limit可以获取limit, offset, search, sort, order
|
|
|
224
|
+ queryParamsType: "undefined",
|
|
|
225
|
+ responseHandler: function(res) {
|
|
|
226
|
+ //格式化数据
|
|
|
227
|
+ return {
|
|
|
228
|
+ "total": res.total , //总页数
|
|
|
229
|
+ "rows": res.rows//数据
|
|
|
230
|
+ };
|
|
|
231
|
+ },
|
|
|
232
|
+ queryParams: function queryParams(params) { //设置查询参数
|
|
|
233
|
+ var param = {
|
|
|
234
|
+ sdate: $('#startTime').val() && $('#startTime').val().split(' ~ ')[0],
|
|
|
235
|
+ edate: $('#startTime').val() && $('#startTime').val().split(' ~ ')[1],
|
|
|
236
|
+ yingyebu: $('#yyb').val(),
|
|
|
237
|
+ phone: $('#phone').val(),
|
|
|
238
|
+ export:0,
|
|
|
239
|
+ pagesize: params.pageSize,
|
|
|
240
|
+ pageindex: params.pageNumber,
|
|
|
241
|
+ taskid:$('#rwjg').val(),
|
|
|
242
|
+ token: token
|
|
|
243
|
+ };
|
|
|
244
|
+ return param;
|
|
|
245
|
+ },
|
|
|
246
|
+ onLoadSuccess: function() { //加载成功时执行
|
|
|
247
|
+ // layer.msg("加载成功");
|
|
|
248
|
+ },
|
|
|
249
|
+ onLoadError: function() { //加载失败时执行
|
|
|
250
|
+ //layer.msg("加载数据失败", { time: 1500, icon: 2 });
|
|
|
251
|
+ }
|
|
|
252
|
+ });
|
|
|
253
|
+ }
|
|
|
254
|
+ </script>
|
|
|
255
|
+ </body>
|
|
|
256
|
+
|
|
|
257
|
+</html>
|