Parcourir la source

药剂熏蒸仓房更改

gaodd il y a 2 ans
Parent
commit
b66b6cfd3b

+ 4 - 4
src/main/resources/static/app/storage/drug/drugRestore/controller/drugRestoreSaveCtrl.js

@@ -61,7 +61,7 @@ angular.module('app.storage').controller("drugRestoreSaveCtrl", function($scope,
61 61
              for (var i = 0; i < $scope.fumigateCfList.length; i++) {
62 62
                  // 当前为根.
63 63
                  var obj = {
64
-                     id: $scope.fumigateCfList[i].cfmc,
64
+                     id: $scope.fumigateCfList[i].houseId,
65 65
                      name: $scope.fumigateCfList[i].cfmc
66 66
                  };
67 67
                  
@@ -69,9 +69,9 @@ angular.module('app.storage').controller("drugRestoreSaveCtrl", function($scope,
69 69
                      for (var s = 0; s < $scope.drugRestore.fumigateStore.length; s++) {
70 70
                          var strsv = $scope.drugRestore.fumigateStore;
71 71
                          var strsa = strsv.substring(0, strsv.length - 1);
72
-                         var strs = strsa.split(" ")
72
+                         var strs = strsa.split(",")
73 73
                          for (var w=0;w<strs.length ;w++ ) {
74
-                             if($scope.fumigateCfList[i].cfmc==strs[w]){
74
+                             if($scope.fumigateCfList[i].houseId==strs[w]){
75 75
                                  obj.selected=true;
76 76
                              }
77 77
                          }
@@ -258,7 +258,7 @@ angular.module('app.storage').controller("drugRestoreSaveCtrl", function($scope,
258 258
         	if($scope.drugRestore.fumigateStore != null){
259 259
         		$scope.fumigateStoreList=angular.fromJson($scope.drugRestore.fumigateStore);
260 260
                 for (var s = 0; s < $scope.fumigateStoreList.length; s++) {
261
-                	fumigateStoreId=fumigateStoreId+$scope.fumigateStoreList[s].id+" ";
261
+                	fumigateStoreId=fumigateStoreId+$scope.fumigateStoreList[s].id+",";
262 262
                 }
263 263
                 $scope.drugRestore.fumigateStore = angular.copy(fumigateStoreId);
264 264
         	}

+ 4 - 4
src/main/resources/static/app/storage/drug/drugUse/controller/drugUseSaveCtrl.js

@@ -48,7 +48,7 @@ angular.module('app.storage').controller("drugUseSaveCtrl", function ($scope, $r
48 48
              for (var i = 0; i < $scope.fumigateCfList.length; i++) {
49 49
                  // 当前为根.
50 50
                  var obj = {
51
-                     id: $scope.fumigateCfList[i].cfmc,
51
+                     id: $scope.fumigateCfList[i].houseId,
52 52
                      name: $scope.fumigateCfList[i].cfmc
53 53
                  };
54 54
                  
@@ -56,9 +56,9 @@ angular.module('app.storage').controller("drugUseSaveCtrl", function ($scope, $r
56 56
                      for (var s = 0; s < $scope.drugUse.fumigateStore.length; s++) {
57 57
                          var strsv = $scope.drugUse.fumigateStore;
58 58
                          var strsa = strsv.substring(0, strsv.length - 1);
59
-                         var strs = strsa.split(" ")
59
+                         var strs = strsa.split(",")
60 60
                          for (var w=0;w<strs.length ;w++ ) {
61
-                             if($scope.fumigateCfList[i].cfmc==strs[w]){
61
+                             if($scope.fumigateCfList[i].houseId==strs[w]){
62 62
                                  obj.selected=true;
63 63
                              }
64 64
                          }
@@ -196,7 +196,7 @@ angular.module('app.storage').controller("drugUseSaveCtrl", function ($scope, $r
196 196
                 if($scope.drugUse.fumigateStore != null ){
197 197
                 	$scope.fumigateStoreList=angular.fromJson($scope.drugUse.fumigateStore);
198 198
                     for (var s = 0; s < $scope.fumigateStoreList.length; s++) {
199
-                    	fumigateStoreId=fumigateStoreId+$scope.fumigateStoreList[s].id+" ";
199
+                    	fumigateStoreId=fumigateStoreId+$scope.fumigateStoreList[s].id+",";
200 200
                     }
201 201
                     $scope.drugUse.fumigateStore = angular.copy(fumigateStoreId);
202 202
                 }

+ 3 - 3
src/main/resources/static/app/storage/drug/drugUseApply/controller/drugUseApplyAuditSaveCtrl.js

@@ -55,7 +55,7 @@ angular.module('app.storage').controller("drugUseApplyAuditSaveCtrl", function (
55 55
              for (var i = 0; i < $scope.fumigateCfList.length; i++) {
56 56
                  // 当前为根.
57 57
                  var obj = {
58
-                     id: $scope.fumigateCfList[i].cfmc,
58
+                     id: $scope.fumigateCfList[i].houseId,
59 59
                      name: $scope.fumigateCfList[i].cfmc
60 60
                  };
61 61
                  
@@ -63,9 +63,9 @@ angular.module('app.storage').controller("drugUseApplyAuditSaveCtrl", function (
63 63
                      for (var s = 0; s < $scope.drugUseApply.fumigateStore.length; s++) {
64 64
                          var strsv = $scope.drugUseApply.fumigateStore;
65 65
                          var strsa = strsv.substring(0, strsv.length - 1);
66
-                         var strs = strsa.split(" ")
66
+                         var strs = strsa.split(",")
67 67
                          for (var w=0;w<strs.length ;w++ ) {
68
-                             if($scope.fumigateCfList[i].cfmc==strs[w]){
68
+                             if($scope.fumigateCfList[i].houseId==strs[w]){
69 69
                                  obj.selected=true;
70 70
                              }
71 71
                          }

+ 5 - 5
src/main/resources/static/app/storage/drug/drugUseApply/controller/drugUseApplySaveCtrl.js

@@ -47,7 +47,7 @@ angular.module('app.storage').controller("drugUseApplySaveCtrl", function($scope
47 47
              for (var i = 0; i < $scope.fumigateCfList.length; i++) {
48 48
                  // 当前为根.
49 49
                  var obj = {
50
-                     id: $scope.fumigateCfList[i].cfmc,
50
+                     id: $scope.fumigateCfList[i].houseId,
51 51
                      name: $scope.fumigateCfList[i].cfmc
52 52
                  };
53 53
                  $scope.datazbl3.push(obj);
@@ -69,7 +69,7 @@ angular.module('app.storage').controller("drugUseApplySaveCtrl", function($scope
69 69
              for (var i = 0; i < $scope.fumigateCfList.length; i++) {
70 70
                  // 当前为根.
71 71
                  var obj = {
72
-                     id: $scope.fumigateCfList[i].cfmc,
72
+                     id: $scope.fumigateCfList[i].houseId,
73 73
                      name: $scope.fumigateCfList[i].cfmc
74 74
                  };
75 75
                  
@@ -77,9 +77,9 @@ angular.module('app.storage').controller("drugUseApplySaveCtrl", function($scope
77 77
                      for (var s = 0; s < $scope.drugUseApply.fumigateStore.length; s++) {
78 78
                          var strsv = $scope.drugUseApply.fumigateStore;
79 79
                          var strsa = strsv.substring(0, strsv.length - 1);
80
-                         var strs = strsa.split(" ")
80
+                         var strs = strsa.split(",")
81 81
                          for (var w=0;w<strs.length ;w++ ) {
82
-                             if($scope.fumigateCfList[i].cfmc==strs[w]){
82
+                             if($scope.fumigateCfList[i].houseId==strs[w]){
83 83
                                  obj.selected=true;
84 84
                              }
85 85
                          }
@@ -316,7 +316,7 @@ angular.module('app.storage').controller("drugUseApplySaveCtrl", function($scope
316 316
                 if($scope.drugUseApply.fumigateStore != null){
317 317
                 	$scope.fumigateStoreList=angular.fromJson($scope.drugUseApply.fumigateStore);
318 318
                     for (var s = 0; s < $scope.fumigateStoreList.length; s++) {
319
-                    	fumigateStoreId=fumigateStoreId+$scope.fumigateStoreList[s].id+" ";
319
+                    	fumigateStoreId=fumigateStoreId+$scope.fumigateStoreList[s].id+",";
320 320
                     }
321 321
                     $scope.drugUseApply.fumigateStore = angular.copy(fumigateStoreId);
322 322
                 }