瀏覽代碼

Merge branch 'lmm' into develop

seimin 3 年之前
父節點
當前提交
8eacc6c878
共有 20 個文件被更改,包括 886 次插入108 次删除
  1. 3 3
      package-lock.json
  2. 1 1
      package.json
  3. 1 1
      src/app/views/compre-statistics/compre-statistics.component.html
  4. 4 4
      src/app/views/dept-statistics/dept-statistics.component.html
  5. 2 1
      src/app/views/hushijiandan/hushijiandan.component.less
  6. 6 5
      src/app/views/inspect-active-detail/inspect-active-detail-routing.module.ts
  7. 17 19
      src/app/views/inspect-active-detail/inspect-active-detail.component.html
  8. 13 15
      src/app/views/inspect-active-detail/inspect-active-detail.component.ts
  9. 24 0
      src/app/views/inspect-active-order-list/inspect-active-order-list-routing.module.ts
  10. 49 0
      src/app/views/inspect-active-order-list/inspect-active-order-list.component.html
  11. 591 0
      src/app/views/inspect-active-order-list/inspect-active-order-list.component.less
  12. 100 0
      src/app/views/inspect-active-order-list/inspect-active-order-list.component.ts
  13. 17 0
      src/app/views/inspect-active-order-list/inspect-active-order-list.module.ts
  14. 1 1
      src/app/views/inspect-active/inspect-active-routing.module.ts
  15. 18 24
      src/app/views/inspect-active/inspect-active.component.html
  16. 30 26
      src/app/views/inspect-active/inspect-active.component.ts
  17. 1 1
      src/app/views/order-statistics/order-statistics.component.html
  18. 1 1
      src/app/views/task-type-statistics/task-type-statistics.component.html
  19. 5 4
      src/app/views/worker-statistics/worker-statistics.component.html
  20. 2 2
      src/app/views/worker-statistics/worker-statistics.component.ts

+ 3 - 3
package-lock.json

@@ -2608,9 +2608,9 @@
2608 2608
       }
2609 2609
     },
2610 2610
     "core-js": {
2611
-      "version": "3.15.2",
2612
-      "resolved": "https://registry.nlark.com/core-js/download/core-js-3.15.2.tgz?cache=0&sync_timestamp=1624966056491&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fcore-js%2Fdownload%2Fcore-js-3.15.2.tgz",
2613
-      "integrity": "sha1-dAZg0v9V7zTOZk1+JFURnFvdPWE="
2611
+      "version": "3.16.0",
2612
+      "resolved": "https://registry.nlark.com/core-js/download/core-js-3.16.0.tgz",
2613
+      "integrity": "sha1-HUb7M3ILwfp/kNIEMfNqVUCFiYY="
2614 2614
     },
2615 2615
     "core-util-is": {
2616 2616
       "version": "1.0.2",

+ 1 - 1
package.json

@@ -24,7 +24,7 @@
24 24
     "@angular/router": "~8.1.1",
25 25
     "@types/crypto-js": "^3.1.47",
26 26
     "@types/overlayscrollbars": "^1.12.1",
27
-    "core-js": "^3.15.2",
27
+    "core-js": "^3.16.0",
28 28
     "crypto-js": "^3.3.0",
29 29
     "datatables.net": "^1.10.25",
30 30
     "date-fns": "^2.23.0",

+ 1 - 1
src/app/views/compre-statistics/compre-statistics.component.html

@@ -31,7 +31,7 @@
31 31
         </div>
32 32
         <div class="searchItem">
33 33
           <span>&nbsp;&nbsp;</span>
34
-          <nz-select style="width: 135px;" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzAllowClear
34
+          <nz-select style="width: 135px;" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false"
35 35
             nzPlaceHolder="请选择时间" [(ngModel)]="defRange" (ngModelChange)="changeDateRange($event)">
36 36
             <nz-option nzLabel="{{data.label}}" nzValue="{{data.id}}" *ngFor="let data of defRanges"></nz-option>
37 37
           </nz-select>

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

@@ -9,8 +9,8 @@
9 9
           <br />
10 10
         </div>
11 11
         <div class="list-template__searchItem ml8">
12
-          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzAllowClear
13
-            nzPlaceHolder="请选择时间" [(ngModel)]="defRange" (ngModelChange)="changeDateRange($event)">
12
+          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzPlaceHolder="请选择时间"
13
+            [(ngModel)]="defRange" (ngModelChange)="changeDateRange($event)">
14 14
             <nz-option nzLabel="{{data.label}}" nzValue="{{data.id}}" *ngFor="let data of defRanges"></nz-option>
15 15
           </nz-select>
16 16
         </div>
@@ -22,8 +22,8 @@
22 22
       </div>
23 23
     </div>
24 24
     <div class="list-template__bottom">
25
-      <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle"
26
-        [nzShowPagination]="false" [nzLoading]="loading1">
25
+      <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
26
+        [nzLoading]="loading1">
27 27
         <thead>
28 28
           <tr class="thead">
29 29
             <th nzWidth="5%">序号</th>

+ 2 - 1
src/app/views/hushijiandan/hushijiandan.component.less

@@ -359,7 +359,8 @@
359 359
             }
360 360
           }
361 361
           .modalBody_left_box {
362
-            height: calc(100vh - 279px);
362
+            min-height: calc(100vh - 279px);
363
+            height: 100%;
363 364
             box-sizing: border-box;
364 365
             padding: 8px;
365 366
             display: flex;

+ 6 - 5
src/app/views/inspect-active-detail/inspect-active-detail-routing.module.ts

@@ -1,7 +1,6 @@
1 1
 import { NgModule } from "@angular/core";
2 2
 import { Routes, RouterModule } from "@angular/router";
3
-import { InspectActiveDetailComponent } from "./inspect-active-detail.component";
4
-import { OrderDetailComponent } from "src/app/share/order-detail/order-detail.component";
3
+import { InspectActiveDetailComponent } from './inspect-active-detail.component';
5 4
 
6 5
 const routes: Routes = [
7 6
   {
@@ -9,9 +8,11 @@ const routes: Routes = [
9 8
     component: InspectActiveDetailComponent,
10 9
     children: [
11 10
       {
12
-        // 查看详情
13
-        path: "orderDetail/:id/:type",
14
-        component: OrderDetailComponent,
11
+        path: "inspectActiveOrderList/:deptId/:startTime/:endTime/:workerId", //id是deptId,startTime是开始时间,endTime是结束时间,workerId是支助人员ID
12
+        loadChildren: () =>
13
+          import(
14
+            "../inspect-active-order-list/inspect-active-order-list.module"
15
+          ).then((m) => m.InspectActiveOrderListModule),
15 16
       },
16 17
     ],
17 18
   },

+ 17 - 19
src/app/views/inspect-active-detail/inspect-active-detail.component.html

@@ -1,6 +1,6 @@
1 1
 <div class="detail">
2 2
   <div class="title">
3
-    工单详情
3
+    人员预约检查情况
4 4
     <i class="icon_transport transport-guanbi" (click)="close()"></i>
5 5
   </div>
6 6
   <div class="box">
@@ -9,28 +9,26 @@
9 9
       <thead>
10 10
         <tr class="thead">
11 11
           <th nzWidth="5%">序号</th>
12
-          <th nzWidth="10%">工单单号</th>
13
-          <th nzWidth="15%">申请科室</th>
14
-          <th nzWidth="10%">工单类型</th>
15
-          <th nzWidth="15%">任务类型</th>
16
-          <th nzWidth="10%">发起时间</th>
17
-          <th nzWidth="10%">执行时长</th>
18
-          <th nzWidth="5%">积分</th>
19
-          <th nzWidth="10%">是否特殊关闭</th>
12
+          <th nzWidth="15%">时间</th>
13
+          <th nzWidth="10%">支助人员名称</th>
14
+          <th nzWidth="15%">可预约检查总数</th>
15
+          <th nzWidth="15%">系统自动建单数</th>
16
+          <th nzWidth="10%">主动建单数</th>
17
+          <th nzWidth="10%">科室派单数</th>
18
+          <th nzWidth="10%">未建单</th>
20 19
           <th nzWidth="10%">操作</th>
21 20
         </tr>
22 21
       </thead>
23 22
       <tbody>
24 23
         <tr *ngFor="let data of listOfData;let index=index;">
25 24
           <td>{{index+(pageIndex-1)*10+1}}</td>
26
-          <td>{{ data.gdcode }}</td>
27
-          <td>{{ data.createDeptDTO?data.createDeptDTO.dept:'' }}</td>
28
-          <td>{{ data.taskType.associationType.name }}</td>
29
-          <td>{{ data.taskType.taskName }}</td>
30
-          <td>{{data.startTime|date:'yyyy-MM-dd HH:mm'}}</td>
31
-          <td>{{ data.showTimeNum }}</td>
32
-          <td>{{data.grade?data.grade.gradeTotal:'-'}}</td>
33
-          <td>{{data.specialCloseReason?'是':'否'}}</td>
25
+          <td>{{data.datetime|date:'yyyy-MM-dd hh:mm'}}</td>
26
+          <td>{{data.userName}}</td>
27
+          <td>{{data.count5}}</td>
28
+          <td>{{data.count1}}</td>
29
+          <td>{{data.count2}}</td>
30
+          <td>{{data.count3}}</td>
31
+          <td>{{data.count4}}</td>
34 32
           <td>
35 33
             <div class="coop">
36 34
               <span (click)="integralDetail(data)">查看</span>
@@ -41,8 +39,8 @@
41 39
     </nz-table>
42 40
     <div class="pagination">
43 41
       <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
44
-        (nzPageIndexChange)="getOrdersByPerson(hosId,currentPersonId)"
45
-        (nzPageSizeChange)="getOrdersByPerson(hosId,currentPersonId)">
42
+        (nzPageIndexChange)="getListByDept(hosId,currentDeptId)"
43
+        (nzPageSizeChange)="getListByDept(hosId,currentDeptId)">
46 44
       </nz-pagination>
47 45
     </div>
48 46
   </div>

+ 13 - 15
src/app/views/inspect-active-detail/inspect-active-detail.component.ts

@@ -10,13 +10,12 @@ import { ToolService } from "src/app/services/tool.service";
10 10
   styleUrls: ["./inspect-active-detail.component.less"],
11 11
 })
12 12
 export class InspectActiveDetailComponent implements OnInit {
13
-  loading1 = false; //获取选中支助人员的工单列表loading
13
+  loading1 = false; //获取选中支助人员列表loading
14 14
   hosId; //当前院区id
15
-  currentPersonId; //当前支助人员id
15
+  currentDeptId; //当前支助人员id
16 16
   startTime; //当前开始时间
17 17
   endTime; //当前结束时间
18
-  groupId; //当前组ID
19
-  listOfData = []; //获取选中支助人员的工单列表
18
+  listOfData = []; //获取选中支助人员列表
20 19
   pageIndex: number = 1; //页码
21 20
   listLength: number = 0; //总数据条目数
22 21
   pageSize: number = 10; //每页条数
@@ -30,25 +29,24 @@ export class InspectActiveDetailComponent implements OnInit {
30 29
 
31 30
   ngOnInit() {
32 31
     this.hosId = this.tool.getCurrentHospital().id;
33
-    this.currentPersonId = this.route.snapshot.params.workerId;
32
+    this.currentDeptId = this.route.snapshot.params.deptId;
34 33
     this.startTime = this.route.snapshot.params.startTime;
35 34
     this.endTime = this.route.snapshot.params.endTime;
36
-    this.groupId = this.route.snapshot.params.groupId;
37
-    this.getOrdersByPerson(this.hosId, this.currentPersonId);
35
+    this.getListByDept(this.hosId, this.currentDeptId);
38 36
   }
39
-  //获取选中支助人员的工单列表
40
-  getOrdersByPerson(hosId: number, currentPersonId: number) {
37
+  //获取选中科室的列表
38
+  getListByDept(hosId: number, currentDeptId: number) {
41 39
     this.loading1 = true;
42 40
     let postData = {
41
+      type: "date",
43 42
       idx: this.pageIndex - 1,
44 43
       sum: this.pageSize,
45 44
       startTime: this.startTime,
46 45
       endTime: this.endTime,
47 46
       hosId,
48
-      groupId: this.groupId == "null" ? "" : this.groupId,
49
-      worker: currentPersonId,
47
+      deptId: currentDeptId,
50 48
     };
51
-    this.mainService.postCustom("report", "userDetails", postData).subscribe(
49
+    this.mainService.postReportCount("deptInspect", postData).subscribe(
52 50
       (result) => {
53 51
         this.loading1 = false;
54 52
         if (result.status == 200) {
@@ -64,14 +62,14 @@ export class InspectActiveDetailComponent implements OnInit {
64 62
       }
65 63
     );
66 64
   }
67
-  //查看积分详情
65
+  //查看工单列表
68 66
   integralDetail(obj) {
69 67
     this.router.navigateByUrl(
70
-      `/main/workerStatistics/workerStatisticsDetail/${this.currentPersonId}/${this.startTime}/${this.endTime}/${this.groupId}/orderDetail/${obj.id}/3`
68
+      `/main/inspectActive/inspectActiveDetail/${this.currentDeptId}/${this.startTime}/${this.endTime}/inspectActiveOrderList/${this.currentDeptId}/${this.startTime}/${this.endTime}/${obj.userId}`
71 69
     );
72 70
   }
73 71
   //关闭
74 72
   close() {
75
-    this.router.navigateByUrl("/main/workerStatistics");
73
+    this.router.navigateByUrl(`/main/inspectActive`);
76 74
   }
77 75
 }

+ 24 - 0
src/app/views/inspect-active-order-list/inspect-active-order-list-routing.module.ts

@@ -0,0 +1,24 @@
1
+import { NgModule } from "@angular/core";
2
+import { Routes, RouterModule } from "@angular/router";
3
+import { InspectActiveOrderListComponent } from './inspect-active-order-list.component';
4
+import { OrderDetailComponent } from 'src/app/share/order-detail/order-detail.component';
5
+
6
+const routes: Routes = [
7
+  {
8
+    path: "",
9
+    component: InspectActiveOrderListComponent,
10
+    children: [
11
+      {
12
+        // 查看详情
13
+        path: "orderDetail/:id/:type",
14
+        component: OrderDetailComponent,
15
+      },
16
+    ],
17
+  },
18
+];
19
+
20
+@NgModule({
21
+  imports: [RouterModule.forChild(routes)],
22
+  exports: [RouterModule],
23
+})
24
+export class InspectActiveOrderListRoutingModule {}

+ 49 - 0
src/app/views/inspect-active-order-list/inspect-active-order-list.component.html

@@ -0,0 +1,49 @@
1
+<div class="detail">
2
+  <div class="title">
3
+    工单详情
4
+    <i class="icon_transport transport-guanbi" (click)="close()"></i>
5
+  </div>
6
+  <div class="box">
7
+    <nz-table class="hospitalTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
8
+      [nzLoading]="loading1" [nzScroll]="{y:'350px'}">
9
+      <thead>
10
+        <tr class="thead">
11
+          <th nzWidth="5%">序号</th>
12
+          <th nzWidth="15%">工单单号</th>
13
+          <th nzWidth="15%">发起时间</th>
14
+          <th nzWidth="15%">执行时长</th>
15
+          <th nzWidth="15%">积分</th>
16
+          <th nzWidth="15%">建单类型</th>
17
+          <th nzWidth="10%">是否特殊关闭</th>
18
+          <th nzWidth="10%">操作</th>
19
+        </tr>
20
+      </thead>
21
+      <tbody>
22
+        <tr *ngFor="let data of listOfData;let index=index;">
23
+          <td>{{index+(pageIndex-1)*10+1}}</td>
24
+          <td>{{data.gdcode}}</td>
25
+          <td>{{data.startTime|date:'yyyy-MM-dd HH:mm'}}</td>
26
+          <td>{{data.showTimeNum}}</td>
27
+          <td>{{data.grade?data.grade.gradeTotal:''}}</td>
28
+          <td>{{data.sourceType}}</td>
29
+          <td>{{data.specialCloseReason?'是':'否'}}</td>
30
+          <td>
31
+            <div class="coop">
32
+              <span (click)="integralDetail(data)">查看</span>
33
+            </div>
34
+          </td>
35
+        </tr>
36
+      </tbody>
37
+    </nz-table>
38
+    <div class="pagination">
39
+      <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
40
+        (nzPageIndexChange)="getListByWorker(hosId,currentDeptId)"
41
+        (nzPageSizeChange)="getListByWorker(hosId,currentDeptId)">
42
+      </nz-pagination>
43
+    </div>
44
+  </div>
45
+  <div class="btns">
46
+    <button class=" btn cancel" nz-button nzType="default" (click)="close()">关闭</button>
47
+  </div>
48
+</div>
49
+<router-outlet></router-outlet>

+ 591 - 0
src/app/views/inspect-active-order-list/inspect-active-order-list.component.less

@@ -0,0 +1,591 @@
1
+@import "../../../../src/theme.less";
2
+:host {
3
+  width: 100%;
4
+  height: 100%;
5
+  position: fixed;
6
+  left: 0;
7
+  top: 0;
8
+  background: rgba(0, 0, 0, 0.4);
9
+  z-index: 99;
10
+
11
+  display: flex;
12
+  justify-content: center;
13
+  align-items: center;
14
+}
15
+
16
+.detail {
17
+  width: 1200px;
18
+  height: 580px;
19
+  border-radius: 5px;
20
+  background: #fff;
21
+  color: #333;
22
+  font-size: 14px;
23
+  padding: 12px 20px;
24
+  position: relative;
25
+  padding-bottom: 70px;
26
+
27
+  .title {
28
+    font-size: 18px;
29
+    text-align: center;
30
+    line-height: 24px;
31
+    margin: 0;
32
+    margin-bottom: 12px;
33
+    position: relative;
34
+
35
+    i {
36
+      position: absolute;
37
+      right: 0;
38
+      top: 0;
39
+      font-size: 20px;
40
+      color: #666;
41
+      cursor: pointer;
42
+      padding: 0 5px;
43
+    }
44
+  }
45
+
46
+  & > .box {
47
+    border: 1px solid #e5e9ed;
48
+    border-radius: 5px;
49
+    overflow: hidden;
50
+
51
+    .tab {
52
+      width: 100%;
53
+      height: 60px;
54
+      border-bottom: 1px solid #e5e9ed;
55
+
56
+      .item {
57
+        text-align: center;
58
+        line-height: 60px;
59
+        height: 100%;
60
+        border-right: 1px solid #e5e9ed;
61
+
62
+        &:nth-last-child(1) {
63
+          border: none;
64
+        }
65
+
66
+        &.checked {
67
+          background: #f9fafb;
68
+        }
69
+      }
70
+    }
71
+
72
+    .content {
73
+      width: 100%;
74
+      min-height: 453px;
75
+      max-height: 500px;
76
+
77
+      &.orders {
78
+        background: #f9fafb;
79
+      }
80
+
81
+      & > .top {
82
+        padding: 10px 32px;
83
+        border-bottom: 1px solid #e5e9ed;
84
+        overflow: hidden;
85
+        background: #fff;
86
+
87
+        .num {
88
+          font-size: 16px;
89
+          overflow: hidden;
90
+          margin-bottom: 6px;
91
+
92
+          .left {
93
+            float: left;
94
+            font-weight: 600;
95
+          }
96
+
97
+          .right {
98
+            float: right;
99
+          }
100
+        }
101
+
102
+        .info {
103
+          color: #666;
104
+
105
+          & > div {
106
+            margin: 4px 0;
107
+          }
108
+
109
+          .jiaji {
110
+            margin: 0;
111
+            margin-top: 8px;
112
+          }
113
+        }
114
+      }
115
+
116
+      & > .center {
117
+        padding: 27px 0 17px 0;
118
+        border-bottom: 1px solid #e5e9ed;
119
+        font-size: 12px;
120
+        background: #fff;
121
+
122
+        .box {
123
+          display: flex;
124
+          justify-content: center;
125
+
126
+          .steps {
127
+            &:nth-last-child(1) {
128
+              .line {
129
+                display: none !important;
130
+              }
131
+            }
132
+
133
+            .step {
134
+              .info {
135
+                width: 90px;
136
+                text-align: center;
137
+                display: inline-block;
138
+                vertical-align: top;
139
+
140
+                i {
141
+                  color: #e5e9ed;
142
+
143
+                  &.green {
144
+                    color: #bee1a7;
145
+                  }
146
+                }
147
+              }
148
+
149
+              p {
150
+                margin: 0;
151
+              }
152
+
153
+              .line {
154
+                display: inline-block;
155
+                width: 60px;
156
+                height: 2px;
157
+                background: #e5e9ed;
158
+              }
159
+            }
160
+          }
161
+        }
162
+      }
163
+
164
+      & > .bottom {
165
+        padding: 25px 32px;
166
+        background: #f9fafb;
167
+
168
+        .urgent {
169
+          input {
170
+            width: 600px;
171
+          }
172
+
173
+          .candelBtn {
174
+            margin-left: 20px;
175
+          }
176
+        }
177
+
178
+        .table {
179
+          width: 100%;
180
+          height: 100%;
181
+          min-height: 160px;
182
+          background: #fff;
183
+          border-radius: 5px;
184
+
185
+          .thead {
186
+            background-image: repeating-linear-gradient(
187
+              to right,
188
+              @bg-start,
189
+              @bg-end 100%
190
+            ) !important;
191
+
192
+            th {
193
+              color: #fff !important;
194
+              text-align: center;
195
+              font-size: 12px;
196
+              border: none;
197
+            }
198
+          }
199
+
200
+          .detailDrugTable {
201
+            .thead {
202
+              background-image: repeating-linear-gradient(
203
+                to right,
204
+                @bg-start,
205
+                @bg-end 50%
206
+              ) !important;
207
+            }
208
+          }
209
+
210
+          .ant-table-tbody {
211
+            tr {
212
+              text-align: center;
213
+              font-size: 12px;
214
+              border: none;
215
+
216
+              td {
217
+                border: none;
218
+              }
219
+            }
220
+
221
+            tr:nth-child(2n) {
222
+              background: #f9fafb;
223
+            }
224
+          }
225
+        }
226
+
227
+        .info {
228
+          width: 100%;
229
+          height: 100%;
230
+          background: #fff;
231
+          border-radius: 5px;
232
+          border: 1px solid #e5e9ed;
233
+          padding: 24px 28px 14px 28px;
234
+          margin-bottom: 8px;
235
+
236
+          .top {
237
+            .left {
238
+              border-right: 1px dashed #e5e9ed;
239
+
240
+              p {
241
+                padding: 0 70px 0 102px;
242
+                overflow: hidden;
243
+
244
+                & > span:nth-child(1) {
245
+                  float: left;
246
+                }
247
+
248
+                & > span:nth-child(2) {
249
+                  float: right;
250
+                  color: #666;
251
+                  text-align: right;
252
+                  max-width: 175px;
253
+                }
254
+              }
255
+            }
256
+
257
+            .right {
258
+              p {
259
+                padding: 0 102px 0 70px;
260
+                overflow: hidden;
261
+
262
+                span:nth-child(1) {
263
+                  float: left;
264
+                }
265
+
266
+                span:nth-child(2) {
267
+                  float: right;
268
+                  color: #666;
269
+                  text-align: right;
270
+                }
271
+              }
272
+            }
273
+          }
274
+
275
+          .wait {
276
+            text-align: center;
277
+            margin-top: 7px;
278
+
279
+            i {
280
+              font-size: 24px;
281
+              color: #62c26d;
282
+            }
283
+
284
+            span {
285
+              color: #62c26d;
286
+            }
287
+          }
288
+        }
289
+      }
290
+
291
+      &.pingjia {
292
+        .msg {
293
+          width: 100%;
294
+          height: 50px;
295
+          line-height: 50px;
296
+          padding-left: 32px;
297
+          border-bottom: 1px solid #e5e9ed;
298
+
299
+          div {
300
+            display: inline-block;
301
+            margin-right: 100px;
302
+          }
303
+        }
304
+
305
+        .con {
306
+          padding: 16px 32px;
307
+          min-height: 360px;
308
+        }
309
+      }
310
+
311
+      & > .form {
312
+        .ant-form-item {
313
+          padding: 0 32px 13px 32px;
314
+          margin-bottom: 0;
315
+          border-bottom: 1px solid #e5e9ed;
316
+
317
+          &:nth-last-child(1) {
318
+            border: none;
319
+          }
320
+        }
321
+
322
+        .ant-form-item-label {
323
+          line-height: 34px;
324
+          text-align: left;
325
+        }
326
+      }
327
+
328
+      & > .mediation {
329
+        padding: 16px 32px;
330
+
331
+        .item {
332
+          border-bottom: 1px solid #e5e9ed;
333
+          padding-top: 10px;
334
+
335
+          .label {
336
+            line-height: 28px;
337
+            margin-top: 10px;
338
+          }
339
+
340
+          .info {
341
+            line-height: 28px;
342
+            color: #999;
343
+            padding-bottom: 20px;
344
+          }
345
+        }
346
+      }
347
+
348
+      &.jifen {
349
+        padding: 32px;
350
+
351
+        & > .table {
352
+          width: 100%;
353
+          height: 100%;
354
+          min-height: 160px;
355
+          padding: 6px;
356
+          background: #fff;
357
+          border: 1px solid #e5e9ed;
358
+          border-radius: 5px;
359
+          overflow: hidden;
360
+
361
+          .thead {
362
+            background-image: repeating-linear-gradient(
363
+              to right,
364
+              @bg-start,
365
+              @bg-end 100%
366
+            ) !important;
367
+
368
+            th {
369
+              color: #fff !important;
370
+              text-align: center;
371
+              font-size: 12px;
372
+              border: none;
373
+              background: transparent;
374
+            }
375
+          }
376
+
377
+          .ant-table-tbody {
378
+            tr {
379
+              text-align: center;
380
+              font-size: 12px;
381
+              border: none;
382
+
383
+              td {
384
+                border: none;
385
+              }
386
+            }
387
+
388
+            tr:nth-child(2n) {
389
+              background: #f9fafb;
390
+            }
391
+          }
392
+        }
393
+      }
394
+    }
395
+  }
396
+
397
+  .btns {
398
+    display: flex;
399
+    justify-content: center;
400
+    align-items: center;
401
+    width: 60%;
402
+    margin: 48px auto 0;
403
+
404
+    .btn {
405
+      margin: 9px;
406
+      margin-bottom: 0;
407
+    }
408
+  }
409
+
410
+  .ant-table {
411
+    border: none !important;
412
+  }
413
+}
414
+
415
+// 撤回工单
416
+.recallOrder {
417
+  position: fixed;
418
+  left: 0;
419
+  top: 0;
420
+  width: 100%;
421
+  height: 100%;
422
+
423
+  display: flex;
424
+  justify-content: center;
425
+  align-items: center;
426
+  background: rgba(0, 0, 0, 0.4);
427
+  z-index: 99;
428
+
429
+  .modalBody {
430
+    width: 350px;
431
+    height: 220px;
432
+    background: #fff;
433
+    border-radius: 5px;
434
+    padding: 10px 20px;
435
+    color: #333;
436
+
437
+    .title {
438
+      width: 100%;
439
+      text-align: center;
440
+      font-size: 18px;
441
+      position: relative;
442
+
443
+      i {
444
+        position: absolute;
445
+        right: 0;
446
+        top: 0;
447
+        font-size: 20px;
448
+        color: #666;
449
+        cursor: pointer;
450
+        padding: 0 5px;
451
+      }
452
+    }
453
+
454
+    .content {
455
+      width: 310px;
456
+      height: 117px;
457
+      background: #f9fafb;
458
+      border: 1px solid #e5e9ed;
459
+      border-radius: 5px;
460
+      overflow: hidden;
461
+      margin-top: 12px;
462
+
463
+      div {
464
+        text-align: center;
465
+        margin: 0;
466
+
467
+        &.icon {
468
+          margin-top: 17px;
469
+
470
+          i {
471
+            color: #ff3b53;
472
+            font-size: 30px !important;
473
+
474
+            &.transport-wenhao {
475
+              color: #f5a523;
476
+            }
477
+          }
478
+        }
479
+
480
+        &.defeat {
481
+          color: #333;
482
+          font-size: 18px;
483
+        }
484
+
485
+        &:nth-child(3) {
486
+          font-size: 14px;
487
+          color: #666;
488
+        }
489
+      }
490
+
491
+      .conditions {
492
+        padding: 16px 20px;
493
+
494
+        div {
495
+          text-align: left;
496
+        }
497
+      }
498
+    }
499
+
500
+    button {
501
+      margin-top: 10px;
502
+
503
+      &.btn {
504
+        margin-left: 8px;
505
+      }
506
+    }
507
+  }
508
+}
509
+
510
+.txtC {
511
+  text-align: center;
512
+}
513
+.ji {
514
+  position: absolute;
515
+  right: 0px;
516
+  top: -3px;
517
+  width: 30px;
518
+}
519
+.hospitalTable {
520
+  padding: 21px 12px;
521
+  padding-bottom: 0;
522
+
523
+  .thead {
524
+    background-image: linear-gradient(to right, @bg-start, @bg-end);
525
+
526
+    th {
527
+      background: transparent;
528
+      color: #fff;
529
+      text-align: center;
530
+      font-size: 14px;
531
+    }
532
+  }
533
+
534
+  .ant-table-body {
535
+    border-bottom: 1px solid #e5e9ed;
536
+  }
537
+
538
+  .ant-table-tbody {
539
+    tr {
540
+      text-align: center;
541
+      font-size: 14px;
542
+      border: none;
543
+      color: #333;
544
+
545
+      td {
546
+        border: none;
547
+
548
+        .coop {
549
+          span {
550
+            display: inline-block;
551
+            width: 60px;
552
+            cursor: pointer;
553
+
554
+            &::after {
555
+              content: "|";
556
+              float: right;
557
+            }
558
+
559
+            &:hover {
560
+              color: @primary-color;
561
+            }
562
+
563
+            &:active {
564
+              color: @primary-color;
565
+            }
566
+
567
+            &:nth-last-child(1) {
568
+              &::after {
569
+                content: "";
570
+              }
571
+            }
572
+          }
573
+        }
574
+      }
575
+    }
576
+
577
+    tr:nth-child(2n-1) {
578
+      background: #f9fafb;
579
+    }
580
+  }
581
+}
582
+.pagination {
583
+  margin-top: 14px;
584
+  position: absolute;
585
+  right: 5px;
586
+}
587
+.filters {
588
+  position: absolute;
589
+  left: 0;
590
+  top: 0;
591
+}

+ 100 - 0
src/app/views/inspect-active-order-list/inspect-active-order-list.component.ts

@@ -0,0 +1,100 @@
1
+import { Component, OnInit } from "@angular/core";
2
+import { ActivatedRoute, Router } from "@angular/router";
3
+import { NzMessageService } from "ng-zorro-antd";
4
+import { MainService } from "src/app/services/main.service";
5
+import { ToolService } from "src/app/services/tool.service";
6
+
7
+@Component({
8
+  selector: "app-inspect-active-order-list",
9
+  templateUrl: "./inspect-active-order-list.component.html",
10
+  styleUrls: ["./inspect-active-order-list.component.less"],
11
+})
12
+export class InspectActiveOrderListComponent implements OnInit {
13
+  loading1 = false; //获取选中支助人员的工单列表loading
14
+  hosId; //当前院区id
15
+  currentDeptId; //当前科室id
16
+  workerId; //当前支助人员id
17
+  startTime; //当前开始时间
18
+  endTime; //当前结束时间
19
+  listOfData = []; //获取选中支助人员的工单列表
20
+  pageIndex: number = 1; //页码
21
+  listLength: number = 0; //总数据条目数
22
+  pageSize: number = 10; //每页条数
23
+  constructor(
24
+    private mainService: MainService,
25
+    private tool: ToolService,
26
+    private message: NzMessageService,
27
+    private route: ActivatedRoute,
28
+    private router: Router
29
+  ) {}
30
+
31
+  ngOnInit() {
32
+    this.hosId = this.tool.getCurrentHospital().id;
33
+    this.currentDeptId = this.route.snapshot.params.deptId;
34
+    this.startTime = this.route.snapshot.params.startTime;
35
+    this.endTime = this.route.snapshot.params.endTime;
36
+    this.workerId = this.route.snapshot.params.workerId;
37
+    this.getListByWorker(this.hosId, this.currentDeptId);
38
+  }
39
+  //获取选中工单列表
40
+  getListByWorker(hosId: number, currentDeptId: number) {
41
+    this.loading1 = true;
42
+    let postData = {
43
+      idx: this.pageIndex - 1,
44
+      sum: this.pageSize,
45
+      workOrder: {
46
+        abnormityType: 0,
47
+        timeOut: 0,
48
+        startTime1: this.startTime,
49
+        endTime1: this.endTime,
50
+        hosId,
51
+        createDept: currentDeptId,
52
+        worker: {
53
+          id: this.workerId,
54
+        },
55
+      },
56
+    };
57
+    this.mainService.getFetchDataList("data", "workOrder", postData).subscribe(
58
+      (result) => {
59
+        this.loading1 = false;
60
+        if (result.status == 200) {
61
+          this.listOfData = result.list;
62
+          this.listOfData.forEach((v) => {
63
+            switch (v.sourceId) {
64
+              case 2:
65
+                v.sourceType = "科室派单";
66
+                break;
67
+              case 3:
68
+                v.sourceType = "系统自动建单";
69
+                break;
70
+              case 4:
71
+                v.sourceType = "主动建单";
72
+                break;
73
+              default:
74
+                v.sourceType = "";
75
+            }
76
+          });
77
+          this.listLength = result.totalNum;
78
+        } else {
79
+          this.message.error("获取数据失败");
80
+        }
81
+      },
82
+      (err) => {
83
+        this.loading1 = false;
84
+        this.message.error("获取数据失败");
85
+      }
86
+    );
87
+  }
88
+  //查看积分详情
89
+  integralDetail(obj) {
90
+    this.router.navigateByUrl(
91
+      `/main/inspectActive/inspectActiveDetail/${this.currentDeptId}/${this.startTime}/${this.endTime}/inspectActiveOrderList/${this.currentDeptId}/${this.startTime}/${this.endTime}/${this.workerId}/orderDetail/${obj.id}/3`
92
+    );
93
+  }
94
+  //关闭
95
+  close() {
96
+    this.router.navigateByUrl(
97
+      `/main/inspectActive/inspectActiveDetail/${this.currentDeptId}/${this.startTime}/${this.endTime}`
98
+    );
99
+  }
100
+}

+ 17 - 0
src/app/views/inspect-active-order-list/inspect-active-order-list.module.ts

@@ -0,0 +1,17 @@
1
+import { NgModule } from '@angular/core';
2
+import { CommonModule } from '@angular/common';
3
+
4
+import { InspectActiveOrderListRoutingModule } from './inspect-active-order-list-routing.module';
5
+import { ShareModule } from 'src/app/share/share.module';
6
+import { InspectActiveOrderListComponent } from './inspect-active-order-list.component';
7
+
8
+
9
+@NgModule({
10
+  declarations: [InspectActiveOrderListComponent],
11
+  imports: [
12
+    CommonModule,
13
+    InspectActiveOrderListRoutingModule,
14
+    ShareModule
15
+  ]
16
+})
17
+export class InspectActiveOrderListModule { }

+ 1 - 1
src/app/views/inspect-active/inspect-active-routing.module.ts

@@ -8,7 +8,7 @@ const routes: Routes = [
8 8
     component: InspectActiveComponent,
9 9
     children: [
10 10
       {
11
-        path: "inspectActiveDetail/:workerId/:startTime/:endTime/:groupId", //id是workid,startTime是开始时间,endTime是结束时间,groupId是组ID
11
+        path: "inspectActiveDetail/:deptId/:startTime/:endTime", //id是deptId,startTime是开始时间,endTime是结束时间
12 12
         loadChildren: () =>
13 13
           import("../inspect-active-detail/inspect-active-detail.module").then(
14 14
             (m) => m.InspectActiveDetailModule

+ 18 - 24
src/app/views/inspect-active/inspect-active.component.html

@@ -15,13 +15,13 @@
15 15
           </nz-select>
16 16
         </div>
17 17
         <div class="list-template__searchItem">
18
-          <span class="label">支助人员</span>:
18
+          <span class="label">临床科室</span>:
19 19
           <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
20
-            (nzOnSearch)="changeUser($event)" nzPlaceHolder="请选择支助人员" [(ngModel)]="worker"
21
-            (ngModelChange)="searchWorker($event)">
20
+            (nzOnSearch)="changeDept($event)" nzPlaceHolder="请选择临床科室" [(ngModel)]="dept"
21
+            (ngModelChange)="searchDept($event)">
22 22
             <nz-option *ngIf="!isLoading" nzLabel="全部" [nzValue]="0"></nz-option>
23
-            <ng-container *ngFor="let option of allWorker">
24
-              <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
23
+            <ng-container *ngFor="let option of depts">
24
+              <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
25 25
             </ng-container>
26 26
             <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
27 27
               <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
@@ -41,33 +41,27 @@
41 41
         <thead>
42 42
           <tr class="thead">
43 43
             <th nzWidth="5%">序号</th>
44
-            <th nzWidth="10%">支助人员名称</th>
45
-            <th nzWidth="10%">预约检查总数</th>
46
-            <th nzWidth="12%">系统自动建单数</th>
47
-            <th nzWidth="8%">主动建单数</th>
48
-            <th nzWidth="8%">科室派单数</th>
49
-            <th nzWidth="7%">未建单</th>
50
-            <th nzWidth="10%">特殊关闭数量</th>
51
-            <th nzWidth="10%">主动服务占比</th>
52
-            <th nzWidth="10%">科室服务占比</th>
44
+            <th nzWidth="15%">临床科室</th>
45
+            <th nzWidth="15%">可预约检查总数</th>
46
+            <th nzWidth="15%">系统自动建单数</th>
47
+            <th nzWidth="15%">主动建单数</th>
48
+            <th nzWidth="15%">科室派单数</th>
49
+            <th nzWidth="10%">未建单</th>
53 50
             <th nzWidth="10%">操作</th>
54 51
           </tr>
55 52
         </thead>
56 53
         <tbody>
57 54
           <tr *ngFor="let data of listOfData;let index=index;">
58 55
             <td>{{index+(pageIndex-1)*10+1}}</td>
59
-            <td>{{ data.name }}</td>
60
-            <td>{{ data.total||0}}</td>
61
-            <td>{{data.order||0}}</td>
62
-            <td>{{data.num||0}}</td>
63
-            <td>{{data.specialCloseNum}}</td>
64
-            <td>{{data.avePer+'%'}}</td>
65
-            <td>{{data.arriveTime}}</td>
66
-            <td>{{data.arriveTime}}</td>
67
-            <td>{{data.completeTime}}</td>
56
+            <td>{{data.deptName}}</td>
57
+            <td>{{data.count5}}</td>
58
+            <td>{{data.count1}}</td>
59
+            <td>{{data.count2}}</td>
60
+            <td>{{data.count3}}</td>
61
+            <td>{{data.count4}}</td>
68 62
             <td>
69 63
               <div class="coop">
70
-                <span *ngIf="coopBtns.look" (click)="personDetail(data.workerId)">查看</span>
64
+                <span *ngIf="coopBtns.look" (click)="personDetail(data.deptId)">查看</span>
71 65
               </div>
72 66
             </td>
73 67
           </tr>

+ 30 - 26
src/app/views/inspect-active/inspect-active.component.ts

@@ -104,15 +104,17 @@ export class InspectActiveComponent implements OnInit {
104 104
   // 导出
105 105
   loading2 = false;
106 106
   export() {
107
-    let that = this;
108
-    let postData = {
109
-      hosId: that.hospital,
107
+    let postData: any = {
108
+      type: "total",
109
+      hosId: this.hospital,
110 110
       startTime: this.startDate + " " + "00:00:00",
111 111
       endTime: this.endDate + " " + "23:59:59",
112
-      groupId: that.worker || "",
113 112
     };
113
+    if (this.dept !== 0) {
114
+      postData.deptId = this.dept;
115
+    }
114 116
     this.loading2 = true;
115
-    that.mainService.exportReport("user", postData).subscribe(
117
+    this.mainService.exportReport("deptInspect", postData).subscribe(
116 118
       (data) => {
117 119
         this.loading2 = false;
118 120
         this.showPromptModal("导出", true, "");
@@ -124,7 +126,7 @@ export class InspectActiveComponent implements OnInit {
124 126
         var a = document.createElement("a");
125 127
         a.href = fileURL;
126 128
         a.target = "_blank";
127
-        a.download = "支助人员统计.xls";
129
+        a.download = "人员检查主动服务统计.xls";
128 130
         document.body.appendChild(a);
129 131
         a.click();
130 132
       },
@@ -137,7 +139,7 @@ export class InspectActiveComponent implements OnInit {
137 139
   // 重置
138 140
   reset() {
139 141
     this.changeDateRange("1");
140
-    this.worker = 0;
142
+    this.dept = 0;
141 143
     this.search();
142 144
   }
143 145
   // 表格数据
@@ -146,17 +148,20 @@ export class InspectActiveComponent implements OnInit {
146 148
     if (num !== undefined) {
147 149
       this.pageIndex = num;
148 150
     }
149
-    let postData = {
151
+    let postData: any = {
152
+      type: "total",
150 153
       idx: this.pageIndex - 1,
151 154
       sum: this.pageSize,
152 155
       startTime: this.searchData.dateRange.start,
153 156
       endTime: this.searchData.dateRange.end,
154 157
       hosId: this.searchData.hosId,
155
-      groupId: this.worker || "",
156 158
     };
159
+    if (this.dept !== 0) {
160
+      postData.deptId = this.dept;
161
+    }
157 162
     this.loading1 = true;
158 163
     this.mainService
159
-      .postCustom("report", "user", postData)
164
+      .postReportCount("deptInspect", postData)
160 165
       .subscribe((result) => {
161 166
         this.loading1 = false;
162 167
         this.listOfData = result.list || [];
@@ -165,34 +170,34 @@ export class InspectActiveComponent implements OnInit {
165 170
   }
166 171
   // 获取院区/分组
167 172
   hospital: string; //选中院区
168
-  allWorker: any = []; //支助人员列表
173
+  depts: any = []; //支助人员列表
169 174
   getAllHos() {
170 175
     this.hospital = this.tool.getCurrentHospital().id + "";
171 176
     this.getAllWorker();
172 177
   }
173
-  // 用户输入搜索支助人员
174
-  changeUser(e = "") {
178
+  // 用户输入搜索科室
179
+  changeDept(e = "") {
175 180
     this.isLoading = true;
176 181
     this.searchTimerSubject.next(e);
177 182
   }
178
-  // 获取支助人员列表
179
-  worker: number = 0; //选中的支助人员
183
+  // 获取护理单元科室列表
184
+  dept: number = 0; //选中的科室
180 185
   isLoading = false;
181 186
   getAllWorker(e: any = "") {
182 187
     let postData = {
183
-      user: {
184
-        name: e || "",
188
+      department: {
189
+        dept: e || "",
185 190
         hospital: { id: this.hospital },
186
-        usertype: { id: 106 }, //支助人员
191
+        type: { id: "281" }, //护理单元
187 192
       },
188 193
       idx: 0,
189 194
       sum: 10,
190 195
     };
191 196
     this.isLoading = true;
192 197
     this.mainService
193
-      .getFetchDataList("data", "user", postData)
198
+      .getFetchDataList("data", "department", postData)
194 199
       .subscribe((data) => {
195
-        this.allWorker = data.list;
200
+        this.depts = data.list;
196 201
         this.isLoading = false;
197 202
       });
198 203
   }
@@ -226,9 +231,9 @@ export class InspectActiveComponent implements OnInit {
226 231
       result[1].getDate();
227 232
     this.search();
228 233
   }
229
-  // 修改搜索条件支助人员
230
-  searchWorker(e) {
231
-    this.worker = e;
234
+  // 修改搜索条件科室
235
+  searchDept(e) {
236
+    this.dept = e;
232 237
     this.search();
233 238
   }
234 239
   // 日期选择 快速修改时间区间
@@ -297,12 +302,11 @@ export class InspectActiveComponent implements OnInit {
297 302
     }
298 303
   }
299 304
   //获取支助人员工单详情列表
300
-  personDetail(workerId) {
305
+  personDetail(deptId) {
301 306
     let startDate = this.startDate + " " + "00:00:00";
302 307
     let endDate = this.endDate + " " + "23:59:59";
303
-    let worker = this.worker || "null";
304 308
     this.router.navigateByUrl(
305
-      `/main/inspectActive/inspectActiveDetail/${workerId}/${startDate}/${endDate}/${worker}`
309
+      `/main/inspectActive/inspectActiveDetail/${deptId}/${startDate}/${endDate}`
306 310
     );
307 311
   }
308 312
 }

+ 1 - 1
src/app/views/order-statistics/order-statistics.component.html

@@ -28,7 +28,7 @@
28 28
           </nz-year-picker>
29 29
         </div>
30 30
         <div class="list-template__searchItem ml8">
31
-          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzAllowClear
31
+          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false"
32 32
             nzPlaceHolder="请选择时间" [(ngModel)]="defRange" (ngModelChange)="changeDateRange($event)">
33 33
             <nz-option nzLabel="{{data.label}}" nzValue="{{data.id}}" *ngFor="let data of defRanges"></nz-option>
34 34
           </nz-select>

+ 1 - 1
src/app/views/task-type-statistics/task-type-statistics.component.html

@@ -9,7 +9,7 @@
9 9
           <br />
10 10
         </div>
11 11
         <div class="list-template__searchItem ml8">
12
-          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzAllowClear
12
+          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false"
13 13
             nzPlaceHolder="请选择时间" [(ngModel)]="defRange" (ngModelChange)="changeDateRange($event)">
14 14
             <nz-option nzLabel="{{data.label}}" nzValue="{{data.id}}" *ngFor="let data of defRanges"></nz-option>
15 15
           </nz-select>

+ 5 - 4
src/app/views/worker-statistics/worker-statistics.component.html

@@ -9,15 +9,16 @@
9 9
           <br />
10 10
         </div>
11 11
         <div class="list-template__searchItem ml8">
12
-          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzAllowClear
13
-            nzPlaceHolder="请选择时间" [(ngModel)]="defRange" (ngModelChange)="changeDateRange($event)">
12
+          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzPlaceHolder="请选择时间"
13
+            [(ngModel)]="defRange" (ngModelChange)="changeDateRange($event)">
14 14
             <nz-option nzLabel="{{data.label}}" nzValue="{{data.id}}" *ngFor="let data of defRanges"></nz-option>
15 15
           </nz-select>
16 16
         </div>
17 17
         <div class="list-template__searchItem">
18 18
           <span class="label">分组</span>:
19
-          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzAllowClear
20
-            nzPlaceHolder="请选择分组" [ngModel]="group" (ngModelChange)="searchGroup($event)">
19
+          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzPlaceHolder="请选择分组"
20
+            [ngModel]="group" (ngModelChange)="searchGroup($event)">
21
+            <nz-option nzLabel="全部" [nzValue]="0"></nz-option>
21 22
             <nz-option nzLabel="{{data.groupName}}" nzValue="{{data.id}}" *ngFor="let data of groupList"></nz-option>
22 23
           </nz-select>
23 24
         </div>

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

@@ -132,7 +132,7 @@ export class WorkerStatisticsComponent implements OnInit {
132 132
   // 重置
133 133
   reset() {
134 134
     this.changeDateRange("1");
135
-    this.group = null;
135
+    this.group = 0;
136 136
     this.search();
137 137
   }
138 138
   // 表格数据
@@ -160,7 +160,7 @@ export class WorkerStatisticsComponent implements OnInit {
160 160
   }
161 161
   // 获取院区/分组
162 162
   hospital: string; //选中院区
163
-  group: string; //选中组
163
+  group: number = 0; //选中组
164 164
   groupList: any = []; //分组
165 165
   getAllHos() {
166 166
     this.hospital = this.tool.getCurrentHospital().id + "";