|
|
@@ -3077,6 +3077,16 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ $scope.setOrdersReadByState = function () {
|
|
|
+ if (!$scope.unread.replied || $scope.unread.replied == 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ PurcOrderItem.setReadByState({}, function () {
|
|
|
+ getUnreadIds();
|
|
|
+ getUnreadCount();
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
var getUnreadIds = function () {
|
|
|
PurcOrderItem.getUnreadIds({}, "", function (message) {
|
|
|
$scope.unreadCode = message.content;
|
|
|
@@ -3499,6 +3509,16 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ $scope.setOrdersReadByState = function () {
|
|
|
+ if (!$scope.unread.replied || $scope.unread.replied == 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ PurcChange.setReadByState({}, function () {
|
|
|
+ getUnreadIds();
|
|
|
+ getUnreadCount();
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
//获取未读单据id
|
|
|
var getUnreadIds = function (){
|
|
|
PurcChange.getUnreadIds({}, "", function (message) {
|
|
|
@@ -3720,6 +3740,16 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ $scope.setOrdersReadByState = function () {
|
|
|
+ if (!$scope.unread.replied || $scope.unread.replied == 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ PurcInquiry.setReadByState({}, function () {
|
|
|
+ getUnreadIds();
|
|
|
+ getUnreadCount();
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
var getUnreadIds = function () {
|
|
|
PurcInquiry.getUnreadIds({}, "", function (message) {
|
|
|
$scope.unreadCode = message.content;
|
|
|
@@ -5519,6 +5549,16 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ $scope.setOrdersReadByState = function () {
|
|
|
+ if (!$scope.unread.replied || $scope.unread.replied == 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ PurcInquiry.setReadByState({}, function () {
|
|
|
+ getUnreadIds();
|
|
|
+ getUnreadCount();
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
//获取未读单据id
|
|
|
var getUnreadIds = function (){
|
|
|
PurcInquiryMould.getUnreadIds({}, "", function (message) {
|
|
|
@@ -6594,6 +6634,16 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ $scope.setOrdersReadByState = function () {
|
|
|
+ if (!$scope.unread.replied || $scope.unread.replied == 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ PurcNotice.setReadByState({}, function () {
|
|
|
+ getUnreadIds();
|
|
|
+ getUnreadCount();
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
var getUnreadIds = function () {
|
|
|
PurcNotice.getUnreadIds({}, "", function (message) {
|
|
|
$scope.unreadCode = message.content;
|
|
|
@@ -11679,6 +11729,16 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ $scope.setOrdersReadByState = function () {
|
|
|
+ if (!$scope.unread.replied || $scope.unread.replied == 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ MakeOrder.setReadByState({}, function () {
|
|
|
+ getUnreadIds();
|
|
|
+ getUnreadCount();
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
var getUnreadIds = function () {
|
|
|
MakeOrder.getUnreadIds({}, "", function (message) {
|
|
|
$scope.unreadCode = message.content;
|