Commit a807106f by guanzhenshan

1

parent 02896a87
......@@ -127,10 +127,10 @@
var str = '<th style="width:130px;">费用类型</th>';
for (var h = 0; h < result.col.length; h++) {
str += '<th style="width:100px;">' + (result.col[h] == null ? "无部门" : result.col[h]) + '</th>';
str += '<th style="width:130px;">' + (result.col[h] == null ? "无部门" : result.col[h]) + '</th>';
}
str += '<th style="width:100px;">总计</th>';
str += '<th style="width:130px;">总计</th>';
$('#tb_head').html(str);
//构造表格内容
......@@ -144,7 +144,7 @@
for (var j = 0; j < item2.length - 1; j++) {
var tempFloat = parseFloat(item2[j]);
str += '<td style="width:100px">' + (tempFloat > 0 ? '<span style="cursor:pointer" onclick="OpenDetail(\'' + dt[i].item1 + '\',\'' + (result.col[j] == null ? "" : result.col[j]) + '\',0)">' + numFormat(tempFloat) + '</span>' : tempFloat) + '</td>';
str += '<td style="width:130px">' + (tempFloat > 0 ? '<span style="cursor:pointer" onclick="OpenDetail(\'' + dt[i].item1 + '\',\'' + (result.col[j] == null ? "" : result.col[j]) + '\',0)">' + numFormat(tempFloat) + '</span>' : tempFloat) + '</td>';
rowamount = add(rowamount, tempFloat);
if (arrTotal.length > j) {
......@@ -159,7 +159,7 @@
$('#tb_body').append(str);
}
str = '<tr><td>总计:</td>';
str = '<tr><td style="width:130px">总计:</td>';
var lastItem = dt[dt.length - 1].item2;
for (var j = 0; j < lastItem.length; j++) {
str += '<td>' + numFormat(lastItem[j]) + '</td>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment