fix 商户端transaction默认查询当天记录

master
luoyang 5 years ago
parent 8a45a4fffc
commit ddedffa17f

@ -265,16 +265,18 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
} }
if ($scope.currentUser.client.has_children && !$scope.currentUser.client.hide_sub_mch) { if ($scope.currentUser.client.has_children && !$scope.currentUser.client.hide_sub_mch) {
$scope.searchSubClients('',1); $scope.searchSubClients('',1);
$scope.params.dateto = new Date(); // $scope.params.dateto = new Date();
var day = new Date(); // var day = new Date();
day.setDate(day.getDate() - 7); // day.setDate(day.getDate() - 7);
$scope.params.datefrom = day; // $scope.params.datefrom = day;
$scope.params.datefrom = $scope.params.dateto = new Date();
$scope.chooseClient('all'); $scope.chooseClient('all');
}else { }else {
$scope.params.dateto = new Date(); // $scope.params.dateto = new Date();
var day = new Date(); // var day = new Date();
day.setDate(day.getDate() - 7); // day.setDate(day.getDate() - 7);
$scope.params.datefrom = day; // $scope.params.datefrom = day;
$scope.params.datefrom = $scope.params.dateto = new Date();
$scope.chooseClient('all'); $scope.chooseClient('all');
} }

Loading…
Cancel
Save