|
|
@@ -163,6 +163,18 @@ define([ 'ngResource'], function() {
|
|
|
params: {
|
|
|
_state: 'waiting'
|
|
|
}
|
|
|
+ },
|
|
|
+ setRead:{
|
|
|
+ url: 'sale/orders/setRead/purc',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ getUnreadIds:{
|
|
|
+ url: 'sale/orders/getUnreadIds/purc',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ getUnreadCount:{
|
|
|
+ url: 'sale/orders/unread/purc',
|
|
|
+ method: 'GET'
|
|
|
}
|
|
|
});
|
|
|
}]).factory('PurcOrders', ['$resource', function($resource) {
|
|
|
@@ -191,6 +203,18 @@ define([ 'ngResource'], function() {
|
|
|
params: {
|
|
|
_state: 'waiting'
|
|
|
}
|
|
|
+ },
|
|
|
+ setRead:{
|
|
|
+ url: 'sale/orders/setRead/purc',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ getUnreadIds:{
|
|
|
+ url: 'sale/orders/getUnreadIds/purc',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ getUnreadCount:{
|
|
|
+ url: 'sale/orders/unread/purc',
|
|
|
+ method: 'GET'
|
|
|
}
|
|
|
});
|
|
|
}]).factory('PurcChange', ['$resource', function($resource) {
|
|
|
@@ -514,7 +538,19 @@ define([ 'ngResource'], function() {
|
|
|
params: {
|
|
|
tenderProdId: 'tenderProdId'
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ setRead:{
|
|
|
+ url: 'tender/setRead',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ getUnreadIds:{
|
|
|
+ url: 'tender/getUnreadIds',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ getUnreadCount:{
|
|
|
+ url: 'tender/unread',
|
|
|
+ method: 'GET'
|
|
|
+ }
|
|
|
});
|
|
|
}]).factory('PurcInquiryMould', ['$resource', function($resource) {
|
|
|
return $resource('sale/mould/:id', {}, {
|
|
|
@@ -624,6 +660,18 @@ define([ 'ngResource'], function() {
|
|
|
sendByBatch: {
|
|
|
url: 'sale/notice/sendByBatch',
|
|
|
method: 'POST'
|
|
|
+ },
|
|
|
+ setRead:{
|
|
|
+ url: 'sale/notice/setRead',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ getUnreadIds:{
|
|
|
+ url: 'sale/notice/getUnreadIds',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ getUnreadCount:{
|
|
|
+ url: 'sale/notice/unread',
|
|
|
+ method: 'GET'
|
|
|
}
|
|
|
});
|
|
|
}]).factory('PurcNoticeInfo', ['$resource', function($resource) {
|
|
|
@@ -649,7 +697,19 @@ define([ 'ngResource'], function() {
|
|
|
params: {
|
|
|
_state: 'waiting'
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ setRead:{
|
|
|
+ url: 'sale/notice/setRead',
|
|
|
+ method: 'POST'
|
|
|
+ },
|
|
|
+ getUnreadIds:{
|
|
|
+ url: 'sale/notice/getUnreadIds',
|
|
|
+ method: 'GET'
|
|
|
+ },
|
|
|
+ getUnreadCount:{
|
|
|
+ url: 'sale/notice/unread',
|
|
|
+ method: 'GET'
|
|
|
+ }
|
|
|
});
|
|
|
}]).factory('SaleSend', ['$resource', function($resource) {
|
|
|
return $resource('sale/notice/sends/:id', {}, {
|