|
@@ -901,7 +901,11 @@ export class IncidentCreateComponent implements OnInit {
|
901
|
901
|
if(this.buildType === '报修转事件'){
|
902
|
902
|
postData.incident.fromWx = true;
|
903
|
903
|
}
|
904
|
|
- postData.incident = Object.assign({}, this.editOrder, postData.incident);
|
|
904
|
+ if(this.buildType !== '继续建单' && this.buildType !== '编辑事件' && this.buildType !== '报修转事件'){
|
|
905
|
+ postData.incident = Object.assign({}, postData.incident);
|
|
906
|
+ }else{
|
|
907
|
+ postData.incident = Object.assign({}, this.editOrder, postData.incident);
|
|
908
|
+ }
|
905
|
909
|
}
|
906
|
910
|
|
907
|
911
|
this.mainService
|
|
@@ -1010,7 +1014,11 @@ export class IncidentCreateComponent implements OnInit {
|
1010
|
1014
|
if(this.buildType === '报修转事件'){
|
1011
|
1015
|
postData.incident.fromWx = true;
|
1012
|
1016
|
}
|
1013
|
|
- postData.incident = Object.assign({}, this.editOrder, postData.incident);
|
|
1017
|
+ if(this.buildType !== '继续建单' && this.buildType !== '编辑事件' && this.buildType !== '报修转事件'){
|
|
1018
|
+ postData.incident = Object.assign({}, postData.incident);
|
|
1019
|
+ }else{
|
|
1020
|
+ postData.incident = Object.assign({}, this.editOrder, postData.incident);
|
|
1021
|
+ }
|
1014
|
1022
|
}
|
1015
|
1023
|
console.log(postData);
|
1016
|
1024
|
// return;
|
|
@@ -1080,7 +1088,11 @@ export class IncidentCreateComponent implements OnInit {
|
1080
|
1088
|
if(this.buildType === '报修转事件'){
|
1081
|
1089
|
postData.incident.fromWx = true;
|
1082
|
1090
|
}
|
1083
|
|
- postData.incident = Object.assign({}, this.editOrder, postData.incident);
|
|
1091
|
+ if(this.buildType !== '继续建单' && this.buildType !== '编辑事件' && this.buildType !== '报修转事件'){
|
|
1092
|
+ postData.incident = Object.assign({}, postData.incident);
|
|
1093
|
+ }else{
|
|
1094
|
+ postData.incident = Object.assign({}, this.editOrder, postData.incident);
|
|
1095
|
+ }
|
1084
|
1096
|
}
|
1085
|
1097
|
console.log(postData);
|
1086
|
1098
|
// return;
|
|
@@ -1303,7 +1315,7 @@ export class IncidentCreateComponent implements OnInit {
|
1303
|
1315
|
this.solutionId = undefined;
|
1304
|
1316
|
}
|
1305
|
1317
|
|
1306
|
|
- // 重置新建工单数据-继续建单-编辑
|
|
1318
|
+ // 重置新建工单数据-继续建单-编辑-报修转事件
|
1307
|
1319
|
resetOrderData2(){
|
1308
|
1320
|
this.fileList = [];
|
1309
|
1321
|
this.repairImgs = [];
|
|
@@ -1313,7 +1325,7 @@ export class IncidentCreateComponent implements OnInit {
|
1313
|
1325
|
// 打开新建工单
|
1314
|
1326
|
async showNewOrder(des = '', phone = '', isInit = false, buildType = '') {
|
1315
|
1327
|
this.buildType = buildType;
|
1316
|
|
- if(this.buildType !== '编辑事件'){
|
|
1328
|
+ if(this.buildType !== '继续建单' && this.buildType !== '编辑事件' && this.buildType !== '报修转事件'){
|
1317
|
1329
|
this.resetOrderData();
|
1318
|
1330
|
}else{
|
1319
|
1331
|
this.resetOrderData2();
|