|
|
@@ -650,8 +650,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
method: 'POST'
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bCurrentRole', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bCurrentRole', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
return $resource(b2bPath + '/account/role', {}, {
|
|
|
//当前企业对应的角色是否是销售经理或管理员
|
|
|
@@ -668,12 +667,10 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
method: 'GET'
|
|
|
}
|
|
|
})
|
|
|
- }])
|
|
|
- .factory('B2bCustomer', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
+ }]).factory('B2bCustomer', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
return $resource(b2bPath + '/vendor/customer/info/search', {}, {});
|
|
|
- }])
|
|
|
- .factory('B2bAuthenticationService', ['$http', 'SessionService', 'BaseService', 'SerializerUtil', function($http, SessionService, BaseService, SerializerUtil) {
|
|
|
+ }]).factory('B2bAuthenticationService', ['$http', 'SessionService', 'BaseService', 'SerializerUtil', function($http, SessionService, BaseService, SerializerUtil) {
|
|
|
var cacheSession = function() {
|
|
|
SessionService.set('authenticated', true);
|
|
|
};
|
|
|
@@ -1083,24 +1080,6 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- // 数据库直接获取
|
|
|
- }]).factory('B2bCurrentRole', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
- var b2bPath = BaseService.getB2bUrl();
|
|
|
- return $resource(b2bPath + '/account/role', {}, {
|
|
|
- //当前企业对应的角色是否是销售经理或管理员
|
|
|
- roles: {
|
|
|
- url: b2bPath + '/account/role/currentRole',
|
|
|
- method: 'GET'
|
|
|
- },
|
|
|
- isManager: {
|
|
|
- url: b2bPath + '/account/role/isManager',
|
|
|
- method: 'GET'
|
|
|
- },
|
|
|
- isUser: {
|
|
|
- url: b2bPath + '/account/role/isUser',
|
|
|
- method: 'GET'
|
|
|
- }
|
|
|
- })
|
|
|
}]).factory('B2bPurcInquiryMould', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
return $resource(b2bPath + '/sale/mould/info/search', {}, {
|