|
|
@@ -8052,6 +8052,20 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
},
|
|
|
};
|
|
|
|
|
|
+ //商品信息
|
|
|
+ $scope.order.orderItems = [];
|
|
|
+ var item = {
|
|
|
+ code: null,
|
|
|
+ title: null,
|
|
|
+ spec: null,
|
|
|
+ unit: null,
|
|
|
+ qty: null,
|
|
|
+ price: null,
|
|
|
+ remark: null,
|
|
|
+ delivery: null,
|
|
|
+ id: null,
|
|
|
+ };
|
|
|
+
|
|
|
// 获取供应商列表
|
|
|
cartOperation.vendorInfo({}, function(data) {
|
|
|
});
|
|
|
@@ -8078,7 +8092,9 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
controller: 'DbfindVendorInfoCtrl',
|
|
|
size: 'lg',
|
|
|
resolve: {
|
|
|
-
|
|
|
+ orderItems: function() {
|
|
|
+ return $scope.order.orderItems;
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -8110,20 +8126,6 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
};
|
|
|
|
|
|
|
|
|
-
|
|
|
- //商品信息
|
|
|
- $scope.order.orderItems = [];
|
|
|
- var item = {
|
|
|
- code: null,
|
|
|
- title: null,
|
|
|
- spec: null,
|
|
|
- unit: null,
|
|
|
- qty: null,
|
|
|
- price: null,
|
|
|
- remark: null,
|
|
|
- delivery: null,
|
|
|
- id: null,
|
|
|
- };
|
|
|
// $scope.order.orderItems.push(item);
|
|
|
if($rootScope.prodId) {
|
|
|
VendorInfo.getProdInfo({id: $rootScope.prodId}, {}, function(data) {
|
|
|
@@ -8334,7 +8336,11 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
}]);
|
|
|
|
|
|
// 查找供应商
|
|
|
- app.controller('DbfindVendorInfoCtrl', ['$scope', 'BaseService', 'ngTableParams', 'toaster', '$modalInstance', 'Vendor', '$rootScope', function($scope, BaseService, ngTableParams, toaster, $modalInstance, Vendor, $rootScope){
|
|
|
+ app.controller('DbfindVendorInfoCtrl', ['$scope', 'BaseService', 'ngTableParams', 'toaster', '$modalInstance', 'Vendor', '$rootScope', 'orderItems', function($scope, BaseService, ngTableParams, toaster, $modalInstance, Vendor, $rootScope, orderItems){
|
|
|
+ $scope.prod = false;
|
|
|
+ if(orderItems.length != 0) {
|
|
|
+ $scope.prod = true;
|
|
|
+ }
|
|
|
BaseService.scrollBackToTop();
|
|
|
if($rootScope.venduu != null) {
|
|
|
$scope.venduu = $rootScope.venduu;
|