hanqingsong 1 vuosi sitten
vanhempi
commit
117703c414

+ 8 - 6
src/main/resources/static/app/storage/controller/dailyListCtrl.js

@@ -157,7 +157,7 @@ angular.module('app.storage')
157 157
 
158 158
 
159 159
         //通过仓房号,获取货位号.
160
-        $scope.change = function () {
160
+        $scope.change = function (flag) {
161 161
             if ($scope.dailycheck.houseId != null && $scope.dailycheck.houseId != undefined && $scope.dailycheck.houseId != '') {
162 162
                 warehouseService.getStorehouse($rootScope.orgInfo.orgId, $scope.dailycheck.houseId, "0").then(function(data){
163 163
                     $scope.warehouseList = data.wareList;  //下拉列表数据
@@ -166,11 +166,13 @@ angular.module('app.storage')
166 166
                 });
167 167
 
168 168
 				// 通过仓房id 获取保管员姓名
169
-				keeperService.getKeeperNamesByHouseId($scope.dailycheck.houseId).then(function(data){
170
-					$scope.dailycheck.bgy = data.keeperNames
171
-				},function(data){
172
-					console.log(data);
173
-				});
169
+                if (flag !== 0) {
170
+                    keeperService.getKeeperNamesByHouseId($scope.dailycheck.houseId).then(function(data){
171
+                        $scope.dailycheck.bgy = data.keeperNames;
172
+                    },function(data){
173
+                        console.log(data);
174
+                    });
175
+                }
174 176
             } else {
175 177
                 // 设置货位号为空.
176 178
                 $scope.dailycheck.warehouseId = null;