|
|
@@ -540,15 +540,15 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
},
|
|
|
getAll: {
|
|
|
url: rootPath + '/make/changes/info/search',
|
|
|
- method: 'GET',
|
|
|
+ method: 'GET'
|
|
|
},
|
|
|
getItem: {
|
|
|
url: rootPath + '/make/changes/:id/info',
|
|
|
- method: 'GET',
|
|
|
+ method: 'GET'
|
|
|
},
|
|
|
exportXls: {
|
|
|
url: rootPath + '/make/changes/xls/permission',
|
|
|
- method: 'GET',
|
|
|
+ method: 'GET'
|
|
|
}
|
|
|
});
|
|
|
}])
|
|
|
@@ -695,9 +695,9 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
cache: false,
|
|
|
headers: {
|
|
|
'Cache-Control': 'no-cache',
|
|
|
- 'Pragma': 'no-cache',
|
|
|
+ 'Pragma': 'no-cache'
|
|
|
},
|
|
|
- ifModified :true ,
|
|
|
+ ifModified :true
|
|
|
};
|
|
|
var logout = $http.get(rootPath + "/logout", config);
|
|
|
var refresh = function(data) {
|
|
|
@@ -791,9 +791,9 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}])
|
|
|
.factory('B2bSaleSend', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
- return $resource(b2bPath + 'sale/notice/sends/info/search', {}, {
|
|
|
+ return $resource(b2bPath + '/sale/notice/sends/info/search', {}, {
|
|
|
getItem: {
|
|
|
- url: b2bPath + 'sale/notice/sends/:id/info',
|
|
|
+ url: b2bPath + '/sale/notice/sends/:id/info',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
getTodo: {
|
|
|
@@ -802,7 +802,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
},
|
|
|
update: {
|
|
|
- url: b2bPath + 'sale/notice/sends/:id',
|
|
|
+ url: b2bPath + '/sale/notice/sends/:id',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
getDone: {
|
|
|
@@ -811,7 +811,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
},
|
|
|
printCount:{
|
|
|
- url: b2bPath + 'sale/notice/sends/print/:id',
|
|
|
+ url: b2bPath + '/sale/notice/sends/print/:id',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
printPermission:{
|
|
|
@@ -819,34 +819,34 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
method: 'POST'
|
|
|
},
|
|
|
generateBarcodes :{
|
|
|
- url: b2bPath + 'sale/notice/generateBarcodes',
|
|
|
+ url: b2bPath + '/sale/notice/generateBarcodes',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
getPrintBarcodes :{
|
|
|
- url: b2bPath + 'sale/notice/getPrintBarcodes',
|
|
|
+ url: b2bPath + '/sale/notice/getPrintBarcodes',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
getPrintTemplate:{
|
|
|
- url: b2bPath + 'sale/notice/getPrintTemplate',
|
|
|
+ url: b2bPath + '/sale/notice/getPrintTemplate',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
getSPrintBarcode:{
|
|
|
- url: b2bPath + 'sale/notice/getSPrintBarcode',
|
|
|
+ url: b2bPath + '/sale/notice/getSPrintBarcode',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
updatePrintStatus: {
|
|
|
- url: b2bPath + 'sale/notice/updatePrintStatus',
|
|
|
+ url: b2bPath + '/sale/notice/updatePrintStatus',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
exportXls: {
|
|
|
- url: b2bPath + 'sale/notice/sends/xls/permission',
|
|
|
+ url: b2bPath + '/sale/notice/sends/xls/permission',
|
|
|
method: 'GET'
|
|
|
}
|
|
|
});
|
|
|
}])
|
|
|
.factory('B2bPurcNotice', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
- return $resource(b2bPath + 'sale/notice/info/search', {}, {
|
|
|
+ return $resource(b2bPath + '/sale/notice/info/search', {}, {
|
|
|
getTodo: {
|
|
|
params: {
|
|
|
_state: 'todo'
|
|
|
@@ -868,40 +868,40 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
},
|
|
|
save: {
|
|
|
- url: b2bPath + 'sale/notice/:id/sends',
|
|
|
+ url: b2bPath + '/sale/notice/:id/sends',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
getSends: {
|
|
|
- url: b2bPath + 'sale/notice/:id/sendItems',
|
|
|
+ url: b2bPath + '/sale/notice/:id/sendItems',
|
|
|
method: 'GET',
|
|
|
isArray: true
|
|
|
},
|
|
|
sendByBatch: {
|
|
|
- url: b2bPath + 'sale/notice/sendByBatch',
|
|
|
+ url: b2bPath + '/sale/notice/sendByBatch',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
setRead:{
|
|
|
- url: b2bPath + 'sale/notice/setRead',
|
|
|
+ url: b2bPath + '/sale/notice/setRead',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
setReadByState:{
|
|
|
- url: b2bPath + 'sale/notice/setReadByState',
|
|
|
+ url: b2bPath + '/sale/notice/setReadByState',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
getUnreadIds:{
|
|
|
- url: b2bPath + 'sale/notice/getUnreadIds',
|
|
|
+ url: b2bPath + '/sale/notice/getUnreadIds',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
getUnreadCount:{
|
|
|
- url: b2bPath + 'sale/notice/unread',
|
|
|
+ url: b2bPath + '/sale/notice/unread',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
exportXls: {
|
|
|
- url: b2bPath + 'sale/notice/xls/permission',
|
|
|
+ url: b2bPath + '/sale/notice/xls/permission',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
findByIds: {
|
|
|
- url: b2bPath + 'sale/notice/findByIds',
|
|
|
+ url: b2bPath + '/sale/notice/findByIds',
|
|
|
method: 'GET',
|
|
|
isArray: true
|
|
|
}
|
|
|
@@ -909,15 +909,15 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}])
|
|
|
.factory('B2bPurcNoticeInfo', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
- return $resource(b2bPath + 'sale/notice/info/search', {}, {
|
|
|
+ return $resource(b2bPath + '/sale/notice/info/search', {}, {
|
|
|
getTodo: {
|
|
|
- url: b2bPath + 'sale/notice/info/nosearch',
|
|
|
+ url: b2bPath + '/sale/notice/info/nosearch',
|
|
|
params: {
|
|
|
_state: 'todo'
|
|
|
}
|
|
|
},
|
|
|
getDone: {
|
|
|
- url: b2bPath + 'sale/notice/info/nosearch',
|
|
|
+ url: b2bPath + '/sale/notice/info/nosearch',
|
|
|
params: {
|
|
|
_state: 'done'
|
|
|
}
|
|
|
@@ -933,10 +933,9 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bSaleTruck', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bSaleTruck', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
- return $resource(b2bPath + 'sale/truck', {}, {
|
|
|
+ return $resource(b2bPath + '/sale/truck', {}, {
|
|
|
save: {
|
|
|
isArray: true,
|
|
|
method: 'POST'
|
|
|
@@ -946,12 +945,11 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
method: 'DELETE'
|
|
|
},
|
|
|
detail: {
|
|
|
- url: b2bPath + 'sale/truck/items',
|
|
|
+ url: b2bPath + '/sale/truck/items',
|
|
|
isArray: true
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bPurcInquiry', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bPurcInquiry', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
return $resource(b2bPath + '/sale/inquiry/info/search', {}, {
|
|
|
getAll: {
|
|
|
@@ -1048,8 +1046,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
});
|
|
|
// 数据库直接获取
|
|
|
- }])
|
|
|
- .factory('B2bPurcInquiryInfo', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bPurcInquiryInfo', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
return $resource(b2bPath + '/sale/inquiry/info/nosearch', {}, {
|
|
|
getAll: {
|
|
|
@@ -1087,8 +1084,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
});
|
|
|
// 数据库直接获取
|
|
|
- }])
|
|
|
- .factory('B2bCurrentRole', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bCurrentRole', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
return $resource(b2bPath + '/account/role', {}, {
|
|
|
//当前企业对应的角色是否是销售经理或管理员
|
|
|
@@ -1105,8 +1101,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
method: 'GET'
|
|
|
}
|
|
|
})
|
|
|
- }])
|
|
|
- .factory('B2bPurcInquiryMould', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bPurcInquiryMould', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
return $resource(b2bPath + '/sale/mould/info/search', {}, {
|
|
|
getAll: {
|
|
|
@@ -1185,8 +1180,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
method: 'GET'
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bPurcInquiryMouldSql', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bPurcInquiryMouldSql', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
return $resource(b2bPath + '/sale/mould/info/nosearch', {}, {
|
|
|
getAll: {
|
|
|
@@ -1208,8 +1202,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bQuotationInfo', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
+ }]).factory('B2bQuotationInfo', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
return $resource(b2bPath + '/sale/quotation/info/nosearch', {}, {
|
|
|
getTodo: {
|
|
|
@@ -1238,8 +1231,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bPurcTender', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bPurcTender', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
return $resource(b2bPath + '/tender/sale/info/search', {}, {
|
|
|
getMyAll: {
|
|
|
@@ -1430,8 +1422,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
method: 'GET'
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bAccountEnterprise', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bAccountEnterprise', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
return $resource(b2bPath + '/account/enterprise', {}, {
|
|
|
growth: {
|
|
|
@@ -1506,8 +1497,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bSaleTenderQuestion', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bSaleTenderQuestion', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
return $resource(b2bPath + '/tender/question', {}, {
|
|
|
getAll: {
|
|
|
@@ -1552,10 +1542,9 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bPagingRelease', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
+ }]).factory('B2bPagingRelease', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
var b2bPath = BaseService.getB2bUrl();
|
|
|
- return $resource(b2bPath + 'api/paging', {}, {
|
|
|
+ return $resource(b2bPath + '/api/paging', {}, {
|
|
|
getTodo: {
|
|
|
params: {
|
|
|
_state: 'todo'
|
|
|
@@ -1568,34 +1557,33 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
},
|
|
|
// 设置消息已读(公共消息服务)
|
|
|
setMessageRead: {
|
|
|
- url: b2bPath + 'api/paging/message/setRead',
|
|
|
+ url: b2bPath + '/api/paging/message/setRead',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
// 设置当前页已读(公共消息服务)
|
|
|
setPageRead: {
|
|
|
- url: b2bPath + 'api/paging/message/setRead/page',
|
|
|
+ url: b2bPath + '/api/paging/message/setRead/page',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
setRead:{
|
|
|
- url: b2bPath + 'api/paging/setRead',
|
|
|
+ url: b2bPath + '/api/paging/setRead',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
getUnreadIds:{
|
|
|
- url: b2bPath + 'api/paging/getUnreadIds',
|
|
|
+ url: b2bPath + '/api/paging/getUnreadIds',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
setReadByOrder:{
|
|
|
- url: b2bPath + 'api/paging/setRead/order',
|
|
|
+ url: b2bPath + '/api/paging/setRead/order',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
setOneRead:{
|
|
|
- url: b2bPath + 'api/paging/setOneRead/:id',
|
|
|
+ url: b2bPath + '/api/paging/setOneRead/:id',
|
|
|
method: 'POST'
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bSnapshotService', ['$http', 'BaseService', function($http, BaseService) {
|
|
|
- var rootPath = BaseService.getB2bUrl();
|
|
|
+ }]).factory('B2bSnapshotService', ['$http', 'BaseService', function($http, BaseService) {
|
|
|
+ var rootPath = BaseService.getRootPath();
|
|
|
return {
|
|
|
getTodo: function(success) {
|
|
|
var request = $http.get(rootPath + '/snapshot/todo', {cache: true});
|
|
|
@@ -1636,10 +1624,9 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
|
|
|
}
|
|
|
};
|
|
|
- }])
|
|
|
- .factory('B2bPurcOrderItemInfo', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
+ }]).factory('B2bPurcOrderItemInfo', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
var rootPath = BaseService.getB2bUrl();
|
|
|
- return $resource(rootPath + 'sale/orders/info/nosearch', {}, {
|
|
|
+ return $resource(rootPath + '/sale/orders/info/nosearch', {}, {
|
|
|
getTodo: {
|
|
|
params: {
|
|
|
_state: 'todo'
|
|
|
@@ -1671,73 +1658,69 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
},
|
|
|
getUnreadIds:{
|
|
|
- url: rootPath + 'sale/orders/getUnreadIds',
|
|
|
+ url: rootPath + '/sale/orders/getUnreadIds',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
getUnreadCount:{
|
|
|
- url: rootPath + 'sale/orders/unread',
|
|
|
+ url: rootPath + '/sale/orders/unread',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
setRead:{
|
|
|
- url:rootPath + 'sale/orders/setRead',
|
|
|
+ url:rootPath + '/sale/orders/setRead',
|
|
|
method: 'POST'
|
|
|
}
|
|
|
});
|
|
|
}])
|
|
|
.factory('B2bPurcBadOut', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var rootPath = BaseService.getB2bUrl();
|
|
|
- return $resource(rootPath + 'sale/badOut/:id', {}, {
|
|
|
+ return $resource(rootPath + '/sale/badOut/:id', {}, {
|
|
|
exportXls: {
|
|
|
- url: rootPath + 'sale/badOut/xls/permission',
|
|
|
+ url: rootPath + '/sale/badOut/xls/permission',
|
|
|
method:'GET'
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bPurcBadIn', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
+ }]).factory('B2bPurcBadIn', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
var rootPath = BaseService.getB2bUrl();
|
|
|
- return $resource(rootPath + 'sale/badIn/:id', {}, {
|
|
|
+ return $resource(rootPath + '/sale/badIn/:id', {}, {
|
|
|
exportXls: {
|
|
|
- url: rootPath + 'sale/badIn/xls/permission',
|
|
|
+ url: rootPath + '/sale/badIn/xls/permission',
|
|
|
method:'GET'
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bPurcAccept', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bPurcAccept', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var rootPath = BaseService.getB2bUrl();
|
|
|
- return $resource(rootPath + 'sale/accept/:id', {}, {
|
|
|
+ return $resource(rootPath + '/sale/accept/:id', {}, {
|
|
|
getAll: {
|
|
|
},
|
|
|
getDetail : {
|
|
|
- url: rootPath + 'sale/accept/:id/info',
|
|
|
+ url: rootPath + '/sale/accept/:id/info',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
exportXls: {
|
|
|
- url: rootPath + 'sale/accept/xls/permission',
|
|
|
+ url: rootPath + '/sale/accept/xls/permission',
|
|
|
method: 'GET'
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bPurcReturn', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bPurcReturn', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var rootPath = BaseService.getB2bUrl();
|
|
|
- return $resource(rootPath + 'sale/return/:id', {}, {
|
|
|
+ return $resource(rootPath + '/sale/return/:id', {}, {
|
|
|
getAll: {},
|
|
|
getEnterpriseName: {
|
|
|
- url: rootPath + "sale/return/:id/enname",
|
|
|
+ url: rootPath + "/sale/return/:id/enname",
|
|
|
method: "GET"
|
|
|
},
|
|
|
getDetail: {
|
|
|
- url: rootPath + 'sale/return/:id/info',
|
|
|
+ url: rootPath + '/sale/return/:id/info',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
exportXls: {
|
|
|
- url: rootPath + 'sale/return/xls/permission',
|
|
|
+ url: rootPath + '/sale/return/xls/permission',
|
|
|
method: 'GET'
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bVendorPerformanceAssessService', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bVendorPerformanceAssessService', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bUrl = BaseService.getB2bUrl();
|
|
|
- return $resource(b2bUrl + '/vendorPerformanceAssess/info/search', {}, {
|
|
|
+ return $resource(b2bUrl + '/vendorPerformanceAssess/info/search', {}, {
|
|
|
getAll: {
|
|
|
url: b2bUrl + '/vendorPerformanceAssess/info/search',
|
|
|
method: 'GET'
|
|
|
@@ -1749,9 +1732,8 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
url: b2bUrl + '/vendorPerformanceAssess/:id/info',
|
|
|
method: 'GET'
|
|
|
}
|
|
|
- });
|
|
|
- }])
|
|
|
- .factory('B2bAddtoCart', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ });
|
|
|
+ }]).factory('B2bAddtoCart', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bUrl = BaseService.getB2bUrl();
|
|
|
return $resource(b2bUrl + '/product/baseInfo/addtoCart', {}, {
|
|
|
save: {
|
|
|
@@ -1760,10 +1742,9 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
headers: {
|
|
|
'Content-Type' : 'application/json;charset=UTF-8'
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
})
|
|
|
- }])
|
|
|
- .factory('B2bNewPurcOrder', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bNewPurcOrder', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bUrl = BaseService.getB2bUrl();
|
|
|
return $resource(b2bUrl + '/product/baseInfo/newPurcOrder', {}, {
|
|
|
save: {
|
|
|
@@ -1778,8 +1759,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
method: 'GET'
|
|
|
}
|
|
|
})
|
|
|
- }])
|
|
|
- .factory('B2bCartOperation', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bCartOperation', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bUrl = BaseService.getB2bUrl();
|
|
|
return $resource(b2bUrl + '/cart', {}, {
|
|
|
addToOrder: {
|
|
|
@@ -1837,7 +1817,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
url: b2bUrl + '/sale/inquiry/recentPrice/:prId',
|
|
|
method: 'GET'
|
|
|
}
|
|
|
- });
|
|
|
+ });
|
|
|
}]).factory('B2bToken', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bUrl = BaseService.getB2bUrl();
|
|
|
return $resource(b2bUrl + '/token', {}, {
|
|
|
@@ -1919,8 +1899,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
method: 'GET'
|
|
|
}
|
|
|
})
|
|
|
- }])
|
|
|
- .factory('B2bPurcOrdersInfo', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bPurcOrdersInfo', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bUrl = BaseService.getB2bUrl();
|
|
|
return $resource(b2bUrl + '/sale/orders/purc/info/nosearch', {}, {
|
|
|
getAll: {
|
|
|
@@ -1953,8 +1932,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bDeputyOrder', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bDeputyOrder', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bUrl = BaseService.getB2bUrl();
|
|
|
return $resource(b2bUrl + '/deputyOrder', {}, {
|
|
|
saveDeOrder: {
|
|
|
@@ -2154,7 +2132,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
return $resource(b2bUrl + '/deputy', {}, {
|
|
|
getValue: {
|
|
|
url: b2bUrl + '/deputy/getKeyValue',
|
|
|
- method: 'GET',
|
|
|
+ method: 'GET'
|
|
|
},
|
|
|
})
|
|
|
}])
|
|
|
@@ -2190,8 +2168,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- }])
|
|
|
- .factory('B2bMakeOutOrder', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
+ }]).factory('B2bMakeOutOrder', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
var b2bUrl = BaseService.getB2bUrl();
|
|
|
return $resource(b2bUrl + '/make/outorders/info/search', {}, {
|
|
|
getReply: {
|
|
|
@@ -2212,54 +2189,52 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
method: 'GET'
|
|
|
}
|
|
|
})
|
|
|
- }])
|
|
|
- .factory('B2bPurcOrders', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
- var b2bUrl = BaseService.getB2bUrl();
|
|
|
- return $resource(b2bUrl + '/sale/orders/purc/info/search', {}, {
|
|
|
- getTodo: {
|
|
|
- params: {
|
|
|
- _state: 'todo'
|
|
|
- }
|
|
|
- },
|
|
|
- getDone: {
|
|
|
- params: {
|
|
|
- _state: 'done'
|
|
|
- }
|
|
|
- },
|
|
|
- getEnd: {
|
|
|
- params: {
|
|
|
- _state: 'end'
|
|
|
- }
|
|
|
- },
|
|
|
- getReceived:{
|
|
|
- params: {
|
|
|
- _state: 'received'
|
|
|
- }
|
|
|
- },
|
|
|
- getWaiting: {
|
|
|
- params: {
|
|
|
- _state: 'waiting'
|
|
|
+ }]).factory('B2bPurcOrders', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ var b2bUrl = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bUrl + '/sale/orders/purc/info/search', {}, {
|
|
|
+ getTodo: {
|
|
|
+ params: {
|
|
|
+ _state: 'todo'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getDone: {
|
|
|
+ params: {
|
|
|
+ _state: 'done'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getEnd: {
|
|
|
+ params: {
|
|
|
+ _state: 'end'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getReceived:{
|
|
|
+ params: {
|
|
|
+ _state: 'received'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getWaiting: {
|
|
|
+ params: {
|
|
|
+ _state: 'waiting'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ setRead:{
|
|
|
+ url: b2bUrl + '/sale/orders/setRead/purc',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ getUnreadIds:{
|
|
|
+ url: b2bUrl + '/sale/orders/getUnreadIds/purc',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ getUnreadCount:{
|
|
|
+ url: b2bUrl + '/sale/orders/unread/purc',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ exportXls: {
|
|
|
+ url: b2bUrl + '/sale/orders/purc/xls/permission',
|
|
|
+ method: 'GET'
|
|
|
}
|
|
|
- },
|
|
|
- setRead:{
|
|
|
- url: b2bUrl + '/sale/orders/setRead/purc',
|
|
|
- method: 'POST'
|
|
|
- },
|
|
|
- getUnreadIds:{
|
|
|
- url: b2bUrl + '/sale/orders/getUnreadIds/purc',
|
|
|
- method: 'GET'
|
|
|
- },
|
|
|
- getUnreadCount:{
|
|
|
- url: b2bUrl + '/sale/orders/unread/purc',
|
|
|
- method: 'GET'
|
|
|
- },
|
|
|
- exportXls: {
|
|
|
- url: b2bUrl + '/sale/orders/purc/xls/permission',
|
|
|
- method: 'GET'
|
|
|
- }
|
|
|
- });
|
|
|
- }])
|
|
|
- .factory('B2bPurchaseInquiry', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
+ });
|
|
|
+ }]).factory('B2bPurchaseInquiry', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
var b2bUrl = BaseService.getB2bUrl();
|
|
|
return $resource(b2bUrl + '/purc/inquiry/info/search', {}, {
|
|
|
getTodo: {
|
|
|
@@ -2392,8 +2367,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- }])
|
|
|
- .factory('B2bGetProductInfo', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ }]).factory('B2bGetProductInfo', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bUrl = BaseService.getB2bUrl();
|
|
|
return $resource(b2bUrl + '/product/baseInfo/info/search', {}, {
|
|
|
getSaleProduct: {
|
|
|
@@ -2668,7 +2642,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
return $resource(b2bUrl + '/addpartner', {}, {
|
|
|
addPartner: {
|
|
|
url: b2bUrl + '/addpartner/request/nameAndBusCode',
|
|
|
- method : 'POST',
|
|
|
+ method : 'POST'
|
|
|
},
|
|
|
agreeRequest: {
|
|
|
url: b2bUrl + '/addpartner/agree/:id',
|
|
|
@@ -2782,7 +2756,7 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
return $resource(b2bUrl + '/sale/inquiry', {}, {
|
|
|
// 获取最新的已采纳的价信息
|
|
|
agreed: {
|
|
|
- url: 'sale/inquiry/recentPrice/:prId',
|
|
|
+ url: b2bUrl + 'sale/inquiry/recentPrice/:prId',
|
|
|
method: 'GET'
|
|
|
}
|
|
|
});
|
|
|
@@ -2793,64 +2767,71 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
isArray: false
|
|
|
}
|
|
|
})
|
|
|
+ }]).factory('B2bGetAccountUserSpace', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ var b2bUrl = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bUrl + '/product/baseInfo/getUserSpaceDetails', {}, {
|
|
|
+ getAll: {
|
|
|
+ isArray: false
|
|
|
+ }
|
|
|
+ })
|
|
|
}])
|
|
|
.factory('B2bFaApBill', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bUrl = BaseService.getB2bUrl();
|
|
|
- return $resource(b2bUrl + 'sale/apBill/info/search', {}, {
|
|
|
+ return $resource(b2bUrl + '/sale/apBill/info/search', {}, {
|
|
|
getAll: {
|
|
|
- url: b2bUrl + 'sale/apBill/:id/info',
|
|
|
+ url: b2bUrl + '/sale/apBill/:id/info',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
exportXls: {
|
|
|
- url: b2bUrl + 'sale/apBill/xls/permission',
|
|
|
+ url: b2bUrl + '/sale/apBill/xls/permission',
|
|
|
method: 'GET'
|
|
|
}
|
|
|
});
|
|
|
}])
|
|
|
.factory('B2bFaApCheck', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
var b2bUrl = BaseService.getB2bUrl();
|
|
|
- return $resource(b2bUrl + 'sale/apCheck/info/search', {}, {
|
|
|
+ return $resource(b2bUrl + '/sale/apCheck/info/search', {}, {
|
|
|
getItem: {
|
|
|
- url: b2bUrl + 'sale/apCheck/:id/info',
|
|
|
- method: 'GET',
|
|
|
+ url: b2bUrl + '/sale/apCheck/:id/info',
|
|
|
+ method: 'GET'
|
|
|
},
|
|
|
getAll: {
|
|
|
- url: b2bUrl + 'sale/apCheck/getAll',
|
|
|
+ url: b2bUrl + '/sale/apCheck/getAll',
|
|
|
method: 'GET',
|
|
|
isArray: true
|
|
|
},
|
|
|
getAllCustomers: {
|
|
|
- url: b2bUrl + 'sale/apCheck/getAllCustomers',
|
|
|
+ url: b2bUrl + '/sale/apCheck/getAllCustomers',
|
|
|
method: 'GET',
|
|
|
isArray: true
|
|
|
},
|
|
|
getAllByKeywords: {
|
|
|
- url:b2bUrl + 'sale/apCheck/getAllByKeywords',
|
|
|
+ url:b2bUrl + '/sale/apCheck/getAllByKeywords',
|
|
|
method: 'GET',
|
|
|
isArray: true
|
|
|
},
|
|
|
saveApCheck: {
|
|
|
- url : b2bUrl + 'sale/apCheck/operation/save',
|
|
|
+ url : b2bUrl + '/sale/apCheck/operation/save',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
update: {
|
|
|
- url: b2bUrl + 'sale/apCheck/update',
|
|
|
+ url: b2bUrl + '/sale/apCheck/update',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
deleteApCheck: {
|
|
|
- url: b2bUrl + 'sale/apCheck/operation/deleteApCheck',
|
|
|
+ url: b2bUrl + '/sale/apCheck/operation/deleteApCheck',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
updateStatus: {
|
|
|
- url: b2bUrl + 'sale/apCheck/operation/updateStatus',
|
|
|
+ url: b2bUrl + '/sale/apCheck/operation/updateStatus',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
printCount: {
|
|
|
- url: b2bUrl + 'sale/apCheck/printCount/:id',
|
|
|
+ url: b2bUrl + '/sale/apCheck/printCount/:id',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
printPermission: {
|
|
|
- url: b2bUrl + 'sale/apCheck/printCount/permission',
|
|
|
+ url: b2bUrl + '/sale/apCheck/printCount/permission',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
// getTodoApCheck: {
|
|
|
@@ -2875,29 +2856,392 @@ define([ 'angular', 'common/services', 'common/utils', 'big'], function(angular,
|
|
|
}
|
|
|
},
|
|
|
cancel: {
|
|
|
- url: b2bUrl + 'sale/apCheck/operation/cancel',
|
|
|
+ url: b2bUrl + '/sale/apCheck/operation/cancel',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
setRead:{
|
|
|
- url: b2bUrl + 'sale/apCheck/setRead',
|
|
|
+ url: b2bUrl + '/sale/apCheck/setRead',
|
|
|
method: 'POST'
|
|
|
},
|
|
|
getUnreadIds:{
|
|
|
- url: b2bUrl + 'sale/apCheck/getUnreadIds',
|
|
|
+ url: b2bUrl + '/sale/apCheck/getUnreadIds',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
getUnreadCount:{
|
|
|
- url: b2bUrl + 'sale/apCheck/unread',
|
|
|
+ url: b2bUrl + '/sale/apCheck/unread',
|
|
|
method: 'GET'
|
|
|
},
|
|
|
getBilled: {
|
|
|
- url: b2bUrl + 'sale/apCheck/getBilled',
|
|
|
- method: 'GET',
|
|
|
+ url: b2bUrl + '/sale/apCheck/getBilled',
|
|
|
+ method: 'GET'
|
|
|
},
|
|
|
exportXls: {
|
|
|
- url: b2bUrl + 'sale/apCheck/xls/permission',
|
|
|
+ url: b2bUrl + '/sale/apCheck/xls/permission',
|
|
|
+ method: 'GET'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }])
|
|
|
+ .factory('B2bFaArCheck', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ var b2bUrl = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bUrl + '/purchase/arCheck/:id', {}, {
|
|
|
+ agree: {
|
|
|
+ url: b2bUrl + '/purchase/arCheck/items/:itemId/reply',
|
|
|
+ method: 'POST',
|
|
|
+ params: {
|
|
|
+ itemId: 'itemId',
|
|
|
+ agreed: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ disagree: {
|
|
|
+ url: b2bUrl + '/purchase/arCheck/items/:itemId/reply',
|
|
|
+ method: 'POST',
|
|
|
+ params: {
|
|
|
+ orderItemId: 'itemId',
|
|
|
+ agreed: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getReplies: {
|
|
|
+ url: b2bUrl + '/purchase/arCheck/items/:itemId/reply',
|
|
|
+ method: 'GET',
|
|
|
+ isArray: true
|
|
|
+ },
|
|
|
+ getDone: {
|
|
|
+ url : b2bUrl + '/purchase/arCheck/page/done'
|
|
|
+ },
|
|
|
+ getTodo: {
|
|
|
+ url : b2bUrl + '/purchase/arCheck/page/todo'
|
|
|
+ },
|
|
|
+ getWaiting: {
|
|
|
+ url : b2bUrl + '/purchase/arCheck/page/waiting'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }])
|
|
|
+ .factory('B2bErpLog', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ var b2bUrl = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bUrl + '/log/erp', {});
|
|
|
+ }])
|
|
|
+ .factory('B2bUsageLog', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ var b2bUrl = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bUrl + '/log/usage', {});
|
|
|
+ }])
|
|
|
+ .factory('B2bAppFlow', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ var b2bUrl = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bUrl + '/office/ApprovalFlow', {}, {
|
|
|
+ saveAppFlowSet: {
|
|
|
+ url: b2bUrl + '/office/ApprovalFlow/saveAppFlowSet',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ viewAppFlow: {
|
|
|
+ url: b2bUrl + '/office/ApprovalFlow/viewAppFlow',
|
|
|
+ method: 'GET',
|
|
|
+ isArray: true
|
|
|
+ },
|
|
|
+ viewAppFlowItem: {
|
|
|
+ url: b2bUrl + '/office/ApprovalFlow/viewAppFlowItem/:id',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ saveCopy: {
|
|
|
+ url: b2bUrl + '/office/ApprovalFlow/saveCopy',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ getUserByDep: {
|
|
|
+ url: b2bUrl + '/office/ApprovalFlow/getUserByDep',
|
|
|
+ method: 'GET',
|
|
|
+ isArray: true
|
|
|
+ },
|
|
|
+ setCopy: {
|
|
|
+ url: b2bUrl + '/office/ApprovalFlow/setCopy',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ getUserByPosition: {
|
|
|
+ url: b2bUrl + '/office/ApprovalFlow/getUserByPosition',
|
|
|
+ method: 'GET',
|
|
|
+ isArray: true
|
|
|
+ },
|
|
|
+ getPositions: {
|
|
|
+ url: b2bUrl + '/office/ApprovalFlow/getPositions',
|
|
|
+ method: 'GET',
|
|
|
+ isArray: true
|
|
|
+ },
|
|
|
+ getPositionInfo: {
|
|
|
+ url: b2bUrl + '/office/ApprovalFlow/getPositionInfo',
|
|
|
+ method: 'GET',
|
|
|
+ isArray: true
|
|
|
+ },
|
|
|
+ getNodeByName: {
|
|
|
+ url: b2bUrl + '/office/ApprovalFlow/getNodeByName',
|
|
|
+ method: 'GET'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }])
|
|
|
+ .factory('B2bPurcSample', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ var b2bUrl = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bUrl + '/sale/sample/info/search', {}, {
|
|
|
+ getItem: {
|
|
|
+ url: b2bUrl + '/sale/sample/:id/info',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ printCount: {
|
|
|
+ url: b2bUrl + '/sale/sample/printCount/:id',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ printPermission: {
|
|
|
+ url: b2bUrl + '/sale/sample/printCount/permission',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ getSend: {
|
|
|
+ url: b2bUrl + '/sale/sample/:id/send',
|
|
|
method: 'GET',
|
|
|
+ params: {
|
|
|
+ id: 'id'
|
|
|
+ },
|
|
|
+ isArray: true
|
|
|
+ },
|
|
|
+ getTodo: {
|
|
|
+ params: {
|
|
|
+ _state: 'todo'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getDone: {
|
|
|
+ params: {
|
|
|
+ _state: 'done'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getInvalid: {
|
|
|
+ params: {
|
|
|
+ _state: 'invalid'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ setRead:{
|
|
|
+ url: b2bUrl + '/sale/sample/setRead',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ getUnreadIds:{
|
|
|
+ url: b2bUrl + '/sale/sample/getUnreadIds',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ getUnreadCount:{
|
|
|
+ url: b2bUrl + '/sale/sample/unread',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ exportXls: {
|
|
|
+ url: b2bUrl + '/sale/sample/xls/permission',
|
|
|
+ method: 'GET'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }]).factory('B2bPurcSampleInfo', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ var b2bUrl = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bUrl + '/sale/sample/info/nosearch', {}, {
|
|
|
+ getTodo: {
|
|
|
+ params: {
|
|
|
+ _state: 'todo'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getDone: {
|
|
|
+ params: {
|
|
|
+ _state: 'done'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getInvalid: {
|
|
|
+ params: {
|
|
|
+ _state: 'invalid'
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
}])
|
|
|
+ .factory('B2bPurcApproval', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ var b2bUrl = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bUrl + '/sale/sample/approval/info/search', {}, {
|
|
|
+ getItem: {
|
|
|
+ url: b2bUrl + '/sale/sample/approval/:id/info',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ getAgreed: {
|
|
|
+ params: {
|
|
|
+ _state: 'agreed'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getRefused: {
|
|
|
+ params: {
|
|
|
+ _state: 'refused'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ exportXls: {
|
|
|
+ url: b2bUrl + '/sale/sample/approval/xls/permission',
|
|
|
+ method: 'GET'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }])
|
|
|
+ .factory('B2bAccountRole', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ var b2bUrl = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bUrl + '/account/role/:id', {}, {
|
|
|
+ // 确认修改
|
|
|
+ save: {
|
|
|
+ url: b2bUrl + '/account/role',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ // 确认删除
|
|
|
+ remove: {
|
|
|
+ url: b2bUrl + '/account/role/:id',
|
|
|
+ method: 'DELETE'
|
|
|
+ },
|
|
|
+ // 恢复默认
|
|
|
+ recover: {
|
|
|
+ url: b2bUrl + '/account/role/recover/:roleId',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ // 获取默认权限
|
|
|
+ getDefaultRole: {
|
|
|
+ url: b2bUrl + '/account/role/default/:roleId',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ updateDefault: {
|
|
|
+ url: b2bUrl + '/account/role/updateDefault',
|
|
|
+ method: 'POST'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }])
|
|
|
+ .factory('B2bAccountResource', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ return $resource(BaseService.getB2bUrl() + '/account/resource', {});
|
|
|
+ }]).factory('B2bUser', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ var b2bUrl = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bUrl + '/user/findByUserUUList', {}, {
|
|
|
+ getUsersByUU: {
|
|
|
+ url: b2bUrl + '/user/findByUserUUList',
|
|
|
+ method: 'GET',
|
|
|
+ isArray: true
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }]).factory('B2bMakeOrder', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ var b2bPath = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bPath + '/make/orders/info/search', {}, {
|
|
|
+ getItem: {
|
|
|
+ url: b2bPath + '/make/orders/:id/info',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ reply: {
|
|
|
+ url: b2bPath + '/make/orders/:orderId/reply',
|
|
|
+ method: 'POST',
|
|
|
+ params: {
|
|
|
+ orderId: 'orderId'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getReply: {
|
|
|
+ url: b2bPath + '/make/orders/:orderId/reply',
|
|
|
+ method: 'GET',
|
|
|
+ isArray: true,
|
|
|
+ params: {
|
|
|
+ orderId: 'orderId'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getTodo: {
|
|
|
+ url: b2bPath + '/make/orders/info/search',
|
|
|
+ method: 'GET',
|
|
|
+ params: {
|
|
|
+ _state: 'todo'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getDone: {
|
|
|
+ url: b2bPath + '/make/orders/info/search',
|
|
|
+ method: 'GET',
|
|
|
+ params: {
|
|
|
+ _state: 'done'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ printCount: {
|
|
|
+ url: b2bPath + '/make/orders/printCount/:id',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ getEnd: {
|
|
|
+ url: b2bPath + '/make/orders/info/search',
|
|
|
+ method: 'GET',
|
|
|
+ params: {
|
|
|
+ _state: 'end'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getAll: {},
|
|
|
+ setRead:{
|
|
|
+ url: b2bPath + '/make/orders/setRead',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ setReadByState:{
|
|
|
+ url: b2bPath + '/make/orders/setReadByState',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ getUnreadIds:{
|
|
|
+ url: b2bPath + '/make/orders/getUnreadIds',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ getUnreadCount:{
|
|
|
+ url: b2bPath + '/make/orders/unread',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ exportXls: {
|
|
|
+ url: b2bPath + '/make/orders/xls/permission',
|
|
|
+ method: 'GET'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }]).factory('B2bMakeChange', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
+ var b2bPath = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bPath + '/make/changes/info/search', {}, {
|
|
|
+ reply: {
|
|
|
+ url: b2bPath + '/make/changes/:itemId/reply',
|
|
|
+ method: 'POST',
|
|
|
+ params: {
|
|
|
+ itemId: 'itemId'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getAll: {
|
|
|
+ url: b2bPath + '/make/changes/info/search',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ getItem: {
|
|
|
+ url: b2bPath + '/make/changes/:id/info',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ exportXls: {
|
|
|
+ url: b2bPath + '/make/changes/xls/permission',
|
|
|
+ method: 'GET'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }]).factory('B2bMakeAccept',['$resource', 'BaseService', function($resource, BaseService){
|
|
|
+ var b2bPath = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bPath + '/make/accept/:id',{},{
|
|
|
+ getAll: {},
|
|
|
+ exportXls: {
|
|
|
+ url: b2bPath + '/make/accept/xls/permission',
|
|
|
+ method: 'GET'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }]).factory('B2bMakeReturn',['$resource', 'BaseService', function($resource, BaseService){
|
|
|
+ var b2bPath = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bPath + '/make/return/:id',{},{
|
|
|
+ getAll: {},
|
|
|
+ exportXls: {
|
|
|
+ url: b2bPath + '/make/return/xls/permission',
|
|
|
+ method: 'GET'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }]).factory('B2bMakeOutOrder', ['$resource', 'BaseService', function($resource, BaseService){
|
|
|
+ var b2bPath = BaseService.getB2bUrl();
|
|
|
+ return $resource(b2bPath + '/make/outorders/info/search', {}, {
|
|
|
+ getReply: {
|
|
|
+ url: b2bPath + '/make/orders/:orderId/reply',
|
|
|
+ method: 'GET',
|
|
|
+ isArray: true,
|
|
|
+ params: {
|
|
|
+ orderId: 'orderId'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getAll: {},
|
|
|
+ getItem: {
|
|
|
+ url: b2bPath + '/make/outorders/:id/info',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ exportXls: {
|
|
|
+ url: b2bPath + '/make/outorders/xls/permission',
|
|
|
+ method: 'GET'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }]);
|
|
|
});
|