浏览代码

人员统计

seimin 11 月之前
父节点
当前提交
4079af9f72

+ 1 - 1
proxy.conf.json

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

+ 5 - 0
src/app/views/main/main-routing.module.ts

@@ -463,6 +463,11 @@ const routes: Routes = [
463 463
         path: "performanceAllocation",
464 464
         loadChildren: () => import("../performance-allocation/performance-allocation.module").then((m) => m.PerformanceAllocationModule),
465 465
       },
466
+      // 绩效基础配置-人员统计
467
+      {
468
+        path: "quiltWashingPersonnelStatistics",
469
+        loadChildren: () => import("../quilt-washing-personnel-statistics/quilt-washing-personnel-statistics.module").then((m) => m.QuiltWashingPersonnelStatisticsModule),
470
+      },
466 471
     ],
467 472
   },
468 473
 ];

文件差异内容过多而无法显示
+ 5 - 0
src/app/views/main/main.component.html


+ 13 - 0
src/app/views/quilt-washing-personnel-statistics/quilt-washing-personnel-statistics-routing.module.ts

@@ -0,0 +1,13 @@
1
+import { NgModule } from "@angular/core";
2
+import { Routes, RouterModule } from "@angular/router";
3
+import { QuiltWashingPersonnelStatisticsComponent } from "./quilt-washing-personnel-statistics.component";
4
+
5
+const routes: Routes = [
6
+  { path: "", component: QuiltWashingPersonnelStatisticsComponent },
7
+];
8
+
9
+@NgModule({
10
+  imports: [RouterModule.forChild(routes)],
11
+  exports: [RouterModule],
12
+})
13
+export class QuiltWashingPersonnelStatisticsRoutingModule {}

+ 81 - 0
src/app/views/quilt-washing-personnel-statistics/quilt-washing-personnel-statistics.component.html

@@ -0,0 +1,81 @@
1
+<div class="list-template">
2
+  <div class="list-template__content">
3
+    <div class="list-template__top" nz-row>
4
+      <div nz-col nzXl='18' class="list-template__searchBox">
5
+        <div class="list-template__searchItem">
6
+          <nz-radio-group [(ngModel)]="dateType" (ngModelChange)="changeDateType($event)">
7
+            <label *ngFor="let data of dateTypes" nz-radio-button [nzValue]="data.value">{{data.label}}</label>
8
+          </nz-radio-group>
9
+        </div>
10
+        <div class="list-template__searchItem">
11
+          <span class="label">发起时间</span>:
12
+          <nz-range-picker *ngIf="dateType=='day'" [(ngModel)]="dateRange" [nzAllowClear]='false'
13
+            [nzDisabledDate]="disabledDate" (ngModelChange)="changeDate($event)">
14
+          </nz-range-picker>
15
+          <nz-month-picker *ngIf="dateType=='month'" [(ngModel)]="monthRangeStart" [nzDisabledDate]="disabledMonthStart"
16
+            (ngModelChange)="changeMonthStart($event)" nzPlaceHolder="请选择开始月份">
17
+          </nz-month-picker>
18
+          <span *ngIf="dateType=='month'"> ~ </span>
19
+          <nz-month-picker *ngIf="dateType=='month'" [(ngModel)]="monthRangeEnd" [nzDisabledDate]="disabledMonthEnd"
20
+            (ngModelChange)="changeMonthEnd($event)" nzPlaceHolder="请选择截止月份">
21
+          </nz-month-picker>
22
+          <nz-year-picker *ngIf="dateType=='year'" [(ngModel)]="yearRangeStart" [nzDisabledDate]="disabledYearStart"
23
+            (ngModelChange)="changeYearStart($event)" nzPlaceHolder="请选择开始年份">
24
+          </nz-year-picker>
25
+          <span *ngIf="dateType=='year'"> ~ </span>
26
+          <nz-year-picker *ngIf="dateType=='year'" [(ngModel)]="yearRangeEnd" (ngModelChange)="changeYearEnd($event)"
27
+            [nzDisabledDate]="disabledYearEnd" nzPlaceHolder="请选择截止年份">
28
+          </nz-year-picker>
29
+        </div>
30
+        <div class="list-template__searchItem ml8">
31
+          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false" nzPlaceHolder="请选择时间"
32
+            [(ngModel)]="defRange" (ngModelChange)="changeDateRange($event)">
33
+            <nz-option nzLabel="{{data.label}}" nzValue="{{data.id}}" *ngFor="let data of defRanges"></nz-option>
34
+          </nz-select>
35
+        </div>
36
+      </div>
37
+      <div nz-col nzXl='6' class="list-template__btns">
38
+        <button nz-button class="btn default" (click)='search(1)'>搜索</button>
39
+        <button nz-button class="btn default ml8" (click)='export()' [nzLoading]="loading2">导出</button>
40
+        <button nz-button class="btn default ml8" (click)='reset()'>重置</button>
41
+      </div>
42
+    </div>
43
+    <div class="list-template__bottom">
44
+      <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
45
+        [nzLoading]="loading1">
46
+        <thead (nzSortChange)="sort($event)" nzSingleSort>
47
+          <tr class="thead">
48
+            <th nzWidth="5%">序号</th>
49
+            <th nzWidth="15%">任务类型</th>
50
+            <th nzShowSort nzWidth="20%" nzSortKey="source1" [(nzSort)]="sortCurrent.source1">服务台建单数量</th>
51
+            <th nzShowSort nzWidth="20%" nzSortKey="source2" [(nzSort)]="sortCurrent.source2">护士端建单数量</th>
52
+            <th nzShowSort nzWidth="20%" nzSortKey="source3" [(nzSort)]="sortCurrent.source3">系统自动建单数量</th>
53
+            <th nzShowSort nzWidth="20%" nzSortKey="source4" [(nzSort)]="sortCurrent.source4">微信端建单数量</th>
54
+          </tr>
55
+        </thead>
56
+        <tbody>
57
+          <tr *ngFor="let data of listOfData;let index=index;">
58
+            <td>{{index+(pageIndex-1) * pageSize + 1}}</td>
59
+            <td>{{ data.taskName }}</td>
60
+            <td>{{ data.source1||0}}</td>
61
+            <td>{{data.source2||0}}</td>
62
+            <td>{{data.source3||0}}</td>
63
+            <td>{{data.source4||0}}</td>
64
+          </tr>
65
+        </tbody>
66
+      </nz-table>
67
+      <div class="list-template__pagination">
68
+        <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
69
+          (nzPageIndexChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)"
70
+          (nzPageSizeChange)="getList(pageIndex, sortCurrentKey, sortCurrentValue)">
71
+        </nz-pagination>
72
+      </div>
73
+    </div>
74
+  </div>
75
+</div>
76
+<!-- 操作成功/失败提示框 -->
77
+<app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
78
+  [info]="promptInfo"></app-prompt-modal>
79
+
80
+<!-- 查看详情 -->
81
+<router-outlet></router-outlet>

+ 95 - 0
src/app/views/quilt-washing-personnel-statistics/quilt-washing-personnel-statistics.component.less

@@ -0,0 +1,95 @@
1
+@import "../../../../src/theme.less";
2
+
3
+:host ::ng-deep .on {
4
+  color: #fff !important;
5
+}
6
+
7
+.save {
8
+  position: fixed;
9
+  left: 0;
10
+  top: 0;
11
+  width: 100%;
12
+  height: 100%;
13
+  background: rgba(0, 0, 0, 0.4);
14
+  z-index: 99;
15
+
16
+  .modalBody {
17
+    width: 1000px;
18
+    background: #fff;
19
+    border-radius: 5px;
20
+    padding: 10px 20px;
21
+    color: #333;
22
+
23
+    .title {
24
+      width: 100%;
25
+      text-align: center;
26
+      font-size: 18px;
27
+      position: relative;
28
+
29
+      i {
30
+        position: absolute;
31
+        right: 0;
32
+        top: 0;
33
+        font-size: 20px;
34
+        color: #666;
35
+        cursor: pointer;
36
+        padding: 0 5px;
37
+      }
38
+    }
39
+
40
+    .content {
41
+      width: 100%;
42
+      border: 1px solid #e5e9ed;
43
+      border-radius: 5px;
44
+      overflow: hidden;
45
+      margin-top: 12px;
46
+
47
+      .conItem {
48
+        color: #333;
49
+
50
+        .jiTit {
51
+          height: 50px;
52
+          line-height: 50px;
53
+          border-bottom: 1px solid #e5e9ed;
54
+          padding: 0 32px;
55
+        }
56
+
57
+        .defeat {
58
+          font-size: 14px;
59
+          color: #333;
60
+          padding: 15px 32px;
61
+          min-height: 125px;
62
+        }
63
+
64
+        &.noCon {
65
+          background: #f9fafb;
66
+          padding: 16px 32px 24px 32px;
67
+          border-top: 1px solid #e5e9ed;
68
+
69
+          .title {
70
+            text-align: left;
71
+            font-size: 14px;
72
+            margin-bottom: 8px;
73
+          }
74
+
75
+          textarea {
76
+            min-height: 210px;
77
+          }
78
+        }
79
+      }
80
+    }
81
+
82
+    button {
83
+      margin-top: 10px;
84
+      margin-left: 10px;
85
+    }
86
+  }
87
+
88
+  .txtL {
89
+    text-align: left !important;
90
+  }
91
+
92
+  .txtR {
93
+    text-align: right !important;
94
+  }
95
+}

+ 456 - 0
src/app/views/quilt-washing-personnel-statistics/quilt-washing-personnel-statistics.component.ts

@@ -0,0 +1,456 @@
1
+import { Component, OnInit } from "@angular/core";
2
+import { ActivatedRoute, Router } from "@angular/router";
3
+import { differenceInCalendarDays, endOfMonth, endOfYear, format, startOfMonth, startOfYear } from "date-fns";
4
+
5
+import { MainService } from "../../services/main.service";
6
+import { DateService } from "../../services/date.service";
7
+import { MyServiceService } from "../../services/my-service.service";
8
+import { ToolService } from "../../services/tool.service";
9
+
10
+@Component({
11
+  selector: "app-quilt-washing-personnel-statistics",
12
+  templateUrl: "./quilt-washing-personnel-statistics.component.html",
13
+  styleUrls: ["./quilt-washing-personnel-statistics.component.less"],
14
+})
15
+export class QuiltWashingPersonnelStatisticsComponent implements OnInit {
16
+  constructor(
17
+    private route: ActivatedRoute,
18
+    private router: Router,
19
+    private mainService: MainService,
20
+    private dateService: DateService,
21
+    private myService: MyServiceService,
22
+    private tool: ToolService
23
+  ) {}
24
+
25
+  ngOnInit() {
26
+    this.coopBtns = this.tool.initCoopBtns(this.route);
27
+    this.getAllHos();
28
+    this.changeDateRange(this.defRange);
29
+    this.search();
30
+  }
31
+
32
+  dateType: string = "day"; //选中时间维度
33
+  dateTypes: any = [
34
+    {
35
+      label: "按天统计",
36
+      value: "day",
37
+    },
38
+    {
39
+      label: "按月统计",
40
+      value: "month",
41
+    },
42
+    {
43
+      label: "按年统计",
44
+      value: "year",
45
+    },
46
+  ]; //时间维度
47
+  defRange = "1"; //默认上周
48
+  defRanges = [
49
+    {
50
+      label: "上周",
51
+      id: 1,
52
+    },
53
+    {
54
+      label: "上月",
55
+      id: 2,
56
+    },
57
+    {
58
+      label: "上年",
59
+      id: 3,
60
+    },
61
+  ]; //时间默认区间
62
+
63
+  listOfData: any[] = []; //表格数据
64
+  pageIndex: number = 1; //表格当前页码
65
+  pageSize: number = 10; //表格每页展示条数
66
+  listLength: number = 10; //表格总数据量
67
+
68
+  alldepart: any = []; //当前院区所属科室
69
+  dateRange: any = []; //发起时间区间 天
70
+  monthRangeStart: any; //发起时间 月 起
71
+  monthRangeEnd: any; //发起时间 月 止
72
+  yearRangeStart: any; //发起时间 年 起
73
+  yearRangeEnd: any; //发起时间 年 止
74
+
75
+  promptContent: string; //操作提示框提示信息
76
+  ifSuccess: boolean; //操作成功/失败
77
+  promptInfo: string; //操作结果提示信息
78
+  promptModalShow: boolean; //操作提示框是否展示
79
+
80
+  // 初始化增删改按钮
81
+  coopBtns: any = {};
82
+  searchData: any = {}; // 综合统计页面带过来的参数
83
+  getSearchData() {
84
+    let that = this;
85
+    let sub = that.myService.getMsg().subscribe((msg) => {
86
+      // 从综合报表跳转过来
87
+      that.searchData = msg;
88
+      console.log(that.searchData);
89
+      console.log(66);
90
+      sub.unsubscribe(); //取消订阅,否则订阅函数会累加执行
91
+      that.hospital = that.searchData["hosId"];
92
+      that.changeDate(that.searchData["range"]);
93
+      that.defRange = that.searchData["defRange"];
94
+      that.search();
95
+    });
96
+    that.changeDateRange(that.defRange);
97
+    that.search();
98
+  }
99
+  // 搜索
100
+  search(num?: number) {
101
+    if (this.hospital) {
102
+      this.searchData["hosId"] = this.hospital;
103
+    }
104
+    if (this.startDate) {
105
+      this.searchData["dateRange"] = {
106
+        start: this.startDate + " " + "00:00:00",
107
+        end: this.endDate + " " + "23:59:59",
108
+      };
109
+    }
110
+    if (num !== undefined) {
111
+      this.getList(num, this.sortCurrentKey, this.sortCurrentValue);
112
+    } else {
113
+      this.getList(this.pageIndex, this.sortCurrentKey, this.sortCurrentValue);
114
+    }
115
+  }
116
+  // 导出
117
+  loading2 = false;
118
+  export() {
119
+    let that = this;
120
+    let postData: any = {
121
+      startTime: this.startDate + " " + "00:00:00",
122
+      endTime: this.endDate + " " + "23:59:59",
123
+      hosId: that.hospital,
124
+      type: this.dateType,
125
+      sourceType: "taskType",
126
+    };
127
+    if (this.sortCurrentKey && this.sortCurrentValue) {
128
+      postData.sort =
129
+        this.sortCurrentValue === "ascend"
130
+          ? this.sortCurrentKey
131
+          : `${this.sortCurrentKey} desc`;
132
+    }
133
+    this.loading2 = true;
134
+    that.mainService.exportReport("workOrderSource", postData).subscribe(
135
+      (data) => {
136
+        this.loading2 = false;
137
+        this.showPromptModal("导出", true, "");
138
+        var file = new Blob([data], {
139
+          type: "application/vnd.ms-excel",
140
+        });
141
+        //trick to download store a file having its URL
142
+        var fileURL = URL.createObjectURL(file);
143
+        var a = document.createElement("a");
144
+        a.href = fileURL;
145
+        a.target = "_blank";
146
+        a.download = "任务类型建单来源统计.xls";
147
+        document.body.appendChild(a);
148
+        a.click();
149
+      },
150
+      (err) => {
151
+        this.loading2 = false;
152
+        this.showPromptModal("导出", false, "");
153
+      }
154
+    );
155
+  }
156
+  // 重置
157
+  reset() {
158
+    this.changeDateType("day");
159
+    this.changeDateRange("1");
160
+    this.sortCurrentKey = "";
161
+    this.sortCurrentValue = "";
162
+    this.sortCurrent = {
163
+      source1: null,
164
+      source2: null,
165
+      source3: null,
166
+      source4: null,
167
+    };
168
+    this.search();
169
+  }
170
+  // 表格数据
171
+  loading1 = false;
172
+  getList(num?: number, field?: string, sort?: string) {
173
+    this.pageIndex = num;
174
+    let postData: any = {
175
+      idx: this.pageIndex - 1,
176
+      sum: this.pageSize,
177
+      startTime: this.searchData.dateRange.start,
178
+      endTime: this.searchData.dateRange.end,
179
+      hosId: this.searchData.hosId,
180
+      type: this.dateType,
181
+      sourceType: "taskType",
182
+    };
183
+    if (field && sort) {
184
+      postData.sort = sort === "ascend" ? field : `${field} desc`;
185
+    }
186
+    this.loading1 = true;
187
+    this.mainService
188
+      .postCustom("report", "workOrderSourceReport", postData)
189
+      .subscribe((result) => {
190
+        this.loading1 = false;
191
+        this.listOfData = result.list || [];
192
+        this.listLength = result.totalNum;
193
+      });
194
+  }
195
+  // 获取院区
196
+  hospital: string; //选中院区
197
+  getAllHos() {
198
+    this.hospital = this.tool.getCurrentHospital().id + "";
199
+  }
200
+
201
+  // 修改时间展示维度
202
+  changeDateType(res) {
203
+    console.log(res, this.dateType);
204
+    this.dateType = res;
205
+    this.searchData["type"] = res;
206
+    console.log(this.searchData);
207
+    switch (res) {
208
+      case "day":
209
+        this.defRanges = [
210
+          {
211
+            label: "上周",
212
+            id: 1,
213
+          },
214
+          {
215
+            label: "上月",
216
+            id: 2,
217
+          },
218
+          {
219
+            label: "上年",
220
+            id: 3,
221
+          },
222
+        ]; //时间默认区间
223
+        this.defRange = "1"; //默认上周
224
+        this.changeDateRange("1");
225
+        break;
226
+      case "month":
227
+        this.defRanges = [
228
+          {
229
+            label: "上月",
230
+            id: 2,
231
+          },
232
+          {
233
+            label: "上年",
234
+            id: 3,
235
+          },
236
+        ]; //时间默认区间
237
+        this.defRange = "2"; //上月
238
+        this.changeDateRange("2");
239
+        break;
240
+      case "year":
241
+        this.defRanges = [
242
+          {
243
+            label: "上年",
244
+            id: 3,
245
+          },
246
+        ]; //时间默认区间
247
+        this.defRange = "3"; //默认上周
248
+        this.changeDateRange("3");
249
+        break;
250
+    }
251
+  }
252
+
253
+  // 禁选日期
254
+  disabledDate = (current: Date): boolean => {
255
+    // Can not select days before today and today
256
+    return differenceInCalendarDays(current, this.today) > 0;
257
+  };
258
+
259
+  // 禁选月份开始
260
+  disabledMonthStart = (current: Date): boolean => {
261
+    // Can not select days before today and today
262
+    let cur = differenceInCalendarDays(current, endOfMonth(this.today)) > 0;
263
+    let staEnd = differenceInCalendarDays(current, this.monthRangeEnd) > 0;
264
+    return cur || staEnd;
265
+  };
266
+  // 禁选月份结束
267
+  disabledMonthEnd = (current: Date): boolean => {
268
+    // Can not select days before today and today
269
+    let cur = differenceInCalendarDays(current, endOfMonth(this.today)) > 0;
270
+    let staEnd = differenceInCalendarDays(this.monthRangeStart, current) > 0;
271
+    return cur || staEnd;
272
+  };
273
+
274
+  // 禁选年份开始
275
+  disabledYearStart = (current: Date): boolean => {
276
+    // Can not select days before today and today
277
+    let cur = differenceInCalendarDays(current, endOfYear(this.today)) > 0;
278
+    let staEnd = differenceInCalendarDays(current, this.yearRangeEnd) > 0;
279
+    return cur || staEnd;
280
+  };
281
+
282
+  // 禁选年份结束
283
+  disabledYearEnd = (current: Date): boolean => {
284
+    // Can not select days before today and today
285
+    let cur = differenceInCalendarDays(current, endOfYear(this.today)) > 0;
286
+    let staEnd = differenceInCalendarDays(this.yearRangeStart, current) > 0;
287
+    return cur || staEnd;
288
+  };
289
+
290
+  // 日期选择 日
291
+  startDate: string; //发起时间开始
292
+  endDate: string; //发起时间结束
293
+  changeDate(result?): void {
294
+    console.log(this.dateRange);
295
+    console.log(result);
296
+    this.dateRange = result;
297
+    if (!this.quick) {
298
+      // 不是快捷选择
299
+      this.defRange = null;
300
+    }
301
+    if (!result || !result.length) {
302
+      this.startDate = this.endDate = "";
303
+      return;
304
+    }
305
+    this.startDate =
306
+      result[0].getFullYear() +
307
+      "-" +
308
+      (result[0].getMonth() + 1) +
309
+      "-" +
310
+      result[0].getDate();
311
+    this.endDate =
312
+      result[1].getFullYear() +
313
+      "-" +
314
+      (result[1].getMonth() + 1) +
315
+      "-" +
316
+      result[1].getDate();
317
+  }
318
+
319
+  // 月份选择
320
+  changeMonthStart(result?) {
321
+    console.log(result);
322
+    this.monthRangeStart = result;
323
+    if (!this.quick) {
324
+      // 不是快捷选择
325
+      this.defRange = null;
326
+    }
327
+    if (!result) {
328
+      this.startDate = this.endDate = "";
329
+      return;
330
+    }
331
+    this.startDate = format(startOfMonth(result), 'yyyy-MM-dd');
332
+    // this.endDate = result.getFullYear() + '-' + (result.getMonth() + 1) + '-01';
333
+  }
334
+  changeMonthEnd(result?) {
335
+    console.log(result);
336
+    this.monthRangeEnd = result;
337
+    if (!this.quick) {
338
+      // 不是快捷选择
339
+      this.defRange = null;
340
+    }
341
+    if (!result) {
342
+      this.startDate = this.endDate = "";
343
+      return;
344
+    }
345
+    // this.startDate = result.getFullYear() + '-' + (result.getMonth() + 1) + '-01';
346
+    this.endDate = format(endOfMonth(result), 'yyyy-MM-dd');
347
+  }
348
+  // 年份选择
349
+  changeYearStart(result?) {
350
+    console.log(result);
351
+    this.yearRangeStart = result;
352
+    if (!this.quick) {
353
+      // 不是快捷选择
354
+      this.defRange = null;
355
+    }
356
+    if (!result) {
357
+      this.startDate = this.endDate = "";
358
+      return;
359
+    }
360
+    this.startDate = format(startOfYear(result), 'yyyy-MM-dd');
361
+    // this.endDate = result.getFullYear() + '-01-01';
362
+  }
363
+  changeYearEnd(result?) {
364
+    console.log(result);
365
+    this.yearRangeEnd = result;
366
+    if (!this.quick) {
367
+      // 不是快捷选择
368
+      this.defRange = null;
369
+    }
370
+    if (!result) {
371
+      this.startDate = this.endDate = "";
372
+      return;
373
+    }
374
+    this.endDate = format(endOfYear(result), 'yyyy-MM-dd');
375
+  }
376
+
377
+  // 日期选择 快速修改时间区间
378
+  today = new Date();
379
+  quick: boolean = false;
380
+  changeDateRange(res) {
381
+    console.log(res);
382
+    this.quick = true;
383
+    switch (res) {
384
+      case "1":
385
+        // 上周
386
+        let lastweekstartdate = this.dateService.date().lastWeekStartDate;
387
+        let lastweekenddate = this.dateService.date().lastWeekEndDate;
388
+        console.log(lastweekstartdate, lastweekenddate);
389
+        this.changeDate([lastweekstartdate, lastweekenddate]);
390
+        break;
391
+      case "2":
392
+        // 上月
393
+        let lastmonthstartdate = this.dateService.date().lastMonthStartDate;
394
+        let lastmonthenddate = this.dateService.date().lastMonthEndDate;
395
+        console.log(lastmonthstartdate, lastmonthenddate);
396
+        this.changeDate([lastmonthstartdate, lastmonthenddate]);
397
+        this.changeMonthStart(lastmonthstartdate);
398
+        this.changeMonthEnd(lastmonthenddate);
399
+        break;
400
+      case "3":
401
+        // 上年
402
+        let lastyearstartdate = this.dateService.date().lastYearStartDate;
403
+        let lastyearenddate = this.dateService.date().lastYearEndDate;
404
+        console.log(lastyearstartdate, lastyearenddate);
405
+        this.changeDate([lastyearstartdate, lastyearenddate]);
406
+        this.changeMonthStart(lastyearstartdate);
407
+        this.changeMonthEnd(lastyearenddate);
408
+        this.changeYearStart(lastyearstartdate);
409
+        this.changeYearEnd(lastyearenddate);
410
+        break;
411
+    }
412
+    this.quick = false;
413
+  }
414
+
415
+  // 更多
416
+  toMore(type) {
417
+    let sendData = this.searchData;
418
+    console.log(sendData);
419
+    this.myService.sendMsg(sendData);
420
+    this.router.navigateByUrl("/main/" + type);
421
+  }
422
+
423
+  // 展示信息提示框(con:提示信息,success:操作是否成功,promptInfo:操作结果提示信息)
424
+  showPromptModal(con, success, promptInfo?) {
425
+    this.promptModalShow = false;
426
+    this.promptContent = con;
427
+    this.ifSuccess = success;
428
+    this.promptInfo = promptInfo;
429
+    setTimeout(() => {
430
+      this.promptModalShow = true;
431
+    }, 100);
432
+  }
433
+
434
+  // 边输入边搜索节流阀
435
+  isLoading: boolean = false;
436
+  searchTimer(fun, e, those) {
437
+    let that = this;
438
+    that.isLoading = true;
439
+    fun(e, those);
440
+  }
441
+  // 列表排序
442
+  sortCurrent = {
443
+    source1: null,
444
+    source2: null,
445
+    source3: null,
446
+    source4: null,
447
+  };
448
+  sortCurrentKey: string = "";
449
+  sortCurrentValue: string | null = "";
450
+  sort(e) {
451
+    const { key, value } = e;
452
+    this.sortCurrentKey = key;
453
+    this.sortCurrentValue = value;
454
+    this.getList(this.pageIndex, this.sortCurrentKey, this.sortCurrentValue);
455
+  }
456
+}

+ 16 - 0
src/app/views/quilt-washing-personnel-statistics/quilt-washing-personnel-statistics.module.ts

@@ -0,0 +1,16 @@
1
+import { NgModule } from "@angular/core";
2
+import { CommonModule } from "@angular/common";
3
+
4
+import { QuiltWashingPersonnelStatisticsRoutingModule } from "./quilt-washing-personnel-statistics-routing.module";
5
+import { ShareModule } from "src/app/share/share.module";
6
+import { QuiltWashingPersonnelStatisticsComponent } from "./quilt-washing-personnel-statistics.component";
7
+
8
+@NgModule({
9
+  declarations: [QuiltWashingPersonnelStatisticsComponent],
10
+  imports: [
11
+    CommonModule,
12
+    QuiltWashingPersonnelStatisticsRoutingModule,
13
+    ShareModule,
14
+  ],
15
+})
16
+export class QuiltWashingPersonnelStatisticsModule {}