|
|
@@ -1,4 +1,4 @@
|
|
1
|
|
-<!DOCTYPE html>
|
|
|
1
|
+<!DOCTYPE html>
|
|
2
|
2
|
<html>
|
|
3
|
3
|
|
|
4
|
4
|
<head>
|
|
|
@@ -100,7 +100,7 @@
|
|
100
|
100
|
<div class="seach-box">
|
|
101
|
101
|
<ul>
|
|
102
|
102
|
<li>
|
|
103
|
|
- 交办时间:
|
|
|
103
|
+ 时间:
|
|
104
|
104
|
<input class="photo x-color inputs laydate-icon" type="text" id="startTimes" />-
|
|
105
|
105
|
<input class="photo x-color inputs laydate-icon" type="text" id="endTimes" />
|
|
106
|
106
|
</li>
|
|
|
@@ -113,20 +113,18 @@
|
|
113
|
113
|
</div>
|
|
114
|
114
|
</div>
|
|
115
|
115
|
<div style="width: 100%;padding: 10px;">
|
|
116
|
|
- <table id="list" class="table table-hover table-striped table-bordered table-condensed">
|
|
|
116
|
+ <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
|
|
117
|
117
|
<thead>
|
|
118
|
118
|
<tr>
|
|
119
|
|
- <th>单位名称</th>
|
|
120
|
|
- <th>坐席</th>
|
|
121
|
|
- <th>转派次数</th>
|
|
122
|
|
- <th>退回坐席次数</th>
|
|
123
|
|
- <th>工作量</th>
|
|
|
119
|
+ <th data-field="username" data-align="center">姓名</th>
|
|
|
120
|
+ <th data-field="assigncount" data-align="center">交办量</th>
|
|
|
121
|
+ <th data-field="returncount" data-align="center">回退量</th>
|
|
|
122
|
+ <th data-field="backauditcount" data-align="center">退回审核量</th>
|
|
|
123
|
+ <th data-field="delayauditcount" data-align="center">延时审核量</th>
|
|
|
124
|
+ <th data-field="reloadcount" data-align="center">重办量</th>
|
|
|
125
|
+ <th data-field="endcount" data-align="center">结案量</th>
|
|
124
|
126
|
</tr>
|
|
125
|
127
|
</thead>
|
|
126
|
|
- <tbody></tbody>
|
|
127
|
|
- <tfoot>
|
|
128
|
|
-
|
|
129
|
|
- </tfoot>
|
|
130
|
128
|
</table>
|
|
131
|
129
|
</div>
|
|
132
|
130
|
</div>
|
|
|
@@ -135,10 +133,7 @@
|
|
135
|
133
|
</div>
|
|
136
|
134
|
|
|
137
|
135
|
<script>
|
|
138
|
|
- var keys;
|
|
139
|
|
- var start;
|
|
140
|
|
- var end;
|
|
141
|
|
- var deptId;
|
|
|
136
|
+
|
|
142
|
137
|
$(document).ready(function () {
|
|
143
|
138
|
//返回首页
|
|
144
|
139
|
$('#ReIndex').click(function () {
|
|
|
@@ -154,12 +149,29 @@
|
|
154
|
149
|
elem: '#endTimes',
|
|
155
|
150
|
event: 'focus'
|
|
156
|
151
|
});
|
|
157
|
|
-
|
|
|
152
|
+ initTable();
|
|
158
|
153
|
});
|
|
159
|
154
|
|
|
160
|
155
|
|
|
161
|
|
-
|
|
162
|
|
- getDispatchingWorks();
|
|
|
156
|
+ function initTable() {
|
|
|
157
|
+ $.ajax({
|
|
|
158
|
+ url: huayi.config.callcenter_url + 'WorkOrderReport/GetWorkLoad',
|
|
|
159
|
+ type: 'get',
|
|
|
160
|
+ data: {
|
|
|
161
|
+ start: $("#startTimes").val(),
|
|
|
162
|
+ end: $("#endTimes").val(),
|
|
|
163
|
+ token: $.cookie("token")
|
|
|
164
|
+ },
|
|
|
165
|
+ dataType: "json",
|
|
|
166
|
+ async: true,
|
|
|
167
|
+ success: function (returnValue) {
|
|
|
168
|
+ //异步获取数据
|
|
|
169
|
+ var resultData1 = returnValue.data.LeaderAssessmentReport;
|
|
|
170
|
+ $('#workorderlist').bootstrapTable('load', resultData1);
|
|
|
171
|
+ }
|
|
|
172
|
+ });
|
|
|
173
|
+ $('#workorderlist').bootstrapTable('destroy').bootstrapTable({ striped: true });
|
|
|
174
|
+ }
|
|
163
|
175
|
//导出
|
|
164
|
176
|
$('#exportDispathingWorks').click(function () {
|
|
165
|
177
|
|
|
|
@@ -168,62 +180,14 @@
|
|
168
|
180
|
|
|
169
|
181
|
function dcexcelDispathing(obj) {
|
|
170
|
182
|
var url = huayi.config.callcenter_url + "WorkOrderReport/GetWorkLoad?token=" + $.cookie("token");
|
|
171
|
|
- url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&deptId=" + $("#depar").val() + "&isExport=true";
|
|
|
183
|
+ url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&isExport=true";
|
|
172
|
184
|
//debugger;
|
|
173
|
185
|
obj.href = url;
|
|
174
|
186
|
}
|
|
175
|
187
|
//搜索
|
|
176
|
188
|
$(".db").click(function () {
|
|
177
|
|
- start = $('#startTimes').val();
|
|
178
|
|
- end = $('#endTimes').val();
|
|
179
|
|
- deptId = '';
|
|
180
|
|
- getDispatchingWorks(start, end, deptId);
|
|
|
189
|
+ initTable();
|
|
181
|
190
|
})
|
|
182
|
|
- function getDispatchingWorks(start, end, deptId) {
|
|
183
|
|
- $('#list tbody').html('');
|
|
184
|
|
- $('#list tfoot').html('');
|
|
185
|
|
- $.ajax({
|
|
186
|
|
- type: "get",
|
|
187
|
|
- url: huayi.config.callcenter_url + "WorkOrderReport/GetWorkLoad",
|
|
188
|
|
- async: true,
|
|
189
|
|
- dataType: 'json',
|
|
190
|
|
- data: {
|
|
191
|
|
- start: start,
|
|
192
|
|
- end: end,
|
|
193
|
|
- deptId: deptId,
|
|
194
|
|
- token: $.cookie("token"),
|
|
195
|
|
- },
|
|
196
|
|
- success: function (result) {
|
|
197
|
|
- if (result) {
|
|
198
|
|
- var tbodyItems = result.rows;
|
|
199
|
|
- var tfootItems = result.total;
|
|
200
|
|
- $(tbodyItems).each(function (i, n) {
|
|
201
|
|
- $('<tr>' +
|
|
202
|
|
- '<td>' + n.detpname + '</td>' +
|
|
203
|
|
- '<td>' + n.useraccount + '</td>' +
|
|
204
|
|
- '<td>' + n.fordeliverycount + '</td>' +
|
|
205
|
|
- '<td>' + n.returnedcount + '</td>' +
|
|
206
|
|
- '<td>' + n.workcount + '</td>' +
|
|
207
|
|
- '</tr>').appendTo('#list tbody')
|
|
208
|
|
- });
|
|
209
|
|
- $(tfootItems).each(function (i, n) {
|
|
210
|
|
- $('<tr>' +
|
|
211
|
|
- '<td colspan="2">总计</td>' +
|
|
212
|
|
- '<td>' + n.fordeliverycount + '</td>' +
|
|
213
|
|
- '<td>' + n.returnedcount + '</td>' +
|
|
214
|
|
- '<td>' + n.workcount + '</td>' +
|
|
215
|
|
- '</tr>').appendTo('#list tfoot')
|
|
216
|
|
- })
|
|
217
|
|
-
|
|
218
|
|
- }
|
|
219
|
|
- }
|
|
220
|
|
- });
|
|
221
|
|
-
|
|
222
|
|
- }
|
|
223
|
|
-
|
|
224
|
|
-
|
|
225
|
|
-
|
|
226
|
|
-
|
|
227
|
191
|
</script>
|
|
228
|
192
|
</body>
|
|
229
|
193
|
|