|
|
@@ -9838,7 +9838,13 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}
|
|
|
|
|
|
$scope.exportApcheckList = function() {
|
|
|
- var url = 'sale/apCheck/xls?fromDate=' + $scope.fromDate + '&endDate=' + $scope.endDate;
|
|
|
+ var url = 'sale/apCheck/xls?1=1';
|
|
|
+ if (angular.isDefined($scope.fromDate) && angular.isDefined($scope.endDate)) {
|
|
|
+ url = url + '&fromDate=' + $scope.fromDate + '&endDate=' + $scope.endDate;
|
|
|
+ }
|
|
|
+ if (angular.isDefined($scope.thisMouth)) {
|
|
|
+ url = url + '&checkDate=' + $scope.thisMouth;
|
|
|
+ }
|
|
|
if (angular.isDefined($scope.receiveName)) {
|
|
|
url = url + '&receiveName=' + $scope.receiveName;
|
|
|
}
|