Browse Source

fix: 回显

lufeng 2 years ago
parent
commit
12f6583186

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

@@ -78,14 +78,14 @@ angular.module('app.business')
78
         //         console.log(data);
78
         //         console.log(data);
79
         //     })
79
         //     })
80
         // };
80
         // };
81
+		
81
         $scope.loadfacilityList = function() {
82
         $scope.loadfacilityList = function() {
82
             FacilityGetService.getFacilityList().then(function(data){
83
             FacilityGetService.getFacilityList().then(function(data){
83
 				 $scope.facilityList = data; 
84
 				 $scope.facilityList = data; 
84
                  setTimeout(function () {
85
                  setTimeout(function () {
85
                     if($stateParams.facility) {
86
                     if($stateParams.facility) {
86
                         var receiveFacility = angular.fromJson($stateParams.facility);
87
                         var receiveFacility = angular.fromJson($stateParams.facility);
87
-                        $scope.repairInfo = receiveFacility;
88
-                        $scope.repairInfo.ssmc = +receiveFacility.ssmc;
88
+						$scope.repairInfo = receiveFacility;
89
                     }
89
                     }
90
                  }, 1000);
90
                  }, 1000);
91
                  
91
                  
@@ -126,7 +126,6 @@ angular.module('app.business')
126
                 ssmc: '',
126
                 ssmc: '',
127
                 ssfl: '',
127
                 ssfl: '',
128
                 wxfzr: '',
128
                 wxfzr: '',
129
-                orgId: $rootScope.userInfo.orgId,
130
                 bz: '',
129
                 bz: '',
131
             };
130
             };
132
         }
131
         }
@@ -170,6 +169,9 @@ angular.module('app.business')
170
                 params.wxksrq = $("#repairInfo_wxksrq").val();
169
                 params.wxksrq = $("#repairInfo_wxksrq").val();
171
                 params.wxjsrq = $("#repairInfo_wxjsrq").val();
170
                 params.wxjsrq = $("#repairInfo_wxjsrq").val();
172
                 params.gzrq = $("#repairInfo_gzrq").val();
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
                 FacilityGetService.savaFacility({dFacilitiesRepairJson : angular.toJson(params)}).then(function (response) {
176
                 FacilityGetService.savaFacility({dFacilitiesRepairJson : angular.toJson(params)}).then(function (response) {
175
                     if(response.status == "success"){
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
                     if($stateParams.facility) {
85
                     if($stateParams.facility) {
86
                         var receiveFacility = angular.fromJson($stateParams.facility);
86
                         var receiveFacility = angular.fromJson($stateParams.facility);
87
                         $scope.keepInfo = receiveFacility;
87
                         $scope.keepInfo = receiveFacility;
88
-                        $scope.keepInfo.ssmc = +receiveFacility.ssmc;
89
                     }
88
                     }
90
                  }, 1000);
89
                  }, 1000);
91
                  
90
                  
@@ -126,7 +125,6 @@ angular.module('app.business')
126
                 ssmc: '',
125
                 ssmc: '',
127
                 ssfl: '',
126
                 ssfl: '',
128
                 byfzr: '',
127
                 byfzr: '',
129
-                orgId: $rootScope.userInfo.orgId,
130
                 bz: '',
128
                 bz: '',
131
             };
129
             };
132
         }
130
         }
@@ -169,6 +167,8 @@ angular.module('app.business')
169
                 var params = angular.copy($scope.keepInfo);
167
                 var params = angular.copy($scope.keepInfo);
170
                 params.byksrq = $("#keepInfo_byksrq").val();
168
                 params.byksrq = $("#keepInfo_byksrq").val();
171
                 params.byjsrq = $("#keepInfo_byjsrq").val();
169
                 params.byjsrq = $("#keepInfo_byjsrq").val();
170
+                params.orgId = $rootScope.userInfo.orgId;
171
+
172
                 facilityKeepService.savaFacility({dFacilitiesMaintainJson : angular.toJson(params)}).then(function (response) {
172
                 facilityKeepService.savaFacility({dFacilitiesMaintainJson : angular.toJson(params)}).then(function (response) {
173
                     if(response.status == "success"){
173
                     if(response.status == "success"){
174
                         alert("保存成功!");
174
                         alert("保存成功!");