|
@@ -36,6 +36,7 @@ export class IncidentManagementComponent implements OnInit, OnDestroy {
|
36
|
36
|
gdState: number; //选择工单状态
|
37
|
37
|
gdStates: any; //工单状态列表
|
38
|
38
|
overdueStates: any; //逾期查询列表
|
|
39
|
+ sourceList: any; //报修来源列表
|
39
|
40
|
pageIndex: number = 1; //页码
|
40
|
41
|
listLength: number = 10; //总条数
|
41
|
42
|
pageSize: number = 10; //每页条数
|
|
@@ -111,6 +112,7 @@ export class IncidentManagementComponent implements OnInit, OnDestroy {
|
111
|
112
|
this.initTabs();
|
112
|
113
|
this.getGdStates();
|
113
|
114
|
this.getOverdueStates();
|
|
115
|
+ this.getSourceList();
|
114
|
116
|
this.getIncidentCategoryList();
|
115
|
117
|
this.loading1 = true;
|
116
|
118
|
this.debounceSubject.next(true);
|
|
@@ -358,6 +360,7 @@ export class IncidentManagementComponent implements OnInit, OnDestroy {
|
358
|
360
|
levelCategory: this.validateSearchForm.value.levelCategory ? { id: this.validateSearchForm.value.levelCategory } : undefined,
|
359
|
361
|
acceptUser: this.validateSearchForm.value.acceptUser ? { id: this.validateSearchForm.value.acceptUser } : undefined,
|
360
|
362
|
selectType: this.validateSearchForm.value.selectType || undefined,
|
|
363
|
+ source: this.validateSearchForm.value.sourceValue ? { value: this.validateSearchForm.value.sourceValue } : undefined,
|
361
|
364
|
deleteFlag: this.validateSearchForm.value.deleteFlag,
|
362
|
365
|
candidateGroupId: null,
|
363
|
366
|
},
|
|
@@ -514,6 +517,13 @@ export class IncidentManagementComponent implements OnInit, OnDestroy {
|
514
|
517
|
});
|
515
|
518
|
}
|
516
|
519
|
|
|
520
|
+ // 获取报修来源
|
|
521
|
+ getSourceList() {
|
|
522
|
+ this.mainService.getDictionary("list", "incident_source").subscribe((data) => {
|
|
523
|
+ this.sourceList = data || [];
|
|
524
|
+ });
|
|
525
|
+ }
|
|
526
|
+
|
517
|
527
|
// 展示信息提示框(con:提示信息,success:操作是否成功,promptInfo:操作结果提示信息)
|
518
|
528
|
showPromptModal(con, success, promptInfo?) {
|
519
|
529
|
this.promptModalShow = false;
|
|
@@ -599,6 +609,12 @@ export class IncidentManagementComponent implements OnInit, OnDestroy {
|
599
|
609
|
this.getList(true);
|
600
|
610
|
}
|
601
|
611
|
|
|
612
|
+ // 查看巡检
|
|
613
|
+ viewInspectionDetail(e, id) {
|
|
614
|
+ e.stopPropagation();
|
|
615
|
+ this.router.navigateByUrl("/main/incidentManagement/inspectionExecuteDetail/" + id);
|
|
616
|
+ }
|
|
617
|
+
|
602
|
618
|
// 延期处理-弹窗
|
603
|
619
|
postponeModalShow = false; //弹窗开关
|
604
|
620
|
postpone(e, data) {
|
|
@@ -688,6 +704,7 @@ export class IncidentManagementComponent implements OnInit, OnDestroy {
|
688
|
704
|
levelCategory: this.validateSearchForm.value.levelCategory ? { id: this.validateSearchForm.value.levelCategory } : undefined,
|
689
|
705
|
acceptUser: this.validateSearchForm.value.acceptUser ? { id: this.validateSearchForm.value.acceptUser } : undefined,
|
690
|
706
|
selectType: this.validateSearchForm.value.selectType || undefined,
|
|
707
|
+ source: this.validateSearchForm.value.sourceValue ? { value: this.validateSearchForm.value.sourceValue } : undefined,
|
691
|
708
|
deleteFlag: this.validateSearchForm.value.deleteFlag,
|
692
|
709
|
candidateGroupId: undefined
|
693
|
710
|
},
|
|
@@ -797,6 +814,7 @@ export class IncidentManagementComponent implements OnInit, OnDestroy {
|
797
|
814
|
acceptUser: [null],
|
798
|
815
|
selectType: [null],
|
799
|
816
|
deleteFlag: [0],
|
|
817
|
+ sourceValue: [null],
|
800
|
818
|
});
|
801
|
819
|
}
|
802
|
820
|
|