Explorar o código

新增采购订单时,如果更换了供应商,下面选择的物料清零

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@7201 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq %!s(int64=9) %!d(string=hai) anos
pai
achega
8addd6ca56
Modificáronse 1 ficheiros con 25 adicións e 1 borrados
  1. 25 1
      src/main/webapp/resources/js/index/app.js

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

@@ -312,10 +312,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 			url : "/myMessage",
 			url : "/myMessage",
 			templateUrl : "static/tpl/index/baseInfo/myMessage.html",
 			templateUrl : "static/tpl/index/baseInfo/myMessage.html",
 			controller : 'AddPartnerMessageCtrl'
 			controller : 'AddPartnerMessageCtrl'
-		}).state('baseInfo.myPartners', {//TODO
+		}).state('baseInfo.myPartners', {
 			url : '/myPartners',
 			url : '/myPartners',
 			templateUrl : "static/tpl/index/baseInfo/myPartners.html",
 			templateUrl : "static/tpl/index/baseInfo/myPartners.html",
 			controller : 'MyPartnersCtrl'
 			controller : 'MyPartnersCtrl'
+		}).state('baseInfo.businessGroups', {
+			url : '/businessGroups',
+			controller : 'BusinessGroupsCtrl'
 		}).state('qc', {
 		}).state('qc', {
 			url : "/qc",
 			url : "/qc",
 			views : {
 			views : {
@@ -7330,6 +7333,18 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
 			modalInstance.result.then(function(data) {
 			modalInstance.result.then(function(data) {
 				$scope.order.cust = data.myEnterprise;
 				$scope.order.cust = data.myEnterprise;
 				$scope.order.custUser = data.myUser;
 				$scope.order.custUser = data.myUser;
+				$scope.order.orderItems = [];
+				var item = {
+						code: null,
+						title: null,
+						spec: null,
+						unit: null,
+						qty: null, 
+						price: null,
+						remark: null, 
+						delivery: null
+						};
+				$scope.order.orderItems.push(item);
 			}, function(){
 			}, function(){
 				
 				
 			});
 			});
@@ -7849,5 +7864,14 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
 		}
 		}
 	}]);
 	}]);
 	
 	
+	app.controller('BusinessGroupsCtrl', ['$scope', 'GetProductInfo', function($scope, GetProductInfo) {
+		console.log('enter');
+		GetProductInfo.businessGroups({}, function(data) {
+			
+		}, function(response) {
+			
+		});
+	}]);
+	
 	return app;
 	return app;
 });
 });