Procházet zdrojové kódy

查询工单,通话记录默认时间筛选

miaofuhao %!s(int64=2) %!d(string=před) roky
rodič
revize
a96a7a3114

+ 2 - 0
WebUI/CallCenterWeb.UI/Appeal/Lawsuit.html

@@ -382,6 +382,8 @@
382 382
 					istime: true,
383 383
 					format: 'YYYY-MM-DD hh:mm:ss'
384 384
 				});
385
+				$("#starttime").val(helper.DateFormat.getNowDate()+" 00:00:00")
386
+				$("#endtime").val(helper.DateFormat.getNowDate()+" 23:59:59")
385 387
 				load();
386 388
 				getPhoneType($("#phoneType"));
387 389
 			});

+ 2 - 0
WebUI/CallCenterWeb.UI/MarketingManagement/LawsuitMarketing.html

@@ -607,6 +607,8 @@
607 607
                 istime: true,
608 608
                 format: 'YYYY-MM-DD hh:mm:ss'
609 609
             });
610
+            $("#starttime").val(helper.DateFormat.getNowDate()+" 00:00:00")
611
+			$("#endtime").val(helper.DateFormat.getNowDate()+" 23:59:59")
610 612
             load();
611 613
         });
612 614
         //关闭录音弹出

+ 2 - 0
WebUI/CallCenterWeb.UI/MultimediaWorkOrder/LawsuitMedia.html

@@ -312,6 +312,8 @@
312 312
                 istime: true,
313 313
                 format: 'YYYY-MM-DD hh:mm:ss'
314 314
             });
315
+            $("#starttime").val(helper.DateFormat.getNowDate()+" 00:00:00")
316
+			$("#endtime").val(helper.DateFormat.getNowDate()+" 23:59:59")
315 317
             load();
316 318
             getMultimediaPersonnel($("#assignUser"))
317 319
         });

+ 2 - 0
WebUI/CallCenterWeb.UI/OtherPhoneManagement/LawsuitOtherPhone.html

@@ -382,6 +382,8 @@
382 382
                 format: 'YYYY-MM-DD hh:mm:ss'
383 383
             });
384 384
             getPhoneType($("#incomingcall"));
385
+            $("#starttime").val(helper.DateFormat.getNowDate()+" 00:00:00")
386
+			$("#endtime").val(helper.DateFormat.getNowDate()+" 23:59:59")
385 387
             load();
386 388
         });
387 389
         //关闭录音弹出

+ 2 - 0
WebUI/CallCenterWeb.UI/ProvincialPlatformManagement/LawsuitProvincialPlatform.html

@@ -369,6 +369,8 @@
369 369
                 istime: true,
370 370
                 format: 'YYYY-MM-DD hh:mm:ss'
371 371
             });
372
+            $("#starttime").val(helper.DateFormat.getNowDate()+" 00:00:00")
373
+			$("#endtime").val(helper.DateFormat.getNowDate()+" 23:59:59")
372 374
             load();
373 375
         });
374 376
         //关闭录音弹出

+ 34 - 3
WebUI/CallCenterWeb.UI/ReportForm/seaterMY.html

@@ -76,8 +76,8 @@
76 76
 										
77 77
 									</li>
78 78
 									<li>
79
-										<a class="sc_btn btns db" style="padding: 7px 10px;">搜索</a>
80
-										<a class="sc_btn btns export">导出</a>
79
+										<a class="sc_btn btns dbPresent" style="padding: 7px 10px;">搜索</a>
80
+										<a class="sc_btn btns exportPresent">导出</a>
81 81
 									</li>
82 82
 									<li><span class="text-danger" style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
83 83
 								</ul>
@@ -141,11 +141,42 @@
141 141
 				});
142 142
 				selectCommon(zxSelectObj)
143 143
 				selectCommon(groupSelectObj)
144
-				initTable();
144
+				initTablePresent();
145 145
 			})
146 146
 			$("#userGroup").change(function(){
147 147
 				selectCommon(zxSelectObj)
148 148
 			})
149
+			//代办搜索
150
+			$(".dbPresent").click(function() {
151
+				initTablePresent()
152
+			})
153
+			//导出
154
+			$('.exportPresent').click(function() {
155
+				var params = dataParam()
156
+				params.isExport = true;
157
+				exportFileFun(apiUrl, params)
158
+			})
159
+			function initTablePresent() {
160
+	            $.ajax({
161
+	                url: huayi.config.callcenter_url + 'TalkTime/GetUserSatisfied',
162
+	                type: 'get',
163
+	                data: dataParam(),
164
+	                dataType: "json",
165
+	                async: true,
166
+	                success: function (returnValue) {
167
+	                    //异步获取数据
168
+	                    var resultData1 = returnValue.data.UserSatisfiedReport;
169
+	                    $('#workorderlist').bootstrapTable('load', resultData1);
170
+	                }
171
+	            });
172
+	            $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
173
+	                striped: true
174
+	            });
175
+	        }
176
+			//序号
177
+	        function serialNumber(val, row, index) {
178
+	            return index + 1;
179
+	        }
149 180
 			function dataParam() {
150 181
 				var obj = {
151 182
 					start: $("#startTimes").val(),

+ 192 - 0
WebUI/CallCenterWeb.UI/ReportForm/seaterMY1.html

@@ -0,0 +1,192 @@
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
+    <script src="../Script/Common/huayi.load.js"></script>
9
+    <script src="../Script/Common/huayi.config.js"></script>
10
+    <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
11
+    <link href="../css/WorkOrder/Search.css" rel="stylesheet">
12
+    <link href="../css/init.css" rel="stylesheet" />
13
+    <script src="../css/laydate/laydate.js"></script>
14
+    <script src="../My97DatePicker/WdatePicker.js"></script>
15
+
16
+    <style>
17
+        table td {
18
+            word-break: break-all;
19
+            word-wrap: break-word;
20
+        }
21
+
22
+        .ld-service li {
23
+            float: left;
24
+            font-size: 14px;
25
+            color: #000;
26
+            padding: 5px 15px;
27
+            cursor: pointer;
28
+            border-bottom: 1px solid #ccc;
29
+        }
30
+
31
+        .cr-click {
32
+            border: 1px solid #ccc;
33
+            background-color: #fff;
34
+            border-bottom: none !important;
35
+            border-bottom-left-radius: 5px;
36
+            border-bottom-right-radius: 5px;
37
+        }
38
+
39
+        .Shows {
40
+            display: block !important;
41
+        }
42
+
43
+        .complain {
44
+            display: none;
45
+        }
46
+
47
+        th {
48
+            padding: 5px;
49
+            text-align: center;
50
+        }
51
+
52
+        td {
53
+            padding: 5px;
54
+        }
55
+
56
+        .Borders {
57
+            border: 1px solid #d7d7d7;
58
+        }
59
+
60
+        .cx {
61
+            display: block;
62
+        }
63
+        .seach-box input {
64
+            width: 200px;
65
+            height: 34px;
66
+        }
67
+    </style>
68
+</head>
69
+
70
+<body class="gray-bg">
71
+    <div class="wrapper wrapper-content animated fadeInRight">
72
+        <div class="daoHang clearfix">
73
+            <div class="dhLeft">
74
+                <sapn>
75
+                    <i class="syIcon"></i>位置:
76
+                    <a href="javaScript:;" id="ReIndex">首页</a>&gt;
77
+                    <a href="javaScript:;">报表管理</a>&gt;
78
+                    <a href="" class="nowPosition">坐席接听满意度统计</a>
79
+                </sapn>
80
+            </div>
81
+            <div class="dhRight">
82
+                <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
83
+            </div>
84
+        </div>
85
+
86
+        <div class="Content_box">
87
+            <!--待处理/-->
88
+            <div class="complain Shows">
89
+                <div class="th-box">
90
+                    <div class="th-bar">
91
+                        <div class="seach-box">
92
+                            <ul>
93
+                                <li>
94
+                                    创建时间:
95
+                                    <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" autocomplete="off" />-
96
+                                    <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" autocomplete="off" />
97
+                                </li>
98
+                                <li>
99
+                                    <a class="sc_btn btns db" style="padding: 7px 10px;">搜索</a>
100
+                                    <a class="sc_btn btns export">导出</a>
101
+                                </li>
102
+                                <li><span class="text-danger"
103
+                                        style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
104
+                            </ul>
105
+                        </div>
106
+                    </div>
107
+                </div>
108
+                <div style="width: 100%;padding: 10px;">
109
+                    <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams"
110
+                        data-pagination="true">
111
+                        <thead>
112
+                            <tr>
113
+                                <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
114
+                                <th data-field="username" data-align="center">坐席姓名</th>
115
+                                <th data-field="count" data-align="center">接听量</th>
116
+                                <th data-field="satisfiedcount" data-align="center">满意量</th>
117
+                                <th data-field="normalcount" data-align="center">一般量</th>
118
+                                <th data-field="notsatisfiedcount" data-align="center">不满意总量</th>
119
+                                <th data-field="satisfiedrate" data-align="center">满意度</th>
120
+                            </tr>
121
+                        </thead>
122
+                    </table>
123
+                </div>
124
+            </div>
125
+
126
+        </div>
127
+    </div>
128
+
129
+    <script>
130
+        $(document).ready(function () {
131
+            laydate.skin('blue');
132
+            laydate({
133
+                elem: '#startTimes',
134
+                event: 'focus',
135
+                istime: true,
136
+                format: 'YYYY-MM-DD hh:mm:ss'
137
+            });
138
+
139
+            laydate({
140
+                elem: '#endTimes',
141
+                event: 'focus',
142
+                istime: true,
143
+                format: 'YYYY-MM-DD hh:mm:ss'
144
+            });
145
+            initTable();
146
+        })
147
+
148
+        function initTable() {
149
+            $.ajax({
150
+                url: huayi.config.callcenter_url + 'TalkTime/GetUserSatisfied',
151
+                type: 'get',
152
+                data: {
153
+                    start: $("#startTimes").val(),
154
+                    end: $("#endTimes").val(),
155
+                    token: $.cookie("token")
156
+                },
157
+                dataType: "json",
158
+                async: true,
159
+                success: function (returnValue) {
160
+                    //异步获取数据
161
+                    var resultData1 = returnValue.data.UserSatisfiedReport;
162
+                    $('#workorderlist').bootstrapTable('load', resultData1);
163
+                }
164
+            });
165
+            $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
166
+                striped: true
167
+            });
168
+        }
169
+
170
+        //序号
171
+        function serialNumber(val, row, index) {
172
+            return index + 1;
173
+        }
174
+
175
+        //代办搜索
176
+        $(".db").click(function () {
177
+            initTable();
178
+        })
179
+        //导出
180
+        $('.export').click(function () {
181
+            dcexcel(this);
182
+        })
183
+
184
+        function dcexcel(obj) {
185
+            var url = huayi.config.callcenter_url + "TalkTime/GetUserSatisfied?token=" + $.cookie("token");
186
+            url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&isExport=true";
187
+            obj.href = url;
188
+        }
189
+    </script>
190
+</body>
191
+
192
+</html>

+ 3 - 0
WebUI/CallCenterWeb.UI/Script/Common/huayi.http.js

@@ -818,6 +818,9 @@ helper.DateFormat = {
818 818
 		myDate.getYear(); //获取当前年份(2位)    
819 819
 		var YY = myDate.getFullYear(); //获取完整的年份(4位,1970-????)    
820 820
 		var MM = myDate.getMonth() + 1; //获取当前月份(0-11,0代表1月)    
821
+		if (MM<10) {
822
+			MM = "0"+MM
823
+		}
821 824
 		var DD = myDate.getDate(); //获取当前日(1-31)    
822 825
 		myDate.getDay(); //获取当前星期X(0-6,0代表星期天)    
823 826
 		myDate.getTime(); //获取当前时间(从1970.1.1开始的毫秒数)    

+ 2 - 0
WebUI/CallCenterWeb.UI/TelCall/CallRecord.html

@@ -387,6 +387,8 @@
387 387
                 istime: true,
388 388
                 format: 'YYYY-MM-DD hh:mm:ss'
389 389
             });
390
+            $("#start").val(helper.DateFormat.getNowDate()+" 00:00:00")
391
+			$("#end").val(helper.DateFormat.getNowDate()+" 23:59:59")
390 392
             /*获取选中行对象*/
391 393
             $('#list').on("click-row.bs.table", function (e, row, ele) {
392 394
                 $('.success').removeClass('success'); //去除之前选中的行的,选中样式

+ 2 - 0
WebUI/CallCenterWeb.UI/js/reportCommon/common.js

@@ -14,6 +14,7 @@ $("#workorderlist").on("click-row.bs.table", function(e, row, ele) {
14 14
 });
15 15
 
16 16
 function initTable() {
17
+	console.log(apiUrl)
17 18
 	$.ajax({
18 19
 		url: huayi.config.callcenter_url + apiUrl,
19 20
 		type: 'get',
@@ -41,6 +42,7 @@ function initTable() {
41 42
 				columnsArray = []
42 43
 				data.data = []
43 44
 			}
45
+			
44 46
 			$('#workorderlist').bootstrapTable('destroy');
45 47
 			$('#workorderlist').bootstrapTable({
46 48
 				columns: columnsArray,