瀏覽代碼

修复BUG

seimin 6 月之前
父節點
當前提交
c524f5563a

+ 23 - 1
src/app/components/incidentManagement/incident-ser-call/incident-ser-call.component.ts

@@ -19,6 +19,7 @@ export class IncidentSerCallComponent implements OnInit {
19 19
   searchDTO: any = {};
20 20
 
21 21
   @Input() itsmData:any;
22
+  @Input() hsmsData:any;
22 23
   @Output() closeModelHs = new EventEmitter<any>();//1.组件暴露一个 EventEmitter 属性,当事件发生时,子组件利用该属性 emits(向上弹射)事件
23 24
 
24 25
   constructor(
@@ -77,11 +78,32 @@ export class IncidentSerCallComponent implements OnInit {
77 78
     if (idx) {
78 79
       this.pageIndex = 1;
79 80
     }
81
+    console.log(this.itsmData)
82
+    console.log(this.hsmsData)
83
+    let hosIds;
84
+    if(this.itsmData.mdv2Switch){
85
+      if(this.itsmData.allDuty == 1){
86
+        hosIds = undefined;
87
+      }else{
88
+        hosIds = this.itsmData.checkedHos.map(v => v.id).toString();
89
+      }
90
+    }
91
+    if(this.hsmsData.hsmsSwitch){
92
+      if(this.itsmData.mdv2Switch){
93
+        if(this.itsmData.allDuty == 1){
94
+          hosIds = undefined;
95
+        }else{
96
+          hosIds += ',' + this.hsmsData.checkedHos;
97
+        }
98
+      }else{
99
+        hosIds = this.hsmsData.checkedHos.toString();
100
+      }
101
+    }
80 102
     let postData = {
81 103
       idx: this.pageIndex - 1,
82 104
       sum: this.pageSize,
83 105
       callLog: {
84
-        "hosIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.checkedHos.map(v => v.id).toString() || undefined),
106
+        hosIds,
85 107
         dTMFA: this.searchDTO.dTMFA || undefined,
86 108
         dTMFB: this.searchDTO.dTMFB || undefined,
87 109
         responseTime: this.searchDTO.responseTime ? format(this.searchDTO.responseTime, 'yyyy-MM-dd HH:mm:ss') : undefined,

+ 1 - 1
src/app/components/incidentManagement/incident-ser-visit/incident-ser-visit.component.ts

@@ -121,7 +121,7 @@ export class IncidentSerVisitComponent implements OnInit {
121 121
       idx: 0,
122 122
       sum: 9999,
123 123
       incident: {
124
-        "groupIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.scopeGroups.map(v => v.id).toString() || undefined),
124
+        // "groupIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.scopeGroups.map(v => v.id).toString() || undefined),
125 125
         "dutyIds": this.itsmData.allDuty == 1 ? undefined : (this.itsmData.checkedHos.map(v => v.id).toString() || undefined),
126 126
         "urgentType": +this.itsmData.orderScopeRadio + 1,
127 127
         "queryTask": "callback",

+ 3 - 1
src/app/components/incidentManagement/incident-substitutio-assign/incident-substitution-assign.component.ts

@@ -49,11 +49,13 @@ export class IncidentSubstitutionAssignComponent implements OnInit {
49 49
     let { hospital, type } = this.tool.getHospitalOrDuty();
50 50
     if(type === 'duty'){
51 51
       // 是责任部门
52
-      this.validateForm.controls.hosId.setValue(hospital.parent.id);
53 52
       this.changeHospital(hospital.parent.id);
53
+      this.validateForm.controls.hosId.setValue(hospital.parent.id);
54 54
       this.validateForm.controls.dutyId.setValue(hospital.id);
55
+      this.changeDuty(hospital.id);
55 56
     }else{
56 57
       // 不是责任部门
58
+      this.changeHospital(hospital.id);
57 59
       this.validateForm.controls.hosId.setValue(hospital.id);
58 60
     }
59 61
   }

+ 4 - 9
src/app/views/fuwutai/fuwutai.component.html

@@ -1030,7 +1030,7 @@
1030 1030
   </div>
1031 1031
 
1032 1032
   <!-- 左侧悬浮框 -->
1033
-  <div id="fixedMenuLeft" class="fixedLeft">
1033
+  <div id="fixedMenuLeft" class="fixedLeft" [hidden]="!itsmData.mdv2Switch && !hsmsData.hsmsSwitch">
1034 1034
     <div class="right">
1035 1035
       <div class="fixedMenu">
1036 1036
         <div class="menuItems">
@@ -2182,14 +2182,9 @@
2182 2182
                     <!-- 时间 -->
2183 2183
                     <div class="shijian">
2184 2184
                       <span class="left"></span>
2185
-                      <span class="right" *ngIf="data.state.value === 'accept' || data.state.value === 'cancel' || data.state.value === 'reject';else notReq">
2186
-                        {{ data.startDate | date: "MM-dd HH:mm" }}
2185
+                      <span class="right">
2186
+                        {{ data.acceptDate | date: "MM-dd HH:mm" }}
2187 2187
                       </span>
2188
-                      <ng-template #notReq>
2189
-                        <span class="right" *ngIf="data.state.value !== 'accept'">
2190
-                          {{ data.acceptDate | date: "MM-dd HH:mm" }}
2191
-                        </span>
2192
-                      </ng-template>
2193 2188
                     </div>
2194 2189
                   </div>
2195 2190
                 </div>
@@ -2421,4 +2416,4 @@
2421 2416
 <app-incident-ser-message [itsmData]="itsmData" *ngIf="messageShow" (closeModelHs)="closeMessage($event)"></app-incident-ser-message>
2422 2417
 
2423 2418
 <!-- 通话列表 -->
2424
-<app-incident-ser-call [itsmData]="itsmData" *ngIf="callShow" (closeModelHs)="closeCall($event)"></app-incident-ser-call>
2419
+<app-incident-ser-call [itsmData]="itsmData" [hsmsData]="hsmsData" *ngIf="callShow" (closeModelHs)="closeCall($event)"></app-incident-ser-call>

+ 1 - 1
src/app/views/fuwutai/fuwutai.component.ts

@@ -1616,9 +1616,9 @@ export class FuwutaiComponent implements OnInit {
1616 1616
 
1617 1617
     let postData = {
1618 1618
       incident: {
1619
+        queryTask: 'all',
1619 1620
         department: {
1620 1621
           id,
1621
-          queryTask: 'all',
1622 1622
         },
1623 1623
       },
1624 1624
       idx: 0,

+ 6 - 5
src/app/views/incident-management/incident-management.component.ts

@@ -87,8 +87,8 @@ export class IncidentManagementComponent implements OnInit {
87 87
     this.coopBtns = this.tool.initCoopBtns(this.route);
88 88
     this.initTabs();
89 89
     this.getDeparts();
90
-    this.getUsers('', null, 'handle');
91
-    this.getUsers('', null, 'acceptUser');
90
+    this.getUsers('', 'handle');
91
+    this.getUsers('', 'acceptUser');
92 92
     this.getGdStates();
93 93
     this.getOverdueStates();
94 94
     this.getIncidentCategoryList();
@@ -150,12 +150,13 @@ export class IncidentManagementComponent implements OnInit {
150 150
   }
151 151
 
152 152
   // 获取处理人
153
-  getUsers(e?, those?, type?) {
154
-    let that = those || this;
153
+  getUsers(e?, type?) {
154
+    let that = this;
155 155
     let postData = {
156 156
       user: {
157 157
         name: e || "",
158
-        hospital: { id: that.hospital },
158
+        hospital: { id: that.tool.getCurrentHospital().id },
159
+        engineer: 1,
159 160
         simpleQuery: true,
160 161
       },
161 162
       idx: 0,