|
|
@@ -312,10 +312,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
url : "/myMessage",
|
|
|
templateUrl : "static/tpl/index/baseInfo/myMessage.html",
|
|
|
controller : 'AddPartnerMessageCtrl'
|
|
|
- }).state('baseInfo.myPartners', {//TODO
|
|
|
+ }).state('baseInfo.myPartners', {
|
|
|
url : '/myPartners',
|
|
|
templateUrl : "static/tpl/index/baseInfo/myPartners.html",
|
|
|
controller : 'MyPartnersCtrl'
|
|
|
+ }).state('baseInfo.businessGroups', {
|
|
|
+ url : '/businessGroups',
|
|
|
+ controller : 'BusinessGroupsCtrl'
|
|
|
}).state('qc', {
|
|
|
url : "/qc",
|
|
|
views : {
|
|
|
@@ -7330,6 +7333,18 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
|
|
|
modalInstance.result.then(function(data) {
|
|
|
$scope.order.cust = data.myEnterprise;
|
|
|
$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(){
|
|
|
|
|
|
});
|
|
|
@@ -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;
|
|
|
});
|