|
|
@ -67,7 +67,7 @@ define(['angular', 'uiBootstrap', 'uiRouter', 'angularEcharts','./transaction/an
|
|
|
|
params.begin = $filter('date')(new Date(), 'yyyyMMdd');
|
|
|
|
params.begin = $filter('date')(new Date(), 'yyyyMMdd');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (params.end) {
|
|
|
|
if (params.end) {
|
|
|
|
params.end = $filter('date')(params.end.setMonth(params.end.getMonth()+1), 'yyyyMMdd');
|
|
|
|
params.end = $filter('date')(getLastDay(params.end.getFullYear(),params.end.getMonth()), 'yyyyMMdd');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
params.end = $filter('date')(new Date(), 'yyyyMMdd');
|
|
|
|
params.end = $filter('date')(new Date(), 'yyyyMMdd');
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -80,6 +80,19 @@ define(['angular', 'uiBootstrap', 'uiRouter', 'angularEcharts','./transaction/an
|
|
|
|
$scope.totalChannelAmount = resp.data;
|
|
|
|
$scope.totalChannelAmount = resp.data;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getLastDay(year,month)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var new_year = year; //取当前的年份
|
|
|
|
|
|
|
|
var new_month = ++month;//取下一个月的第一天,方便计算(最后一天不固定)
|
|
|
|
|
|
|
|
if(month>11) //如果当前大于12月,则年份转到下一年
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
new_month -=12; //月份减
|
|
|
|
|
|
|
|
new_year++; //年份增
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var new_date = new Date(new_year,new_month,1); //取当年当月中的第一天
|
|
|
|
|
|
|
|
return new Date(new_date.getTime()-1000*60*60*24);//获取当月最后一天日期
|
|
|
|
|
|
|
|
}
|
|
|
|
$scope.thisYear();
|
|
|
|
$scope.thisYear();
|
|
|
|
var ordersHistoryConfig = {
|
|
|
|
var ordersHistoryConfig = {
|
|
|
|
chart: {
|
|
|
|
chart: {
|
|
|
|