|
@@ -46,8 +46,8 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
|
|
|
$scope.vendorType = 'all'
|
|
$scope.vendorType = 'all'
|
|
|
$scope.tab = tab;
|
|
$scope.tab = tab;
|
|
|
$scope.seekPurchaseTableParams = new ngTableParams({
|
|
$scope.seekPurchaseTableParams = new ngTableParams({
|
|
|
- pageNumber: 1,
|
|
|
|
|
- pageSize: 10
|
|
|
|
|
|
|
+ page: 1,
|
|
|
|
|
+ count: 5
|
|
|
}, {
|
|
}, {
|
|
|
total: 0,
|
|
total: 0,
|
|
|
getData: function ($defer, params) {
|
|
getData: function ($defer, params) {
|
|
@@ -90,7 +90,7 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
|
|
|
// }
|
|
// }
|
|
|
// }
|
|
// }
|
|
|
$scope.seekListData = data;
|
|
$scope.seekListData = data;
|
|
|
-
|
|
|
|
|
|
|
+ console.log($scope.seekListData)
|
|
|
}).error(function (response) {
|
|
}).error(function (response) {
|
|
|
toaster.pop('error', response);
|
|
toaster.pop('error', response);
|
|
|
});
|
|
});
|
|
@@ -157,11 +157,14 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
|
|
|
$scope.bomSearch = {};
|
|
$scope.bomSearch = {};
|
|
|
$scope.bomTableParams = new ngTableParams({
|
|
$scope.bomTableParams = new ngTableParams({
|
|
|
pageNumber: 1,
|
|
pageNumber: 1,
|
|
|
- pageSize: 20
|
|
|
|
|
|
|
+ pageSize: 10,
|
|
|
|
|
+ page: 1,
|
|
|
|
|
+ count: 10
|
|
|
}, {
|
|
}, {
|
|
|
total: 0,
|
|
total: 0,
|
|
|
getData: function ($defer, params) {
|
|
getData: function ($defer, params) {
|
|
|
var param = BaseService.parseParams(params.url());
|
|
var param = BaseService.parseParams(params.url());
|
|
|
|
|
+ param.pageNumber = param.page
|
|
|
if ($scope.userInfo.enterprise) {
|
|
if ($scope.userInfo.enterprise) {
|
|
|
param.enUU = $scope.userInfo.enterprise.uu;
|
|
param.enUU = $scope.userInfo.enterprise.uu;
|
|
|
} else {
|
|
} else {
|
|
@@ -182,6 +185,7 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
|
|
|
params.total(data.totalElements);
|
|
params.total(data.totalElements);
|
|
|
$scope.bomTotal = data.totalElements;
|
|
$scope.bomTotal = data.totalElements;
|
|
|
$defer.resolve(data.content);
|
|
$defer.resolve(data.content);
|
|
|
|
|
+ $scope.bomDataList = data
|
|
|
}).error(function (response) {
|
|
}).error(function (response) {
|
|
|
toaster.pop('error', response);
|
|
toaster.pop('error', response);
|
|
|
});
|
|
});
|