seimin 7 miesięcy temu
rodzic
commit
a5f1cc9386

+ 1 - 2
src/app/views/fuwutai/fuwutai.component.html

@@ -1073,8 +1073,7 @@
1073 1073
       <div class="fixedMenu">
1074 1074
         <div class="menuItems">
1075 1075
           <div class="others">
1076
-            <!-- <div class="item" (click)="visitOrder()">回访-10</div> -->
1077
-            <div class="item">回访-10</div>
1076
+            <div class="item" (click)="visitOrder()">回访-{{visitNum}}</div>
1078 1077
             <div class="item">留言-10</div>
1079 1078
             <div class="item itemLink">通话</div>
1080 1079
           </div>

+ 4 - 4
src/app/views/fuwutai/fuwutai.component.less

@@ -1710,7 +1710,7 @@
1710 1710
       // opacity: .5;
1711 1711
       width: 80px;
1712 1712
       float: left;
1713
-      background: rgba(255, 255, 255, 0.5);
1713
+      // background: rgba(255, 255, 255, 0.5);
1714 1714
       border-radius: 5px 0 0 5px;
1715 1715
       position: relative;
1716 1716
       z-index: 8;
@@ -1718,7 +1718,7 @@
1718 1718
       .fixedMenu {
1719 1719
         border: 1px solid #e5e9ed;
1720 1720
         color: @primary-color;
1721
-        background: rgba(255, 255, 255, 0.5);
1721
+        background: rgb(255, 255, 255);
1722 1722
         text-align: center;
1723 1723
         border-radius: 5px 0 0 5px;
1724 1724
         // box-shadow: -3px 4px 15px rgba(234, 233, 233, .5);
@@ -1784,7 +1784,7 @@
1784 1784
     .right {
1785 1785
       width: 80px;
1786 1786
       float: left;
1787
-      background: rgba(255, 255, 255, 0.5);
1787
+      // background: rgba(255, 255, 255, 0.5);
1788 1788
       border-radius: 5px 0 0 5px;
1789 1789
       position: relative;
1790 1790
       z-index: 8;
@@ -1792,7 +1792,7 @@
1792 1792
       .fixedMenu {
1793 1793
         border: 1px solid #e5e9ed;
1794 1794
         color: @primary-color;
1795
-        background: rgba(255, 255, 255, 0.5);
1795
+        background: rgb(255, 255, 255);
1796 1796
         text-align: center;
1797 1797
         border-radius: 0 5px 5px 0;
1798 1798
 

+ 33 - 0
src/app/views/fuwutai/fuwutai.component.ts

@@ -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) {