Parcourir la source

服务台ITSM待接单

seimin il y a 7 mois
Parent
commit
2d7a81337a

+ 1 - 1
proxy.conf.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "/service": {
3
-		"target": "http://192.168.4.105",
3
+		"target": "http://192.168.3.108",
4 4
     "logLevel": "debug",
5 5
     "changeOrigin": true,
6 6
     "pathRewrite": {

+ 7 - 10
src/app/views/fuwutai/fuwutai.component.html

@@ -252,7 +252,7 @@
252 252
                 <div class="left_cots">
253 253
                   <div class="gongdan" (click)="batchDispatchSelect(!data.checked, data.data.id)">
254 254
                     <span class="left gongdan_name">
255
-                      <span [ngClass]="priorityColor(data.priorityId)">{{ data.data.priorityDTO?.name }}</span>{{ data.data.incidentsign }} <span nz-tooltip [nzTooltipTitle]="data.data.hosName + data.data.department?.dept">{{ data.data.hosName }}{{ data.data.department?.dept }}</span>
255
+                      <span [ngClass]="priorityColor(data.data.priorityId)">{{ data.data.priorityDTO?.name }} </span>{{ data.data.incidentsign }} <span nz-tooltip [nzTooltipTitle]="data.data.hosName + data.data.department?.dept">{{ data.data.hosName }}{{ data.data.department?.dept }}</span>
256 256
                     </span>
257 257
                     <div class="right_all">
258 258
                       <span class="right">
@@ -468,7 +468,7 @@
468 468
                 <div class="left_cots">
469 469
                   <div class="gongdan" (click)="batchDispatchSelect(!data.checked, data.data.id)">
470 470
                     <span class="left gongdan_name">
471
-                      <span [ngClass]="priorityColor(data.priorityId)">{{ data.data.priorityDTO?.name }}</span>{{ data.data.incidentsign }} <span nz-tooltip [nzTooltipTitle]="data.data.hosName + data.data.department?.dept">{{ data.data.hosName }}{{ data.data.department?.dept }}</span>
471
+                      <span [ngClass]="priorityColor(data.data.priorityId)">{{ data.data.priorityDTO?.name }} </span>{{ data.data.incidentsign }} <span nz-tooltip [nzTooltipTitle]="data.data.hosName + data.data.department?.dept">{{ data.data.hosName }}{{ data.data.department?.dept }}</span>
472 472
                     </span>
473 473
                     <div class="right_all">
474 474
                       <span class="right">
@@ -2209,7 +2209,7 @@
2209 2209
                 </overlay-scrollbars>
2210 2210
               </ng-container>
2211 2211
               <!-- 故障报修 -->
2212
-              <overlay-scrollbars #osComponentRef15 class="bottom_req" *ngIf="currentTabIndex == 99999">
2212
+              <overlay-scrollbars #osComponentRef15 class="bottom_req" *ngIf="currentTabIndex === '99999'">
2213 2213
                 <div class="req">
2214 2214
                   <div class="row">
2215 2215
                     <div class="col flex4">
@@ -2472,12 +2472,7 @@
2472 2472
               [ngStyle]="{ height: '100%' }"
2473 2473
             >
2474 2474
               <div class="list listsTypeColor clearfix">
2475
-                <nz-table
2476
-                  [nzData]="patientLogList"
2477
-                  nzSize="middle"
2478
-                  [nzShowPagination]="false"
2479
-                  [nzLoading]="loading5"
2480
-                >
2475
+                <nz-table class="w100" [nzData]="patientLogList" nzSize="middle" [nzShowPagination]="false" [nzLoading]="loading5">
2481 2476
                   <thead>
2482 2477
                     <tr class="thead">
2483 2478
                       <th nzWidth="10%">类型</th>
@@ -2681,7 +2676,7 @@
2681 2676
     (hideDelModalEvent)="closeDelOrderModal()"
2682 2677
     [btnLoading]="btnLoading"
2683 2678
     (confirmDelEvent)="confirmDel()"
2684
-    content="您确认要删除此工单吗?"
2679
+    content="您确认要删除吗?"
2685 2680
   ></app-dialog-delete>
2686 2681
   <!-- 删除模态框 -->
2687 2682
   <app-dialog-delete
@@ -2753,3 +2748,5 @@
2753 2748
 
2754 2749
 <!-- 换人处理 -->
2755 2750
 <app-incident-substitution [id]="coopData.id" *ngIf="substitutionModalShow" (closeModelHs)="closeSubstitutionModelOrder($event)" (confirmModelHs)="confirmSubstitutionModelOrder($event)"></app-incident-substitution>
2751
+
2752
+<app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="btnLoading" (confirmDelEvent)="confirmDelFn()" [content]="tipsMsg1"></app-dialog-delete>

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

@@ -51,7 +51,7 @@
51 51
 }
52 52
 
53 53
 .thead {
54
-  background-image: linear-gradient(to right, @bg-start, @bg-end);
54
+  background-image: linear-gradient(to right, @bg-start, @bg-end)!important;
55 55
 
56 56
   th {
57 57
     background: transparent;
@@ -1540,7 +1540,7 @@
1540 1540
       position: relative;
1541 1541
     }
1542 1542
     .thead {
1543
-      background-image: linear-gradient(to right, @bg-start, @bg-end);
1543
+      background-image: linear-gradient(to right, @bg-start, @bg-end)!important;
1544 1544
       th {
1545 1545
         text-align: center !important;
1546 1546
         color: #fff;

+ 64 - 4
src/app/views/fuwutai/fuwutai.component.ts

@@ -1346,7 +1346,7 @@ export class FuwutaiComponent implements OnInit {
1346 1346
           "queryTask": "todoReassign",
1347 1347
         }
1348 1348
       }else if(stateId == 3){
1349
-        return;
1349
+        delete postData.incidentQuery;
1350 1350
       }
1351 1351
     }
1352 1352
 
@@ -1834,6 +1834,7 @@ export class FuwutaiComponent implements OnInit {
1834 1834
   }
1835 1835
   // 点击tab切换
1836 1836
   tabClick(key) {
1837
+    let preCurrentTabIndex = this.currentTabIndex;
1837 1838
     this.currentTabIndex = key;
1838 1839
     this.radioValueQt = null;
1839 1840
     this.startDeptQt = null;
@@ -1853,7 +1854,7 @@ export class FuwutaiComponent implements OnInit {
1853 1854
     this.deptQtList["startStatus"] = 0;
1854 1855
     this.deptQtList["endStatus"] = 0;
1855 1856
 
1856
-    if(this.currentTabIndex == '99999'){
1857
+    if(this.currentTabIndex === '99999'){
1857 1858
       if(this.incidentModel.department){
1858 1859
         this.rightTitle_tab = [
1859 1860
           { id: 2, name: '近期维修' },
@@ -1874,7 +1875,7 @@ export class FuwutaiComponent implements OnInit {
1874 1875
       if(!this.incidentModel.source && source){
1875 1876
         this.incidentModel.source = source.id;
1876 1877
       }
1877
-    }else{
1878
+    }else if(preCurrentTabIndex === '99999'){
1878 1879
       if(this.applyDept){
1879 1880
         this.rightTitle_tab = [
1880 1881
           { id: 0, name: '近期配送' },
@@ -3186,6 +3187,11 @@ export class FuwutaiComponent implements OnInit {
3186 3187
     this.yyDateZy = addDays(this.yyDateZy, 1);
3187 3188
     this.yyDateChange(this.yyDateZy);
3188 3189
   }
3190
+  // 下一日(其他临床服务)
3191
+  nextDay() {
3192
+    this.yyDate = addDays(this.yyDate, 1);
3193
+    this.yyDateChange(this.yyDate);
3194
+  }
3189 3195
   // 禁用日期(患者其他服务)
3190 3196
   disabledyyDateZy = (current: Date): boolean => {
3191 3197
     return differenceInCalendarDays(current, new Date()) < 0;
@@ -3718,6 +3724,7 @@ export class FuwutaiComponent implements OnInit {
3718 3724
     this.back = back || "";
3719 3725
     setTimeout(() => {
3720 3726
       this.showPromptModalRefresh();
3727
+      this.promptModalShow = true;
3721 3728
     }, 100);
3722 3729
   }
3723 3730
 
@@ -3736,7 +3743,6 @@ export class FuwutaiComponent implements OnInit {
3736 3743
       } else if (this.currentRTab === 3) {
3737 3744
         this.getDictionaryList();
3738 3745
       }
3739
-      this.promptModalShow = true;
3740 3746
       this.fixedTab = "";
3741 3747
       this.fixedMenuShangla();
3742 3748
   }
@@ -4034,4 +4040,58 @@ export class FuwutaiComponent implements OnInit {
4034 4040
   computedSubstitution(data){
4035 4041
     return (data.state.value === 'pending' || data.state.value === 'handler' || (data.state.value === 'reassign' && this.coopBtns.assign)) && data.deleteFlag !== 1;
4036 4042
   }
4043
+
4044
+  delModal: boolean = false; //删除模态框
4045
+  tipsMsg1: string; //提示框信息
4046
+  tipsMsg2: string; //操作后信息
4047
+  confirmDelType: string; //确认的类型(启用/停用,删除)
4048
+  showDelModal(
4049
+    e,
4050
+    data,
4051
+    tipsMsg1: string,
4052
+    tipsMsg2: string,
4053
+    type: string,
4054
+  ) {
4055
+    e.stopPropagation();
4056
+    this.confirmDelType = type;
4057
+    this.delModal = true;
4058
+    this.coopData = data;
4059
+    this.tipsMsg1 = tipsMsg1;
4060
+    this.tipsMsg2 = tipsMsg2;
4061
+  }
4062
+  // 隐藏删除框
4063
+  hideDelModal() {
4064
+    this.delModal = false;
4065
+  }
4066
+  // 确认删除
4067
+  confirmDelFn() {
4068
+    this.btnLoading = true;
4069
+    if (this.confirmDelType === "del") {
4070
+      //删除
4071
+      this.mainService
4072
+        .simplePost("rmvData", "incident", [this.coopData.id])
4073
+        .subscribe((data) => {
4074
+          this.btnLoading = false;
4075
+          this.delModal = false;
4076
+          if (data.status == 200) {
4077
+            this.showPromptModal(this.tipsMsg2, true, "");
4078
+          } else {
4079
+            this.showPromptModal(this.tipsMsg2, false, data.msg);
4080
+          }
4081
+        });
4082
+    }else if (this.confirmDelType === "receive") {
4083
+      //接单
4084
+      this.mainService
4085
+        .flowPost("incident/task/receive", { incident: this.coopData })
4086
+        .subscribe((data) => {
4087
+          this.btnLoading = false;
4088
+          this.delModal = false;
4089
+          if (data.state == 200) {
4090
+            this.showPromptModal(this.tipsMsg2, true, "");
4091
+          } else {
4092
+            this.showPromptModal(this.tipsMsg2, false, data.msg);
4093
+          }
4094
+        });
4095
+    }
4096
+  }
4037 4097
 }