|
|
@@ -7,7 +7,7 @@ define([ 'app/app' ], function(app) {
|
|
|
$scope.tab = 'storage';
|
|
|
$scope.isInt = /^[0-9]*[1-9][0-9]*$/;
|
|
|
document.title = '卖家出入库-优软商城';
|
|
|
- $scope.storage_tab = $stateParams.storage_tab? $stateParams.storage_tab : 'inBound';
|
|
|
+ $scope.storage_tab = $stateParams.storage_tab ? $stateParams.storage_tab : 'outBound';
|
|
|
$scope.countData = 10;
|
|
|
$scope.userInfo = $rootScope.userInfo || {};
|
|
|
|
|
|
@@ -247,16 +247,19 @@ define([ 'app/app' ], function(app) {
|
|
|
if($scope.handleItem === 0) {
|
|
|
param.type = $scope.type;
|
|
|
}
|
|
|
+ // 出库
|
|
|
if($scope.storage_tab === 'outBound' && $scope.handleItem === 2) {
|
|
|
param.sorting = {"createtime":"DESC"};
|
|
|
param.status = '502-406';
|
|
|
param.startMils = $scope.startDate;
|
|
|
param.endMils = $scope.endDate;
|
|
|
} else {
|
|
|
+ // 入库
|
|
|
param.fromDate = $scope.startDate;
|
|
|
param.toDate = $scope.endDate;
|
|
|
}
|
|
|
if ($scope.handleItem !== 1) {
|
|
|
+ // 不等于其他出库或者入库
|
|
|
Goods[getUrl()](param, function(data) {
|
|
|
$scope.storageList = data.content
|
|
|
params.total(data.totalElements);
|