|
@@ -1,84 +1,85 @@
|
1
|
|
-<div class="list-template">
|
2
|
|
- <div class="list-template__content">
|
3
|
|
- <div class="list-template__top" nz-row>
|
4
|
|
- <div nz-col nzLg='16' class="list-template__searchBox">
|
5
|
|
- <div class="list-template__searchItem">
|
6
|
|
- <span class="label">批次号:</span>
|
7
|
|
- <input nz-input class="formItem" [(ngModel)]="batchNumber" placeholder="请输入批次号" nzSize="default" />
|
8
|
|
- </div>
|
9
|
|
- <div class="list-template__searchItem">
|
10
|
|
- <span class="label">创建时间:</span>
|
11
|
|
- <nz-range-picker [(ngModel)]="dateRange" nzFormat="yyyy-MM-dd"
|
12
|
|
- (ngModelChange)="changeDate($event)"></nz-range-picker>
|
13
|
|
- </div>
|
14
|
|
- </div>
|
15
|
|
- <div nz-col nzLg='2' class="autoUpdate">{{ logTime }}秒</div>
|
16
|
|
- <div nz-col nzLg="6" class="list-template__btns">
|
17
|
|
- <button class="btn default" (click)='search()'>搜索</button>
|
18
|
|
- <button class="btn default ml8" (click)='reset()'>重置</button>
|
19
|
|
- <button *ngIf="coopBtns.add" class="btn default ml8" (click)='showModal()'>新增</button>
|
20
|
|
- </div>
|
21
|
|
- </div>
|
22
|
|
- <div class="list-template__bottom">
|
23
|
|
- <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
|
24
|
|
- [nzLoading]="loading1">
|
25
|
|
- <thead>
|
26
|
|
- <tr class="thead">
|
27
|
|
- <th nzWidth="13%">批次号</th>
|
28
|
|
- <th nzWidth="13%">创建时间</th>
|
29
|
|
- <th nzWidth="13%">发药时间区间</th>
|
30
|
|
- <th nzWidth="7%">发药科室</th>
|
31
|
|
- <th nzWidth="7%">科室数</th>
|
32
|
|
- <th nzWidth="7%">发药量</th>
|
33
|
|
- <th nzWidth="7%">箱数</th>
|
34
|
|
- <th nzWidth="10%">药品总价</th>
|
35
|
|
- <th nzWidth="7%">状态</th>
|
36
|
|
- <th nzWidth="16%">操作</th>
|
37
|
|
- </tr>
|
38
|
|
- </thead>
|
39
|
|
- <tbody>
|
40
|
|
- <tr *ngFor="let data of listOfData">
|
41
|
|
- <td>{{ data.batchNo || '-' }}</td>
|
42
|
|
- <td>{{ data.createTime|date:'yyyy-MM-dd HH:mm' }}</td>
|
43
|
|
- <td>
|
44
|
|
- <div>{{ data.startTime|date:'yyyy-MM-dd HH:mm' }}至</div>
|
45
|
|
- <div>{{ data.endTime|date:'yyyy-MM-dd HH:mm' }}</div>
|
46
|
|
- </td>
|
47
|
|
- <td>{{ data.pharmacyDTO?data.pharmacyDTO.dept:'-' }}</td>
|
48
|
|
- <td>{{ data.deptNum || '0' }}</td>
|
49
|
|
- <td>{{ data.drugNum || '0'}}</td>
|
50
|
|
- <td>{{ data.cartonNum || '0' }}</td>
|
51
|
|
- <td>{{ data.totalPrice || '0' }}</td>
|
52
|
|
- <td>{{ data.batchState?data.batchState.name : '-' }}</td>
|
53
|
|
- <td>
|
54
|
|
- <div class="coop">
|
55
|
|
- <span *ngIf="coopBtns.edit && data.batchState.name=='未发药'" (click)="edit($event,data)">编辑</span>
|
56
|
|
- <span *ngIf="coopBtns.del && data.batchState.name=='未发药'" (click)="showDelModal($event,data.id)">删除</span>
|
57
|
|
- <span *ngIf="coopBtns.config && data.batchState.name=='未发药'" (click)="detail($event,data)">配置</span>
|
58
|
|
- <span *ngIf="coopBtns.dispensingGross && data.batchState.name=='已发药'" (click)="dispensingGross($event, data)">发药总量</span>
|
59
|
|
- <span *ngIf="coopBtns.dispensingInfo && data.batchState.name=='已发药'" (click)="dispensingInfo($event, data)">发药信息</span>
|
60
|
|
- <span *ngIf="coopBtns.export && data.batchState.name=='已发药'" (click)="exportPc($event, data)">导出</span>
|
61
|
|
- <span *ngIf="coopBtns.print && data.batchState.name=='已发药'" (click)="print($event,data, data.id)">打印</span>
|
62
|
|
- <span *ngIf="coopBtns.batchPrint && data.batchState.name=='未发药'" (click)="dispensingPrint($event, data, data.id)">发药并打印</span>
|
63
|
|
- </div>
|
64
|
|
- </td>
|
65
|
|
- </tr>
|
66
|
|
- </tbody>
|
67
|
|
- </nz-table>
|
68
|
|
- <div class="list-template__pagination">
|
69
|
|
- <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
|
70
|
|
- (nzPageIndexChange)="getList()" (nzPageSizeChange)="getList()">
|
71
|
|
- </nz-pagination>
|
72
|
|
- </div>
|
73
|
|
- </div>
|
74
|
|
- </div>
|
75
|
|
-
|
|
1
|
+<div>
|
|
2
|
+ <div class="list-template">
|
|
3
|
+ <div class="list-template__content">
|
|
4
|
+ <div class="list-template__top" nz-row>
|
|
5
|
+ <div nz-col nzLg='16' class="list-template__searchBox">
|
|
6
|
+ <div class="list-template__searchItem">
|
|
7
|
+ <span class="label">批次号:</span>
|
|
8
|
+ <input nz-input class="formItem" [(ngModel)]="batchNumber" placeholder="请输入批次号" nzSize="default" />
|
|
9
|
+ </div>
|
|
10
|
+ <div class="list-template__searchItem">
|
|
11
|
+ <span class="label">创建时间:</span>
|
|
12
|
+ <nz-range-picker [(ngModel)]="dateRange" nzFormat="yyyy-MM-dd"
|
|
13
|
+ (ngModelChange)="changeDate($event)"></nz-range-picker>
|
|
14
|
+ </div>
|
|
15
|
+ </div>
|
|
16
|
+ <div nz-col nzLg='2' class="autoUpdate">{{ logTime }}秒</div>
|
|
17
|
+ <div nz-col nzLg="6" class="list-template__btns">
|
|
18
|
+ <button class="btn default" (click)='search()'>搜索</button>
|
|
19
|
+ <button class="btn default ml8" (click)='reset()'>重置</button>
|
|
20
|
+ <button *ngIf="coopBtns.add" class="btn default ml8" (click)='showModal()'>新增</button>
|
|
21
|
+ </div>
|
|
22
|
+ </div>
|
|
23
|
+ <div class="list-template__bottom">
|
|
24
|
+ <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
|
|
25
|
+ [nzLoading]="loading1">
|
|
26
|
+ <thead>
|
|
27
|
+ <tr class="thead">
|
|
28
|
+ <th nzWidth="13%">批次号</th>
|
|
29
|
+ <th nzWidth="13%">创建时间</th>
|
|
30
|
+ <th nzWidth="13%">发药时间区间</th>
|
|
31
|
+ <th nzWidth="7%">发药科室</th>
|
|
32
|
+ <th nzWidth="7%">科室数</th>
|
|
33
|
+ <th nzWidth="7%">发药量</th>
|
|
34
|
+ <th nzWidth="7%">箱数</th>
|
|
35
|
+ <th nzWidth="10%">药品总价</th>
|
|
36
|
+ <th nzWidth="7%">状态</th>
|
|
37
|
+ <th nzWidth="16%">操作</th>
|
|
38
|
+ </tr>
|
|
39
|
+ </thead>
|
|
40
|
+ <tbody>
|
|
41
|
+ <tr *ngFor="let data of listOfData">
|
|
42
|
+ <td>{{ data.batchNo || '-' }}</td>
|
|
43
|
+ <td>{{ data.createTime|date:'yyyy-MM-dd HH:mm' }}</td>
|
|
44
|
+ <td>
|
|
45
|
+ <div>{{ data.startTime|date:'yyyy-MM-dd HH:mm' }}至</div>
|
|
46
|
+ <div>{{ data.endTime|date:'yyyy-MM-dd HH:mm' }}</div>
|
|
47
|
+ </td>
|
|
48
|
+ <td>{{ data.pharmacyDTO?data.pharmacyDTO.dept:'-' }}</td>
|
|
49
|
+ <td>{{ data.deptNum || '0' }}</td>
|
|
50
|
+ <td>{{ data.drugNum || '0'}}</td>
|
|
51
|
+ <td>{{ data.cartonNum || '0' }}</td>
|
|
52
|
+ <td>{{ data.totalPrice || '0' }}</td>
|
|
53
|
+ <td>{{ data.batchState?data.batchState.name : '-' }}</td>
|
|
54
|
+ <td>
|
|
55
|
+ <div class="coop">
|
|
56
|
+ <span *ngIf="coopBtns.edit && data.batchState.name=='未发药'" (click)="edit($event,data)">编辑</span>
|
|
57
|
+ <span *ngIf="coopBtns.del && data.batchState.name=='未发药'" (click)="showDelModal($event,data.id)">删除</span>
|
|
58
|
+ <span *ngIf="coopBtns.config && data.batchState.name=='未发药'" (click)="detail($event,data)">配置</span>
|
|
59
|
+ <span *ngIf="coopBtns.dispensingGross && data.batchState.name=='已发药'" (click)="dispensingGross($event, data)">发药总量</span>
|
|
60
|
+ <span *ngIf="coopBtns.dispensingInfo && data.batchState.name=='已发药'" (click)="dispensingInfo($event, data)">发药信息</span>
|
|
61
|
+ <span *ngIf="coopBtns.export && data.batchState.name=='已发药'" (click)="exportPc($event, data)">导出</span>
|
|
62
|
+ <span *ngIf="coopBtns.print && data.batchState.name=='已发药'" (click)="print($event,data, data.id)">打印</span>
|
|
63
|
+ <span *ngIf="coopBtns.batchPrint && data.batchState.name=='未发药'" (click)="dispensingPrint($event, data, data.id)">发药并打印</span>
|
|
64
|
+ </div>
|
|
65
|
+ </td>
|
|
66
|
+ </tr>
|
|
67
|
+ </tbody>
|
|
68
|
+ </nz-table>
|
|
69
|
+ <div class="list-template__pagination">
|
|
70
|
+ <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
|
|
71
|
+ (nzPageIndexChange)="getList()" (nzPageSizeChange)="getList()">
|
|
72
|
+ </nz-pagination>
|
|
73
|
+ </div>
|
|
74
|
+ </div>
|
|
75
|
+ </div>
|
|
76
|
+ </div>
|
76
|
77
|
<!-- 新增/编辑模态框 -->
|
77
|
78
|
<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="modal">
|
78
|
79
|
<div class="modalBody">
|
79
|
80
|
<div class="title">发药批次-{{add ? '新增' : '编辑'}}<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
|
80
|
81
|
</div>
|
81
|
|
- <overlay-scrollbars #osComponentRef1 class="content">
|
|
82
|
+ <div class="content">
|
82
|
83
|
<form nz-form [formGroup]="validateForm" class="addForm" (ngSubmit)="submitForm()">
|
83
|
84
|
<nz-form-item>
|
84
|
85
|
<nz-form-label nzRequired nzFor="dispensingTime">发药时间区间</nz-form-label>
|
|
@@ -114,7 +115,7 @@
|
114
|
115
|
</nz-form-control>
|
115
|
116
|
</nz-form-item>
|
116
|
117
|
</form>
|
117
|
|
- </overlay-scrollbars>
|
|
118
|
+ </div>
|
118
|
119
|
<div class="display_flex justify-content_flex-center">
|
119
|
120
|
<button class="btn" nz-button nzType="primary" (click)="submitForm()" [nzLoading]="btnLoading">{{add ? '保存并配置' : '保存'}}</button>
|
120
|
121
|
<button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>
|