seimin 3 年之前
父节点
当前提交
21a386a470

+ 8 - 16
src/app/views/order-source-statistics/order-source-statistics.component.html

@@ -28,8 +28,8 @@
28
           </nz-year-picker>
28
           </nz-year-picker>
29
         </div>
29
         </div>
30
         <div class="list-template__searchItem ml8">
30
         <div class="list-template__searchItem ml8">
31
-          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" [nzShowSearch]="false"
32
-            nzPlaceHolder="请选择时间" [(ngModel)]="defRange" (ngModelChange)="changeDateRange($event)">
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>
33
             <nz-option nzLabel="{{data.label}}" nzValue="{{data.id}}" *ngFor="let data of defRanges"></nz-option>
34
           </nz-select>
34
           </nz-select>
35
         </div>
35
         </div>
@@ -43,18 +43,14 @@
43
     <div class="list-template__bottom">
43
     <div class="list-template__bottom">
44
       <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
44
       <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
45
         [nzLoading]="loading1">
45
         [nzLoading]="loading1">
46
-        <thead>
46
+        <thead (nzSortChange)="sort($event)" nzSingleSort>
47
           <tr class="thead">
47
           <tr class="thead">
48
             <th nzWidth="5%">序号</th>
48
             <th nzWidth="5%">序号</th>
49
-            <th nzWidth="15%">时间</th>
50
-            <th nzWidth="10%">工单总量</th>
51
-            <th nzWidth="10%">标本数量</th>
52
-            <th nzWidth="10%">标本轮巡数量</th>
53
-            <th nzWidth="10%">患者陪检数量</th>
54
-            <th nzWidth="10%">药品数量</th>
55
-            <th nzWidth="10%">静配数量</th>
56
-            <th nzWidth="10%">患者转运数量</th>
57
-            <th nzWidth="10%">其他数量</th>
49
+            <th nzWidth="15%">日期</th>
50
+            <th nzShowSort nzWidth="20%" nzSortKey="fuwu">服务台建单数量</th>
51
+            <th nzShowSort nzWidth="20%" nzSortKey="hushi">护士端建单数量</th>
52
+            <th nzShowSort nzWidth="20%" nzSortKey="xitong">系统自动建单数量</th>
53
+            <th nzShowSort nzWidth="20%" nzSortKey="wechat">微信端建单数量</th>
58
           </tr>
54
           </tr>
59
         </thead>
55
         </thead>
60
         <tbody>
56
         <tbody>
@@ -65,10 +61,6 @@
65
             <td>{{data.speCount||0}}</td>
61
             <td>{{data.speCount||0}}</td>
66
             <td>{{data.spePlanCount||0}}</td>
62
             <td>{{data.spePlanCount||0}}</td>
67
             <td>{{data.insCount||0}}</td>
63
             <td>{{data.insCount||0}}</td>
68
-            <td>{{data.drugsCount||0}}</td>
69
-            <td>{{data.jpCount||0}}</td>
70
-            <td>{{data.transCount||0}}</td>
71
-            <td>{{data.otherCount||0}}</td>
72
           </tr>
64
           </tr>
73
         </tbody>
65
         </tbody>
74
       </nz-table>
66
       </nz-table>

+ 4 - 0
src/app/views/order-source-statistics/order-source-statistics.component.less

@@ -1,5 +1,9 @@
1
 @import "../../../../src/theme.less";
1
 @import "../../../../src/theme.less";
2
 
2
 
3
+:host ::ng-deep .on {
4
+  color: #fff !important;
5
+}
6
+
3
 .save {
7
 .save {
4
   position: fixed;
8
   position: fixed;
5
   left: 0;
9
   left: 0;

+ 5 - 0
src/app/views/order-source-statistics/order-source-statistics.component.ts

@@ -436,4 +436,9 @@ export class OrderSourceStatisticsComponent implements OnInit {
436
       return con;
436
       return con;
437
     }
437
     }
438
   }
438
   }
439
+  // 列表排序
440
+  sortPre = "descend"; //倒序
441
+  sort(e) {
442
+    console.log(e);
443
+  }
439
 }
444
 }