Browse Source

fix: 关于应收应付出现两次请求数据异常处理

wangcz 6 years ago
parent
commit
4215001071
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/webapp/resources/js/index/app.js

+ 2 - 2
src/main/webapp/resources/js/index/app.js

@@ -10480,7 +10480,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             if (oldVal === null) {
                 return false
             }
-            if (newVal !== oldVal) {
+            if ((newVal !== oldVal) && $scope.showNotCheck) {
                 var _newVal = newVal.replace(/-/g,'/')
                 var _d  = new Date(_newVal)
                 _d.setDate(1)
@@ -11462,7 +11462,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             if (oldVal === null) {
                 return false
             }
-            if (newVal !== oldVal) {
+            if ((newVal !== oldVal) && $scope.showNotCheck) {
                 var _d = newVal + '-01'
                 _d = _d.replace(/-/g,'/')
                 _d  = new Date(_d)