Browse Source

新增采购相关更新

hejq 7 years ago
parent
commit
dfffaeb730

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

@@ -14589,12 +14589,8 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
         };
 
         $scope.enSure = function () {
-            $modalInstance.close($scope.result.products);
-        }
-
-        // 点击确定时增加加载标志
-        $scope.addClass = function() {
             $scope.loading = true;
+            $modalInstance.close($scope.result.products);
         }
 
         $scope.cancel = function () {

+ 1 - 1
src/main/webapp/resources/tpl/index/purc/modal/purc_uplodaByBatch.html

@@ -67,7 +67,7 @@
 </div>
 <div class="modal-footer Deputy">
 	<div class="text-center">
-		<button class="btn btn-success btn-sm" ng-click=" addClass(); enSure()" type="button">确定</button>
+		<button class="btn btn-success btn-sm" ng-click="enSure()" type="button">确定</button>
 		<button class="btn btn-danger btn-sm" ng-click="cancel()" type="button">取消</button>
 	</div>
 </div>