Просмотр исходного кода

新增应收对账导出数据异常的处理

hejq 7 лет назад
Родитель
Сommit
81137ecb87
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      src/main/webapp/resources/js/index/app.js

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

@@ -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;
             }