Browse Source

回访暂存

seimin 7 months ago
parent
commit
a5f1cc9386

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

@@ -1073,8 +1073,7 @@
1073
       <div class="fixedMenu">
1073
       <div class="fixedMenu">
1074
         <div class="menuItems">
1074
         <div class="menuItems">
1075
           <div class="others">
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
             <div class="item">留言-10</div>
1077
             <div class="item">留言-10</div>
1079
             <div class="item itemLink">通话</div>
1078
             <div class="item itemLink">通话</div>
1080
           </div>
1079
           </div>

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

@@ -1710,7 +1710,7 @@
1710
       // opacity: .5;
1710
       // opacity: .5;
1711
       width: 80px;
1711
       width: 80px;
1712
       float: left;
1712
       float: left;
1713
-      background: rgba(255, 255, 255, 0.5);
1713
+      // background: rgba(255, 255, 255, 0.5);
1714
       border-radius: 5px 0 0 5px;
1714
       border-radius: 5px 0 0 5px;
1715
       position: relative;
1715
       position: relative;
1716
       z-index: 8;
1716
       z-index: 8;
@@ -1718,7 +1718,7 @@
1718
       .fixedMenu {
1718
       .fixedMenu {
1719
         border: 1px solid #e5e9ed;
1719
         border: 1px solid #e5e9ed;
1720
         color: @primary-color;
1720
         color: @primary-color;
1721
-        background: rgba(255, 255, 255, 0.5);
1721
+        background: rgb(255, 255, 255);
1722
         text-align: center;
1722
         text-align: center;
1723
         border-radius: 5px 0 0 5px;
1723
         border-radius: 5px 0 0 5px;
1724
         // box-shadow: -3px 4px 15px rgba(234, 233, 233, .5);
1724
         // box-shadow: -3px 4px 15px rgba(234, 233, 233, .5);
@@ -1784,7 +1784,7 @@
1784
     .right {
1784
     .right {
1785
       width: 80px;
1785
       width: 80px;
1786
       float: left;
1786
       float: left;
1787
-      background: rgba(255, 255, 255, 0.5);
1787
+      // background: rgba(255, 255, 255, 0.5);
1788
       border-radius: 5px 0 0 5px;
1788
       border-radius: 5px 0 0 5px;
1789
       position: relative;
1789
       position: relative;
1790
       z-index: 8;
1790
       z-index: 8;
@@ -1792,7 +1792,7 @@
1792
       .fixedMenu {
1792
       .fixedMenu {
1793
         border: 1px solid #e5e9ed;
1793
         border: 1px solid #e5e9ed;
1794
         color: @primary-color;
1794
         color: @primary-color;
1795
-        background: rgba(255, 255, 255, 0.5);
1795
+        background: rgb(255, 255, 255);
1796
         text-align: center;
1796
         text-align: center;
1797
         border-radius: 0 5px 5px 0;
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
     this.getOrderList(1);
733
     this.getOrderList(1);
734
     this.getOrderList(2);
734
     this.getOrderList(2);
735
     this.getOrderList(3);
735
     this.getOrderList(3);
736
+    this.getVisitList();
736
     this.initControlView();
737
     this.initControlView();
737
     this.moveMenu("fixedMenu");
738
     this.moveMenu("fixedMenu");
738
     this.moveMenu("fixedMenuLeft");
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
   loading1 = true;
1343
   loading1 = true;
1318
   loading2 = true;
1344
   loading2 = true;
@@ -1370,22 +1396,28 @@ export class FuwutaiComponent implements OnInit {
1370
       if(stateId == 1){
1396
       if(stateId == 1){
1371
         postData.incidentQuery.incident = {
1397
         postData.incidentQuery.incident = {
1372
           "groupIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.scopeGroups.map(v => v.id).toString() || undefined),
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
           "urgentType": +this.itsmData.orderScopeRadio + 1,
1400
           "urgentType": +this.itsmData.orderScopeRadio + 1,
1374
           "queryTask": "storageAccept",
1401
           "queryTask": "storageAccept",
1375
           "assignee": this.tool.getCurrentUserId(),
1402
           "assignee": this.tool.getCurrentUserId(),
1403
+          "deleteFlag": 0,
1376
         }
1404
         }
1377
       }else if(stateId == 2){
1405
       }else if(stateId == 2){
1378
         postData.incidentQuery.incident = {
1406
         postData.incidentQuery.incident = {
1379
           "groupIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.scopeGroups.map(v => v.id).toString() || undefined),
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
           "urgentType": +this.itsmData.orderScopeRadio + 1,
1409
           "urgentType": +this.itsmData.orderScopeRadio + 1,
1381
           "queryTask": "todoReassign",
1410
           "queryTask": "todoReassign",
1411
+          "deleteFlag": 0,
1382
         }
1412
         }
1383
       }else if(stateId == 3){
1413
       }else if(stateId == 3){
1384
         postData.incidentQuery.incident = {
1414
         postData.incidentQuery.incident = {
1385
           "groupIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.scopeGroups.map(v => v.id).toString() || undefined),
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
           "urgentType": +this.itsmData.orderScopeRadio + 1,
1417
           "urgentType": +this.itsmData.orderScopeRadio + 1,
1387
           "queryTask": "doing",
1418
           "queryTask": "doing",
1388
           "assignee": this.tool.getCurrentUserId(),
1419
           "assignee": this.tool.getCurrentUserId(),
1420
+          "deleteFlag": 0,
1389
         }
1421
         }
1390
       }
1422
       }
1391
     }
1423
     }
@@ -3774,6 +3806,7 @@ export class FuwutaiComponent implements OnInit {
3774
       this.getOrderList(1);
3806
       this.getOrderList(1);
3775
       this.getOrderList(2);
3807
       this.getOrderList(2);
3776
       this.getOrderList(3);
3808
       this.getOrderList(3);
3809
+      this.getVisitList();
3777
       if (this.currentRTab === 0) {
3810
       if (this.currentRTab === 0) {
3778
         this.getWorkOrders(this.applyDept);
3811
         this.getWorkOrders(this.applyDept);
3779
       } else if (this.currentRTab === 1) {
3812
       } else if (this.currentRTab === 1) {