From 8fc003f87e6de8aec4948b0ab5e7b3bab17ec0af Mon Sep 17 00:00:00 2001 From: yuan <1551130722@qq.com> Date: Fri, 20 Apr 2018 18:48:12 +0800 Subject: [PATCH] fix` --- src/main/ui/static/invoice/invoice_assistant.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/main/ui/static/invoice/invoice_assistant.js b/src/main/ui/static/invoice/invoice_assistant.js index 3470257b6..48fb48cff 100644 --- a/src/main/ui/static/invoice/invoice_assistant.js +++ b/src/main/ui/static/invoice/invoice_assistant.js @@ -77,11 +77,7 @@ define(['angular','decimal'], function (angular,decimal) { params.dateto = $filter('date')(params.dateto, 'yyyyMMdd'); }else { alert("请选择结束时间"); - return - } - if(getTime2Time()>30){ - alert("开始时间与结束时间不得超过三十天"); - return; + return; } params.page = page || $scope.pagination.page || 1; $http.get('/partner/invoice/trans_flow', {params: params}).then(function (resp) { @@ -99,13 +95,6 @@ define(['angular','decimal'], function (angular,decimal) { commonDialog.alert({title: 'Search failed', content: resp.data.message, type: 'error'}); }); }; - var getTime2Time = function () { - var time = angular.copy($scope.params); - var from = time.datefrom = $filter('date')(time.datefrom, 'yyyy-MM-dd'); - var to = time.dateto = $filter('date')(time.dateto, 'yyyy-MM-dd'); - var longTime = new Date(to).getTime() - new Date(from).getTime() ; - return Math.floor(longTime/(24*60*60*1000)); - }; $scope.export = function (type,page) { var url='/partner/invoice/trans_flow/pdf';