소스 검색

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

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

@@ -1136,7 +1136,7 @@
1136
                           <nz-form-item>
1136
                           <nz-form-item>
1137
                             <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="endDepts">终点科室</nz-form-label>
1137
                             <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="endDepts">终点科室</nz-form-label>
1138
                             <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择终点科室!">
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
                                 <ng-container *ngFor="let option of deptZyList.endDept">
1140
                                 <ng-container *ngFor="let option of deptZyList.endDept">
1141
                                   <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
1141
                                   <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
1142
                                 </ng-container>
1142
                                 </ng-container>

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

@@ -125,17 +125,16 @@
125
                   </span>
125
                   </span>
126
                 </div>
126
                 </div>
127
 
127
 
128
-                <div class="didian" *ngIf="data.overtimeRemark">
128
+                <div class="didian">
129
                   <span class="left">
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
                   </span>
132
                   </span>
132
                 </div>
133
                 </div>
133
                 <!-- 时间 -->
134
                 <!-- 时间 -->
134
                 <div class="shijian">
135
                 <div class="shijian">
135
                   <span class="left">
136
                   <span class="left">
136
-                    <span>
137
-                      申请人:{{ data.requester?.name }}
138
-                    </span>
137
+                    <span>处理人/组:{{ transferSynergetic(data) }}</span>
139
                   </span>
138
                   </span>
140
                   <span class="right">
139
                   <span class="right">
141
                     {{ data.startDate | date: 'yyyy-MM-dd HH:mm'}}
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
       .content {
45
       .content {
46
         width: 100%;
46
         width: 100%;
47
-        height: 117px;
47
+        height: 145px;
48
         background: #f9fafb;
48
         background: #f9fafb;
49
         border: 1px solid #e5e9ed;
49
         border: 1px solid #e5e9ed;
50
         border-radius: 5px;
50
         border-radius: 5px;
@@ -390,7 +390,7 @@
390
 
390
 
391
   /* 未分派 */
391
   /* 未分派 */
392
   .weifenpai .list {
392
   .weifenpai .list {
393
-    height: 117px;
393
+    height: 145px;
394
     border-bottom: 1px solid #7D7D7D;
394
     border-bottom: 1px solid #7D7D7D;
395
     position: relative;
395
     position: relative;
396
     overflow: hidden;
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
           if(this.config.showOvertime == 1){
233
           if(this.config.showOvertime == 1){
234
+            this.incidentList['2handler'].name = '待处理(不含延期处理)';
234
             this.incidentList['3overtime'] = {
235
             this.incidentList['3overtime'] = {
235
               name: '延期处理',
236
               name: '延期处理',
236
               list: [],
237
               list: [],
@@ -239,6 +240,7 @@ export class RealtimeBroadcastComponent implements OnInit,AfterViewInit {
239
             this.getIncidentList('2handler');
240
             this.getIncidentList('2handler');
240
             this.getIncidentList('3overtime');
241
             this.getIncidentList('3overtime');
241
           }else{
242
           }else{
243
+            this.incidentList['2handler'].name = '待处理';
242
             delete this.incidentList['3overtime'];
244
             delete this.incidentList['3overtime'];
243
             this.getIncidentList('1pending');
245
             this.getIncidentList('1pending');
244
             this.getIncidentList('2handler');
246
             this.getIncidentList('2handler');
@@ -253,7 +255,7 @@ export class RealtimeBroadcastComponent implements OnInit,AfterViewInit {
253
   pageSize = 0;
255
   pageSize = 0;
254
   computedNum(){
256
   computedNum(){
255
     let h = (document.querySelector('.lists_box') as HTMLElement).offsetHeight;
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
       idx: 0,
301
       idx: 0,
300
       sum: 99999,
302
       sum: 99999,
301
       incident: {
303
       incident: {
302
-        assignee: this.tool.getCurrentUserId(),
303
         deleteFlag: 0,
304
         deleteFlag: 0,
304
 				candidateGroups: this.config.groupIds ? this.config.groupIds.toString() : undefined,
305
 				candidateGroups: this.config.groupIds ? this.config.groupIds.toString() : undefined,
305
 				dutyIds: this.config.deptIds.toString(),
306
 				dutyIds: this.config.deptIds.toString(),
306
-        queryTask: 'all',
307
+        queryTask: 'queryAll',
307
       },
308
       },
308
     };
309
     };
309
     if(type == '1pending'){
310
     if(type == '1pending'){
310
       postData.incident.statusId = this.incidentStatusList.find(v => v.value === 'pending').id;
311
       postData.incident.statusId = this.incidentStatusList.find(v => v.value === 'pending').id;
311
     }else if(type == '2handler'){
312
     }else if(type == '2handler'){
312
       postData.incident.statusId = this.incidentStatusList.find(v => v.value === 'handler').id;
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
     }else if(type == '3overtime'){
315
     }else if(type == '3overtime'){
315
       postData.incident.statusId = this.incidentStatusList.find(v => v.value === 'handler').id;
316
       postData.incident.statusId = this.incidentStatusList.find(v => v.value === 'handler').id;
316
       postData.incident.overtime = 1;
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
 }