|
@@ -3794,10 +3794,12 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
|
3794
|
3794
|
if(modelData){
|
3795
|
3795
|
//报修生成事件,数据回显
|
3796
|
3796
|
//来电生成事件,数据回显
|
|
3797
|
+ //暂存生成事件,数据回显
|
3797
|
3798
|
$scope.categorySelect = modelData.incident.category;
|
3798
|
3799
|
$scope.jry_modelLeft = modelData.incident.category?modelData.incident.category.mutiCategory:'';
|
3799
|
3800
|
console.log($scope.jry_deptData)
|
3800
|
3801
|
$scope.incidentModel = {
|
|
3802
|
+ id: modelData.incident.id || undefined, //事件id
|
3801
|
3803
|
department: modelData.incident.department, //报修科室
|
3802
|
3804
|
requester: "", //报修人
|
3803
|
3805
|
contacts: modelData.incident.contacts, //联系人
|
|
@@ -3932,6 +3934,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
|
3932
|
3934
|
// };
|
3933
|
3935
|
var postData = {
|
3934
|
3936
|
"incident": {
|
|
3937
|
+ "id": $scope.incidentModel.id || undefined,
|
3935
|
3938
|
"deleteFlag": 0,
|
3936
|
3939
|
"duty":$scope.selectedDuty?$scope.selectedDuty:undefined,
|
3937
|
3940
|
"department": $scope.incidentModel.department||undefined,
|
|
@@ -4015,6 +4018,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
|
4015
|
4018
|
var repair_main = JSON.parse(sessionStorage.getItem('repair_main'));
|
4016
|
4019
|
var postData = {
|
4017
|
4020
|
"incident": {
|
|
4021
|
+ "id": $scope.incidentModel.id || undefined,
|
4018
|
4022
|
"deleteFlag": 0,
|
4019
|
4023
|
"duty":$scope.selectedDuty?$scope.selectedDuty:undefined,
|
4020
|
4024
|
"department": $scope.incidentModel.department||undefined,
|
|
@@ -4425,6 +4429,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
|
4425
|
4429
|
// };
|
4426
|
4430
|
var postData = {
|
4427
|
4431
|
"incident": {
|
|
4432
|
+ "id": scope.incidentModel.id || undefined,
|
4428
|
4433
|
"deleteFlag": 0,
|
4429
|
4434
|
"duty":scope.selectedDuty?scope.selectedDuty:undefined,
|
4430
|
4435
|
"requester":$scope.incidentModel.requester||undefined,
|