|
@@ -733,6 +733,7 @@ export class FuwutaiComponent implements OnInit {
|
733
|
733
|
this.getOrderList(1);
|
734
|
734
|
this.getOrderList(2);
|
735
|
735
|
this.getOrderList(3);
|
|
736
|
+ this.getVisitList();
|
736
|
737
|
this.initControlView();
|
737
|
738
|
this.moveMenu("fixedMenu");
|
738
|
739
|
this.moveMenu("fixedMenuLeft");
|
|
@@ -1313,6 +1314,31 @@ export class FuwutaiComponent implements OnInit {
|
1313
|
1314
|
|
1314
|
1315
|
}
|
1315
|
1316
|
|
|
1317
|
+ // 获取回访列表
|
|
1318
|
+ visitList:any[] = [];
|
|
1319
|
+ visitNum:number = 0;
|
|
1320
|
+ getVisitList(){
|
|
1321
|
+ let postData: any = {
|
|
1322
|
+ idx: 0,
|
|
1323
|
+ sum: 9999,
|
|
1324
|
+ incident: {
|
|
1325
|
+ "groupIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.scopeGroups.map(v => v.id).toString() || undefined),
|
|
1326
|
+ "hosIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.checkedHos.map(v => v.id).toString() || undefined),
|
|
1327
|
+ "urgentType": +this.itsmData.orderScopeRadio + 1,
|
|
1328
|
+ "queryTask": "callback",
|
|
1329
|
+ "assignee": this.tool.getCurrentUserId(),
|
|
1330
|
+ "deleteFlag": 0,
|
|
1331
|
+ },
|
|
1332
|
+ };
|
|
1333
|
+
|
|
1334
|
+ this.mainService
|
|
1335
|
+ .getFetchDataList("simple/data", "incident", postData)
|
|
1336
|
+ .subscribe((result) => {
|
|
1337
|
+ this.visitList = result.list.map(v => ({...v, endDeptsName: v.endDepts ? v.endDepts.map(v => v.dept).toString() : ''}));
|
|
1338
|
+ this.visitNum = result.totalNum;
|
|
1339
|
+ });
|
|
1340
|
+ }
|
|
1341
|
+
|
1316
|
1342
|
// 获取三个状态数据数据
|
1317
|
1343
|
loading1 = true;
|
1318
|
1344
|
loading2 = true;
|
|
@@ -1370,22 +1396,28 @@ export class FuwutaiComponent implements OnInit {
|
1370
|
1396
|
if(stateId == 1){
|
1371
|
1397
|
postData.incidentQuery.incident = {
|
1372
|
1398
|
"groupIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.scopeGroups.map(v => v.id).toString() || undefined),
|
|
1399
|
+ "hosIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.checkedHos.map(v => v.id).toString() || undefined),
|
1373
|
1400
|
"urgentType": +this.itsmData.orderScopeRadio + 1,
|
1374
|
1401
|
"queryTask": "storageAccept",
|
1375
|
1402
|
"assignee": this.tool.getCurrentUserId(),
|
|
1403
|
+ "deleteFlag": 0,
|
1376
|
1404
|
}
|
1377
|
1405
|
}else if(stateId == 2){
|
1378
|
1406
|
postData.incidentQuery.incident = {
|
1379
|
1407
|
"groupIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.scopeGroups.map(v => v.id).toString() || undefined),
|
|
1408
|
+ "hosIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.checkedHos.map(v => v.id).toString() || undefined),
|
1380
|
1409
|
"urgentType": +this.itsmData.orderScopeRadio + 1,
|
1381
|
1410
|
"queryTask": "todoReassign",
|
|
1411
|
+ "deleteFlag": 0,
|
1382
|
1412
|
}
|
1383
|
1413
|
}else if(stateId == 3){
|
1384
|
1414
|
postData.incidentQuery.incident = {
|
1385
|
1415
|
"groupIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.scopeGroups.map(v => v.id).toString() || undefined),
|
|
1416
|
+ "hosIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.checkedHos.map(v => v.id).toString() || undefined),
|
1386
|
1417
|
"urgentType": +this.itsmData.orderScopeRadio + 1,
|
1387
|
1418
|
"queryTask": "doing",
|
1388
|
1419
|
"assignee": this.tool.getCurrentUserId(),
|
|
1420
|
+ "deleteFlag": 0,
|
1389
|
1421
|
}
|
1390
|
1422
|
}
|
1391
|
1423
|
}
|
|
@@ -3774,6 +3806,7 @@ export class FuwutaiComponent implements OnInit {
|
3774
|
3806
|
this.getOrderList(1);
|
3775
|
3807
|
this.getOrderList(2);
|
3776
|
3808
|
this.getOrderList(3);
|
|
3809
|
+ this.getVisitList();
|
3777
|
3810
|
if (this.currentRTab === 0) {
|
3778
|
3811
|
this.getWorkOrders(this.applyDept);
|
3779
|
3812
|
} else if (this.currentRTab === 1) {
|