Browse Source

【商务平台】 采购订单查看时,增加按id进行排序,防止出现两页重复数据的情况

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@6275 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 9 years ago
parent
commit
e0013e2620
1 changed files with 7 additions and 6 deletions
  1. 7 6
      src/main/webapp/resources/js/index/app.js

+ 7 - 6
src/main/webapp/resources/js/index/app.js

@@ -1140,13 +1140,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
   		}, {
   			total : 0, 
   			counts: [5, 10, 15, 25, 50],
-  			getData : function($defer, params) { // 获取数据的方法
+  			getData : function($defer, params) {// 获取数据的方法
   				$scope.loading = true;
   				var pageParams = params.url();
   				pageParams.searchFilter = { // 筛选条件
-  					keyword: $scope.keyword,
-  					fromDate: getDateTime($scope.condition.dateFrom),
-  					endDate: getDateTime($scope.condition.dateTo)
+  						keyword: $scope.keyword,
+  						fromDate: getDateTime($scope.condition.dateFrom),
+  						endDate: getDateTime($scope.condition.dateTo)
   				};
   				console.log(getPurcStatus($scope.active));
   				PurcOrderItem[getPurcStatus($scope.active)].call(null, BaseService.parseParams(pageParams), function(page){
@@ -1260,7 +1260,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 			count : 5,
 			sorting: {
 				display: 'desc',
-                date: 'desc'
+				date: 'desc',
+				id: 'desc'
             }
 		}, {
 			total : 0, 
@@ -3974,7 +3975,7 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
 				});
 			}
 		});
-		
+
 		$scope.openDatePicker = function($event, item, openParam) {
 			$event.preventDefault();
 		    $event.stopPropagation();