seimin 1 年之前
父節點
當前提交
d2dfab11bf

+ 1 - 1
proxy.conf.json

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

+ 24 - 55
src/app/share/businessData-detail-modal/businessData-detail-modal.component.ts

@@ -135,72 +135,41 @@ export class BusinessDataDetailModalComponent implements OnInit {
135
       idx: this.pageIndex - 1,
135
       idx: this.pageIndex - 1,
136
       sum: this.pageSize,
136
       sum: this.pageSize,
137
     }
137
     }
138
-    let type = '';
139
     switch(this.dataInfo.type){
138
     switch(this.dataInfo.type){
140
       case 'total':
139
       case 'total':
141
-        postData.deptId = this.dataInfo.data.deptId,
142
-        postData.hosId = this.hosId,
143
-        postData.startTime = this.dataInfo.searchDto.startTime,
144
-        postData.endTime = this.dataInfo.searchDto.endTime,
145
-        type = 'inspect';
140
+        postData.deptId = this.dataInfo.data.deptId;
141
+        postData.hosId = this.hosId;
142
+        postData.startTime = this.dataInfo.searchDto.startTime;
143
+        postData.endTime = this.dataInfo.searchDto.endTime;
146
         break;
144
         break;
147
       case 'noCheckCount':
145
       case 'noCheckCount':
148
-        postData.deptId = this.dataInfo.data.deptId,
149
-        postData.hosId = this.hosId,
150
-        postData.startTime = this.dataInfo.searchDto.startTime,
151
-        postData.endTime = this.dataInfo.searchDto.endTime,
152
-        postData.reportInsState = 'noCheck',
153
-        type = 'inspect';
146
+        postData.deptId = this.dataInfo.data.deptId;
147
+        postData.hosId = this.hosId;
148
+        postData.startTime = this.dataInfo.searchDto.startTime;
149
+        postData.endTime = this.dataInfo.searchDto.endTime;
150
+        postData.reportInsState = 'noCheck';
154
         break;
151
         break;
155
       case 'checkCount':
152
       case 'checkCount':
156
-        postData.deptId = this.dataInfo.data.deptId,
157
-        postData.hosId = this.hosId,
158
-        postData.startTime = this.dataInfo.searchDto.startTime,
159
-        postData.endTime = this.dataInfo.searchDto.endTime,
160
-        postData.reportInsState = 'check',
161
-        type = 'inspect';
153
+        postData.deptId = this.dataInfo.data.deptId;
154
+        postData.hosId = this.hosId;
155
+        postData.startTime = this.dataInfo.searchDto.startTime;
156
+        postData.endTime = this.dataInfo.searchDto.endTime;
157
+        postData.reportInsState = 'check';
162
         break;
158
         break;
163
       case 'insCount':
159
       case 'insCount':
164
-        postData.deptId = this.dataInfo.data.deptId,
165
-        postData.hosId = this.hosId,
166
-        postData.startTime = this.dataInfo.searchDto.startTime,
167
-        postData.endTime = this.dataInfo.searchDto.endTime,
168
-        postData.reportInsState = 'inspect',
169
-        type = 'inspect';
170
-        break;
171
-      case 'workOrderCount':
172
-        postData.workOrder =  {
173
-          "model": "report",
174
-          "createDept": this.dataInfo.data.deptId,
175
-          "hosId": this.hosId,
176
-          "timeOut": 0,
177
-          "taskType": {
178
-              "associationType": {
179
-                  "key": 'association_types',
180
-                  "value": 'inspect',
181
-              }
182
-          },
183
-          startTime1: this.dataInfo.searchDto.startTime,
184
-          endTime1: this.dataInfo.searchDto.endTime,
185
-        }
186
-        type = 'workOrder';
160
+        postData.deptId = this.dataInfo.data.deptId;
161
+        postData.hosId = this.hosId;
162
+        postData.startTime = this.dataInfo.searchDto.startTime;
163
+        postData.endTime = this.dataInfo.searchDto.endTime;
164
+        postData.reportInsState = 'inspect';
187
         break;
165
         break;
188
     }
166
     }
189
-
190
     this.hsLoading = true;
167
     this.hsLoading = true;
191
-    if(type == 'inspect'){
192
-      this.mainService.listMsgByMain("listInspect", postData).subscribe((data: any) => {
193
-        this.hsLoading = false;
194
-        this.inspectionRateStatisticsList = data.list || [];
195
-        this.total = data.totalNum || 0;
196
-      })
197
-    }else{
198
-      this.mainService.getFetchDataList('data', type, postData).subscribe((data: any) => {
199
-        this.hsLoading = false;
200
-        this.inspectionRateStatisticsList = data.list || [];
201
-        this.total = data.totalNum || 0;
202
-      })
203
-    }
168
+    this.mainService.listMsgByMain("listInspect", postData).subscribe((data: any) => {
169
+      this.hsLoading = false;
170
+      this.inspectionRateStatisticsList = data.list || [];
171
+      this.total = data.totalNum || 0;
172
+    })
204
 
173
 
205
   }
174
   }
206
 }
175
 }

+ 6 - 0
src/app/views/dept-inspection-rate-statistics/dept-inspection-rate-statistics-routing.module.ts

@@ -6,6 +6,12 @@ import { DeptInspectionRateStatisticsComponent } from './dept-inspection-rate-st
6
 const routes: Routes = [{
6
 const routes: Routes = [{
7
   path: '',
7
   path: '',
8
   component: DeptInspectionRateStatisticsComponent,
8
   component: DeptInspectionRateStatisticsComponent,
9
+  children: [
10
+    {
11
+      path: 'workerStatisticsDetail/:workerId/:startTime/:endTime/:groupId/:type/:deptId',//id是workid,startTime是开始时间,endTime是结束时间,groupId是组ID,type区别类型
12
+      loadChildren: () => import('../worker-statistics-detail/worker-statistics-detail.module').then(m => m.WorkerStatisticsDetailModule)
13
+    }
14
+  ]
9
 }];
15
 }];
10
 
16
 
11
 @NgModule({
17
 @NgModule({

+ 4 - 2
src/app/views/dept-inspection-rate-statistics/dept-inspection-rate-statistics.component.html

@@ -3,7 +3,7 @@
3
     <div class="list-template__top" nz-row>
3
     <div class="list-template__top" nz-row>
4
       <div nz-col nzXl='17' class="list-template__searchBox">
4
       <div nz-col nzXl='17' class="list-template__searchBox">
5
         <div class="list-template__searchItem">
5
         <div class="list-template__searchItem">
6
-          <span class="label">操作时间</span>:
6
+          <span class="label">申请时间</span>:
7
           <nz-range-picker [(ngModel)]="searchDto.dateRange"></nz-range-picker>
7
           <nz-range-picker [(ngModel)]="searchDto.dateRange"></nz-range-picker>
8
         </div>
8
         </div>
9
       </div>
9
       </div>
@@ -36,7 +36,7 @@
36
             <td class="tab_hover" (click)="viewDetail({ data: data, searchDto: searchDto, type: 'checkCount' }, 'deptInspectionRateStatistics')">{{ data.checkCount }}</td>
36
             <td class="tab_hover" (click)="viewDetail({ data: data, searchDto: searchDto, type: 'checkCount' }, 'deptInspectionRateStatistics')">{{ data.checkCount }}</td>
37
             <td class="tab_hover" (click)="viewDetail({ data: data, searchDto: searchDto, type: 'insCount' }, 'deptInspectionRateStatistics')">{{ data.insCount }}</td>
37
             <td class="tab_hover" (click)="viewDetail({ data: data, searchDto: searchDto, type: 'insCount' }, 'deptInspectionRateStatistics')">{{ data.insCount }}</td>
38
             <td>{{ data.inspectRate }}%</td>
38
             <td>{{ data.inspectRate }}%</td>
39
-            <td class="tab_hover" (click)="viewDetail({ data: data, searchDto: searchDto, type: 'workOrderCount' }, 'deptInspectionRateStatistics')">{{ data.workOrderCount }}</td>
39
+            <td class="tab_hover" (click)="personDetail({ data: data, searchDto: searchDto})">{{ data.workOrderCount }}</td>
40
           </tr>
40
           </tr>
41
         </tbody>
41
         </tbody>
42
       </nz-table>
42
       </nz-table>
@@ -48,6 +48,8 @@
48
     </div>
48
     </div>
49
   </div>
49
   </div>
50
 </div>
50
 </div>
51
+<!-- 查看详情 -->
52
+<router-outlet></router-outlet>
51
 
53
 
52
 <!-- 业务数据查看 -->
54
 <!-- 业务数据查看 -->
53
 <app-businessData-detail-modal
55
 <app-businessData-detail-modal

+ 11 - 1
src/app/views/dept-inspection-rate-statistics/dept-inspection-rate-statistics.component.ts

@@ -1,5 +1,5 @@
1
 import { Component, OnInit, ViewChild } from "@angular/core";
1
 import { Component, OnInit, ViewChild } from "@angular/core";
2
-import { ActivatedRoute } from "@angular/router";
2
+import { ActivatedRoute, Router } from "@angular/router";
3
 
3
 
4
 import { OverlayScrollbarsComponent } from "overlayscrollbars-ngx";
4
 import { OverlayScrollbarsComponent } from "overlayscrollbars-ngx";
5
 import { ToolService } from "../../services/tool.service";
5
 import { ToolService } from "../../services/tool.service";
@@ -18,6 +18,7 @@ export class DeptInspectionRateStatisticsComponent implements OnInit {
18
   })
18
   })
19
   osComponentRef1: OverlayScrollbarsComponent;
19
   osComponentRef1: OverlayScrollbarsComponent;
20
   constructor(
20
   constructor(
21
+    private router: Router,
21
     private route: ActivatedRoute,
22
     private route: ActivatedRoute,
22
     private tool: ToolService,
23
     private tool: ToolService,
23
     private deptInspectionRateStatisticsService: DeptInspectionRateStatisticsService,
24
     private deptInspectionRateStatisticsService: DeptInspectionRateStatisticsService,
@@ -88,5 +89,14 @@ export class DeptInspectionRateStatisticsComponent implements OnInit {
88
   closeModelBlood(e) {
89
   closeModelBlood(e) {
89
     this.businessDataModalShow = JSON.parse(e).show;
90
     this.businessDataModalShow = JSON.parse(e).show;
90
   }
91
   }
92
+
93
+  personDetail(dataInfo){
94
+    let startDate = dataInfo.searchDto.startTime || 'null';
95
+    let endDate = dataInfo.searchDto.endDate || 'null';
96
+    let deptId = dataInfo.data.deptId || 'null';
97
+    this.router.navigateByUrl(
98
+      `/main/deptInspectionRateStatistics/workerStatisticsDetail/null/${startDate}/${endDate}/null/deptInspectionRateStatistics/${deptId}`
99
+    );
100
+  }
91
 }
101
 }
92
 
102
 

+ 2 - 2
src/app/views/worker-statistics-detail/worker-statistics-detail.component.html

@@ -15,7 +15,7 @@
15
           <th nzWidth="15%">工单单号<br>申请科室</th>
15
           <th nzWidth="15%">工单单号<br>申请科室</th>
16
           <th nzWidth="15%">工单类型<br>任务类型</th>
16
           <th nzWidth="15%">工单类型<br>任务类型</th>
17
           <th nzWidth="10%">发起时间</th>
17
           <th nzWidth="10%">发起时间</th>
18
-          <th nzWidth="10%">执行时长</th>
18
+          <th nzWidth="10%">执行时长<br>执行人</th>
19
           <th nzWidth="15%">楼栋分<br>陪检方式分</th>
19
           <th nzWidth="15%">楼栋分<br>陪检方式分</th>
20
           <th nzWidth="5%">积分</th>
20
           <th nzWidth="5%">积分</th>
21
           <th nzWidth="10%">是否特殊关闭</th>
21
           <th nzWidth="10%">是否特殊关闭</th>
@@ -28,7 +28,7 @@
28
           <td>{{ data.gdcode }}<br>{{ data.createDeptDTO?data.createDeptDTO.dept:'' }}</td>
28
           <td>{{ data.gdcode }}<br>{{ data.createDeptDTO?data.createDeptDTO.dept:'' }}</td>
29
           <td>{{ data.taskType.associationType.name }}<br>{{ data.taskType.taskName }}</td>
29
           <td>{{ data.taskType.associationType.name }}<br>{{ data.taskType.taskName }}</td>
30
           <td>{{data.startTime|date:'yyyy-MM-dd HH:mm'}}</td>
30
           <td>{{data.startTime|date:'yyyy-MM-dd HH:mm'}}</td>
31
-          <td>{{ data.showTimeNum }}</td>
31
+          <td>{{ data.showTimeNum }}<br>{{ data.worker?data.worker.name:'' }}</td>
32
           <td>{{ data.grade?data.grade.buildingGrade:'' }}<br>{{ data.grade?data.grade.inspectModeGrade:'' }}</td>
32
           <td>{{ data.grade?data.grade.buildingGrade:'' }}<br>{{ data.grade?data.grade.inspectModeGrade:'' }}</td>
33
           <td>{{data.grade?data.grade.gradeTotal:'-'}}</td>
33
           <td>{{data.grade?data.grade.gradeTotal:'-'}}</td>
34
           <td>{{data.specialCloseReason?'是':'否'}}</td>
34
           <td>{{data.specialCloseReason?'是':'否'}}</td>

+ 17 - 10
src/app/views/worker-statistics-detail/worker-statistics-detail.component.ts

@@ -16,6 +16,8 @@ export class WorkerStatisticsDetailComponent implements OnInit {
16
   startTime; //当前开始时间
16
   startTime; //当前开始时间
17
   endTime; //当前结束时间
17
   endTime; //当前结束时间
18
   groupId; //当前组ID
18
   groupId; //当前组ID
19
+  type; //区别跳转页面类型
20
+  deptId; //当前科室
19
   listOfData = []; //获取选中配送人员的工单列表
21
   listOfData = []; //获取选中配送人员的工单列表
20
   pageIndex: number = 1; //页码
22
   pageIndex: number = 1; //页码
21
   listLength: number = 0; //总数据条目数
23
   listLength: number = 0; //总数据条目数
@@ -35,12 +37,11 @@ export class WorkerStatisticsDetailComponent implements OnInit {
35
     this.startTime = this.route.snapshot.params.startTime;
37
     this.startTime = this.route.snapshot.params.startTime;
36
     this.endTime = this.route.snapshot.params.endTime;
38
     this.endTime = this.route.snapshot.params.endTime;
37
     this.groupId = this.route.snapshot.params.groupId;
39
     this.groupId = this.route.snapshot.params.groupId;
40
+    this.type = this.route.snapshot.params.type;
41
+    this.deptId = this.route.snapshot.params.deptId;
38
     this.getOrdersByPerson(this.hosId, this.currentPersonId);
42
     this.getOrdersByPerson(this.hosId, this.currentPersonId);
39
   }
43
   }
40
-  // resetPageSize(hosId, currentPersonId){
41
-  //   this.pageIndex = 1;
42
-  //   this.getOrdersByPerson(hosId, currentPersonId);
43
-  // }
44
+
44
   // 是否剖执行时长五分钟以内工单
45
   // 是否剖执行时长五分钟以内工单
45
   changeIsFiveOrder(e: boolean) {
46
   changeIsFiveOrder(e: boolean) {
46
     this.isFiveOrder = e;
47
     this.isFiveOrder = e;
@@ -60,15 +61,21 @@ export class WorkerStatisticsDetailComponent implements OnInit {
60
     let postData:any = {
61
     let postData:any = {
61
       idx: this.pageIndex - 1,
62
       idx: this.pageIndex - 1,
62
       sum: this.pageSize,
63
       sum: this.pageSize,
63
-      startTime: this.startTime,
64
-      endTime: this.endTime,
64
+      startTime: this.startTime === 'null' ? undefined : this.startTime,
65
+      endTime: this.endTime === 'null' ? undefined : this.endTime,
65
       hosId,
66
       hosId,
66
-      groupId: this.groupId == "null" ? "" : this.groupId,
67
-      worker: currentPersonId,
68
     };
67
     };
69
     if(this.isFiveOrder){
68
     if(this.isFiveOrder){
70
       postData.difLong = true;
69
       postData.difLong = true;
71
     }
70
     }
71
+    if(this.type === 'workerStatistics'){
72
+      postData.groupId = this.groupId === 'null' ? undefined : this.groupId;
73
+      postData.worker = currentPersonId;
74
+    }else if(this.type === 'deptInspectionRateStatistics'){
75
+      postData.deptId = this.deptId === 'null' ? undefined : this.deptId;
76
+      postData.key = "association_types";
77
+      postData.value = "inspect";
78
+    }
72
     this.mainService.postCustom("report", "userDetails", postData).subscribe(
79
     this.mainService.postCustom("report", "userDetails", postData).subscribe(
73
       (result) => {
80
       (result) => {
74
         this.loading1 = false;
81
         this.loading1 = false;
@@ -88,11 +95,11 @@ export class WorkerStatisticsDetailComponent implements OnInit {
88
   //查看积分详情
95
   //查看积分详情
89
   integralDetail(obj) {
96
   integralDetail(obj) {
90
     this.router.navigateByUrl(
97
     this.router.navigateByUrl(
91
-      `/main/workerStatistics/workerStatisticsDetail/${this.currentPersonId}/${this.startTime}/${this.endTime}/${this.groupId}/orderDetail/${obj.id}/3`
98
+      `/main/${this.type}/workerStatisticsDetail/${this.currentPersonId}/${this.startTime}/${this.endTime}/${this.groupId}/${this.type}/${this.deptId}/orderDetail/${obj.id}/3`
92
     );
99
     );
93
   }
100
   }
94
   //关闭
101
   //关闭
95
   close() {
102
   close() {
96
-    this.router.navigateByUrl("/main/workerStatistics");
103
+    this.router.navigateByUrl(`/main/${this.type}`);
97
   }
104
   }
98
 }
105
 }

+ 1 - 1
src/app/views/worker-statistics/worker-statistics-routing.module.ts

@@ -9,7 +9,7 @@ const routes: Routes = [
9
     component: WorkerStatisticsComponent,
9
     component: WorkerStatisticsComponent,
10
     children: [
10
     children: [
11
       {
11
       {
12
-        path: 'workerStatisticsDetail/:workerId/:startTime/:endTime/:groupId',//id是workid,startTime是开始时间,endTime是结束时间,groupId是组ID
12
+        path: 'workerStatisticsDetail/:workerId/:startTime/:endTime/:groupId/:type/:deptId',//id是workid,startTime是开始时间,endTime是结束时间,groupId是组ID,type是类型
13
         loadChildren: () => import('../worker-statistics-detail/worker-statistics-detail.module').then(m => m.WorkerStatisticsDetailModule)
13
         loadChildren: () => import('../worker-statistics-detail/worker-statistics-detail.module').then(m => m.WorkerStatisticsDetailModule)
14
       }
14
       }
15
     ]
15
     ]

+ 1 - 1
src/app/views/worker-statistics/worker-statistics.component.ts

@@ -319,7 +319,7 @@ export class WorkerStatisticsComponent implements OnInit {
319
     let endDate = this.endDate + " " + "23:59:59";
319
     let endDate = this.endDate + " " + "23:59:59";
320
     let group = this.group || "null";
320
     let group = this.group || "null";
321
     this.router.navigateByUrl(
321
     this.router.navigateByUrl(
322
-      `/main/workerStatistics/workerStatisticsDetail/${workerId}/${startDate}/${endDate}/${group}`
322
+      `/main/workerStatistics/workerStatisticsDetail/${workerId}/${startDate}/${endDate}/${group}/workerStatistics/null`
323
     );
323
     );
324
   }
324
   }
325
 }
325
 }