|
@@ -456,8 +456,8 @@ export class FuwutaiComponent implements OnInit {
|
456
|
456
|
if (data["status"] == 200) {
|
457
|
457
|
this.newOrderShow = false; //关闭弹窗
|
458
|
458
|
if (go === "&go&") {
|
459
|
|
- this.applyDept = data["startDept"].id;
|
460
|
|
- this.applyStartDept = data["startDept"];
|
|
459
|
+ this.applyDept = data["createDept"].id;
|
|
460
|
+ this.applyStartDept = data["createDept"];
|
461
|
461
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
462
|
462
|
this.showPromptModal("建单", true, "", "closeGo");
|
463
|
463
|
} else {
|
|
@@ -470,8 +470,8 @@ export class FuwutaiComponent implements OnInit {
|
470
|
470
|
else if(data["status"] == 1000033){
|
471
|
471
|
this.newOrderShow = false; //关闭弹窗
|
472
|
472
|
if (go === "&go&") {
|
473
|
|
- this.applyDept = data["startDept"].id;
|
474
|
|
- this.applyStartDept = data["startDept"];
|
|
473
|
+ this.applyDept = data["createDept"].id;
|
|
474
|
+ this.applyStartDept = data["createDept"];
|
475
|
475
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
476
|
476
|
}
|
477
|
477
|
//重复建单那策略
|
|
@@ -555,8 +555,8 @@ export class FuwutaiComponent implements OnInit {
|
555
|
555
|
if (data["status"] == 200) {
|
556
|
556
|
this.newOrderShow = false; //关闭弹窗
|
557
|
557
|
if (go === "&go&") {
|
558
|
|
- this.applyDept = data["startDept"].id;
|
559
|
|
- this.applyStartDept = data["startDept"];
|
|
558
|
+ this.applyDept = data["createDept"].id;
|
|
559
|
+ this.applyStartDept = data["createDept"];
|
560
|
560
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
561
|
561
|
this.showPromptModal("建单", true, "", "closeGo");
|
562
|
562
|
} else {
|
|
@@ -568,8 +568,8 @@ export class FuwutaiComponent implements OnInit {
|
568
|
568
|
} else if(data["status"] == 100042){
|
569
|
569
|
this.newOrderShow = false; //关闭弹窗
|
570
|
570
|
if (go === "&go&") {
|
571
|
|
- this.applyDept = data["startDept"].id;
|
572
|
|
- this.applyStartDept = data["startDept"];
|
|
571
|
+ this.applyDept = data["createDept"].id;
|
|
572
|
+ this.applyStartDept = data["createDept"];
|
573
|
573
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
574
|
574
|
this.showPromptModal("建单", false, data["msg"], "closeGo");
|
575
|
575
|
}else{
|
|
@@ -579,8 +579,8 @@ export class FuwutaiComponent implements OnInit {
|
579
|
579
|
else if(data["status"] == 1000033){
|
580
|
580
|
this.newOrderShow = false; //关闭弹窗
|
581
|
581
|
if (go === "&go&") {
|
582
|
|
- this.applyDept = data["startDept"].id;
|
583
|
|
- this.applyStartDept = data["startDept"];
|
|
582
|
+ this.applyDept = data["createDept"].id;
|
|
583
|
+ this.applyStartDept = data["createDept"];
|
584
|
584
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
585
|
585
|
}
|
586
|
586
|
//重复建单那策略
|
|
@@ -620,8 +620,8 @@ export class FuwutaiComponent implements OnInit {
|
620
|
620
|
if (data["status"] == 200) {
|
621
|
621
|
this.newOrderShow = false; //关闭弹窗
|
622
|
622
|
if (go === "&go&") {
|
623
|
|
- this.applyDept = data["startDept"].id;
|
624
|
|
- this.applyStartDept = data["startDept"];
|
|
623
|
+ this.applyDept = data["createDept"].id;
|
|
624
|
+ this.applyStartDept = data["createDept"];
|
625
|
625
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
626
|
626
|
this.showPromptModal("建单", true, "", "closeGo");
|
627
|
627
|
} else {
|
|
@@ -633,8 +633,8 @@ export class FuwutaiComponent implements OnInit {
|
633
|
633
|
}else if(data["status"] == 1000033){
|
634
|
634
|
this.newOrderShow = false; //关闭弹窗
|
635
|
635
|
if (go === "&go&") {
|
636
|
|
- this.applyDept = data["startDept"].id;
|
637
|
|
- this.applyStartDept = data["startDept"];
|
|
636
|
+ this.applyDept = data["createDept"].id;
|
|
637
|
+ this.applyStartDept = data["createDept"];
|
638
|
638
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
639
|
639
|
}
|
640
|
640
|
//重复建单那策略
|
|
@@ -695,8 +695,8 @@ export class FuwutaiComponent implements OnInit {
|
695
|
695
|
if (data["status"] == 200) {
|
696
|
696
|
this.newOrderShow = false; //关闭弹窗
|
697
|
697
|
if (go === "&go&") {
|
698
|
|
- this.applyDept = data["startDept"].id;
|
699
|
|
- this.applyStartDept = data["startDept"];
|
|
698
|
+ this.applyDept = data["createDept"].id;
|
|
699
|
+ this.applyStartDept = data["createDept"];
|
700
|
700
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
701
|
701
|
this.showPromptModal("建单", true, "", "closeGo");
|
702
|
702
|
} else {
|
|
@@ -709,8 +709,8 @@ export class FuwutaiComponent implements OnInit {
|
709
|
709
|
else if(data["status"] == 1000033){
|
710
|
710
|
this.newOrderShow = false; //关闭弹窗
|
711
|
711
|
if (go === "&go&") {
|
712
|
|
- this.applyDept = data["startDept"].id;
|
713
|
|
- this.applyStartDept = data["startDept"];
|
|
712
|
+ this.applyDept = data["createDept"].id;
|
|
713
|
+ this.applyStartDept = data["createDept"];
|
714
|
714
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
715
|
715
|
}
|
716
|
716
|
//重复建单那策略
|
|
@@ -765,8 +765,8 @@ export class FuwutaiComponent implements OnInit {
|
765
|
765
|
if (data["status"] == 200) {
|
766
|
766
|
this.newOrderShow = false; //关闭弹窗
|
767
|
767
|
if (go === "&go&") {
|
768
|
|
- this.applyDept = data["startDept"].id;
|
769
|
|
- this.applyStartDept = data["startDept"];
|
|
768
|
+ this.applyDept = data["createDept"].id;
|
|
769
|
+ this.applyStartDept = data["createDept"];
|
770
|
770
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
771
|
771
|
this.showPromptModal("建单", true, "", "closeGo");
|
772
|
772
|
} else {
|
|
@@ -779,8 +779,8 @@ export class FuwutaiComponent implements OnInit {
|
779
|
779
|
else if(data["status"] == 1000033){
|
780
|
780
|
this.newOrderShow = false; //关闭弹窗
|
781
|
781
|
if (go === "&go&") {
|
782
|
|
- this.applyDept = data["startDept"].id;
|
783
|
|
- this.applyStartDept = data["startDept"];
|
|
782
|
+ this.applyDept = data["createDept"].id;
|
|
783
|
+ this.applyStartDept = data["createDept"];
|
784
|
784
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data["phone"];
|
785
|
785
|
}
|
786
|
786
|
//重复建单那策略
|
|
@@ -1269,6 +1269,7 @@ export class FuwutaiComponent implements OnInit {
|
1269
|
1269
|
console.log(jso);
|
1270
|
1270
|
_this.incidentModel = { repairIncidentType: 'dept' };
|
1271
|
1271
|
_this.callNumber = _this.incidentModel.incomingPhone = jso.caller;//来电的电话
|
|
1272
|
+ _this.contactsPhone = jso.caller
|
1272
|
1273
|
_this.incidentModel.callID = jso.crs;//来电的话机id
|
1273
|
1274
|
if (jso) {
|
1274
|
1275
|
console.log('呼入坐席成功,请摘机-----seimin');
|
|
@@ -1665,7 +1666,7 @@ export class FuwutaiComponent implements OnInit {
|
1665
|
1666
|
this.incidentModel = { repairIncidentType: 'dept' };
|
1666
|
1667
|
this.incidentMsg = {};
|
1667
|
1668
|
this.incidentModel.callID = data.callId || undefined;
|
1668
|
|
-
|
|
1669
|
+ this.contactsPhone = data.phone;
|
1669
|
1670
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data.phone;
|
1670
|
1671
|
this.searchBxDept();
|
1671
|
1672
|
} else if (data.status == 201 && data.phone === "") {
|
|
@@ -1948,7 +1949,14 @@ export class FuwutaiComponent implements OnInit {
|
1948
|
1949
|
this.itsmOrders = [];
|
1949
|
1950
|
return;
|
1950
|
1951
|
}
|
1951
|
|
-
|
|
1952
|
+ if(!this.incidentModel.department){
|
|
1953
|
+ this.itsmOrders = [];
|
|
1954
|
+ return;
|
|
1955
|
+ }
|
|
1956
|
+ if(this.incidentModel.repairIncidentType === 'public'){
|
|
1957
|
+ this.itsmOrders = [];
|
|
1958
|
+ return
|
|
1959
|
+ }
|
1952
|
1960
|
let postData = {
|
1953
|
1961
|
incident: {
|
1954
|
1962
|
"deleteFlag": 0,
|
|
@@ -1974,6 +1982,9 @@ export class FuwutaiComponent implements OnInit {
|
1974
|
1982
|
// 获取政务值班近期记录
|
1975
|
1983
|
itsmZwOrders:any=[];
|
1976
|
1984
|
getZwOrders(){
|
|
1985
|
+ if(!this.incidentModel.callID){
|
|
1986
|
+ return
|
|
1987
|
+ }
|
1977
|
1988
|
let postData = {
|
1978
|
1989
|
governmentDuty: {
|
1979
|
1990
|
callAccept: this.incidentModel.callID || undefined,
|
|
@@ -1997,7 +2008,7 @@ export class FuwutaiComponent implements OnInit {
|
1997
|
2008
|
}else{
|
1998
|
2009
|
delete postData.governmentDuty.province
|
1999
|
2010
|
delete postData.governmentDuty.city
|
2000
|
|
- delete postData.governmentDuty.province
|
|
2011
|
+ delete postData.governmentDuty.district
|
2001
|
2012
|
}
|
2002
|
2013
|
this.loading6 = true;
|
2003
|
2014
|
this.mainService
|
|
@@ -2916,6 +2927,7 @@ export class FuwutaiComponent implements OnInit {
|
2916
|
2927
|
tabClick(key, isInit = false, patient?) {
|
2917
|
2928
|
let preCurrentTabIndex = this.currentTabIndex;
|
2918
|
2929
|
this.currentTabIndex = key;
|
|
2930
|
+ console.log(1112233,this.currentTabIndex)
|
2919
|
2931
|
this.radioValueQt = null;
|
2920
|
2932
|
this.startDeptQt = null;
|
2921
|
2933
|
this.endDeptQt = null;
|
|
@@ -2961,32 +2973,32 @@ export class FuwutaiComponent implements OnInit {
|
2961
|
2973
|
// }else
|
2962
|
2974
|
|
2963
|
2975
|
if(this.currentTabIndex === '故障报修'){
|
2964
|
|
- if(this.incidentModel.department){
|
2965
|
|
- this.rightTitle_tab = [
|
2966
|
|
- { id: 2, name: '近期维修' },
|
2967
|
|
- { id: 3, name: '知识库' },
|
2968
|
|
- ]
|
2969
|
|
- this.rightTitleHandler(this.rightTitle_tab[0].id);
|
2970
|
|
- }
|
|
2976
|
+ this.incidentModel.department = null;
|
|
2977
|
+ this.rightTitle_tab = [
|
|
2978
|
+ { id: 2, name: '近期维修' },
|
|
2979
|
+ { id: 3, name: '知识库' },
|
|
2980
|
+ ]
|
|
2981
|
+ this.rightTitleHandler(this.rightTitle_tab[0].id);
|
|
2982
|
+
|
2971
|
2983
|
|
2972
|
2984
|
let deptObj = this.applicationDepartmentList.find(v => v.id == this.applyDept);
|
2973
|
2985
|
|
2974
|
2986
|
if(this.incidentModel.department != this.applyDept && (!isInit || !this.buildType)){
|
2975
|
|
- this.incidentModel.department = this.applyDept;
|
2976
|
|
- this.searchApplicationDepartment('itsm', deptObj ? deptObj.dept : '', undefined, this.applyDept);
|
|
2987
|
+ if(this.incidentModel.repairIncidentType === 'dept'){
|
|
2988
|
+ this.incidentModel.department = this.applyDept;
|
|
2989
|
+ this.searchApplicationDepartment('itsm', deptObj ? deptObj.dept : '', undefined, this.applyDept);
|
|
2990
|
+ }
|
2977
|
2991
|
}
|
2978
|
2992
|
}else if (this.currentTabIndex === '政务值班'){
|
2979
|
2993
|
this.rightTitle_tab = [
|
2980
|
2994
|
{ id: 4, name: '近期记录' },
|
2981
|
2995
|
]
|
2982
|
2996
|
this.rightTitleHandler(4);
|
2983
|
|
-
|
2984
|
|
- let deptObj = this.applicationDepartmentList.find(v => v.id == this.applyDept);
|
2985
|
|
-
|
2986
|
|
- if(this.incidentModel.department != this.applyDept && (!isInit || !this.buildType)){
|
2987
|
|
- this.incidentModel.department = this.applyDept;
|
2988
|
|
- this.searchApplicationDepartment('itsm', deptObj ? deptObj.dept : '', undefined, this.applyDept);
|
2989
|
|
- }
|
|
2997
|
+ }else{
|
|
2998
|
+ this.rightTitle_tab = [
|
|
2999
|
+ { id: 0, name: '近期配送' },
|
|
3000
|
+ ]
|
|
3001
|
+ this.rightTitleHandler(this.rightTitle_tab[0].id);
|
2990
|
3002
|
}
|
2991
|
3003
|
}
|
2992
|
3004
|
|
|
@@ -3063,19 +3075,29 @@ export class FuwutaiComponent implements OnInit {
|
3063
|
3075
|
contactsPhone: this.contactsPhone,
|
3064
|
3076
|
contacts: this.contacts,
|
3065
|
3077
|
complainant: this.complainant,
|
3066
|
|
- detailedAddress: this.complainant,
|
|
3078
|
+ detailedAddress: this.detailedAddress,
|
3067
|
3079
|
province: {
|
3068
|
|
- id: this.province[0]
|
|
3080
|
+ id: null
|
3069
|
3081
|
},
|
3070
|
3082
|
city: {
|
3071
|
|
- id: this.province[1]
|
|
3083
|
+ id: null
|
3072
|
3084
|
},
|
3073
|
3085
|
district: {
|
3074
|
|
- id: this.province[2]
|
|
3086
|
+ id: null
|
3075
|
3087
|
},
|
3076
|
|
- callAccept: this.incidentModel.callID || undefined
|
|
3088
|
+ callAccept: this.incidentModel.callID || undefined,
|
|
3089
|
+ platform: '3'
|
3077
|
3090
|
}
|
3078
|
3091
|
};
|
|
3092
|
+ if(this.province.length>0){
|
|
3093
|
+ data.governmentDuty.province.id = this.province[0]
|
|
3094
|
+ data.governmentDuty.city.id = this.province[1]
|
|
3095
|
+ data.governmentDuty.district.id = this.province[2]
|
|
3096
|
+ }else{
|
|
3097
|
+ delete data.governmentDuty.province
|
|
3098
|
+ delete data.governmentDuty.city
|
|
3099
|
+ delete data.governmentDuty.district
|
|
3100
|
+ }
|
3079
|
3101
|
that.zwLoading = true;
|
3080
|
3102
|
that.mainService
|
3081
|
3103
|
.dataPost("addData", "governmentDuty", data)
|
|
@@ -3084,6 +3106,7 @@ export class FuwutaiComponent implements OnInit {
|
3084
|
3106
|
that.initZwForm();
|
3085
|
3107
|
if (data.status == 200) {
|
3086
|
3108
|
this.getZwOrders();
|
|
3109
|
+ this.newOrderShow = false;
|
3087
|
3110
|
that.showPromptModal("新增", true, "");
|
3088
|
3111
|
} else {
|
3089
|
3112
|
that.showPromptModal("新增", false, data.msg);
|
|
@@ -3691,11 +3714,12 @@ export class FuwutaiComponent implements OnInit {
|
3691
|
3714
|
}
|
3692
|
3715
|
// 选择报修类型
|
3693
|
3716
|
changeRepairIncidentType(value){
|
3694
|
|
- this.incidentModel.department = undefined;
|
|
3717
|
+ // this.incidentModel.department = undefined;
|
3695
|
3718
|
this.incidentMsg.deptManyPhone = '';
|
3696
|
3719
|
|
3697
|
3720
|
this.isRelatedDepartment = value !== 'public';
|
3698
|
3721
|
this.changeApplyRelatedDepartment(this.isRelatedDepartment);
|
|
3722
|
+ this.rightTitleHandler(this.rightTitle_tab[0].id);
|
3699
|
3723
|
}
|
3700
|
3724
|
// 楼栋列表
|
3701
|
3725
|
applicationBuildingList:any[] = [];
|
|
@@ -4556,9 +4580,9 @@ export class FuwutaiComponent implements OnInit {
|
4556
|
4580
|
// 任务类型是否显示操作项
|
4557
|
4581
|
let arr = this.workTypesArrange;
|
4558
|
4582
|
this.workTypesFlag = arr.length >= 5;
|
4559
|
|
- // 默认选中第一项
|
|
4583
|
+ // 默认选中故障现象
|
4560
|
4584
|
if (arr.length > 0) {
|
4561
|
|
- isFirst ? this.tabClick(arr[0].key, isInit) : this.tabClick(arr[arr.length - 1].key, isInit);
|
|
4585
|
+ isFirst ? this.tabClick(arr[0].key, isInit) : this.tabClick(arr[arr.length - 2].key, isInit);
|
4562
|
4586
|
}
|
4563
|
4587
|
}
|
4564
|
4588
|
});
|
|
@@ -5427,8 +5451,8 @@ export class FuwutaiComponent implements OnInit {
|
5427
|
5451
|
}
|
5428
|
5452
|
else if(result["status"] == 1000033){
|
5429
|
5453
|
if (this.goType === "&go&") {
|
5430
|
|
- this.applyDept = result["startDept"].id;
|
5431
|
|
- this.applyStartDept = result["startDept"];
|
|
5454
|
+ this.applyDept = result["createDept"].id;
|
|
5455
|
+ this.applyStartDept = result["createDept"];
|
5432
|
5456
|
this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = result["phone"];
|
5433
|
5457
|
}
|
5434
|
5458
|
//重复建单那策略
|