|
@@ -65,6 +65,14 @@
|
65
|
65
|
size="small"
|
66
|
66
|
>下载日志
|
67
|
67
|
</el-button>
|
|
68
|
+ <!-- <el-button
|
|
69
|
+ style="margin-left:10px;"
|
|
70
|
+ @click="exportList()"
|
|
71
|
+ class="filter-item"
|
|
72
|
+ type="primary"
|
|
73
|
+ size="small"
|
|
74
|
+ >点击导出
|
|
75
|
+ </el-button> -->
|
68
|
76
|
</div>
|
69
|
77
|
<el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
|
70
|
78
|
:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}"
|
|
@@ -99,6 +107,16 @@
|
99
|
107
|
<template slot-scope="scope">
|
100
|
108
|
<div>{{scope.row.retail_price}}</div>
|
101
|
109
|
</template>
|
|
110
|
+ </el-table-column>
|
|
111
|
+ <el-table-column label="拆零价" width="100" align="center">
|
|
112
|
+ <template slot-scope="scope">
|
|
113
|
+ <div>{{scope.row.min_price}}</div>
|
|
114
|
+ </template>
|
|
115
|
+ </el-table-column>
|
|
116
|
+ <el-table-column label="包装价" width="100" align="center">
|
|
117
|
+ <template slot-scope="scope">
|
|
118
|
+ <div>{{scope.row.retail_price}}</div>
|
|
119
|
+ </template>
|
102
|
120
|
</el-table-column>
|
103
|
121
|
<el-table-column prop="date" label="国家编码" width="100" align="center">
|
104
|
122
|
<template slot-scope="scope">
|
|
@@ -120,7 +138,7 @@
|
120
|
138
|
<div>{{getDealer(scope.row.dealer)}}</div>
|
121
|
139
|
</template>
|
122
|
140
|
</el-table-column>
|
123
|
|
- <el-table-column prop="date" label="备案日期" align="center" width="100">
|
|
141
|
+ <!-- <el-table-column prop="date" label="备案日期" align="center" width="100">
|
124
|
142
|
<template slot-scope="scope">
|
125
|
143
|
<span>{{getTime(scope.row.record_date)}}</span>
|
126
|
144
|
</template>
|
|
@@ -129,7 +147,7 @@
|
129
|
147
|
<template slot-scope="scope">
|
130
|
148
|
<div>{{scope.row.drug_remark}}</div>
|
131
|
149
|
</template>
|
132
|
|
- </el-table-column>
|
|
150
|
+ </el-table-column> -->
|
133
|
151
|
<el-table-column label="状态" width="60" align="center">
|
134
|
152
|
<template slot-scope="scope">
|
135
|
153
|
<div>{{scope.row.drug_status.indexOf('停用') == -1 ? '启用':'停用' }}</div>
|
|
@@ -167,7 +185,7 @@
|
167
|
185
|
<el-pagination
|
168
|
186
|
@size-change="handleSizeChange"
|
169
|
187
|
@current-change="handleCurrentChange"
|
170
|
|
- :page-sizes="[10, 50, 100]"
|
|
188
|
+ :page-sizes="[10, 50, 100,500,1000]"
|
171
|
189
|
:page-size="10"
|
172
|
190
|
background
|
173
|
191
|
align="right"
|
|
@@ -1451,6 +1469,33 @@
|
1451
|
1469
|
return getDictionaryDataConfig(module,filed_name)
|
1452
|
1470
|
},
|
1453
|
1471
|
|
|
1472
|
+ exportList(){
|
|
1473
|
+ import('@/vendor/Export2Excel').then(excel => {
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+ console.log("this.table",this.list)
|
|
1477
|
+ for(let i=0;i<this.list.length;i++){
|
|
1478
|
+ this.list[i].specification_name = this.list[i].dose + this.list[i].dose_unit + this.list[i].min_number + this.list[i].min_unit + "/"+this.list[i].max_unit
|
|
1479
|
+
|
|
1480
|
+ }
|
|
1481
|
+ const tHeader = ['药品名称','药品规格','剂量','剂量单位','拆零','拆零单位','包装单位','药品类型','库存警戒','产地','药品剂型','拆零零售价','包装零售价','进货价','药物分类','默认单次用量','默认单次用量单位','生产厂商','经销商','医保编码','社保目录编码']
|
|
1482
|
+ const filterVal = ['drug_name', 'specification_name', 'dose','dose','dose_unit','min_number','min_unit','max_unit','drug_stock_limit','drug_origin_place','drug_dosage_form','min_price','retail_price','last_price','drug_classify','drug_dose','drug_dose_unit','manufacturer','dealer','medical_insurance_number','social_security_directory_code']
|
|
1483
|
+
|
|
1484
|
+ const data = this.formatJson(filterVal,this.list)
|
|
1485
|
+
|
|
1486
|
+ excel.export_json_to_excel({
|
|
1487
|
+ header: tHeader,
|
|
1488
|
+ data,
|
|
1489
|
+ filename: '药品信息'
|
|
1490
|
+ })
|
|
1491
|
+ this.downloadLoading = false
|
|
1492
|
+
|
|
1493
|
+ })
|
|
1494
|
+ },
|
|
1495
|
+ formatJson(filterVal, jsonData) {
|
|
1496
|
+ return jsonData.map(v => filterVal.map(j => v[j]))
|
|
1497
|
+ },
|
|
1498
|
+
|
1454
|
1499
|
},
|
1455
|
1500
|
created() {
|
1456
|
1501
|
|