소스 검색

bug修改

seimin 3 달 전
부모
커밋
9a58d998c4

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

@@ -24,9 +24,6 @@ export class IncidentSerVisitComponent implements OnInit {
24 24
     private fb: FormBuilder,
25 25
   ) {}
26 26
 
27
-  loginUser: any = localStorage.getItem("user")
28
-    ? JSON.parse(localStorage.getItem("user")).user
29
-    : null; //登录人信息
30 27
   listOfData: any[] = []; //表格数据
31 28
   coopId: string; //表格中执行操作的id
32 29
   hospital: string; //选中院区
@@ -81,7 +78,7 @@ export class IncidentSerVisitComponent implements OnInit {
81 78
     });
82 79
     this.coopBtns = this.tool.initCoopBtns(this.route);
83 80
     if(this.itsmData.allDuty == 1){
84
-      this.getMaintainDeptList();
81
+      this.maintainDept = this.tool.getUserInfoPermission().dutyList || [];
85 82
     }else{
86 83
       this.maintainDept = this.itsmData.checkedHos || [];
87 84
       // if(this.coopBtns.strideLook){
@@ -405,4 +402,4 @@ export class IncidentSerVisitComponent implements OnInit {
405 402
   hideModal() {
406 403
     this.closeModelHs.emit(JSON.stringify({ show: false }));//emits(向上弹射)事件
407 404
   }
408
-}
405
+}

+ 1 - 1
src/app/services/tool.service.ts

@@ -43,7 +43,7 @@ export class ToolService {
43 43
   }
44 44
 	// 获取权限中的信息
45 45
 	getUserInfoPermission() {
46
-	  return JSON.parse(localStorage.getItem("user")).infoPermission || [];
46
+	  return JSON.parse(localStorage.getItem("user")).infoPermission || {};
47 47
 	}
48 48
   // 获取权限中的分组
49 49
   getGroupList() {

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

@@ -1136,7 +1136,7 @@
1136 1136
                           <nz-form-item>
1137 1137
                             <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="endDepts">终点科室</nz-form-label>
1138 1138
                             <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择终点科室!">
1139
-                              <nz-select formControlName="endDepts" [nzDisabled]="deptZyList.endStatus == 201 || deptZyList.endStatus == 203 || deptZyList.endStatus == 206" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="searchHosDepartment(checkedHos, 'end', $event)" nzAllowClear nzPlaceHolder="请选择终点科室" [(ngModel)]="endDeptZy" (ngModelChange)="endDeptZyChange(e)">
1139
+                              <nz-select formControlName="endDepts" [nzDisabled]="deptZyList.endStatus == 201 || deptZyList.endStatus == 203 || deptZyList.endStatus == 206" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="searchHosDepartment(checkedHos, 'end', $event)" nzAllowClear nzPlaceHolder="请选择终点科室" [(ngModel)]="endDeptZy" (ngModelChange)="endDeptZyChange()">
1140 1140
                                 <ng-container *ngFor="let option of deptZyList.endDept">
1141 1141
                                   <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
1142 1142
                                 </ng-container>

+ 4 - 5
src/app/views/realtime-broadcast/realtime-broadcast.component.html

@@ -125,17 +125,16 @@
125 125
                   </span>
126 126
                 </div>
127 127
 
128
-                <div class="didian" *ngIf="data.overtimeRemark">
128
+                <div class="didian">
129 129
                   <span class="left">
130
-                    <span [innerHTML]="data.overtimeRemark" nz-tooltip [nzTooltipTitle]="data.overtimeRemark"></span>
130
+                    <span *ngIf="data.overtimeRemark" [innerHTML]="data.overtimeRemark" nz-tooltip [nzTooltipTitle]="data.overtimeRemark"></span>
131
+                    <span *ngIf="!data.overtimeRemark">无</span>
131 132
                   </span>
132 133
                 </div>
133 134
                 <!-- 时间 -->
134 135
                 <div class="shijian">
135 136
                   <span class="left">
136
-                    <span>
137
-                      申请人:{{ data.requester?.name }}
138
-                    </span>
137
+                    <span>处理人/组:{{ transferSynergetic(data) }}</span>
139 138
                   </span>
140 139
                   <span class="right">
141 140
                     {{ data.startDate | date: 'yyyy-MM-dd HH:mm'}}

+ 2 - 2
src/app/views/realtime-broadcast/realtime-broadcast.component.less

@@ -44,7 +44,7 @@
44 44
 
45 45
       .content {
46 46
         width: 100%;
47
-        height: 117px;
47
+        height: 145px;
48 48
         background: #f9fafb;
49 49
         border: 1px solid #e5e9ed;
50 50
         border-radius: 5px;
@@ -390,7 +390,7 @@
390 390
 
391 391
   /* 未分派 */
392 392
   .weifenpai .list {
393
-    height: 117px;
393
+    height: 145px;
394 394
     border-bottom: 1px solid #7D7D7D;
395 395
     position: relative;
396 396
     overflow: hidden;

+ 14 - 4
src/app/views/realtime-broadcast/realtime-broadcast.component.ts

@@ -231,6 +231,7 @@ export class RealtimeBroadcastComponent implements OnInit,AfterViewInit {
231 231
 
232 232
           // 初始化故障工单列表
233 233
           if(this.config.showOvertime == 1){
234
+            this.incidentList['2handler'].name = '待处理(不含延期处理)';
234 235
             this.incidentList['3overtime'] = {
235 236
               name: '延期处理',
236 237
               list: [],
@@ -239,6 +240,7 @@ export class RealtimeBroadcastComponent implements OnInit,AfterViewInit {
239 240
             this.getIncidentList('2handler');
240 241
             this.getIncidentList('3overtime');
241 242
           }else{
243
+            this.incidentList['2handler'].name = '待处理';
242 244
             delete this.incidentList['3overtime'];
243 245
             this.getIncidentList('1pending');
244 246
             this.getIncidentList('2handler');
@@ -253,7 +255,7 @@ export class RealtimeBroadcastComponent implements OnInit,AfterViewInit {
253 255
   pageSize = 0;
254 256
   computedNum(){
255 257
     let h = (document.querySelector('.lists_box') as HTMLElement).offsetHeight;
256
-    this.pageSize = Math.floor((h / 117));
258
+    this.pageSize = Math.floor((h / 145));
257 259
   }
258 260
 
259 261
   // 刷新故障工单列表
@@ -299,18 +301,17 @@ export class RealtimeBroadcastComponent implements OnInit,AfterViewInit {
299 301
       idx: 0,
300 302
       sum: 99999,
301 303
       incident: {
302
-        assignee: this.tool.getCurrentUserId(),
303 304
         deleteFlag: 0,
304 305
 				candidateGroups: this.config.groupIds ? this.config.groupIds.toString() : undefined,
305 306
 				dutyIds: this.config.deptIds.toString(),
306
-        queryTask: 'all',
307
+        queryTask: 'queryAll',
307 308
       },
308 309
     };
309 310
     if(type == '1pending'){
310 311
       postData.incident.statusId = this.incidentStatusList.find(v => v.value === 'pending').id;
311 312
     }else if(type == '2handler'){
312 313
       postData.incident.statusId = this.incidentStatusList.find(v => v.value === 'handler').id;
313
-      postData.incident.overtime = this.config.showOvertime;
314
+      postData.incident.overtime = this.config.showOvertime == 1 ? 0 : undefined;
314 315
     }else if(type == '3overtime'){
315 316
       postData.incident.statusId = this.incidentStatusList.find(v => v.value === 'handler').id;
316 317
       postData.incident.overtime = 1;
@@ -424,4 +425,13 @@ export class RealtimeBroadcastComponent implements OnInit,AfterViewInit {
424 425
       }
425 426
     });
426 427
   }
428
+
429
+  // 处理人+协同人
430
+  transferSynergetic(incidentData){
431
+    let str = incidentData.groupORHandlerUser || "";
432
+    if(incidentData.synergetic && incidentData.synergetic.length){
433
+        str += ',' + incidentData.synergetic.map(v => v.name).join(',');
434
+    }
435
+    return str;
436
+  }
427 437
 }