|
|
@@ -6,9 +6,6 @@
|
|
6
|
6
|
<meta charset="utf-8">
|
|
7
|
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
8
|
8
|
<title>质检数据报表</title>
|
|
9
|
|
- <!--[if lt IE 9]>
|
|
10
|
|
- <meta http-equiv="refresh" content="0;ie.html" />
|
|
11
|
|
- <![endif]-->
|
|
12
|
9
|
<script src="Script/Common/huayi.load.js"></script>
|
|
13
|
10
|
<script src="Script/Common/huayi.config.js"></script>
|
|
14
|
11
|
<link href="./css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
|
|
|
@@ -114,7 +111,7 @@
|
|
114
|
111
|
<tr class="three"></tr>
|
|
115
|
112
|
<tr class="four"></tr>
|
|
116
|
113
|
</thead>
|
|
117
|
|
- <tbody class="tbody">
|
|
|
114
|
+ <tbody class="tbody"></tbody>
|
|
118
|
115
|
|
|
119
|
116
|
</table>
|
|
120
|
117
|
</div>
|
|
|
@@ -191,38 +188,29 @@
|
|
191
|
188
|
$.ajax({
|
|
192
|
189
|
type: "get",
|
|
193
|
190
|
dataType: "json",
|
|
194
|
|
- url: huayi.config.callcenter_url+"QCResult/GetColumnList?expor",
|
|
|
191
|
+ url: huayi.config.callcenter_url+"QCResult/GetColumnList",
|
|
195
|
192
|
async: false,
|
|
196
|
193
|
data: {
|
|
197
|
194
|
token:token,
|
|
198
|
|
-// stime: stime,
|
|
199
|
|
-// endtime: endtime,
|
|
200
|
|
-// isext:expor
|
|
201
|
195
|
},
|
|
202
|
196
|
success: function(data) {
|
|
203
|
|
- // content = data.data;
|
|
204
|
|
-
|
|
205
|
197
|
data.data.forEach(function(v,n){
|
|
206
|
198
|
if(v.Qcname !== '总分1'){
|
|
207
|
199
|
content.push(v)
|
|
208
|
200
|
}
|
|
209
|
201
|
})
|
|
210
|
|
- console.log(content)
|
|
|
202
|
+
|
|
211
|
203
|
for(var i = 0; i < content.length; i++) {
|
|
212
|
204
|
$('<td rowspan="' + content[i].Rowspan + '" colspan="' + content[i].Colspan + '">' + content[i].Qcname + '</td>').appendTo('.zjTable thead tr.one')
|
|
213
|
205
|
if(content[i].Qcscore !== null) {
|
|
214
|
206
|
$('<td>' + content[i].Qcscore + '</td>').appendTo('.zjTable thead tr.four')
|
|
215
|
|
-
|
|
216
|
207
|
}
|
|
217
|
208
|
if(content[i].Qclist !== null) {
|
|
218
|
209
|
var twoCon = content[i].Qclist;
|
|
219
|
|
- //console.log(twoCon)
|
|
220
|
210
|
for(var j = 0; j < twoCon.length; j++) {
|
|
221
|
|
- //console.log(twoCon[j].Qcname)
|
|
222
|
211
|
$('<td rowspan="' + twoCon[j].Rowspan + '" colspan="' + twoCon[j].Colspan + '">' + twoCon[j].Qcname + '</td>').appendTo('.zjTable thead tr.two')
|
|
223
|
212
|
if(twoCon[j].Qclist !== null) {
|
|
224
|
213
|
var threeCon = twoCon[j].Qclist;
|
|
225
|
|
- //console.log(threeCon);
|
|
226
|
214
|
for(var g = 0; g < threeCon.length; g++) {
|
|
227
|
215
|
$('<td rowspan="' + threeCon[g].Rowspan + '" colspan="' + threeCon[g].Colspan + '">' + threeCon[g].Qcname + '</td>').appendTo('.zjTable thead tr.three')
|
|
228
|
216
|
$('<td rowspan="' + threeCon[g].Rowspan + '" colspan="' + threeCon[g].Colspan + '">' + threeCon[g].Qcscore + '</td>').appendTo('.zjTable thead tr.four')
|
|
|
@@ -247,21 +235,20 @@
|
|
247
|
235
|
stime: stime,
|
|
248
|
236
|
endtime: endtime,
|
|
249
|
237
|
dpt:bumen,
|
|
250
|
|
-// isext: expor
|
|
251
|
238
|
},
|
|
252
|
239
|
success: function(result) {
|
|
253
|
240
|
var tbodyCon = result.data;
|
|
|
241
|
+ var html =""
|
|
254
|
242
|
for(var i = 0; i < tbodyCon.length; i++) {
|
|
255
|
|
- $('<tr><td>' + tbodyCon[i].QCName + '</td><td>' +
|
|
256
|
|
- tbodyCon[i].UserName + '</td><td>' + tbodyCon[i].UserCode + '</td><td>' +
|
|
257
|
|
- tbodyCon[i].ZJCount + '</td><td>' + tbodyCon[i].Q58 + '</td><td>' +
|
|
258
|
|
- tbodyCon[i].Q59 + '</td><td>' + tbodyCon[i].Q60 + '</td><td>' +
|
|
259
|
|
- tbodyCon[i].Q61 + '</td><td>' + tbodyCon[i].Q62 + '</td><td>' +
|
|
260
|
|
- tbodyCon[i].Q63 + '</td><td>' +tbodyCon[i].Q64 + '</td><td>' + tbodyCon[i].Q65 + '</td><td>' +
|
|
261
|
|
- tbodyCon[i].Q66 + '</td><td>' +tbodyCon[i].Q67 + '</td><td>' + tbodyCon[i].Q68 + '</td><td>' +
|
|
262
|
|
- tbodyCon[i].Q69 + '</td><td>' + tbodyCon[i].df0 + '</td><td>' + '</td></tr>').appendTo('.zjTable tbody')
|
|
263
|
|
-
|
|
|
243
|
+ html +="<tr>"
|
|
|
244
|
+ for(var key in tbodyCon[i]){
|
|
|
245
|
+ delete tbodyCon[i].AllScore
|
|
|
246
|
+ html += '<td>' + tbodyCon[i][key] + '</td>'
|
|
|
247
|
+ }
|
|
|
248
|
+ html += "</tr>"
|
|
264
|
249
|
}
|
|
|
250
|
+ $(html).appendTo('.zjTable tbody')
|
|
|
251
|
+
|
|
265
|
252
|
}
|
|
266
|
253
|
});
|
|
267
|
254
|
|