Browse Source

打样申请送样设置成已读

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@10550 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
wangmh 8 years ago
parent
commit
584756f0a1
1 changed files with 10 additions and 4 deletions
  1. 10 4
      src/main/webapp/resources/js/index/app.js

+ 10 - 4
src/main/webapp/resources/js/index/app.js

@@ -6879,10 +6879,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             }
             var sourceId = [];
             sourceId.push(id);
-            PurcSample.setRead({}, sourceId, function (message) {
-                // $scope.getUnreadIds();
-                getUnreadCount();
-            });
+            PurcSample.setRead({}, sourceId);
         };
 
         //获取未读单据id
@@ -7011,6 +7008,15 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
         $scope.cancel = function () {
             $modalInstance.dismiss(sampleItem);
         };
+
+        //设置单个单据已读
+        $scope.setOrdersRead = function (id) {
+            var sourceId = [];
+            sourceId.push(id);
+            PurcSample.setRead({}, sourceId, function (message) {
+                // $scope.getUnreadIds();
+            });
+        };
     }]);
 
     /**