|
|
@@ -470,7 +470,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
$scope.count = date;
|
|
|
});
|
|
|
});
|
|
|
- app.controller('CustomerCtrl', function($scope, $rootScope, VendorService, BaseService, ngTableParams){
|
|
|
+ app.controller('CustomerCtrl', function($scope, VendorService, BaseService, ngTableParams){
|
|
|
$scope.customerParams = new ngTableParams({
|
|
|
page : 1,
|
|
|
count : 10,
|
|
|
@@ -505,7 +505,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
}
|
|
|
return fn;
|
|
|
};
|
|
|
- app.controller('SaleOrderCtrl', function($scope, $rootScope, $filter, PurcOrderItem, ngTableParams,
|
|
|
+ app.controller('SaleOrderCtrl', function($scope, $filter, PurcOrderItem, ngTableParams,
|
|
|
toaster, ReportService, BaseService, PurcOrderItemHis){
|
|
|
$scope.active = 'todo';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -700,7 +700,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
}
|
|
|
};
|
|
|
});
|
|
|
- app.controller('SaleChangeCtrl', function($scope, $rootScope, $filter, PurcChange, ngTableParams, toaster, BaseService, PurcChangeHis){
|
|
|
+ app.controller('SaleChangeCtrl', function($scope, $filter, PurcChange, ngTableParams, toaster, BaseService, PurcChangeHis){
|
|
|
$scope.active = 'todo';
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -794,7 +794,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
}
|
|
|
};
|
|
|
});
|
|
|
- app.controller('SaleInquiryCtrl', function($scope, $rootScope, $filter, PurcInquiry, ngTableParams, toaster, BaseService, PurcInquiryHis){
|
|
|
+ app.controller('SaleInquiryCtrl', function($scope, $filter, PurcInquiry, ngTableParams, toaster, BaseService, PurcInquiryHis){
|
|
|
$scope.active = 'todo';
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -1008,7 +1008,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
}
|
|
|
};
|
|
|
});
|
|
|
- app.controller('SaleNoticeCtrl', function($scope, $rootScope, $filter, PurcNotice, ngTableParams, toaster, BaseService, PurcNoticeHis, $modal){
|
|
|
+ app.controller('SaleNoticeCtrl', function($scope, $filter, PurcNotice, ngTableParams, toaster, BaseService, PurcNoticeHis, $modal){
|
|
|
$scope.active = 'todo';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
$scope.condition = {dateZone: 1};
|
|
|
@@ -1202,7 +1202,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
/**
|
|
|
* 发货单
|
|
|
*/
|
|
|
- app.controller('SaleSendCtrl', function($scope, $rootScope, $filter, SaleSend, ngTableParams, toaster, BaseService, Symbol){
|
|
|
+ app.controller('SaleSendCtrl', function($scope, $filter, SaleSend, ngTableParams, toaster, BaseService, Symbol){
|
|
|
$scope.active = 'all';
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -1263,7 +1263,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
/**
|
|
|
* 客户打样申请
|
|
|
*/
|
|
|
- app.controller('SaleSampleCtrl', function($scope, $rootScope, $filter, PurcSample, ngTableParams, toaster, $modal, BaseService, Symbol){
|
|
|
+ app.controller('SaleSampleCtrl', function($scope, $filter, PurcSample, ngTableParams, toaster, $modal, BaseService, Symbol){
|
|
|
$scope.active = 'all';
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -1384,7 +1384,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
/**
|
|
|
* 客户认定单
|
|
|
*/
|
|
|
- app.controller('SaleApprovalCtrl', function($scope, $rootScope, $filter, PurcApproval, ngTableParams, toaster, BaseService, Symbol){
|
|
|
+ app.controller('SaleApprovalCtrl', function($scope, $filter, PurcApproval, ngTableParams, toaster, BaseService, Symbol){
|
|
|
$scope.active = 'all';
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -1445,7 +1445,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
/**
|
|
|
* 客户采购预测
|
|
|
*/
|
|
|
- app.controller('SaleForecastCtrl', function($scope, $rootScope, $filter, PurcForecast, ngTableParams, toaster, BaseService, Symbol){
|
|
|
+ app.controller('SaleForecastCtrl', function($scope, $filter, PurcForecast, ngTableParams, toaster, BaseService, Symbol){
|
|
|
$scope.active = 'all';
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -1506,7 +1506,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
/**
|
|
|
* 客户采购验收
|
|
|
*/
|
|
|
- app.controller('SaleAcceptCtrl', function($scope, $rootScope, $filter, PurcAccept, ngTableParams, toaster, BaseService, Symbol){
|
|
|
+ app.controller('SaleAcceptCtrl', function($scope, $filter, PurcAccept, ngTableParams, toaster, BaseService, Symbol){
|
|
|
$scope.active = 'all';
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -1567,7 +1567,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
/**
|
|
|
* 客户采购验退
|
|
|
*/
|
|
|
- app.controller('SaleReturnsCtrl', function($scope, $rootScope, $filter, PurcReturn, ngTableParams, toaster, BaseService, Symbol){
|
|
|
+ app.controller('SaleReturnsCtrl', function($scope, $filter, PurcReturn, ngTableParams, toaster, BaseService, Symbol){
|
|
|
$scope.active = 'all';
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -1627,7 +1627,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
/**
|
|
|
* 客户不良品入库
|
|
|
*/
|
|
|
- app.controller('SaleBadInCtrl', function($scope, $rootScope, $filter, PurcBadIn, ngTableParams, toaster, BaseService, Symbol){
|
|
|
+ app.controller('SaleBadInCtrl', function($scope, $filter, PurcBadIn, ngTableParams, toaster, BaseService, Symbol){
|
|
|
$scope.active = 'all';
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -1687,7 +1687,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
/**
|
|
|
* 客户不良品出库
|
|
|
*/
|
|
|
- app.controller('SaleBadOutCtrl', function($scope, $rootScope, $filter, PurcBadOut, ngTableParams, toaster, BaseService, Symbol){
|
|
|
+ app.controller('SaleBadOutCtrl', function($scope, $filter, PurcBadOut, ngTableParams, toaster, BaseService, Symbol){
|
|
|
$scope.active = 'all';
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -1747,7 +1747,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
/**
|
|
|
* 客户MRB
|
|
|
*/
|
|
|
- app.controller('SaleMRBCtrl', function($scope, $rootScope, $filter, PurcMRB, ngTableParams, toaster, BaseService, Symbol){
|
|
|
+ app.controller('SaleMRBCtrl', function($scope, $filter, PurcMRB, ngTableParams, toaster, BaseService, Symbol){
|
|
|
$scope.active = 'all';
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -1807,7 +1807,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
/**
|
|
|
* 客户应付发票
|
|
|
*/
|
|
|
- app.controller('SaleApBillCtrl', function($scope, $rootScope, $filter, PurcApBill, ngTableParams, toaster, BaseService, Symbol){
|
|
|
+ app.controller('SaleApBillCtrl', function($scope, $filter, PurcApBill, ngTableParams, toaster, BaseService, Symbol){
|
|
|
$scope.active = 'all';
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -1865,7 +1865,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
|
|
|
});
|
|
|
|
|
|
- app.controller('EnterpriseCtrl', function($scope, $rootScope, AccountEnterprise){
|
|
|
+ app.controller('EnterpriseCtrl', function($scope, AccountEnterprise){
|
|
|
AccountEnterprise.get({}, function(data){
|
|
|
$scope.enterprise = data;
|
|
|
});
|
|
|
@@ -1886,7 +1886,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
});
|
|
|
});
|
|
|
|
|
|
- app.controller('UserCtrl', function($scope, $rootScope, $filter, AuthenticationService, AccountUser, BaseService, ngTableParams, toaster, $modal, $http){
|
|
|
+ app.controller('UserCtrl', function($scope, $filter, AuthenticationService, AccountUser, BaseService, ngTableParams, toaster, $modal, $http){
|
|
|
$scope.editing = false;
|
|
|
$scope.loading = true;
|
|
|
AuthenticationService.getAuthentication().success(function(data) {
|
|
|
@@ -2099,7 +2099,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
};
|
|
|
});
|
|
|
|
|
|
- app.controller('LogCtrl', function($scope, $rootScope, BaseService, ngTableParams, ErpLog, UsageLog){
|
|
|
+ app.controller('LogCtrl', function($scope, BaseService, ngTableParams, ErpLog, UsageLog){
|
|
|
$scope.erpParams = new ngTableParams({
|
|
|
page : 1,
|
|
|
count : 5,
|
|
|
@@ -2142,13 +2142,16 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
});
|
|
|
});
|
|
|
|
|
|
- app.controller('ResourceCtrl', function($scope, $rootScope){
|
|
|
+ app.controller('ResourceCtrl', function($scope, AccountResource){
|
|
|
+ AccountResource.getAll({}, function(data){
|
|
|
+ $scope.resources = data;
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
- app.controller('AuthorityCtrl', function($scope, $rootScope){
|
|
|
+ app.controller('AuthorityCtrl', function($scope){
|
|
|
});
|
|
|
|
|
|
- app.controller('RoleCtrl', function($scope, $rootScope){
|
|
|
+ app.controller('RoleCtrl', function($scope){
|
|
|
});
|
|
|
|
|
|
/**
|