|
@@ -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"){
|