浏览代码

新增物料时不再进行匹配

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@9758 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 8 年之前
父节点
当前提交
53b00beb98
共有 1 个文件被更改,包括 36 次插入0 次删除
  1. 36 0
      src/main/webapp/resources/js/index/app.js

+ 36 - 0
src/main/webapp/resources/js/index/app.js

@@ -10660,10 +10660,16 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             }
             }
         };
         };
 	    
 	    
+        // 设置类目
         $scope.onAssociateKindClick = function(kind, prodInfo) {
         $scope.onAssociateKindClick = function(kind, prodInfo) {
         	$scope.prodInfo.kind = kind.kindCn;
         	$scope.prodInfo.kind = kind.kindCn;
         }
         }
         
         
+        // 设置名称
+        $scope.onAssociateTitleClick = function(kind, prodInfo) {
+        	$scope.prodInfo.title = kind.kindCn;
+        }
+        
         $scope.getSimilarBrands = function(value) {
         $scope.getSimilarBrands = function(value) {
         	if(value) {
         	if(value) {
         		return Products.getSimilarBrand({keyword: value}).$promise.then(function(data) {
         		return Products.getSimilarBrand({keyword: value}).$promise.then(function(data) {
@@ -10674,7 +10680,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
         	}
         	}
         }
         }
         
         
+        // 设置导入品牌
         $scope.onAssociateBrandClick = function(brand, prodInfo) {
         $scope.onAssociateBrandClick = function(brand, prodInfo) {
+        	$scope.prodInfo.brand = brand.brandEn;
+        }
+        
+        // 设置标准品牌
+        $scope.onAssociatePBrandClick = function(brand, prodInfo) {
         	$scope.prodInfo.pbranden = brand.brandEn;
         	$scope.prodInfo.pbranden = brand.brandEn;
         }
         }
         
         
@@ -10688,9 +10700,15 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
         	}
         	}
         }
         }
         
         
+        // 设置标准型号
         $scope.onAssociateComponentClick = function(cmp, prodInfo) {
         $scope.onAssociateComponentClick = function(cmp, prodInfo) {
         	$scope.prodInfo.pcmpcode = cmp.code;
         	$scope.prodInfo.pcmpcode = cmp.code;
         }
         }
+        
+        // 设置导入的型号
+        $scope.onAssociateCmpClick = function(cmp, prodInfo) {
+        	$scope.prodInfo.cmpCode = cmp.code;
+        }
      // 联想词 end
      // 联想词 end
         
         
 		//更新为标准器件
 		//更新为标准器件
@@ -17926,10 +17944,16 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             }
             }
         };
         };
 	    
 	    
+        // 设置类目
         $scope.onAssociateKindClick = function(kind, prodInfo) {
         $scope.onAssociateKindClick = function(kind, prodInfo) {
         	$scope.prodInfo.kind = kind.kindCn;
         	$scope.prodInfo.kind = kind.kindCn;
         }
         }
         
         
+        // 设置名称
+        $scope.onAssociateTitleClick = function(kind, prodInfo) {
+        	$scope.prodInfo.title = kind.kindCn;
+        }
+        
         $scope.getSimilarBrands = function(value) {
         $scope.getSimilarBrands = function(value) {
         	if(value) {
         	if(value) {
         		return Products.getSimilarBrand({keyword: value}).$promise.then(function(data) {
         		return Products.getSimilarBrand({keyword: value}).$promise.then(function(data) {
@@ -17940,7 +17964,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
         	}
         	}
         }
         }
         
         
+        // 设置导入品牌
         $scope.onAssociateBrandClick = function(brand, prodInfo) {
         $scope.onAssociateBrandClick = function(brand, prodInfo) {
+        	$scope.prodInfo.brand = brand.brandEn;
+        }
+        
+        // 设置标准品牌
+        $scope.onAssociatePBrandClick = function(brand, prodInfo) {
         	$scope.prodInfo.pbranden = brand.brandEn;
         	$scope.prodInfo.pbranden = brand.brandEn;
         }
         }
         
         
@@ -17954,9 +17984,15 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
         	}
         	}
         }
         }
         
         
+        // 设置标准型号
         $scope.onAssociateComponentClick = function(cmp, prodInfo) {
         $scope.onAssociateComponentClick = function(cmp, prodInfo) {
         	$scope.prodInfo.pcmpcode = cmp.code;
         	$scope.prodInfo.pcmpcode = cmp.code;
         }
         }
+        
+        // 设置导入的型号
+        $scope.onAssociateCmpClick = function(cmp, prodInfo) {
+        	$scope.prodInfo.cmpCode = cmp.code;
+        }
      // 联想词 end
      // 联想词 end
         
         
 		//更新为标准器件
 		//更新为标准器件