|
@@ -118,8 +118,7 @@ angular.module('app.storage')
|
118
|
118
|
})
|
119
|
119
|
|
120
|
120
|
|
121
|
|
- .controller("dailyListAddCtrl", function($scope,$state, $http, $stateParams, StorehouseService, warehouseService,$rootScope,
|
122
|
|
- dailyService, kcswService, $filter, APP_CONFIG) {
|
|
121
|
+ .controller("dailyListAddCtrl", function($scope,$state, $http, $stateParams, StorehouseService, warehouseService,$rootScope, dailyService, kcswService, keeperService, $filter, APP_CONFIG) {
|
123
|
122
|
|
124
|
123
|
$scope.loadDataById = function(id) {
|
125
|
124
|
dailyService.loadDataById(id).then(function(data){
|
|
@@ -159,6 +158,13 @@ angular.module('app.storage')
|
159
|
158
|
},function(data){
|
160
|
159
|
console.log(data);
|
161
|
160
|
});
|
|
161
|
+
|
|
162
|
+ // 通过仓房id 获取保管员姓名
|
|
163
|
+ keeperService.getKeeperNamesByHouseId($scope.dailycheck.houseId).then(function(data){
|
|
164
|
+ $scope.dailycheck.bgy = data.keeperNames
|
|
165
|
+ },function(data){
|
|
166
|
+ console.log(data);
|
|
167
|
+ });
|
162
|
168
|
} else {
|
163
|
169
|
// 设置货位号为空.
|
164
|
170
|
$scope.dailycheck.warehouseId = null;
|