Browse Source

新增物料选择供应商时增加判断当前选择的供应商

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@7674 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 9 years ago
parent
commit
940ebdc20d
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/main/webapp/resources/js/index/app.js

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

@@ -8083,6 +8083,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 			});
 			
 			modalInstance.result.then(function(data) {
+				$rootScope.venduu = data.vendorEnterprise.uu;
 				$scope.id = data.id;
 				$scope.order.cust = data.vendorEnterprise;
 				$scope.order.custUser = data.vendorUser;
@@ -8305,8 +8306,11 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 	}]);
 	
 	// 查找供应商
-	app.controller('DbfindVendorInfoCtrl', ['$scope', 'BaseService', 'ngTableParams', 'toaster', '$modalInstance', 'Vendor', function($scope, BaseService, ngTableParams, toaster, $modalInstance, Vendor){
+	app.controller('DbfindVendorInfoCtrl', ['$scope', 'BaseService', 'ngTableParams', 'toaster', '$modalInstance', 'Vendor', '$rootScope', function($scope, BaseService, ngTableParams, toaster, $modalInstance, Vendor, $rootScope){
 		BaseService.scrollBackToTop();
+		if($rootScope.venduu != null) {
+			$scope.venduu = $rootScope.venduu;
+		}
 		// 搜索框回车
 		$scope.onSearch = function(keyword) {
 			$scope.keyword = keyword;