|
@@ -0,0 +1,791 @@
|
|
1
|
+<template>
|
|
2
|
+ <div>
|
|
3
|
+ <div class="position">
|
|
4
|
+ <BreadCrumb :crumbs="crumbs"></BreadCrumb>
|
|
5
|
+ </div>
|
|
6
|
+ <div class="app-container">
|
|
7
|
+ <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
|
|
8
|
+ <div class="cell clearfix">
|
|
9
|
+ <span>入库时间:</span>
|
|
10
|
+ <el-date-picker
|
|
11
|
+ size="small"
|
|
12
|
+ v-model="start_time"
|
|
13
|
+ prefix-icon="el-icon-date"
|
|
14
|
+ :editable="false"
|
|
15
|
+ style="width: 196px;"
|
|
16
|
+ type="date"
|
|
17
|
+ placeholder="选择日期时间"
|
|
18
|
+ align="right"
|
|
19
|
+ format="yyyy-MM-dd"
|
|
20
|
+ value-format="yyyy-MM-dd"
|
|
21
|
+ @change="startTimeChange"
|
|
22
|
+ ></el-date-picker>-
|
|
23
|
+ <el-date-picker
|
|
24
|
+ size="small"
|
|
25
|
+ v-model="end_time"
|
|
26
|
+ prefix-icon="el-icon-date"
|
|
27
|
+ :editable="false"
|
|
28
|
+ style="width: 196px;margin-right:10px;"
|
|
29
|
+ type="date"
|
|
30
|
+ placeholder="选择日期时间"
|
|
31
|
+ align="right"
|
|
32
|
+ format="yyyy-MM-dd"
|
|
33
|
+ value-format="yyyy-MM-dd"
|
|
34
|
+ @change="endTimeChange"
|
|
35
|
+ ></el-date-picker>
|
|
36
|
+ </div>
|
|
37
|
+
|
|
38
|
+ <div class="cell clearfix">
|
|
39
|
+ <div>查询类型:</div>
|
|
40
|
+ <el-select size="small" v-model="stock_type" placeholder="请选择"
|
|
41
|
+ style="width:100px;margin-left:10px;" @change="changeStockType">
|
|
42
|
+ <el-option
|
|
43
|
+ v-for="item,index in items"
|
|
44
|
+ :key="index"
|
|
45
|
+ :label="item.name"
|
|
46
|
+ :value="item.id">
|
|
47
|
+ </el-option>
|
|
48
|
+ </el-select>
|
|
49
|
+ </div>
|
|
50
|
+
|
|
51
|
+ <div class="cell clearfix">
|
|
52
|
+ <div>耗材:</div>
|
|
53
|
+ <el-select size="small" v-model="drug_id" placeholder="请选择"
|
|
54
|
+ style="width:100px;margin-left:10px;" @change="change">
|
|
55
|
+ <el-option
|
|
56
|
+ label="全部"
|
|
57
|
+ value="0">
|
|
58
|
+ </el-option>
|
|
59
|
+ <el-option
|
|
60
|
+ v-for="item,index in drugs"
|
|
61
|
+ :key="index"
|
|
62
|
+ :label="item.good_name"
|
|
63
|
+ :value="item.id">
|
|
64
|
+ </el-option>
|
|
65
|
+ </el-select>
|
|
66
|
+ </div>
|
|
67
|
+ <div>
|
|
68
|
+ <el-button type="primary" @click="query()">查询</el-button>
|
|
69
|
+ <el-button type="primary" @click="export_detail()">导出</el-button>
|
|
70
|
+
|
|
71
|
+ </div>
|
|
72
|
+ </div>
|
|
73
|
+ <el-table v-if="stock_type == 3" :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
|
|
74
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
75
|
+ max-height="600"
|
|
76
|
+ highlight-current-row>
|
|
77
|
+ <el-table-column align="center" prop="name" label="耗材名称">
|
|
78
|
+ <template slot-scope="scope">{{scope.row.MedinsListName}}</template>
|
|
79
|
+ </el-table-column>
|
|
80
|
+ <el-table-column align="center" prop="name" label="国家编码">
|
|
81
|
+ <template slot-scope="scope">{{scope.row.MedListCodg}}</template>
|
|
82
|
+ </el-table-column>
|
|
83
|
+ <el-table-column align="center" prop="name" label="销售/退货数量">
|
|
84
|
+ <template slot-scope="scope">
|
|
85
|
+ <div>{{scope.row.SelRetnCnt}}</div>
|
|
86
|
+ </template>
|
|
87
|
+ </el-table-column>
|
|
88
|
+
|
|
89
|
+ <el-table-column align="center" prop="name" label="销售/退货时间">
|
|
90
|
+ <template slot-scope="scope">
|
|
91
|
+ <div>{{scope.row.SelRetnTime}}</div>
|
|
92
|
+ </template>
|
|
93
|
+ </el-table-column>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+ <el-table-column align="center" prop="total" label="药师姓名">
|
|
97
|
+ <template slot-scope="scope">
|
|
98
|
+ <div>{{scope.row.PharName}}</div>
|
|
99
|
+ </template>
|
|
100
|
+ </el-table-column>
|
|
101
|
+
|
|
102
|
+ <el-table-column align="center" prop="total" label="生产日期">
|
|
103
|
+ <template slot-scope="scope">
|
|
104
|
+ <div>{{scope.row.ManuDate}}</div>
|
|
105
|
+ </template>
|
|
106
|
+ </el-table-column>
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+ <el-table-column align="center" prop="total" label="记录号">
|
|
110
|
+ <template slot-scope="scope">
|
|
111
|
+ <div>{{scope.row.Rid}}</div>
|
|
112
|
+ </template>
|
|
113
|
+ </el-table-column>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+ <el-table-column align="center" prop="total" label="有效标志">
|
|
117
|
+ <template slot-scope="scope">
|
|
118
|
+ <div>{{scope.row.ValiFlag}}</div>
|
|
119
|
+ </template>
|
|
120
|
+ </el-table-column>
|
|
121
|
+ <el-table-column align="center" prop="total" label="批次流水号">
|
|
122
|
+ <template slot-scope="scope">
|
|
123
|
+ <div>{{scope.row.FixmedinsBchno}}</div>
|
|
124
|
+ </template>
|
|
125
|
+ </el-table-column>
|
|
126
|
+
|
|
127
|
+ <el-table-column align="center" prop="total" label="经办时间">
|
|
128
|
+ <template slot-scope="scope">
|
|
129
|
+ <div></div>
|
|
130
|
+ </template>
|
|
131
|
+ </el-table-column>
|
|
132
|
+ </el-table>
|
|
133
|
+ <el-table v-if="stock_type == 4" :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
|
|
134
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
135
|
+ max-height="600"
|
|
136
|
+ highlight-current-row>
|
|
137
|
+ <el-table-column align="center" prop="name" label="耗材名称">
|
|
138
|
+ <template slot-scope="scope">{{scope.row.MedinsListName}}</template>
|
|
139
|
+ </el-table-column>
|
|
140
|
+ <el-table-column align="center" prop="name" label="国家编码">
|
|
141
|
+ <template slot-scope="scope">{{scope.row.MedListCodg}}</template>
|
|
142
|
+ </el-table-column>
|
|
143
|
+ <el-table-column align="center" prop="name" label="耗材追溯码">
|
|
144
|
+ <template slot-scope="scope">
|
|
145
|
+ <div>{{scope.row.DrugTracCodg}}</div>
|
|
146
|
+ </template>
|
|
147
|
+ </el-table-column>
|
|
148
|
+ <el-table-column align="center" prop="total" label="批次流水号">
|
|
149
|
+ <template slot-scope="scope">
|
|
150
|
+ <div>{{scope.row.FixmedinsBchno}}</div>
|
|
151
|
+ </template>
|
|
152
|
+ </el-table-column>
|
|
153
|
+ </el-table>
|
|
154
|
+ <el-table v-if="stock_type == 5" :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
|
|
155
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
156
|
+ max-height="600"
|
|
157
|
+ highlight-current-row>
|
|
158
|
+
|
|
159
|
+ <el-table-column align="center" prop="name" label="就诊ID">
|
|
160
|
+ <template slot-scope="scope">{{scope.row.MdtrtId}}</template>
|
|
161
|
+ </el-table-column>
|
|
162
|
+ <el-table-column align="center" prop="name" label="耗材名称">
|
|
163
|
+ <template slot-scope="scope">{{scope.row.MedinsListName}}</template>
|
|
164
|
+ </el-table-column>
|
|
165
|
+
|
|
166
|
+ <el-table-column align="center" prop="name" label="患者名称">
|
|
167
|
+ <template slot-scope="scope">{{scope.row.PsnName}}</template>
|
|
168
|
+ </el-table-column>
|
|
169
|
+
|
|
170
|
+ <el-table-column align="center" prop="name" label="耗材追溯码">
|
|
171
|
+ <template slot-scope="scope">
|
|
172
|
+ <div>{{scope.row.DrugTracCodg}}</div>
|
|
173
|
+ </template>
|
|
174
|
+ </el-table-column>
|
|
175
|
+ <el-table-column align="center" prop="name" label="上传日期">
|
|
176
|
+ <template slot-scope="scope">
|
|
177
|
+ <div>{{scope.row.UpdtTime}}</div>
|
|
178
|
+ </template>
|
|
179
|
+ </el-table-column>
|
|
180
|
+
|
|
181
|
+ <el-table-column align="center" prop="total" label="批次流水号">
|
|
182
|
+ <template slot-scope="scope">
|
|
183
|
+ <div>{{scope.row.FixmedinsBchno}}</div>
|
|
184
|
+ </template>
|
|
185
|
+ </el-table-column>
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+ </el-table>
|
|
189
|
+ </div>
|
|
190
|
+ <!-- <el-table v-if="stock_type == 1" :data="tableData" border :row-style="{ color: '#303133' }" ref="table"-->
|
|
191
|
+ <!-- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
|
|
192
|
+ <!-- max-height="600"-->
|
|
193
|
+ <!-- highlight-current-row>-->
|
|
194
|
+ <!-- <el-table-column align="center" prop="name" label="药品名称">-->
|
|
195
|
+ <!-- <template slot-scope="scope">{{scope.row.MedinsListName}}</template>-->
|
|
196
|
+ <!-- </el-table-column>-->
|
|
197
|
+ <!-- <el-table-column align="center" prop="name" label="国家编码">-->
|
|
198
|
+ <!-- <template slot-scope="scope">{{scope.row.MedListCodg}}</template>-->
|
|
199
|
+ <!-- </el-table-column>-->
|
|
200
|
+ <!-- <el-table-column align="center" prop="name" label="库存数量">-->
|
|
201
|
+ <!-- <template slot-scope="scope">-->
|
|
202
|
+ <!-- <div>{{scope.row.InvCnt}}</div>-->
|
|
203
|
+ <!-- </template>-->
|
|
204
|
+ <!-- </el-table-column>-->
|
|
205
|
+
|
|
206
|
+ <!-- <el-table-column align="center" prop="name" label="更新时间">-->
|
|
207
|
+ <!-- <template slot-scope="scope">-->
|
|
208
|
+ <!-- <div>{{scope.row.UpdtTime}}</div>-->
|
|
209
|
+ <!-- </template>-->
|
|
210
|
+ <!-- </el-table-column>-->
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+ <!-- <el-table-column align="center" prop="total" label="生产日期">-->
|
|
214
|
+ <!-- <template slot-scope="scope">-->
|
|
215
|
+ <!-- <div>{{scope.row.ManuDate}}</div>-->
|
|
216
|
+ <!-- </template>-->
|
|
217
|
+ <!-- </el-table-column>-->
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+ <!-- <el-table-column align="center" prop="total" label="记录号">-->
|
|
221
|
+ <!-- <template slot-scope="scope">-->
|
|
222
|
+ <!-- <div>{{scope.row.Rid}}</div>-->
|
|
223
|
+ <!-- </template>-->
|
|
224
|
+ <!-- </el-table-column>-->
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+ <!-- <el-table-column align="center" prop="total" label="库存日期">-->
|
|
228
|
+ <!-- <template slot-scope="scope">-->
|
|
229
|
+ <!-- <div>{{scope.row.Invdate}}</div>-->
|
|
230
|
+ <!-- </template>-->
|
|
231
|
+ <!-- </el-table-column>-->
|
|
232
|
+
|
|
233
|
+ <!-- <el-table-column align="center" prop="total" label="有效标志">-->
|
|
234
|
+ <!-- <template slot-scope="scope">-->
|
|
235
|
+ <!-- <div>{{scope.row.ValiFlag}}</div>-->
|
|
236
|
+ <!-- </template>-->
|
|
237
|
+ <!-- </el-table-column>-->
|
|
238
|
+ <!-- <el-table-column align="center" prop="total" label="批次流水号">-->
|
|
239
|
+ <!-- <template slot-scope="scope">-->
|
|
240
|
+ <!-- <div>{{scope.row.FixmedinsBchno}}</div>-->
|
|
241
|
+ <!-- </template>-->
|
|
242
|
+ <!-- </el-table-column>-->
|
|
243
|
+
|
|
244
|
+ <!-- <el-table-column align="center" prop="total" label="经办时间">-->
|
|
245
|
+ <!-- <template slot-scope="scope">-->
|
|
246
|
+ <!-- <div></div>-->
|
|
247
|
+ <!-- </template>-->
|
|
248
|
+ <!-- </el-table-column>-->
|
|
249
|
+
|
|
250
|
+ <!-- <el-table-column align="center" prop="total" label="经办人">-->
|
|
251
|
+ <!-- <template slot-scope="scope">-->
|
|
252
|
+ <!-- <div>{{scope.row.OptTime}}</div>-->
|
|
253
|
+ <!-- </template>-->
|
|
254
|
+ <!-- </el-table-column>-->
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+ <!-- </el-table>-->
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+ <!-- <el-table v-if="stock_type == 2" :data="tableData" border :row-style="{ color: '#303133' }" ref="table"-->
|
|
261
|
+ <!-- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
|
|
262
|
+ <!-- max-height="600"-->
|
|
263
|
+ <!-- highlight-current-row>-->
|
|
264
|
+ <!-- <el-table-column align="center" prop="name" label="药品名称">-->
|
|
265
|
+ <!-- <template slot-scope="scope">{{scope.row.MedinsListName}}</template>-->
|
|
266
|
+ <!-- </el-table-column>-->
|
|
267
|
+ <!-- <el-table-column align="center" prop="name" label="国家编码">-->
|
|
268
|
+ <!-- <template slot-scope="scope">{{scope.row.MedListCodg}}</template>-->
|
|
269
|
+ <!-- </el-table-column>-->
|
|
270
|
+ <!-- <el-table-column align="center" prop="name" label="变更类型">-->
|
|
271
|
+ <!-- <template slot-scope="scope"></template>-->
|
|
272
|
+ <!-- </el-table-column>-->
|
|
273
|
+ <!-- <el-table-column align="center" prop="name" label="变更数量">-->
|
|
274
|
+ <!-- <template slot-scope="scope">-->
|
|
275
|
+ <!-- <div>{{scope.row.Cnt}}</div>-->
|
|
276
|
+ <!-- </template>-->
|
|
277
|
+ <!-- </el-table-column>-->
|
|
278
|
+
|
|
279
|
+ <!-- <el-table-column align="center" prop="name" label="单价">-->
|
|
280
|
+ <!-- <template slot-scope="scope">-->
|
|
281
|
+ <!-- <div>{{scope.row.Pric}}</div>-->
|
|
282
|
+ <!-- </template>-->
|
|
283
|
+ <!-- </el-table-column>-->
|
|
284
|
+
|
|
285
|
+ <!-- <el-table-column align="center" prop="name" label="库存变更时间">-->
|
|
286
|
+ <!-- <template slot-scope="scope">-->
|
|
287
|
+ <!-- <div>{{scope.row.InvChgTime}}</div>-->
|
|
288
|
+ <!-- </template>-->
|
|
289
|
+ <!-- </el-table-column>-->
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+ <!-- <el-table-column align="center" prop="name" label="变更经办人">-->
|
|
293
|
+ <!-- <template slot-scope="scope">-->
|
|
294
|
+ <!-- <div>{{scope.row.InvChgOpterName}}</div>-->
|
|
295
|
+ <!-- </template>-->
|
|
296
|
+ <!-- </el-table-column>-->
|
|
297
|
+
|
|
298
|
+ <!-- <el-table-column align="center" prop="total" label="有效标志">-->
|
|
299
|
+ <!-- <template slot-scope="scope">-->
|
|
300
|
+ <!-- <div>{{scope.row.ValiFlag}}</div>-->
|
|
301
|
+ <!-- </template>-->
|
|
302
|
+ <!-- </el-table-column>-->
|
|
303
|
+
|
|
304
|
+ <!-- <el-table-column align="center" prop="total" label="批次流水号">-->
|
|
305
|
+ <!-- <template slot-scope="scope">-->
|
|
306
|
+ <!-- <div>{{scope.row.FixmedinsBchno}}</div>-->
|
|
307
|
+ <!-- </template>-->
|
|
308
|
+ <!-- </el-table-column>-->
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+ <!-- <el-table-column align="center" prop="total" label="经办时间">-->
|
|
312
|
+ <!-- <template slot-scope="scope">-->
|
|
313
|
+ <!-- <div></div>-->
|
|
314
|
+ <!-- </template>-->
|
|
315
|
+ <!-- </el-table-column>-->
|
|
316
|
+
|
|
317
|
+ <!-- <el-table-column align="center" prop="total" label="经办人">-->
|
|
318
|
+ <!-- <template slot-scope="scope">-->
|
|
319
|
+ <!-- <div>{{scope.row.OptTime}}</div>-->
|
|
320
|
+ <!-- </template>-->
|
|
321
|
+ <!-- </el-table-column>-->
|
|
322
|
+
|
|
323
|
+ <!-- <el-table-column align="center" prop="total" label="记录号">-->
|
|
324
|
+ <!-- <template slot-scope="scope">-->
|
|
325
|
+ <!-- <div>{{scope.row.Rid}}</div>-->
|
|
326
|
+ <!-- </template>-->
|
|
327
|
+ <!-- </el-table-column>-->
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+ <!-- </el-table>-->
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+ <!--<!– 实时库存–>-->
|
|
338
|
+ <!-- <div v-if="stock_type == 6">-->
|
|
339
|
+ <!-- <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"-->
|
|
340
|
+ <!-- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
|
|
341
|
+ <!-- max-height="600"-->
|
|
342
|
+ <!-- highlight-current-row>-->
|
|
343
|
+ <!-- <el-table-column align="center" prop="name" label="药品名称">-->
|
|
344
|
+ <!-- <template slot-scope="scope">{{scope.row.MedinsListName}}</template>-->
|
|
345
|
+ <!-- </el-table-column>-->
|
|
346
|
+ <!-- <el-table-column align="center" prop="name" label="国家编码">-->
|
|
347
|
+ <!-- <template slot-scope="scope">{{scope.row.MedListCodg}}</template>-->
|
|
348
|
+ <!-- </el-table-column>-->
|
|
349
|
+ <!-- <el-table-column align="center" prop="name" label="库存数量">-->
|
|
350
|
+ <!-- <template slot-scope="scope">{{scope.row.InvCnt}}</template>-->
|
|
351
|
+ <!-- </el-table-column>-->
|
|
352
|
+ <!-- <el-table-column align="center" prop="name" label="销售价格">-->
|
|
353
|
+ <!-- <template slot-scope="scope">{{scope.row.Pric}}</template>-->
|
|
354
|
+ <!-- </el-table-column>-->
|
|
355
|
+
|
|
356
|
+ <!-- <el-table-column align="center" prop="name" label="库存日期">-->
|
|
357
|
+ <!-- <template slot-scope="scope">{{scope.row.Invdate}}</template>-->
|
|
358
|
+ <!-- </el-table-column>-->
|
|
359
|
+
|
|
360
|
+ <!-- <el-table-column align="center" prop="total" label="批次流水号">-->
|
|
361
|
+ <!-- <template slot-scope="scope">-->
|
|
362
|
+ <!-- <div>{{scope.row.FixmedinsBchno}}</div>-->
|
|
363
|
+ <!-- </template>-->
|
|
364
|
+ <!-- </el-table-column>-->
|
|
365
|
+ <!-- <el-table-column align="center" prop="name" label="更新时间">-->
|
|
366
|
+ <!-- <template slot-scope="scope">-->
|
|
367
|
+ <!-- <div>{{scope.row.UpdtTime}}</div>-->
|
|
368
|
+ <!-- </template>-->
|
|
369
|
+ <!-- </el-table-column>-->
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+ <!-- </el-table>-->
|
|
375
|
+
|
|
376
|
+ <!-- </div>-->
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+ <!-- <div v-if="stock_type == 7">-->
|
|
380
|
+ <!-- <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"-->
|
|
381
|
+ <!-- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
|
|
382
|
+ <!-- max-height="600"-->
|
|
383
|
+ <!-- highlight-current-row>-->
|
|
384
|
+ <!-- <el-table-column align="center" prop="name" label="药品名称">-->
|
|
385
|
+ <!-- <template slot-scope="scope">{{scope.row.MedinsListName}}</template>-->
|
|
386
|
+ <!-- </el-table-column>-->
|
|
387
|
+ <!-- <el-table-column align="center" prop="name" label="国家编码">-->
|
|
388
|
+ <!-- <template slot-scope="scope">{{scope.row.MedListCodg}}</template>-->
|
|
389
|
+ <!-- </el-table-column>-->
|
|
390
|
+ <!-- <el-table-column align="center" prop="name" label="库存数量">-->
|
|
391
|
+ <!-- <template slot-scope="scope">{{scope.row.InvCnt}}</template>-->
|
|
392
|
+ <!-- </el-table-column>-->
|
|
393
|
+ <!-- <el-table-column align="center" prop="name" label="销售价格">-->
|
|
394
|
+ <!-- <template slot-scope="scope">{{scope.row.Pric}}</template>-->
|
|
395
|
+ <!-- </el-table-column>-->
|
|
396
|
+
|
|
397
|
+ <!-- <el-table-column align="center" prop="name" label="库存变更类型">-->
|
|
398
|
+ <!-- <template slot-scope="scope">{{scope.row.InvChgType}}</template>-->
|
|
399
|
+ <!-- </el-table-column>-->
|
|
400
|
+
|
|
401
|
+ <!-- <el-table-column align="center" prop="total" label="批次流水号">-->
|
|
402
|
+ <!-- <template slot-scope="scope">-->
|
|
403
|
+ <!-- <div>{{scope.row.FixmedinsBchno}}</div>-->
|
|
404
|
+ <!-- </template>-->
|
|
405
|
+ <!-- </el-table-column>-->
|
|
406
|
+
|
|
407
|
+ <!-- </el-table>-->
|
|
408
|
+ <!-- </div>-->
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+ <!-- <el-table :data="tableData_two" border :row-style="{ color: '#303133' }" ref="table"-->
|
|
412
|
+ <!-- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
|
|
413
|
+ <!-- max-height="600"-->
|
|
414
|
+ <!-- highlight-current-row>-->
|
|
415
|
+ <!-- <el-table-column align="center" prop="name" label="药品名称">-->
|
|
416
|
+ <!-- <template slot-scope="scope">{{scope.row.medinsListName}}</template>-->
|
|
417
|
+ <!-- </el-table-column>-->
|
|
418
|
+ <!-- <el-table-column align="center" prop="name" label="国家编码">-->
|
|
419
|
+ <!-- <template slot-scope="scope">{{scope.row.medListCodg}}</template>-->
|
|
420
|
+ <!-- </el-table-column>-->
|
|
421
|
+ <!-- <el-table-column align="center" prop="name" label="变更类型">-->
|
|
422
|
+ <!-- <template slot-scope="scope">{{}}</template>-->
|
|
423
|
+ <!-- </el-table-column>-->
|
|
424
|
+ <!-- <el-table-column align="center" prop="name" label="变更数量">-->
|
|
425
|
+ <!-- <template slot-scope="scope">-->
|
|
426
|
+ <!-- <div>{{scope.row.cnt}}</div>-->
|
|
427
|
+ <!-- </template>-->
|
|
428
|
+ <!-- </el-table-column>-->
|
|
429
|
+
|
|
430
|
+ <!-- <el-table-column align="center" prop="name" label="单价">-->
|
|
431
|
+ <!-- <template slot-scope="scope">-->
|
|
432
|
+ <!-- <div>{{scope.row.pric}}</div>-->
|
|
433
|
+ <!-- </template>-->
|
|
434
|
+ <!-- </el-table-column>-->
|
|
435
|
+
|
|
436
|
+ <!-- <el-table-column align="center" prop="name" label="库存变更时间">-->
|
|
437
|
+ <!-- <template slot-scope="scope">-->
|
|
438
|
+ <!-- <div>{{scope.row.invChgTime}}</div>-->
|
|
439
|
+ <!-- </template>-->
|
|
440
|
+ <!-- </el-table-column>-->
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+ <!-- <el-table-column align="center" prop="name" label="变更经办人">-->
|
|
444
|
+ <!-- <template slot-scope="scope">-->
|
|
445
|
+ <!-- <div>{{scope.row.invChgOpterName}}</div>-->
|
|
446
|
+ <!-- </template>-->
|
|
447
|
+ <!-- </el-table-column>-->
|
|
448
|
+
|
|
449
|
+ <!-- <el-table-column align="center" prop="total" label="有效标志">-->
|
|
450
|
+ <!-- <template slot-scope="scope">-->
|
|
451
|
+ <!-- <div>{{scope.row.valiFlag}}</div>-->
|
|
452
|
+ <!-- </template>-->
|
|
453
|
+ <!-- </el-table-column>-->
|
|
454
|
+
|
|
455
|
+ <!-- <el-table-column align="center" prop="total" label="批次流水号">-->
|
|
456
|
+ <!-- <template slot-scope="scope">-->
|
|
457
|
+ <!-- <div>{{scope.row.fixmedinsBchno}}</div>-->
|
|
458
|
+ <!-- </template>-->
|
|
459
|
+ <!-- </el-table-column>-->
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+ <!-- <el-table-column align="center" prop="total" label="经办时间">-->
|
|
463
|
+ <!-- <template slot-scope="scope">-->
|
|
464
|
+ <!-- <div></div>-->
|
|
465
|
+ <!-- </template>-->
|
|
466
|
+ <!-- </el-table-column>-->
|
|
467
|
+
|
|
468
|
+ <!-- <el-table-column align="center" prop="total" label="经办人">-->
|
|
469
|
+ <!-- <template slot-scope="scope">-->
|
|
470
|
+ <!-- <div>{{scope.row.optTime}}</div>-->
|
|
471
|
+ <!-- </template>-->
|
|
472
|
+ <!-- </el-table-column>-->
|
|
473
|
+
|
|
474
|
+ <!-- <el-table-column align="center" prop="total" label="记录号">-->
|
|
475
|
+ <!-- <template slot-scope="scope">-->
|
|
476
|
+ <!-- <div>{{scope.row.rid}}</div>-->
|
|
477
|
+ <!-- </template>-->
|
|
478
|
+ <!-- </el-table-column>-->
|
|
479
|
+
|
|
480
|
+ <!-- <el-table-column label="操作" width="200">-->
|
|
481
|
+ <!-- <template slot-scope="scope">-->
|
|
482
|
+ <!-- <el-button type="text" @click="delete(scope.row)">删除</el-button>-->
|
|
483
|
+ <!-- </template>-->
|
|
484
|
+ <!-- </el-table-column>-->
|
|
485
|
+ <!-- </el-table>-->
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+ </div>
|
|
489
|
+
|
|
490
|
+ <!-- </div> -->
|
|
491
|
+</template>
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+<script>
|
|
495
|
+import {
|
|
496
|
+ getGood
|
|
497
|
+} from '@/api/his/his'
|
|
498
|
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
499
|
+import axios from 'axios'
|
|
500
|
+const moment = require('moment')
|
|
501
|
+export default {
|
|
502
|
+ components: {
|
|
503
|
+ BreadCrumb
|
|
504
|
+ },
|
|
505
|
+ data() {
|
|
506
|
+ return {
|
|
507
|
+ start_time: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
|
|
508
|
+ end_time: new Date(new Date().getFullYear(), new Date().getMonth() + 3, 0).toLocaleDateString('en-CA'),
|
|
509
|
+ tableData: [],
|
|
510
|
+ tableData_two:[],
|
|
511
|
+ stock_type:4,
|
|
512
|
+ drug_id:"",
|
|
513
|
+ items: [
|
|
514
|
+ { id: 4, name: '入库耗材追溯信息查询' },
|
|
515
|
+ { id: 5, name: '耗材销售追溯信息查询' },
|
|
516
|
+ ],
|
|
517
|
+ drugs: [
|
|
518
|
+
|
|
519
|
+ ]
|
|
520
|
+ }
|
|
521
|
+ },
|
|
522
|
+ methods: {
|
|
523
|
+ // 药品数据源
|
|
524
|
+ getInitData() {
|
|
525
|
+ getGood().then(response => {
|
|
526
|
+ if (response.data.state == 0) {
|
|
527
|
+ this.$message.error(response.data.msg)
|
|
528
|
+ return false
|
|
529
|
+ } else {
|
|
530
|
+ this.drugs = response.data.data.drugs
|
|
531
|
+ this.drug_id = "0"
|
|
532
|
+ }
|
|
533
|
+ })
|
|
534
|
+ },
|
|
535
|
+ delete(){
|
|
536
|
+ },
|
|
537
|
+ export_detail() {
|
|
538
|
+ let list = []
|
|
539
|
+ for (let i = 0; i < this.tableData.length; i++) {
|
|
540
|
+ let order = this.tableData[i]
|
|
541
|
+ let name = order.FixmedinsBchno
|
|
542
|
+ let obj = {
|
|
543
|
+ '患者姓名': name,
|
|
544
|
+ }
|
|
545
|
+ list.push(obj)
|
|
546
|
+ }
|
|
547
|
+ import('@/vendor/Export2Excel').then(excel => {
|
|
548
|
+ const tHeader = ['患者姓名']
|
|
549
|
+ const filterVal = ['患者姓名']
|
|
550
|
+ const data = this.formatJson(filterVal, list)
|
|
551
|
+ excel.export_json_to_excel1({
|
|
552
|
+ header: tHeader,
|
|
553
|
+ data,
|
|
554
|
+ filename: '明细',
|
|
555
|
+ ref: this.$refs['table'].$el
|
|
556
|
+ })
|
|
557
|
+ })
|
|
558
|
+
|
|
559
|
+ }, formatJson(filterVal, jsonData) {
|
|
560
|
+ return jsonData.map(v => filterVal.map(j => v[j]))
|
|
561
|
+ },
|
|
562
|
+ stock(){
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+ },exports(){
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+ },
|
|
570
|
+ query(){
|
|
571
|
+ var that = this;
|
|
572
|
+ let params = {
|
|
573
|
+ id:this.drug_id,
|
|
574
|
+ start_time:this.start_time,
|
|
575
|
+ end_time:this.end_time,
|
|
576
|
+ admin_user_id:this.$store.getters.xt_user.user.id
|
|
577
|
+ };
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+ axios.get('http://127.0.0.1:9532/test/net',{}).then(function(response) {
|
|
581
|
+ if (response.data.state == 0) {
|
|
582
|
+ that.isloading = false
|
|
583
|
+
|
|
584
|
+ // that.$message.error(response.data.data.msg);
|
|
585
|
+ that.$confirm("请检查医保程序是否有打开", "提示", {
|
|
586
|
+ confirmButtonText: "确 定",
|
|
587
|
+ cancelButtonText: "取 消",
|
|
588
|
+ type: "warning",
|
|
589
|
+ }).then(() => {
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+ })
|
|
593
|
+ .catch(() => {});
|
|
594
|
+ return false
|
|
595
|
+ } else {
|
|
596
|
+ console.log("-------ssajsnaskjnajska")
|
|
597
|
+ that.tableData = []
|
|
598
|
+ console.log(that.stock_type)
|
|
599
|
+
|
|
600
|
+ if(that.stock_type == 1){
|
|
601
|
+ axios.get('http://127.0.0.1:9532/api/3508',{params:params}).then(function(response) {
|
|
602
|
+ if (response.data.state == 0) {
|
|
603
|
+ that.$message.error(response.data.data.msg);
|
|
604
|
+ return false
|
|
605
|
+ } else {
|
|
606
|
+ if(response.data.data.failed_code == -10){
|
|
607
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
608
|
+ confirmButtonText: '确 定',
|
|
609
|
+ type: 'warning'
|
|
610
|
+ }).then(() => {
|
|
611
|
+
|
|
612
|
+ }).catch(() => {
|
|
613
|
+
|
|
614
|
+ })
|
|
615
|
+ }else{
|
|
616
|
+ that.tableData = that.tableData.concat(response.data.data.info)
|
|
617
|
+
|
|
618
|
+ }
|
|
619
|
+ }
|
|
620
|
+ }).catch(function(error) {
|
|
621
|
+ })
|
|
622
|
+
|
|
623
|
+ }else if(that.stock_type == 2){
|
|
624
|
+ axios.get('http://127.0.0.1:9532/api/3509',{params:params}).then(function(response) {
|
|
625
|
+ if (response.data.state == 0) {
|
|
626
|
+ that.$message.error(response.data.data.msg);
|
|
627
|
+ return false
|
|
628
|
+ } else {
|
|
629
|
+ if(response.data.data.failed_code == -10){
|
|
630
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
631
|
+ confirmButtonText: '确 定',
|
|
632
|
+ type: 'warning'
|
|
633
|
+ }).then(() => {
|
|
634
|
+
|
|
635
|
+ }).catch(() => {
|
|
636
|
+ })
|
|
637
|
+ }else{
|
|
638
|
+ that.tableData = that.tableData.concat(response.data.data.info)
|
|
639
|
+
|
|
640
|
+ }
|
|
641
|
+ }
|
|
642
|
+ }).catch(function(error) {
|
|
643
|
+ })
|
|
644
|
+
|
|
645
|
+ }else if(that.stock_type == 3){
|
|
646
|
+ axios.get('http://127.0.0.1:9532/api/3511',{params:params}).then(function(response) {
|
|
647
|
+ if (response.data.state == 0) {
|
|
648
|
+ that.$message.error(response.data.data.msg);
|
|
649
|
+ return false
|
|
650
|
+ } else {
|
|
651
|
+ if(response.data.data.failed_code == -10){
|
|
652
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
653
|
+ confirmButtonText: '确 定',
|
|
654
|
+ type: 'warning'
|
|
655
|
+ }).then(() => {
|
|
656
|
+
|
|
657
|
+ }).catch(() => {
|
|
658
|
+ })
|
|
659
|
+ }else{
|
|
660
|
+ that.tableData = that.tableData.concat(response.data.data.info)
|
|
661
|
+
|
|
662
|
+ }
|
|
663
|
+ }
|
|
664
|
+ }).catch(function(error) {
|
|
665
|
+ })
|
|
666
|
+
|
|
667
|
+ }else if(that.stock_type == 4){
|
|
668
|
+ axios.get('http://127.0.0.1:9532/api/3512',{params:params}).then(function(response) {
|
|
669
|
+ if (response.data.state == 0) {
|
|
670
|
+ that.$message.error(response.data.data.msg);
|
|
671
|
+ return false
|
|
672
|
+ } else {
|
|
673
|
+ if(response.data.data.failed_code == -10){
|
|
674
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
675
|
+ confirmButtonText: '确 定',
|
|
676
|
+ type: 'warning'
|
|
677
|
+ }).then(() => {
|
|
678
|
+
|
|
679
|
+ }).catch(() => {
|
|
680
|
+ })
|
|
681
|
+ }else{
|
|
682
|
+ that.tableData = that.tableData.concat(response.data.data.info)
|
|
683
|
+
|
|
684
|
+ }
|
|
685
|
+ }
|
|
686
|
+ }).catch(function(error) {
|
|
687
|
+ })
|
|
688
|
+
|
|
689
|
+ }else if(that.stock_type == 5){
|
|
690
|
+ axios.get('http://127.0.0.1:9532/api/3513',{params:params}).then(function(response) {
|
|
691
|
+ if (response.data.state == 0) {
|
|
692
|
+ that.$message.error(response.data.data.msg);
|
|
693
|
+ return false
|
|
694
|
+ } else {
|
|
695
|
+ if(response.data.data.failed_code == -10){
|
|
696
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
697
|
+ confirmButtonText: '确 定',
|
|
698
|
+ type: 'warning'
|
|
699
|
+ }).then(() => {
|
|
700
|
+
|
|
701
|
+ }).catch(() => {
|
|
702
|
+ })
|
|
703
|
+ }else{
|
|
704
|
+ that.tableData = that.tableData.concat(response.data.data.info)
|
|
705
|
+
|
|
706
|
+ }
|
|
707
|
+ }
|
|
708
|
+ }).catch(function(error) {
|
|
709
|
+ })
|
|
710
|
+
|
|
711
|
+ }else if(that.stock_type == 6){
|
|
712
|
+
|
|
713
|
+ axios.get('http://127.0.0.1:9532/api/35081',{params:params}).then(function(response) {
|
|
714
|
+ if (response.data.state == 0) {
|
|
715
|
+ that.$message.error(response.data.data.msg);
|
|
716
|
+ return false
|
|
717
|
+ } else {
|
|
718
|
+ if(response.data.data.failed_code == -10){
|
|
719
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
720
|
+ confirmButtonText: '确 定',
|
|
721
|
+ type: 'warning'
|
|
722
|
+ }).then(() => {
|
|
723
|
+
|
|
724
|
+ }).catch(() => {
|
|
725
|
+ })
|
|
726
|
+ }else{
|
|
727
|
+ that.tableData = that.tableData.concat(response.data.data.info)
|
|
728
|
+
|
|
729
|
+ }
|
|
730
|
+ }
|
|
731
|
+ }).catch(function(error) {
|
|
732
|
+ })
|
|
733
|
+
|
|
734
|
+ }else if(that.stock_type == 7){
|
|
735
|
+ axios.get('http://127.0.0.1:9532/api/35082',{params:params}).then(function(response) {
|
|
736
|
+ if (response.data.state == 0) {
|
|
737
|
+ that.$message.error(response.data.data.msg);
|
|
738
|
+ return false
|
|
739
|
+ } else {
|
|
740
|
+ if(response.data.data.failed_code == -10){
|
|
741
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
742
|
+ confirmButtonText: '确 定',
|
|
743
|
+ type: 'warning'
|
|
744
|
+ }).then(() => {
|
|
745
|
+
|
|
746
|
+ }).catch(() => {
|
|
747
|
+ })
|
|
748
|
+ }else{
|
|
749
|
+ that.tableData = that.tableData.concat(response.data.data.info)
|
|
750
|
+
|
|
751
|
+ }
|
|
752
|
+ }
|
|
753
|
+ }).catch(function(error) {
|
|
754
|
+ })
|
|
755
|
+ }
|
|
756
|
+ }
|
|
757
|
+ }).catch(function(error) {
|
|
758
|
+ that.$confirm("请检查医保程序是否有打开", "提示", {
|
|
759
|
+ confirmButtonText: "确 定",
|
|
760
|
+ cancelButtonText: "取 消",
|
|
761
|
+ type: "warning",
|
|
762
|
+ }).then(() => {
|
|
763
|
+ })
|
|
764
|
+ .catch(() => {});
|
|
765
|
+ })
|
|
766
|
+
|
|
767
|
+ },
|
|
768
|
+ change(){
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+ },
|
|
772
|
+ changeStockType(){
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+ },
|
|
776
|
+ endTimeChange(){
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+ },
|
|
780
|
+ startTimeChange(){
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+ },
|
|
784
|
+ },
|
|
785
|
+ created() {
|
|
786
|
+ this.getInitData()
|
|
787
|
+
|
|
788
|
+ }
|
|
789
|
+}
|
|
790
|
+</script>
|
|
791
|
+
|