2 Commits afea421bfd ... a4033e45d6

Author SHA1 Message Date
  陈少旭 a4033e45d6 Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch 1 month ago
  陈少旭 920ad95d3e 1111 1 month ago
1 changed files with 334 additions and 383 deletions
  1. 334 383
      src/xt_pages/drugSourceCode/drugQuery.vue

+ 334 - 383
src/xt_pages/drugSourceCode/drugQuery.vue View File

@@ -66,379 +66,72 @@
66 66
       </div>
67 67
       <div>
68 68
         <el-button type="primary" @click="query()">查询</el-button>
69
+        <el-button type="primary" @click="export_detail()">导出</el-button>
70
+
69 71
       </div>
70 72
     </div>
71
-    </div>
72
-    <el-table v-if="stock_type == 1" :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
73
-              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
74
-              max-height="600"
75
-              highlight-current-row>
76
-      <el-table-column align="center" prop="name" label="药品名称">
77
-        <template slot-scope="scope">{{scope.row.MedinsListName}}</template>
78
-      </el-table-column>
79
-      <el-table-column align="center" prop="name" label="国家编码">
80
-        <template slot-scope="scope">{{scope.row.MedListCodg}}</template>
81
-      </el-table-column>
82
-      <el-table-column align="center" prop="name" label="库存数量">
83
-        <template slot-scope="scope">
84
-          <div>{{scope.row.InvCnt}}</div>
85
-        </template>
86
-      </el-table-column>
87
-
88
-      <el-table-column align="center" prop="name" label="更新时间">
89
-        <template slot-scope="scope">
90
-          <div>{{scope.row.UpdtTime}}</div>
91
-        </template>
92
-      </el-table-column>
93
-
94
-
95
-      <el-table-column align="center" prop="total" label="生产日期">
96
-        <template slot-scope="scope">
97
-          <div>{{scope.row.ManuDate}}</div>
98
-        </template>
99
-      </el-table-column>
100
-
101
-
102
-      <el-table-column align="center" prop="total" label="记录号">
103
-        <template slot-scope="scope">
104
-          <div>{{scope.row.Rid}}</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.Invdate}}</div>
112
-        </template>
113
-      </el-table-column>
114
-
115
-      <el-table-column align="center" prop="total" label="有效标志">
116
-        <template slot-scope="scope">
117
-          <div>{{scope.row.ValiFlag}}</div>
118
-        </template>
119
-      </el-table-column>
120
-      <el-table-column align="center" prop="total" label="批次流水号">
121
-        <template slot-scope="scope">
122
-          <div>{{scope.row.FixmedinsBchno}}</div>
123
-        </template>
124
-      </el-table-column>
125
-
126
-      <el-table-column align="center" prop="total" label="经办时间">
127
-        <template slot-scope="scope">
128
-          <div></div>
129
-        </template>
130
-      </el-table-column>
131
-
132
-      <el-table-column align="center" prop="total" label="经办人">
133
-        <template slot-scope="scope">
134
-          <div>{{scope.row.OptTime}}</div>
135
-        </template>
136
-      </el-table-column>
137
-
138
-      <el-table-column label="操作" width="200">
139
-        <template slot-scope="scope">
140
-          <el-button type="text" @click="delete(scope.row)">删除</el-button>
141
-        </template>
142
-      </el-table-column>
143
-    </el-table>
144
-
145
-
146
-    <el-table v-if="stock_type == 2" :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
147
-              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
148
-              max-height="600"
149
-              highlight-current-row>
150
-      <el-table-column align="center" prop="name" label="药品名称">
151
-        <template slot-scope="scope">{{scope.row.MedinsListName}}</template>
152
-      </el-table-column>
153
-      <el-table-column align="center" prop="name" label="国家编码">
154
-        <template slot-scope="scope">{{scope.row.MedListCodg}}</template>
155
-      </el-table-column>
156
-      <el-table-column align="center" prop="name" label="变更类型">
157
-        <template slot-scope="scope"></template>
158
-      </el-table-column>
159
-      <el-table-column align="center" prop="name" label="变更数量">
160
-        <template slot-scope="scope">
161
-          <div>{{scope.row.Cnt}}</div>
162
-        </template>
163
-      </el-table-column>
164
-
165
-      <el-table-column align="center" prop="name" label="单价">
166
-        <template slot-scope="scope">
167
-          <div>{{scope.row.Pric}}</div>
168
-        </template>
169
-      </el-table-column>
170
-
171
-      <el-table-column align="center" prop="name" label="库存变更时间">
172
-        <template slot-scope="scope">
173
-          <div>{{scope.row.InvChgTime}}</div>
174
-        </template>
175
-      </el-table-column>
176
-
177
-
178
-      <el-table-column align="center" prop="name" label="变更经办人">
179
-        <template slot-scope="scope">
180
-          <div>{{scope.row.InvChgOpterName}}</div>
181
-        </template>
182
-      </el-table-column>
183
-
184
-      <el-table-column align="center" prop="total" label="有效标志">
185
-        <template slot-scope="scope">
186
-          <div>{{scope.row.ValiFlag}}</div>
187
-        </template>
188
-      </el-table-column>
189
-
190
-      <el-table-column align="center" prop="total" label="批次流水号">
191
-        <template slot-scope="scope">
192
-          <div>{{scope.row.FixmedinsBchno}}</div>
193
-        </template>
194
-      </el-table-column>
195
-
196
-
197
-      <el-table-column align="center" prop="total" label="经办时间">
198
-        <template slot-scope="scope">
199
-          <div></div>
200
-        </template>
201
-      </el-table-column>
202
-
203
-      <el-table-column align="center" prop="total" label="经办人">
204
-        <template slot-scope="scope">
205
-          <div>{{scope.row.OptTime}}</div>
206
-        </template>
207
-      </el-table-column>
208
-
209
-      <el-table-column align="center" prop="total" label="记录号">
210
-        <template slot-scope="scope">
211
-          <div>{{scope.row.Rid}}</div>
212
-        </template>
213
-      </el-table-column>
214
-
215
-      <el-table-column label="操作" width="200">
216
-        <template slot-scope="scope">
217
-          <el-button type="text" @click="delete(scope.row)">删除</el-button>
218
-        </template>
219
-      </el-table-column>
220
-    </el-table>
221
-
222
-
223
-
224
-    <el-table v-if="stock_type == 3" :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
225
-              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
226
-              max-height="600"
227
-              highlight-current-row>
228
-      <el-table-column align="center" prop="name" label="药品名称">
229
-        <template slot-scope="scope">{{scope.row.MedinsListName}}</template>
230
-      </el-table-column>
231
-      <el-table-column align="center" prop="name" label="国家编码">
232
-        <template slot-scope="scope">{{scope.row.MedListCodg}}</template>
233
-      </el-table-column>
234
-      <el-table-column align="center" prop="name" label="销售/退货数量">
235
-        <template slot-scope="scope">
236
-          <div>{{scope.row.SelRetnCnt}}</div>
237
-        </template>
238
-      </el-table-column>
239
-
240
-      <el-table-column align="center" prop="name" label="销售/退货时间">
241
-        <template slot-scope="scope">
242
-          <div>{{scope.row.SelRetnTime}}</div>
243
-        </template>
244
-      </el-table-column>
245
-
246
-
247
-      <el-table-column align="center" prop="total" label="药师姓名">
248
-        <template slot-scope="scope">
249
-          <div>{{scope.row.PharName}}</div>
250
-        </template>
251
-      </el-table-column>
252
-
253
-      <el-table-column align="center" prop="total" label="生产日期">
254
-        <template slot-scope="scope">
255
-          <div>{{scope.row.ManuDate}}</div>
256
-        </template>
257
-      </el-table-column>
258
-
259
-
260
-      <el-table-column align="center" prop="total" label="记录号">
261
-        <template slot-scope="scope">
262
-          <div>{{scope.row.Rid}}</div>
263
-        </template>
264
-      </el-table-column>
265
-
266
-
267
-      <el-table-column align="center" prop="total" label="有效标志">
268
-        <template slot-scope="scope">
269
-          <div>{{scope.row.ValiFlag}}</div>
270
-        </template>
271
-      </el-table-column>
272
-      <el-table-column align="center" prop="total" label="批次流水号">
273
-        <template slot-scope="scope">
274
-          <div>{{scope.row.FixmedinsBchno}}</div>
275
-        </template>
276
-      </el-table-column>
277
-
278
-      <el-table-column align="center" prop="total" label="经办时间">
279
-        <template slot-scope="scope">
280
-          <div></div>
281
-        </template>
282
-      </el-table-column>
283
-
284
-      <el-table-column align="center" prop="total" label="经办人">
285
-        <template slot-scope="scope">
286
-          <div>{{scope.row.OptTime}}</div>
287
-        </template>
288
-      </el-table-column>
289
-
290
-      <el-table-column label="操作" width="200">
291
-        <template slot-scope="scope">
292
-          <el-button type="text" @click="delete(scope.row)">删除</el-button>
293
-        </template>
294
-      </el-table-column>
295
-    </el-table>
296
-
297
-
298
-    <el-table v-if="stock_type == 4" :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
299
-              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
300
-              max-height="600"
301
-              highlight-current-row>
302
-      <el-table-column align="center" prop="name" label="药品名称">
303
-        <template slot-scope="scope">{{scope.row.MedinsListName}}</template>
304
-      </el-table-column>
305
-      <el-table-column align="center" prop="name" label="国家编码">
306
-        <template slot-scope="scope">{{scope.row.MedListCodg}}</template>
307
-      </el-table-column>
308
-      <el-table-column align="center" prop="name" label="药品追溯码">
309
-        <template slot-scope="scope">
310
-          <div>{{scope.row.DrugTracCodg}}</div>
311
-        </template>
312
-      </el-table-column>
313
-
314
-      <el-table-column align="center" prop="total" label="有效标志">
315
-        <template slot-scope="scope">
316
-          <div>{{scope.row.ValiFlag}}</div>
317
-        </template>
318
-      </el-table-column>
319
-
320
-      <el-table-column align="center" prop="total" label="批次流水号">
321
-        <template slot-scope="scope">
322
-          <div>{{scope.row.FixmedinsBchno}}</div>
323
-        </template>
324
-      </el-table-column>
325
-
326
-      <el-table-column align="center" prop="total" label="经办人">
327
-        <template slot-scope="scope">
328
-          <div>{{scope.row.OptTime}}</div>
329
-        </template>
330
-      </el-table-column>
331
-
332
-      <el-table-column label="操作" width="200">
333
-        <template slot-scope="scope">
334
-          <el-button type="text" @click="delete(scope.row)">删除</el-button>
335
-        </template>
336
-      </el-table-column>
337
-    </el-table>
338
-
339
-
340
-    <el-table  v-if="stock_type == 5"  :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
341
-              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
342
-              max-height="600"
343
-              highlight-current-row>
344
-      <el-table-column align="center" prop="name" label="药品名称">
345
-        <template slot-scope="scope">{{scope.row.MedinsListName}}</template>
346
-      </el-table-column>
347
-      <el-table-column align="center" prop="name" label="国家编码">
348
-        <template slot-scope="scope">{{scope.row.MedListCodg}}</template>
349
-      </el-table-column>
350
-
351
-
352
-      <el-table-column align="center" prop="name" label="记账流水号">
353
-        <template slot-scope="scope">
354
-          <div>{{scope.row.BkkpSn}}</div>
355
-        </template>
356
-      </el-table-column>
357
-
358
-      <el-table-column align="center" prop="total" label="批次流水号">
359
-        <template slot-scope="scope">
360
-          <div>{{scope.row.FixmedinsBchno}}</div>
361
-        </template>
362
-      </el-table-column>
363
-
364
-      <el-table-column align="center" prop="name" label="药品追溯码">
365
-        <template slot-scope="scope">
366
-          <div>{{scope.row.DrugTracCodg}}</div>
367
-        </template>
368
-      </el-table-column>
369
-
370
-
371
-      <el-table-column align="center" prop="name" label="更新时间">
372
-        <template slot-scope="scope">
373
-          <div>{{scope.row.UpdtTime}}</div>
374
-        </template>
375
-      </el-table-column>
376
-
377
-      <el-table-column align="center" prop="total" label="经办人">
378
-        <template slot-scope="scope">
379
-          <div>{{scope.row.OptTime}}</div>
380
-        </template>
381
-      </el-table-column>
382
-      <el-table-column align="center" prop="total" label="记录号">
383
-        <template slot-scope="scope">
384
-          <div>{{scope.row.Rid}}</div>
385
-        </template>
386
-      </el-table-column>
387
-
388
-      <el-table-column label="操作" width="200">
389
-        <template slot-scope="scope">
390
-          <el-button type="text" @click="delete(scope.row)">删除</el-button>
391
-        </template>
392
-      </el-table-column>
393
-    </el-table>
394
-<!--    实时库存-->
395
-    <div v-if="stock_type == 6">
396
-    <el-table  :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
397
-              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
398
-              max-height="600"
399
-              highlight-current-row>
400
-      <el-table-column align="center" prop="name" label="药品名称">
401
-        <template slot-scope="scope">{{scope.row.MedinsListName}}</template>
402
-      </el-table-column>
403
-      <el-table-column align="center" prop="name" label="国家编码">
404
-        <template slot-scope="scope">{{scope.row.MedListCodg}}</template>
405
-      </el-table-column>
406
-      <el-table-column align="center" prop="name" label="库存数量">
407
-        <template slot-scope="scope">{{scope.row.InvCnt}}</template>
408
-      </el-table-column>
409
-      <el-table-column align="center" prop="name" label="销售价格">
410
-        <template slot-scope="scope">{{scope.row.Pric}}</template>
411
-      </el-table-column>
412
-
413
-      <el-table-column align="center" prop="name" label="库存日期">
414
-        <template slot-scope="scope">{{scope.row.Invdate}}</template>
415
-      </el-table-column>
416
-
417
-      <el-table-column align="center" prop="total" label="批次流水号">
418
-        <template slot-scope="scope">
419
-          <div>{{scope.row.FixmedinsBchno}}</div>
420
-        </template>
421
-      </el-table-column>
422
-      <el-table-column align="center" prop="name" label="更新时间">
423
-        <template slot-scope="scope">
424
-          <div>{{scope.row.UpdtTime}}</div>
425
-        </template>
426
-      </el-table-column>
427
-
428
-
429
-
430
-      <el-table-column label="操作" width="200">
431
-        <template slot-scope="scope">
432
-          <el-button type="text" @click="delete(scope.row)">删除</el-button>
433
-        </template>
434
-      </el-table-column>
435
-    </el-table>
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>
436 88
 
437
-    </div>
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>
438 107
 
439 108
 
440
-    <div v-if="stock_type == 7">
441
-      <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
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
+
134
+      <el-table v-if="stock_type == 4" :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
442 135
                 :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
443 136
                 max-height="600"
444 137
                 highlight-current-row>
@@ -448,25 +141,264 @@
448 141
         <el-table-column align="center" prop="name" label="国家编码">
449 142
           <template slot-scope="scope">{{scope.row.MedListCodg}}</template>
450 143
         </el-table-column>
451
-        <el-table-column align="center" prop="name" label="库存数量">
452
-          <template slot-scope="scope">{{scope.row.InvCnt}}</template>
144
+        <el-table-column align="center" prop="name" label="药品追溯码">
145
+          <template slot-scope="scope">
146
+            <div>{{scope.row.DrugTracCodg}}</div>
147
+          </template>
453 148
         </el-table-column>
454
-        <el-table-column align="center" prop="name" label="销售价格">
455
-          <template slot-scope="scope">{{scope.row.Pric}}</template>
149
+        <el-table-column align="center" prop="total" label="批次流水号">
150
+          <template slot-scope="scope">
151
+            <div>{{scope.row.FixmedinsBchno}}</div>
152
+          </template>
153
+        </el-table-column>
154
+      </el-table>
155
+      <el-table  v-if="stock_type == 5"  :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
156
+                 :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
157
+                 max-height="600"
158
+                 highlight-current-row>
159
+        <el-table-column align="center" prop="name" label="药品名称">
160
+          <template slot-scope="scope">{{scope.row.MedinsListName}}</template>
456 161
         </el-table-column>
457 162
 
458
-        <el-table-column align="center" prop="name" label="库存变更类型">
459
-          <template slot-scope="scope">{{scope.row.InvChgType}}</template>
163
+        <el-table-column align="center" prop="name" label="患者名称">
164
+          <template slot-scope="scope">{{scope.row.PsnName}}</template>
460 165
         </el-table-column>
461 166
 
167
+        <el-table-column align="center" prop="name" label="药品追溯码">
168
+          <template slot-scope="scope">
169
+            <div>{{scope.row.DrugTracCodg}}</div>
170
+          </template>
171
+        </el-table-column>
172
+
173
+
462 174
         <el-table-column align="center" prop="total" label="批次流水号">
463 175
           <template slot-scope="scope">
464 176
             <div>{{scope.row.FixmedinsBchno}}</div>
465 177
           </template>
466 178
         </el-table-column>
467 179
 
180
+
468 181
       </el-table>
469 182
     </div>
183
+<!--    <el-table v-if="stock_type == 1" :data="tableData" border :row-style="{ color: '#303133' }" ref="table"-->
184
+<!--              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
185
+<!--              max-height="600"-->
186
+<!--              highlight-current-row>-->
187
+<!--      <el-table-column align="center" prop="name" label="药品名称">-->
188
+<!--        <template slot-scope="scope">{{scope.row.MedinsListName}}</template>-->
189
+<!--      </el-table-column>-->
190
+<!--      <el-table-column align="center" prop="name" label="国家编码">-->
191
+<!--        <template slot-scope="scope">{{scope.row.MedListCodg}}</template>-->
192
+<!--      </el-table-column>-->
193
+<!--      <el-table-column align="center" prop="name" label="库存数量">-->
194
+<!--        <template slot-scope="scope">-->
195
+<!--          <div>{{scope.row.InvCnt}}</div>-->
196
+<!--        </template>-->
197
+<!--      </el-table-column>-->
198
+
199
+<!--      <el-table-column align="center" prop="name" label="更新时间">-->
200
+<!--        <template slot-scope="scope">-->
201
+<!--          <div>{{scope.row.UpdtTime}}</div>-->
202
+<!--        </template>-->
203
+<!--      </el-table-column>-->
204
+
205
+
206
+<!--      <el-table-column align="center" prop="total" label="生产日期">-->
207
+<!--        <template slot-scope="scope">-->
208
+<!--          <div>{{scope.row.ManuDate}}</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.Rid}}</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.Invdate}}</div>-->
223
+<!--        </template>-->
224
+<!--      </el-table-column>-->
225
+
226
+<!--      <el-table-column align="center" prop="total" label="有效标志">-->
227
+<!--        <template slot-scope="scope">-->
228
+<!--          <div>{{scope.row.ValiFlag}}</div>-->
229
+<!--        </template>-->
230
+<!--      </el-table-column>-->
231
+<!--      <el-table-column align="center" prop="total" label="批次流水号">-->
232
+<!--        <template slot-scope="scope">-->
233
+<!--          <div>{{scope.row.FixmedinsBchno}}</div>-->
234
+<!--        </template>-->
235
+<!--      </el-table-column>-->
236
+
237
+<!--      <el-table-column align="center" prop="total" label="经办时间">-->
238
+<!--        <template slot-scope="scope">-->
239
+<!--          <div></div>-->
240
+<!--        </template>-->
241
+<!--      </el-table-column>-->
242
+
243
+<!--      <el-table-column align="center" prop="total" label="经办人">-->
244
+<!--        <template slot-scope="scope">-->
245
+<!--          <div>{{scope.row.OptTime}}</div>-->
246
+<!--        </template>-->
247
+<!--      </el-table-column>-->
248
+
249
+
250
+<!--    </el-table>-->
251
+
252
+
253
+<!--    <el-table v-if="stock_type == 2" :data="tableData" border :row-style="{ color: '#303133' }" ref="table"-->
254
+<!--              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
255
+<!--              max-height="600"-->
256
+<!--              highlight-current-row>-->
257
+<!--      <el-table-column align="center" prop="name" label="药品名称">-->
258
+<!--        <template slot-scope="scope">{{scope.row.MedinsListName}}</template>-->
259
+<!--      </el-table-column>-->
260
+<!--      <el-table-column align="center" prop="name" label="国家编码">-->
261
+<!--        <template slot-scope="scope">{{scope.row.MedListCodg}}</template>-->
262
+<!--      </el-table-column>-->
263
+<!--      <el-table-column align="center" prop="name" label="变更类型">-->
264
+<!--        <template slot-scope="scope"></template>-->
265
+<!--      </el-table-column>-->
266
+<!--      <el-table-column align="center" prop="name" label="变更数量">-->
267
+<!--        <template slot-scope="scope">-->
268
+<!--          <div>{{scope.row.Cnt}}</div>-->
269
+<!--        </template>-->
270
+<!--      </el-table-column>-->
271
+
272
+<!--      <el-table-column align="center" prop="name" label="单价">-->
273
+<!--        <template slot-scope="scope">-->
274
+<!--          <div>{{scope.row.Pric}}</div>-->
275
+<!--        </template>-->
276
+<!--      </el-table-column>-->
277
+
278
+<!--      <el-table-column align="center" prop="name" label="库存变更时间">-->
279
+<!--        <template slot-scope="scope">-->
280
+<!--          <div>{{scope.row.InvChgTime}}</div>-->
281
+<!--        </template>-->
282
+<!--      </el-table-column>-->
283
+
284
+
285
+<!--      <el-table-column align="center" prop="name" label="变更经办人">-->
286
+<!--        <template slot-scope="scope">-->
287
+<!--          <div>{{scope.row.InvChgOpterName}}</div>-->
288
+<!--        </template>-->
289
+<!--      </el-table-column>-->
290
+
291
+<!--      <el-table-column align="center" prop="total" label="有效标志">-->
292
+<!--        <template slot-scope="scope">-->
293
+<!--          <div>{{scope.row.ValiFlag}}</div>-->
294
+<!--        </template>-->
295
+<!--      </el-table-column>-->
296
+
297
+<!--      <el-table-column align="center" prop="total" label="批次流水号">-->
298
+<!--        <template slot-scope="scope">-->
299
+<!--          <div>{{scope.row.FixmedinsBchno}}</div>-->
300
+<!--        </template>-->
301
+<!--      </el-table-column>-->
302
+
303
+
304
+<!--      <el-table-column align="center" prop="total" label="经办时间">-->
305
+<!--        <template slot-scope="scope">-->
306
+<!--          <div></div>-->
307
+<!--        </template>-->
308
+<!--      </el-table-column>-->
309
+
310
+<!--      <el-table-column align="center" prop="total" label="经办人">-->
311
+<!--        <template slot-scope="scope">-->
312
+<!--          <div>{{scope.row.OptTime}}</div>-->
313
+<!--        </template>-->
314
+<!--      </el-table-column>-->
315
+
316
+<!--      <el-table-column align="center" prop="total" label="记录号">-->
317
+<!--        <template slot-scope="scope">-->
318
+<!--          <div>{{scope.row.Rid}}</div>-->
319
+<!--        </template>-->
320
+<!--      </el-table-column>-->
321
+
322
+
323
+<!--    </el-table>-->
324
+
325
+
326
+
327
+
328
+
329
+
330
+<!--&lt;!&ndash;    实时库存&ndash;&gt;-->
331
+<!--    <div v-if="stock_type == 6">-->
332
+<!--    <el-table  :data="tableData" border :row-style="{ color: '#303133' }" ref="table"-->
333
+<!--              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
334
+<!--              max-height="600"-->
335
+<!--              highlight-current-row>-->
336
+<!--      <el-table-column align="center" prop="name" label="药品名称">-->
337
+<!--        <template slot-scope="scope">{{scope.row.MedinsListName}}</template>-->
338
+<!--      </el-table-column>-->
339
+<!--      <el-table-column align="center" prop="name" label="国家编码">-->
340
+<!--        <template slot-scope="scope">{{scope.row.MedListCodg}}</template>-->
341
+<!--      </el-table-column>-->
342
+<!--      <el-table-column align="center" prop="name" label="库存数量">-->
343
+<!--        <template slot-scope="scope">{{scope.row.InvCnt}}</template>-->
344
+<!--      </el-table-column>-->
345
+<!--      <el-table-column align="center" prop="name" label="销售价格">-->
346
+<!--        <template slot-scope="scope">{{scope.row.Pric}}</template>-->
347
+<!--      </el-table-column>-->
348
+
349
+<!--      <el-table-column align="center" prop="name" label="库存日期">-->
350
+<!--        <template slot-scope="scope">{{scope.row.Invdate}}</template>-->
351
+<!--      </el-table-column>-->
352
+
353
+<!--      <el-table-column align="center" prop="total" label="批次流水号">-->
354
+<!--        <template slot-scope="scope">-->
355
+<!--          <div>{{scope.row.FixmedinsBchno}}</div>-->
356
+<!--        </template>-->
357
+<!--      </el-table-column>-->
358
+<!--      <el-table-column align="center" prop="name" label="更新时间">-->
359
+<!--        <template slot-scope="scope">-->
360
+<!--          <div>{{scope.row.UpdtTime}}</div>-->
361
+<!--        </template>-->
362
+<!--      </el-table-column>-->
363
+
364
+
365
+
366
+
367
+<!--    </el-table>-->
368
+
369
+<!--    </div>-->
370
+
371
+
372
+<!--    <div v-if="stock_type == 7">-->
373
+<!--      <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"-->
374
+<!--                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
375
+<!--                max-height="600"-->
376
+<!--                highlight-current-row>-->
377
+<!--        <el-table-column align="center" prop="name" label="药品名称">-->
378
+<!--          <template slot-scope="scope">{{scope.row.MedinsListName}}</template>-->
379
+<!--        </el-table-column>-->
380
+<!--        <el-table-column align="center" prop="name" label="国家编码">-->
381
+<!--          <template slot-scope="scope">{{scope.row.MedListCodg}}</template>-->
382
+<!--        </el-table-column>-->
383
+<!--        <el-table-column align="center" prop="name" label="库存数量">-->
384
+<!--          <template slot-scope="scope">{{scope.row.InvCnt}}</template>-->
385
+<!--        </el-table-column>-->
386
+<!--        <el-table-column align="center" prop="name" label="销售价格">-->
387
+<!--          <template slot-scope="scope">{{scope.row.Pric}}</template>-->
388
+<!--        </el-table-column>-->
389
+
390
+<!--        <el-table-column align="center" prop="name" label="库存变更类型">-->
391
+<!--          <template slot-scope="scope">{{scope.row.InvChgType}}</template>-->
392
+<!--        </el-table-column>-->
393
+
394
+<!--        <el-table-column align="center" prop="total" label="批次流水号">-->
395
+<!--          <template slot-scope="scope">-->
396
+<!--            <div>{{scope.row.FixmedinsBchno}}</div>-->
397
+<!--          </template>-->
398
+<!--        </el-table-column>-->
399
+
400
+<!--      </el-table>-->
401
+<!--    </div>-->
470 402
 
471 403
 
472 404
 <!--    <el-table :data="tableData_two" border :row-style="{ color: '#303133' }" ref="table"-->
@@ -567,18 +499,13 @@ export default {
567 499
     return {
568 500
       start_time: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
569 501
       end_time: new Date(new Date().getFullYear(), new Date().getMonth() + 3, 0).toLocaleDateString('en-CA'),
570
-      tableData: [{MedinsListName:"111",MedListCodg:"1111",InvCnt:"1",UpdtTime:"111",ManuDate:"2222",Rid:"222",ValiFlag:"1",FixmedinsBchno:"111",OptTime:"2222"}],
502
+      tableData: [],
571 503
       tableData_two:[],
572
-      stock_type:1,
504
+      stock_type:4,
573 505
       drug_id:"",
574 506
       items: [
575
-        { id: 1, name: '药品库存信息查询' },
576
-        { id: 2, name: '药品库存变更信息查询' },
577
-        { id: 3, name: '药品销售信息查询' },
578 507
         { id: 4, name: '入库药品追溯信息查询' },
579 508
         { id: 5, name: '药品销售追溯信息查询' },
580
-        { id: 6, name: '实时药品库存查询' },
581
-        { id: 7, name: '药品库存明细查询' },
582 509
       ],
583 510
       drugs: [
584 511
 
@@ -603,14 +530,38 @@ export default {
603 530
 
604 531
 
605 532
     },
606
-    exportdata(){
607
-
533
+    export_detail() {
534
+      let list = []
535
+      for (let i = 0; i < this.tableData.length; i++) {
536
+        let order = this.tableData[i]
537
+        let name = order.FixmedinsBchno
538
+        let obj = {
539
+          '患者姓名': name,
540
+        }
541
+        list.push(obj)
542
+      }
543
+      import('@/vendor/Export2Excel').then(excel => {
544
+        const tHeader = ['患者姓名']
545
+        const filterVal = ['患者姓名']
546
+        const data = this.formatJson(filterVal, list)
547
+        excel.export_json_to_excel1({
548
+          header: tHeader,
549
+          data,
550
+          filename: '明细',
551
+          ref: this.$refs['table'].$el
552
+        })
553
+      })
608 554
 
555
+    }, formatJson(filterVal, jsonData) {
556
+      return jsonData.map(v => filterVal.map(j => v[j]))
609 557
     },
610 558
     stock(){
611 559
 
612 560
 
613 561
 
562
+    },exports(){
563
+
564
+
614 565
     },
615 566
     query(){
616 567
       var that = this;