|
|
@@ -333,7 +333,13 @@ define(['app/app'], function (app) {
|
|
|
}
|
|
|
|
|
|
$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;
|
|
|
}
|