lufeng 2 anni fa
parent
commit
12f6583186

+ 5 - 3
src/main/resources/static/app/business/facility/controller/facilityGetListCtrl.js

@@ -78,14 +78,14 @@ angular.module('app.business')
78 78
         //         console.log(data);
79 79
         //     })
80 80
         // };
81
+		
81 82
         $scope.loadfacilityList = function() {
82 83
             FacilityGetService.getFacilityList().then(function(data){
83 84
 				 $scope.facilityList = data; 
84 85
                  setTimeout(function () {
85 86
                     if($stateParams.facility) {
86 87
                         var receiveFacility = angular.fromJson($stateParams.facility);
87
-                        $scope.repairInfo = receiveFacility;
88
-                        $scope.repairInfo.ssmc = +receiveFacility.ssmc;
88
+						$scope.repairInfo = receiveFacility;
89 89
                     }
90 90
                  }, 1000);
91 91
                  
@@ -126,7 +126,6 @@ angular.module('app.business')
126 126
                 ssmc: '',
127 127
                 ssfl: '',
128 128
                 wxfzr: '',
129
-                orgId: $rootScope.userInfo.orgId,
130 129
                 bz: '',
131 130
             };
132 131
         }
@@ -170,6 +169,9 @@ angular.module('app.business')
170 169
                 params.wxksrq = $("#repairInfo_wxksrq").val();
171 170
                 params.wxjsrq = $("#repairInfo_wxjsrq").val();
172 171
                 params.gzrq = $("#repairInfo_gzrq").val();
172
+				// params.ssfl = $scope.facility.ssfl;
173
+                // params.ssmc = $scope.facility.ssmc;
174
+                params.orgId = $rootScope.userInfo.orgId;
173 175
 				
174 176
                 FacilityGetService.savaFacility({dFacilitiesRepairJson : angular.toJson(params)}).then(function (response) {
175 177
                     if(response.status == "success"){

+ 2 - 2
src/main/resources/static/app/business/facility/controller/facilityKeepListCtrl.js

@@ -85,7 +85,6 @@ angular.module('app.business')
85 85
                     if($stateParams.facility) {
86 86
                         var receiveFacility = angular.fromJson($stateParams.facility);
87 87
                         $scope.keepInfo = receiveFacility;
88
-                        $scope.keepInfo.ssmc = +receiveFacility.ssmc;
89 88
                     }
90 89
                  }, 1000);
91 90
                  
@@ -126,7 +125,6 @@ angular.module('app.business')
126 125
                 ssmc: '',
127 126
                 ssfl: '',
128 127
                 byfzr: '',
129
-                orgId: $rootScope.userInfo.orgId,
130 128
                 bz: '',
131 129
             };
132 130
         }
@@ -169,6 +167,8 @@ angular.module('app.business')
169 167
                 var params = angular.copy($scope.keepInfo);
170 168
                 params.byksrq = $("#keepInfo_byksrq").val();
171 169
                 params.byjsrq = $("#keepInfo_byjsrq").val();
170
+                params.orgId = $rootScope.userInfo.orgId;
171
+
172 172
                 facilityKeepService.savaFacility({dFacilitiesMaintainJson : angular.toJson(params)}).then(function (response) {
173 173
                     if(response.status == "success"){
174 174
                         alert("保存成功!");