|
@@ -48,7 +48,7 @@ app.controller("listCtrl", ["$scope", "$http", "$timeout", function ($scope, $ht
|
|
|
if (item.code != "ID" && item.code != "ROUTEINFOID" &&
|
|
|
item.code != "SORTID" && item.code != "APPCODE" &&
|
|
|
item.code != "CTIME" && item.code != "RYSF" && item.code != "RYFL" && item.code != "SFZHM" && item.code != "CJGZSJ" && item.code != "ZW") {
|
|
|
- self.thead.push({ code: item.code, cname: item.cname, ckind: item.ckind, show: true })
|
|
|
+ self.thead.push({ code: item.code, cname: item.cname, ckind: item.ckind, show: false })
|
|
|
}
|
|
|
})
|
|
|
self.date = sp.currentYear() + "-" + formate(sp.currentMonth())
|
|
@@ -96,11 +96,17 @@ app.controller("listCtrl", ["$scope", "$http", "$timeout", function ($scope, $ht
|
|
|
});
|
|
|
self.list.forEach(function (item) {
|
|
|
self.thead.forEach(function (item1) {
|
|
|
+ if (item[item1.code] != "" && item[item1.code] != null && item[item1.code] != undefined) {
|
|
|
+ item1.show = true;
|
|
|
+ }
|
|
|
if (item1.ckind == "datetime") {
|
|
|
item[item1.code] = item[item1.code] ? sp.minsToDate("yyyy-MM", item[item1.code]) : "";
|
|
|
}
|
|
|
if (item.NAMETYPE == "合计") {
|
|
|
item.XM = "合计";
|
|
|
+ //if (item[item1.code] == "" || item[item1.code] == null || item[item1.code] == undefined) {
|
|
|
+ // item1.show = false;
|
|
|
+ //}
|
|
|
}
|
|
|
})
|
|
|
})
|
|
@@ -130,9 +136,12 @@ app.controller("listCtrl", ["$scope", "$http", "$timeout", function ($scope, $ht
|
|
|
if (item1.ckind == "datetime") {
|
|
|
item[item1.code] = sp.format(item[item1.code]).slice(0, 10)
|
|
|
}
|
|
|
- if ((item1.ckind == "decimal" && item[item1.code] == 0) || item[item1.code] == "" || item[item1.code] == null | item[item1.code] == undefined) {
|
|
|
- item1.show = false;
|
|
|
+ if (item[item1.code] != 0 && item[item1.code] != "" && item[item1.code] != null && item[item1.code] != undefined) {
|
|
|
+ item1.show = true;
|
|
|
}
|
|
|
+ //if ((item1.ckind == "decimal" && item[item1.code] == 0) || item[item1.code] == "" || item[item1.code] == null | item[item1.code] == undefined) {
|
|
|
+ // item1.show = false;
|
|
|
+ //}
|
|
|
})
|
|
|
})
|
|
|
}
|