|
|
@@ -19,7 +19,7 @@ define([ 'app/app' ], function(app) {
|
|
|
$scope.handleLink = [
|
|
|
{name: '查看入库记录', tab: 'inBound', id: 0},
|
|
|
{name: '其它入库', tab: 'inBound', id: 1},
|
|
|
- // {name: '采购入库', tab: 'inBound', id: 2},
|
|
|
+ {name: '采购入库', tab: 'inBound', id: 2},
|
|
|
{name: '查看出库记录', tab: 'outBound', id: 0},
|
|
|
{name: '其它出库', tab: 'outBound', id: 1},
|
|
|
{name: '销售出库', tab: 'outBound', id: 2}];
|
|
|
@@ -197,7 +197,7 @@ define([ 'app/app' ], function(app) {
|
|
|
return 'getLoadStorageData'
|
|
|
} else if($scope.handleItem === 2) {
|
|
|
if($scope.storage_tab === 'inBound') {
|
|
|
- return 'getOrderData'
|
|
|
+ return 'getByEnterpriseData'
|
|
|
} else {
|
|
|
return 'getByStatusAndInternal'
|
|
|
}
|
|
|
@@ -215,13 +215,15 @@ define([ 'app/app' ], function(app) {
|
|
|
if($scope.keyword){
|
|
|
param.keyword = $scope.keyword
|
|
|
}
|
|
|
+ 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 ? $scope.startDate.getTime() : null;
|
|
|
param.endMils = $scope.endDate ? $scope.endDate.getTime() : null;
|
|
|
} else {
|
|
|
- param.type = $scope.type;
|
|
|
param.fromDate = $scope.startDate ? $scope.startDate.getTime() : null;
|
|
|
param.toDate = $scope.endDate ? $scope.endDate.getTime() : null;
|
|
|
}
|
|
|
@@ -459,9 +461,14 @@ define([ 'app/app' ], function(app) {
|
|
|
details.sendCount = val
|
|
|
};
|
|
|
|
|
|
- // 销售出库确认发货
|
|
|
- $scope.saveOtherCheck = function (data) {
|
|
|
- console.log(data, 'data')
|
|
|
+ var inSaveOtherCheck = function(type) {
|
|
|
+ console.log(type, 'type')
|
|
|
+ Goods.getByEnterpriseId({invoiceId: type.invoiceid}, null, function(data) {
|
|
|
+ console.log('data', data, type.invoiceId)
|
|
|
+ })
|
|
|
+ };
|
|
|
+
|
|
|
+ var outSaveOtherCheck = function (data) {
|
|
|
if(!$scope.jsonSdAddress || angular.equals({}, $scope.jsonSdAddress)) {
|
|
|
toaster.pop("info", "提示", "发货地址不能为空,请前往物流管理新增发货地址");
|
|
|
return ;
|
|
|
@@ -512,6 +519,14 @@ define([ 'app/app' ], function(app) {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ // 采购入库与销售出库确认发货
|
|
|
+ $scope.saveOtherCheck = function (data, tab) {
|
|
|
+ if (tab === 'inBound') {
|
|
|
+ inSaveOtherCheck(data);
|
|
|
+ } else {
|
|
|
+ outSaveOtherCheck(data);
|
|
|
+ }
|
|
|
+ };
|
|
|
|
|
|
//获取登录的信息
|
|
|
var getAuthentication = function () {
|