|
@@ -0,0 +1,380 @@
|
|
1
|
+<div class="list-template">
|
|
2
|
+ <div class="list-template__content">
|
|
3
|
+ <div class="list-template__top" nz-row>
|
|
4
|
+ <div nz-col nzLg='18' class="list-template__searchBox">
|
|
5
|
+ <div class="list-template__searchItem searchItem-100">
|
|
6
|
+ <span class="label">发药时间区间:</span>
|
|
7
|
+ <nz-range-picker [(ngModel)]="dateRange" nzFormat="yyyy-MM-dd HH:mm:ss"
|
|
8
|
+ (ngModelChange)="changeDate($event)"></nz-range-picker>
|
|
9
|
+ </div>
|
|
10
|
+ <div class="list-template__searchItem">
|
|
11
|
+ <span class="label">科室名称:</span>
|
|
12
|
+ <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" (nzOnSearch)="changeInp($event,'dept')" nzServerSearch nzShowSearch nzAllowClear nzPlaceHolder="请选择申请科室" [(ngModel)]="department">
|
|
13
|
+ <ng-container *ngFor="let option of hospitals1">
|
|
14
|
+ <nz-option *ngIf="!loading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
|
|
15
|
+ </ng-container>
|
|
16
|
+ <nz-option *ngIf="loading" nzDisabled nzCustomContent>
|
|
17
|
+ <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
|
|
18
|
+ </nz-option>
|
|
19
|
+ </nz-select>
|
|
20
|
+ </div>
|
|
21
|
+ <div class="list-template__searchItem">
|
|
22
|
+ <span class="label">药品名称:</span>
|
|
23
|
+ <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" (nzOnSearch)="changeInp($event,'commodity')" nzServerSearch nzShowSearch nzAllowClear nzPlaceHolder="请选择商品名称" [(ngModel)]="commodity">
|
|
24
|
+ <ng-container *ngFor="let option of commodityData">
|
|
25
|
+ <nz-option *ngIf="!loading" [nzLabel]="option.drugName + '('+option.specs+')'" [nzValue]="option.id"></nz-option>
|
|
26
|
+ </ng-container>
|
|
27
|
+ <nz-option *ngIf="loading" nzDisabled nzCustomContent>
|
|
28
|
+ <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
|
|
29
|
+ </nz-option>
|
|
30
|
+ </nz-select>
|
|
31
|
+ </div>
|
|
32
|
+
|
|
33
|
+ <div class="list-template__searchItem">
|
|
34
|
+ <span class="label">批次号:</span>
|
|
35
|
+ <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" (nzOnSearch)="changeInp($event,'batch')" nzServerSearch nzShowSearch nzAllowClear nzPlaceHolder="请选择批次号" [(ngModel)]="batch">
|
|
36
|
+ <ng-container *ngFor="let option of batchData">
|
|
37
|
+ <nz-option *ngIf="!loading" [nzLabel]="option.batchNo" [nzValue]="option.id"></nz-option>
|
|
38
|
+ </ng-container>
|
|
39
|
+ <nz-option *ngIf="loading" nzDisabled nzCustomContent>
|
|
40
|
+ <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
|
|
41
|
+ </nz-option>
|
|
42
|
+ </nz-select>
|
|
43
|
+ </div>
|
|
44
|
+ </div>
|
|
45
|
+ <div nz-col nzLg="6" class="list-template__btns">
|
|
46
|
+ <button class="btn default" (click)='search()'>搜索</button>
|
|
47
|
+ <button class="btn default ml8" (click)='reset()'>重置</button>
|
|
48
|
+ <button *ngIf="coopBtns.export" class="btn default ml8" (click)='excelExport()'>导出</button>
|
|
49
|
+ </div>
|
|
50
|
+ </div>
|
|
51
|
+ <div class="list-template__bottom">
|
|
52
|
+ <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
|
|
53
|
+ [nzLoading]="loading1">
|
|
54
|
+ <thead>
|
|
55
|
+ <tr class="thead">
|
|
56
|
+ <th>批次号|科室</th>
|
|
57
|
+ <th>商品名称|规格</th>
|
|
58
|
+ <th>消耗量+增发+原库存=实发量</th>
|
|
59
|
+ <th>包装规格</th>
|
|
60
|
+ <th>发药箱数</th>
|
|
61
|
+ <th>新库存</th>
|
|
62
|
+ <th>发药日期</th>
|
|
63
|
+ <th>操作</th>
|
|
64
|
+ </tr>
|
|
65
|
+ </thead>
|
|
66
|
+ <tbody v-if="listOfData && listOfData.length>0">
|
|
67
|
+ <tr *ngFor="let data of listOfData" (click)="selectedListData(data.id)">
|
|
68
|
+ <td>
|
|
69
|
+ <div>{{ data['0'] }}</div>
|
|
70
|
+ <div>{{ data['1'] }}</div>
|
|
71
|
+ </td>
|
|
72
|
+ <td>
|
|
73
|
+ <div>{{ data['2']}}</div>
|
|
74
|
+ <div>{{ data['3']}}</div>
|
|
75
|
+ </td>
|
|
76
|
+ <td>{{ data['4']}} + {{data['5']}} +
|
|
77
|
+ {{data['6'] }} = {{data.num}}</td>
|
|
78
|
+
|
|
79
|
+ <td>{{ data['7']}}</td>
|
|
80
|
+ <td>{{ data['8']==0 ? '-' : data['8']}}</td>
|
|
81
|
+ <td>{{ data['9']}}</td>
|
|
82
|
+ <td>{{ data['10']}}</td>
|
|
83
|
+ <td>
|
|
84
|
+ <div class="coop">
|
|
85
|
+ <span *ngIf="coopBtns.look" (click)="detail(data.id)">发药详情</span>
|
|
86
|
+ </div>
|
|
87
|
+ </td>
|
|
88
|
+ </tr>
|
|
89
|
+ </tbody>
|
|
90
|
+ </nz-table>
|
|
91
|
+ <div class="list-template__pagination">
|
|
92
|
+ <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
|
|
93
|
+ (nzPageIndexChange)="getList()" (nzPageSizeChange)="getList()">
|
|
94
|
+ </nz-pagination>
|
|
95
|
+ </div>
|
|
96
|
+ </div>
|
|
97
|
+ </div>
|
|
98
|
+
|
|
99
|
+ <!-- 新增/编辑模态框 -->
|
|
100
|
+ <div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="modal">
|
|
101
|
+ <div class="modalBody">
|
|
102
|
+ <div class="title">科室发药单-查看<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
|
|
103
|
+ </div>
|
|
104
|
+ <overlay-scrollbars #osComponentRef1 class="content">
|
|
105
|
+ <div class="list-template__bottom">
|
|
106
|
+ <nz-table class="list-template__nzTable" [nzData]="viewData" nzSize="middle" [nzShowPagination]="false"
|
|
107
|
+ [nzLoading]="detailsLoading">
|
|
108
|
+ <thead>
|
|
109
|
+ <tr class="thead">
|
|
110
|
+ <th nzWidth="10%">药品标识</th>
|
|
111
|
+ <th nzWidth="10%">药品名称</th>
|
|
112
|
+ <th nzWidth="10%">规格</th>
|
|
113
|
+ <th nzWidth="10%">消耗数量</th>
|
|
114
|
+ <th nzWidth="10%">实发数量</th>
|
|
115
|
+ <th nzWidth="10%">包装规格</th>
|
|
116
|
+ <th nzWidth="10%">发药药箱</th>
|
|
117
|
+ <th nzWidth="10%">原库存数</th>
|
|
118
|
+ <th nzWidth="10%">计算后库存</th>
|
|
119
|
+ <th nzWidth="10%">增减</th>
|
|
120
|
+ </tr>
|
|
121
|
+ </thead>
|
|
122
|
+ <tbody>
|
|
123
|
+ <tr *ngFor="let data of viewData">
|
|
124
|
+ <td>{{ data.drugsInfoDTO?data.drugsInfoDTO.drugCode:'无' }}</td>
|
|
125
|
+ <td>{{ data.drugsInfoDTO?data.drugsInfoDTO.drugName:'无' }}</td>
|
|
126
|
+ <td>{{ data.drugsInfoDTO?data.drugsInfoDTO.specs:'无' }}</td>
|
|
127
|
+ <td>{{ data.expendCount||'0' }}</td>
|
|
128
|
+ <td>{{ data.actualCount||'0' }}</td>
|
|
129
|
+ <td>{{ data.drugsInfoDTO?data.drugsInfoDTO.packingSpecs:'0' }}</td>
|
|
130
|
+ <td>{{ data.cartonNum || '0' }}</td>
|
|
131
|
+ <td>{{ data.formerInventory || '0' }}</td>
|
|
132
|
+ <td>{{ data.afterInventory || '0'}}</td>
|
|
133
|
+ <td>{{ data.addSub || '0' }}</td>
|
|
134
|
+ </tr>
|
|
135
|
+ </tbody>
|
|
136
|
+ </nz-table>
|
|
137
|
+ </div>
|
|
138
|
+ </overlay-scrollbars>
|
|
139
|
+ <div class="display_flex justify-content_flex-center">
|
|
140
|
+ <button class="btn" nz-button nzType="primary" (click)="hideModal()">知道了</button>
|
|
141
|
+ </div>
|
|
142
|
+ </div>
|
|
143
|
+ </div>
|
|
144
|
+
|
|
145
|
+ <!-- 打印 -->
|
|
146
|
+ <div id="report" style="display: none;">
|
|
147
|
+ <div class="monad"
|
|
148
|
+ *ngIf="rowData"
|
|
149
|
+ style="padding: 10px;
|
|
150
|
+ border: 1px solid #e7e7e7;
|
|
151
|
+ border-radius: 5px;">
|
|
152
|
+ <div class="monad-title"
|
|
153
|
+ style="text-align: center;
|
|
154
|
+ font-size: 18px;
|
|
155
|
+ border-bottom: 1px solid #e7e7e7;
|
|
156
|
+ padding-bottom: 10px;">
|
|
157
|
+ 大输液发药单-{{rowData.applyDeptDTO?rowData.applyDeptDTO.dept:''}}
|
|
158
|
+ </div>
|
|
159
|
+ <div class="monad-sign" style="display: flex;line-height: 23px;font-size: 14px;">
|
|
160
|
+ <div style="margin-right: 15px;">日期:{{rowData.createTime|date:'yyyy-MM-dd HH:mm'}}</div>
|
|
161
|
+ <div style="margin-right: 15px;">批次号:{{rowData.batch?rowData.batch.batchNo:'-'}}</div>
|
|
162
|
+ <div style="margin-right: 15px;">单号:{{rowData.packingNo}}</div>
|
|
163
|
+ </div>
|
|
164
|
+ <div class="monad-sign" style="display: flex;line-height: 23px;font-size: 14px;">
|
|
165
|
+ <div style="margin-right: 15px;">取药药房:{{rowData.pharmacyDTO?rowData.pharmacyDTO.dept:'-'}}</div>
|
|
166
|
+ </div>
|
|
167
|
+ <div style="border: 1px solid #e7e7e7;border-bottom: none;font-size: 14px;">
|
|
168
|
+ <div class="thead" style="display: flex;">
|
|
169
|
+ <div style="width: 40%;display: flex;font-size: 12px;
|
|
170
|
+ align-items: center;
|
|
171
|
+ justify-content: center;
|
|
172
|
+ flex-wrap: wrap;
|
|
173
|
+ border-right: 1px solid #e7e7e7;
|
|
174
|
+ border-bottom: 1px solid #e7e7e7;">药品名称</div>
|
|
175
|
+
|
|
176
|
+ <div style="width: 20%;display: flex;font-size: 12px;
|
|
177
|
+ align-items: center;
|
|
178
|
+ justify-content: center;
|
|
179
|
+ flex-wrap: wrap;
|
|
180
|
+ border-right: 1px solid #e7e7e7;
|
|
181
|
+ border-bottom: 1px solid #e7e7e7;">规格</div>
|
|
182
|
+
|
|
183
|
+ <div style="width: 10%;display: flex;font-size: 12px;
|
|
184
|
+ align-items: center;
|
|
185
|
+ justify-content: center;
|
|
186
|
+ flex-wrap: wrap;
|
|
187
|
+ border-right: 1px solid #e7e7e7;
|
|
188
|
+ border-bottom: 1px solid #e7e7e7;">15日消耗</div>
|
|
189
|
+
|
|
190
|
+ <div style="width: 8%;display: flex;font-size: 12px;
|
|
191
|
+ align-items: center;
|
|
192
|
+ justify-content: center;
|
|
193
|
+ flex-wrap: wrap;
|
|
194
|
+ border-right: 1px solid #e7e7e7;
|
|
195
|
+ border-bottom: 1px solid #e7e7e7;">包规</div>
|
|
196
|
+
|
|
197
|
+ <div style="width: 8%;display: flex;font-size: 12px;
|
|
198
|
+ align-items: center;
|
|
199
|
+ justify-content: center;
|
|
200
|
+ flex-wrap: wrap;
|
|
201
|
+ border-right: 1px solid #e7e7e7;
|
|
202
|
+ border-bottom: 1px solid #e7e7e7;">实消</div>
|
|
203
|
+
|
|
204
|
+ <div style="width: 10%;display: flex;font-size: 12px;
|
|
205
|
+ align-items: center;
|
|
206
|
+ justify-content: center;
|
|
207
|
+ flex-wrap: wrap;
|
|
208
|
+ border-right: 1px solid #e7e7e7;
|
|
209
|
+ border-bottom: 1px solid #e7e7e7;">临时增发</div>
|
|
210
|
+
|
|
211
|
+ <div style="width: 10%;display: flex;font-size: 12px;
|
|
212
|
+ align-items: center;
|
|
213
|
+ justify-content: center;
|
|
214
|
+ flex-wrap: wrap;
|
|
215
|
+ border-bottom: 1px solid #e7e7e7;">箱数</div>
|
|
216
|
+ </div>
|
|
217
|
+ <div *ngFor="let data of codes" style="display: flex;">
|
|
218
|
+ <div style="width: 40%;display: flex;font-size: 12px;
|
|
219
|
+ align-items: center;
|
|
220
|
+ justify-content: center;
|
|
221
|
+ flex-wrap: wrap;
|
|
222
|
+ border-right: 1px solid #e7e7e7;
|
|
223
|
+ border-bottom: 1px solid #e7e7e7;">{{ data.drugsInfoDTO.drugName }}</div>
|
|
224
|
+
|
|
225
|
+ <div style="width: 20%;display: flex;font-size: 12px;
|
|
226
|
+ align-items: center;
|
|
227
|
+ justify-content: center;
|
|
228
|
+ flex-wrap: wrap;
|
|
229
|
+ border-right: 1px solid #e7e7e7;
|
|
230
|
+ border-bottom: 1px solid #e7e7e7;">{{ data.drugsInfoDTO.specs }}</div>
|
|
231
|
+
|
|
232
|
+ <div style="width: 10%;display: flex;font-size: 12px;
|
|
233
|
+ align-items: center;
|
|
234
|
+ justify-content: center;
|
|
235
|
+ flex-wrap: wrap;
|
|
236
|
+ border-right: 1px solid #e7e7e7;
|
|
237
|
+ border-bottom: 1px solid #e7e7e7;">15日消耗</div>
|
|
238
|
+
|
|
239
|
+ <div style="width: 8%;display: flex;font-size: 12px;
|
|
240
|
+ align-items: center;
|
|
241
|
+ justify-content: center;
|
|
242
|
+ flex-wrap: wrap;
|
|
243
|
+ border-right: 1px solid #e7e7e7;
|
|
244
|
+ border-bottom: 1px solid #e7e7e7;">{{ data.drugsInfoDTO.packingSpecs }}</div>
|
|
245
|
+
|
|
246
|
+ <div style="width: 8%;display: flex;font-size: 12px;
|
|
247
|
+ align-items: center;
|
|
248
|
+ justify-content: center;
|
|
249
|
+ flex-wrap: wrap;
|
|
250
|
+ border-right: 1px solid #e7e7e7;
|
|
251
|
+ border-bottom: 1px solid #e7e7e7;">{{ data.expendCount }}</div>
|
|
252
|
+
|
|
253
|
+ <div style="width: 10%;display: flex;font-size: 12px;
|
|
254
|
+ align-items: center;
|
|
255
|
+ justify-content: center;
|
|
256
|
+ flex-wrap: wrap;
|
|
257
|
+ border-right: 1px solid #e7e7e7;
|
|
258
|
+ border-bottom: 1px solid #e7e7e7;">{{ data.addSub || 0 }}</div>
|
|
259
|
+
|
|
260
|
+ <div style="width: 10%;display: flex;font-size: 12px;
|
|
261
|
+ align-items: center;
|
|
262
|
+ justify-content: center;
|
|
263
|
+ flex-wrap: wrap;
|
|
264
|
+ border-bottom: 1px solid #e7e7e7;">
|
|
265
|
+ <span *ngIf="data.drugsInfoDTO.drugName!='合计'">
|
|
266
|
+ {{ data.cartonNum }} {{data.giveOutType && data.giveOutType.value==1?
|
|
267
|
+ data.drugsInfoDTO.unit:'箱'}}
|
|
268
|
+ </span>
|
|
269
|
+ </div>
|
|
270
|
+
|
|
271
|
+ </div>
|
|
272
|
+ </div>
|
|
273
|
+ </div>
|
|
274
|
+
|
|
275
|
+ <div class="monad"
|
|
276
|
+ style="padding: 10px;
|
|
277
|
+ border: 1px solid #e7e7e7;
|
|
278
|
+ border-radius: 5px;margin-bottom: 40px;">
|
|
279
|
+ <div class="monad-title"
|
|
280
|
+ style="text-align: center;
|
|
281
|
+ font-size: 18px;
|
|
282
|
+ border-bottom: 1px solid #e7e7e7;
|
|
283
|
+ padding-bottom: 10px;">
|
|
284
|
+ 大输液批次消耗汇总单
|
|
285
|
+ </div>
|
|
286
|
+ <div class="monad-sign" style="display: flex;line-height: 23px;font-size: 14px;">
|
|
287
|
+ <div style="margin-right: 15px;">日期:666</div>
|
|
288
|
+ <div style="margin-right: 15px;">批次号:777</div>
|
|
289
|
+ </div>
|
|
290
|
+ <div style="border: 1px solid #e7e7e7;border-bottom: none;font-size: 14px;">
|
|
291
|
+ <div class="thead" style="display: flex;">
|
|
292
|
+ <div style="width: 40%;display: flex;font-size: 12px;
|
|
293
|
+ align-items: center;
|
|
294
|
+ justify-content: center;
|
|
295
|
+ flex-wrap: wrap;
|
|
296
|
+ border-right: 1px solid #e7e7e7;
|
|
297
|
+ border-bottom: 1px solid #e7e7e7;">药品名称</div>
|
|
298
|
+
|
|
299
|
+ <div style="width: 20%;display: flex;font-size: 12px;
|
|
300
|
+ align-items: center;
|
|
301
|
+ justify-content: center;
|
|
302
|
+ flex-wrap: wrap;
|
|
303
|
+ border-right: 1px solid #e7e7e7;
|
|
304
|
+ border-bottom: 1px solid #e7e7e7;">药品规格</div>
|
|
305
|
+
|
|
306
|
+ <div style="width: 13%;display: flex;font-size: 12px;
|
|
307
|
+ align-items: center;
|
|
308
|
+ justify-content: center;
|
|
309
|
+ flex-wrap: wrap;
|
|
310
|
+ border-right: 1px solid #e7e7e7;
|
|
311
|
+ border-bottom: 1px solid #e7e7e7;">包装规格</div>
|
|
312
|
+
|
|
313
|
+ <div style="width: 13%;display: flex;font-size: 12px;
|
|
314
|
+ align-items: center;
|
|
315
|
+ justify-content: center;
|
|
316
|
+ flex-wrap: wrap;
|
|
317
|
+ border-right: 1px solid #e7e7e7;
|
|
318
|
+ border-bottom: 1px solid #e7e7e7;">发药总量</div>
|
|
319
|
+
|
|
320
|
+ <div style="width: 14%;display: flex;font-size: 12px;
|
|
321
|
+ align-items: center;
|
|
322
|
+ justify-content: center;
|
|
323
|
+ flex-wrap: wrap;
|
|
324
|
+ border-bottom: 1px solid #e7e7e7;">箱数合计</div>
|
|
325
|
+
|
|
326
|
+ </div>
|
|
327
|
+ <div style="display: flex;">
|
|
328
|
+ <div style="width: 40%;display: flex;font-size: 12px;
|
|
329
|
+ align-items: center;
|
|
330
|
+ justify-content: center;
|
|
331
|
+ flex-wrap: wrap;
|
|
332
|
+ border-right: 1px solid #e7e7e7;
|
|
333
|
+ border-bottom: 1px solid #e7e7e7;">葡萄胎</div>
|
|
334
|
+
|
|
335
|
+ <div style="width: 20%;display: flex;font-size: 12px;
|
|
336
|
+ align-items: center;
|
|
337
|
+ justify-content: center;
|
|
338
|
+ flex-wrap: wrap;
|
|
339
|
+ border-right: 1px solid #e7e7e7;
|
|
340
|
+ border-bottom: 1px solid #e7e7e7;">100ml*1</div>
|
|
341
|
+
|
|
342
|
+ <div style="width: 13%;display: flex;font-size: 12px;
|
|
343
|
+ align-items: center;
|
|
344
|
+ justify-content: center;
|
|
345
|
+ flex-wrap: wrap;
|
|
346
|
+ border-right: 1px solid #e7e7e7;
|
|
347
|
+ border-bottom: 1px solid #e7e7e7;">100</div>
|
|
348
|
+
|
|
349
|
+ <div style="width: 13%;display: flex;font-size: 12px;
|
|
350
|
+ align-items: center;
|
|
351
|
+ justify-content: center;
|
|
352
|
+ flex-wrap: wrap;
|
|
353
|
+ border-right: 1px solid #e7e7e7;
|
|
354
|
+ border-bottom: 1px solid #e7e7e7;">200</div>
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+ <div style="width: 14%;display: flex;font-size: 12px;
|
|
358
|
+ align-items: center;
|
|
359
|
+ justify-content: center;
|
|
360
|
+ flex-wrap: wrap;
|
|
361
|
+ border-bottom: 1px solid #e7e7e7;">
|
|
362
|
+ <span>
|
|
363
|
+ 20箱
|
|
364
|
+ </span>
|
|
365
|
+ </div>
|
|
366
|
+
|
|
367
|
+ </div>
|
|
368
|
+ </div>
|
|
369
|
+ </div>
|
|
370
|
+ </div>
|
|
371
|
+
|
|
372
|
+</div>
|
|
373
|
+<!-- 操作成功/失败提示框 -->
|
|
374
|
+<app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
|
|
375
|
+ [info]="promptInfo"></app-prompt-modal>
|
|
376
|
+
|
|
377
|
+<!-- 查看详情 -->
|
|
378
|
+<router-outlet></router-outlet>
|
|
379
|
+<!-- 遮罩 -->
|
|
380
|
+<app-mask *ngIf="maskFlag"></app-mask>
|