Browse Source

优化代码

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@1866 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
aof 10 years ago
parent
commit
b2cd6affb4
1 changed files with 3 additions and 6 deletions
  1. 3 6
      src/main/webapp/resources/js/index/app.js

+ 3 - 6
src/main/webapp/resources/js/index/app.js

@@ -2139,7 +2139,7 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
 			checked : false
 		};
 		$scope.checkbars = {
-				checked : false
+			checked : false
 		};
 		// 点击勾选barCode全部的复选框
 		$scope.checkBarAll = function(){
@@ -2150,7 +2150,7 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
 		//点击barCode单选
 		$scope.checkBarOne = function() {
 			var result = true;
-			angular.forEach($scope.checkBarCode, function(item) {
+			angular.forEach($scope.checkBarCode, function(item,key) {
 				if(item != true){
 					result = false;
 					return;
@@ -2249,6 +2249,7 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
 		    LODOP.SET_SHOW_MODE("HIDE_SBUTTIN_PREVIEW",1);
 		    LODOP.PREVIEW();
 		}
+		//打印外箱号
 		/**
 		 *打印箱号
 		 */
@@ -2299,9 +2300,7 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
 		    				SaleSend.update({id:item.id},item,function(){
 					    		toaster.pop('success', '提示','保存成功!');
 					    		if(item.outBoxQty && item.outBoxQty%item.packageQty) {
-					    			setTimeout(function() {//延迟执行
 					    				toaster.pop('warning', '提示', '外箱容量必须是最小包数的整数倍,请及时修改(' + item.packageQty + '的整数倍)');
-									}, 300);
 					    		}
 					    		loadData();
 				    		}, function(response){
@@ -2319,9 +2318,7 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
 			    		SaleSend.update({id:item.id},item,function(){
 				    		toaster.pop('success', '提示','保存成功!');
 				    		if(item.outBoxQty && item.outBoxQty%item.packageQty) {
-				    			setTimeout(function() {//延迟执行
 				    				toaster.pop('warning', '提示', '外箱容量必须是最小包数的整数倍,请及时修改(' + item.packageQty + '的整数倍)');
-								}, 300);
 				    		}
 				    		loadData();
 			    		}, function(response){