Browse Source

【前台】+【对账截止日期不包括大于等于当前日期】

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@2872 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
aof 10 years ago
parent
commit
2b90e6d7ee
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/main/webapp/resources/js/index/app.js

+ 6 - 1
src/main/webapp/resources/js/index/app.js

@@ -3903,7 +3903,12 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
 			$scope.totalMoney = 0;
 			$scope.condition.uuorname = $scope.suuorname;
 			$scope.condition.dateFrom = ($scope.sdateFrom || 0);
-			$scope.condition.dateTo = ($scope.sdateTo || 0);
+			$scope.thisdatato = ($scope.sdateTo || 0);
+			if($scope.thisdatato != 0) {
+				$scope.condition.dateTo = (new Date($scope.thisdatato.valueOf() + 3600 * 24 * 1000) || 0);
+			} else {
+				$scope.condition.dateTo = ($scope.sdateTo || 0);
+			}
 			$scope.condition.venduuorname = $scope.vuuorname;
 		}