|
|
@@ -2936,14 +2936,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
//设置单据已读
|
|
|
$scope.setOrdersRead = function (id) {
|
|
|
- // 如果单据本身已读,则不发送请求修改数据
|
|
|
- if (!$scope.isUnread(id)){
|
|
|
- return;
|
|
|
- }
|
|
|
- var sourceId = [];
|
|
|
- sourceId.push(id);
|
|
|
- PurcOrders.setRead({}, sourceId, function (message) {
|
|
|
- // $scope.getUnreadIds();
|
|
|
+ PurcOrders.setRead({}, sourceId, function () {
|
|
|
getUnreadCount();
|
|
|
});
|
|
|
};
|
|
|
@@ -12552,13 +12545,13 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
$scope.getSaleOrderCount = function (unread) {
|
|
|
if (unread != undefined) {
|
|
|
- return unread.order + unread.change + unread.makeOrder;
|
|
|
+ return unread.order;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
$scope.getSaleInquiryCount = function (unread) {
|
|
|
if (unread != undefined) {
|
|
|
- return unread.inquiry + unread.mould;
|
|
|
+ return unread.inquiry;
|
|
|
}
|
|
|
};
|
|
|
|