|
|
@@ -313,12 +313,13 @@ angular.module('app.storage').controller("drugUseApplySaveCtrl", function($scope
|
|
313
|
313
|
$scope.drugUseApply.useDate = $filter('date')(item.value, "yyyy-MM-dd HH:mm:ss");
|
|
314
|
314
|
}
|
|
315
|
315
|
});
|
|
316
|
|
-
|
|
317
|
|
- $scope.fumigateStoreList=angular.fromJson($scope.drugUseApply.fumigateStore);
|
|
318
|
|
- for (var s = 0; s < $scope.fumigateStoreList.length; s++) {
|
|
319
|
|
- fumigateStoreId=fumigateStoreId+$scope.fumigateStoreList[s].id+" ";
|
|
|
316
|
+ if($scope.drugUseApply.fumigateStore != null){
|
|
|
317
|
+ $scope.fumigateStoreList=angular.fromJson($scope.drugUseApply.fumigateStore);
|
|
|
318
|
+ for (var s = 0; s < $scope.fumigateStoreList.length; s++) {
|
|
|
319
|
+ fumigateStoreId=fumigateStoreId+$scope.fumigateStoreList[s].id+" ";
|
|
|
320
|
+ }
|
|
|
321
|
+ $scope.drugUseApply.fumigateStore = angular.copy(fumigateStoreId);
|
|
320
|
322
|
}
|
|
321
|
|
- $scope.drugUseApply.fumigateStore = angular.copy(fumigateStoreId);
|
|
322
|
323
|
|
|
323
|
324
|
drugUseApplyService.save($scope.drugUseApply, $scope.details, $scope.applyUser).then(function(data){
|
|
324
|
325
|
if (data.status === "success") {
|