|
@@ -1,154 +1,132 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="prescriptionTable">
|
3
|
|
- <el-button
|
4
|
|
- size="small"
|
5
|
|
- type="primary"
|
6
|
|
- icon="el-icon-download"
|
7
|
|
- @click="exportData"
|
8
|
|
- >导出</el-button>
|
9
|
|
-<!-- <el-table-->
|
10
|
|
-<!-- v-if="prescription.type == 1"-->
|
11
|
|
-<!-- :data="prescription.advices"-->
|
12
|
|
-<!-- border-->
|
13
|
|
-<!-- style="width: 99%"-->
|
14
|
|
-<!-- :row-style="changColor"-->
|
15
|
|
-<!-- :header-cell-style="{-->
|
16
|
|
-<!-- backgroundColor: 'rgb(245, 247, 250)',-->
|
17
|
|
-<!-- color: '#606266',-->
|
18
|
|
-<!-- }"-->
|
19
|
|
-<!-- highlight-current-row-->
|
20
|
|
-<!-- >-->
|
21
|
|
-<!-- <el-table-column-->
|
22
|
|
-<!-- align="center"-->
|
23
|
|
-<!-- type="index"-->
|
24
|
|
-<!-- width="40"-->
|
25
|
|
-<!-- label="序号"-->
|
26
|
|
-<!-- ></el-table-column>-->
|
27
|
|
-
|
28
|
|
-<!-- <el-table-column-->
|
29
|
|
-<!-- align="center"-->
|
30
|
|
-<!-- prop="single_dose"-->
|
31
|
|
-<!-- width="80"-->
|
32
|
|
-<!-- label="姓名"-->
|
33
|
|
-<!-- >-->
|
34
|
|
-<!-- <template slot-scope="scope">-->
|
35
|
|
-<!-- {{patientName}}-->
|
36
|
|
-<!-- </template>-->
|
37
|
|
-<!-- </el-table-column>-->
|
38
|
|
-
|
39
|
|
-<!-- <el-table-column-->
|
40
|
|
-<!-- align="center"-->
|
41
|
|
-<!-- prop="single_dose"-->
|
42
|
|
-<!-- width="80"-->
|
43
|
|
-<!-- label="就诊号"-->
|
44
|
|
-<!-- >-->
|
45
|
|
-<!-- <template slot-scope="scope">-->
|
46
|
|
-<!-- {{number}}-->
|
47
|
|
-<!-- </template>-->
|
48
|
|
-<!-- </el-table-column>-->
|
49
|
|
-
|
50
|
|
-<!-- <el-table-column align="center" prop="name" width="400" label="名称">-->
|
51
|
|
-<!-- <template slot-scope="scope"-->
|
52
|
|
-<!-- ><span :title="scope.row.drug_name">{{-->
|
53
|
|
-<!-- scope.row.drug_name-->
|
54
|
|
-<!-- }}</span></template-->
|
55
|
|
-<!-- >-->
|
56
|
|
-<!-- </el-table-column>-->
|
57
|
|
-<!-- <el-table-column align="center" prop="name" width="80" label="单次用量">-->
|
58
|
|
-<!-- <template slot-scope="scope">-->
|
59
|
|
-<!-- <!–<el-input v-model="scope.row.delivery_way" readonly></el-input>–>-->
|
60
|
|
-<!-- <div>{{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}</div>-->
|
61
|
|
-<!-- </template>-->
|
62
|
|
-<!-- </el-table-column>-->
|
63
|
|
-<!-- <el-table-column align="center" prop="name" width="80" label="用法">-->
|
64
|
|
-<!-- <template slot-scope="scope">-->
|
65
|
|
-<!-- <!–<el-input v-model="scope.row.delivery_way" readonly></el-input>–>-->
|
66
|
|
-<!-- <div>{{ scope.row.delivery_way }}</div>-->
|
67
|
|
-<!-- </template>-->
|
68
|
|
-<!-- </el-table-column>-->
|
69
|
|
-<!-- <el-table-column align="center" prop="name" width="80" label="频率">-->
|
70
|
|
-<!-- <template slot-scope="scope">-->
|
71
|
|
-<!-- <div>{{ scope.row.execution_frequency }}</div>-->
|
|
3
|
+<!-- <el-button-->
|
|
4
|
+<!-- size="small"-->
|
|
5
|
+<!-- type="primary"-->
|
|
6
|
+<!-- icon="el-icon-download"-->
|
|
7
|
+<!-- @click="exportData"-->
|
|
8
|
+<!-- >导出</el-button>-->
|
|
9
|
+ <el-table
|
|
10
|
+ v-if="prescription.type == 1"
|
|
11
|
+ :data="prescription.advices"
|
|
12
|
+ border
|
|
13
|
+ style="width: 99%"
|
|
14
|
+ :row-style="changColor"
|
|
15
|
+ :header-cell-style="{
|
|
16
|
+ backgroundColor: 'rgb(245, 247, 250)',
|
|
17
|
+ color: '#606266',
|
|
18
|
+ }"
|
|
19
|
+ highlight-current-row
|
|
20
|
+ >
|
|
21
|
+ <el-table-column
|
|
22
|
+ align="center"
|
|
23
|
+ type="index"
|
|
24
|
+ width="40"
|
|
25
|
+ label="序号"
|
|
26
|
+ ></el-table-column>
|
|
27
|
+ <el-table-column align="center" prop="name" width="400" label="名称">
|
|
28
|
+ <template slot-scope="scope"
|
|
29
|
+ ><span :title="scope.row.drug_name">{{
|
|
30
|
+ scope.row.drug_name
|
|
31
|
+ }}</span></template
|
|
32
|
+ >
|
|
33
|
+ </el-table-column>
|
|
34
|
+ <el-table-column align="center" prop="name" width="80" label="单次用量">
|
|
35
|
+ <template slot-scope="scope">
|
|
36
|
+ <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
|
|
37
|
+ <div>{{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}</div>
|
|
38
|
+ </template>
|
|
39
|
+ </el-table-column>
|
|
40
|
+ <el-table-column align="center" prop="name" width="80" label="用法">
|
|
41
|
+ <template slot-scope="scope">
|
|
42
|
+ <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
|
|
43
|
+ <div>{{ scope.row.delivery_way }}</div>
|
|
44
|
+ </template>
|
|
45
|
+ </el-table-column>
|
|
46
|
+ <el-table-column align="center" prop="name" width="80" label="频率">
|
|
47
|
+ <template slot-scope="scope">
|
|
48
|
+ <div>{{ scope.row.execution_frequency }}</div>
|
72
|
49
|
|
73
|
|
-<!-- <!–<el-input v-model="scope.row.execution_frequency" readonly></el-input>–>-->
|
74
|
|
-<!-- </template>-->
|
75
|
|
-<!-- </el-table-column>-->
|
|
50
|
+ <!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
|
|
51
|
+ </template>
|
|
52
|
+ </el-table-column>
|
76
|
53
|
|
77
|
|
-<!--<!– <el-table-column align="center" prop="day" width="80" label="天数">–>-->
|
78
|
|
-<!--<!– <template slot-scope="scope">{{ scope.row.day }}天</template>–>-->
|
79
|
|
-<!--<!– </el-table-column>–>-->
|
|
54
|
+ <el-table-column align="center" prop="day" width="80" label="天数">
|
|
55
|
+ <template slot-scope="scope">{{ scope.row.day }}天</template>
|
|
56
|
+ </el-table-column>
|
80
|
57
|
|
81
|
|
-<!-- <el-table-column align="center" prop="name" width="80" label="总量">-->
|
82
|
|
-<!-- <template slot-scope="scope"-->
|
83
|
|
-<!-- >{{ scope.row.prescribing_number-->
|
84
|
|
-<!-- }}{{ scope.row.prescribing_number_unit }}</template-->
|
85
|
|
-<!-- >-->
|
86
|
|
-<!-- </el-table-column>-->
|
87
|
|
-<!-- <el-table-column align="center" prop="name" width="100" label="单价">-->
|
88
|
|
-<!-- <template slot-scope="scope">-->
|
89
|
|
-<!-- <div>{{ scope.row.retail_price }}元</div>-->
|
|
58
|
+ <el-table-column align="center" prop="name" width="80" label="总量">
|
|
59
|
+ <template slot-scope="scope"
|
|
60
|
+ >{{ scope.row.prescribing_number
|
|
61
|
+ }}{{ scope.row.prescribing_number_unit }}</template
|
|
62
|
+ >
|
|
63
|
+ </el-table-column>
|
|
64
|
+ <el-table-column align="center" prop="name" width="100" label="单价">
|
|
65
|
+ <template slot-scope="scope">
|
|
66
|
+ <div>{{ scope.row.retail_price }}元</div>
|
90
|
67
|
|
91
|
|
-<!-- <!–<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>–>-->
|
92
|
|
-<!-- </template>-->
|
93
|
|
-<!-- </el-table-column>-->
|
|
68
|
+ <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
|
|
69
|
+ </template>
|
|
70
|
+ </el-table-column>
|
94
|
71
|
|
95
|
|
-<!-- <el-table-column align="center" prop="name" width="100" label="总价">-->
|
96
|
|
-<!-- <template slot-scope="scope">-->
|
97
|
|
-<!-- <div>-->
|
98
|
|
-<!-- {{-->
|
99
|
|
-<!-- (scope.row.prescribing_number * scope.row.retail_price).toFixed(-->
|
100
|
|
-<!-- 2-->
|
101
|
|
-<!-- )-->
|
102
|
|
-<!-- }}元-->
|
103
|
|
-<!-- </div>-->
|
|
72
|
+ <el-table-column align="center" prop="name" width="100" label="总价">
|
|
73
|
+ <template slot-scope="scope">
|
|
74
|
+ <div>
|
|
75
|
+ {{
|
|
76
|
+ (scope.row.prescribing_number * scope.row.retail_price).toFixed(
|
|
77
|
+ 2
|
|
78
|
+ )
|
|
79
|
+ }}元
|
|
80
|
+ </div>
|
104
|
81
|
|
105
|
|
-<!-- <!–<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>–>-->
|
106
|
|
-<!-- </template>-->
|
107
|
|
-<!-- </el-table-column>-->
|
|
82
|
+ <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
|
|
83
|
+ </template>
|
|
84
|
+ </el-table-column>
|
108
|
85
|
|
109
|
|
-<!-- <el-table-column align="center" prop="name" width="80" label="全自费金额">-->
|
110
|
|
-<!-- <template slot-scope="scope">-->
|
111
|
|
-<!-- <div>{{ scope.row.fulamt_ownpay_amt }}元</div>-->
|
112
|
|
-<!-- </template>-->
|
113
|
|
-<!-- </el-table-column>-->
|
|
86
|
+ <el-table-column align="center" prop="name" width="80" label="全自费金额">
|
|
87
|
+ <template slot-scope="scope">
|
|
88
|
+ <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
|
|
89
|
+ </template>
|
|
90
|
+ </el-table-column>
|
114
|
91
|
|
115
|
|
-<!-- <el-table-column align="center" prop="name" width="80" label="超限价金额">-->
|
116
|
|
-<!-- <template slot-scope="scope">-->
|
117
|
|
-<!-- <div>{{ scope.row.overlmt_amt }}元</div>-->
|
118
|
|
-<!-- </template>-->
|
119
|
|
-<!-- </el-table-column>-->
|
|
92
|
+ <el-table-column align="center" prop="name" width="80" label="超限价金额">
|
|
93
|
+ <template slot-scope="scope">
|
|
94
|
+ <div>{{ scope.row.overlmt_amt }}元</div>
|
|
95
|
+ </template>
|
|
96
|
+ </el-table-column>
|
120
|
97
|
|
121
|
|
-<!-- <el-table-column-->
|
122
|
|
-<!-- align="center"-->
|
123
|
|
-<!-- prop="name"-->
|
124
|
|
-<!-- width="80"-->
|
125
|
|
-<!-- label="先行自付金额"-->
|
126
|
|
-<!-- >-->
|
127
|
|
-<!-- <template slot-scope="scope">-->
|
128
|
|
-<!-- <div>{{ scope.row.preselfpay_amt }}元</div>-->
|
129
|
|
-<!-- </template>-->
|
130
|
|
-<!-- </el-table-column>-->
|
|
98
|
+ <el-table-column
|
|
99
|
+ align="center"
|
|
100
|
+ prop="name"
|
|
101
|
+ width="80"
|
|
102
|
+ label="先行自付金额"
|
|
103
|
+ >
|
|
104
|
+ <template slot-scope="scope">
|
|
105
|
+ <div>{{ scope.row.preselfpay_amt }}元</div>
|
|
106
|
+ </template>
|
|
107
|
+ </el-table-column>
|
131
|
108
|
|
132
|
|
-<!-- <el-table-column-->
|
133
|
|
-<!-- align="center"-->
|
134
|
|
-<!-- prop="name"-->
|
135
|
|
-<!-- width="70"-->
|
136
|
|
-<!-- label="符合正常范围金额"-->
|
137
|
|
-<!-- >-->
|
138
|
|
-<!-- <template slot-scope="scope">-->
|
139
|
|
-<!-- <div>{{scope.row.inscp_scp_amt}}元</div>-->
|
140
|
|
-<!-- </template>-->
|
141
|
|
-<!-- </el-table-column>-->
|
|
109
|
+ <el-table-column
|
|
110
|
+ align="center"
|
|
111
|
+ prop="name"
|
|
112
|
+ width="70"
|
|
113
|
+ label="符合正常范围金额"
|
|
114
|
+ >
|
|
115
|
+ <template slot-scope="scope">
|
|
116
|
+ <div>{{scope.row.inscp_scp_amt}}元</div>
|
|
117
|
+ </template>
|
|
118
|
+ </el-table-column>
|
142
|
119
|
|
143
|
|
-<!-- <el-table-column align="center" prop="name" width="60" label="备注">-->
|
144
|
|
-<!-- <template slot-scope="scope">-->
|
145
|
|
-<!-- <!–<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>–>-->
|
146
|
|
-<!-- <div>{{ scope.row.remark }}</div>-->
|
147
|
|
-<!-- </template>-->
|
148
|
|
-<!-- </el-table-column>-->
|
149
|
|
-<!-- </el-table>-->
|
|
120
|
+ <el-table-column align="center" prop="name" width="60" label="备注">
|
|
121
|
+ <template slot-scope="scope">
|
|
122
|
+ <!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>-->
|
|
123
|
+ <div>{{ scope.row.remark }}</div>
|
|
124
|
+ </template>
|
|
125
|
+ </el-table-column>
|
|
126
|
+ </el-table>
|
150
|
127
|
<el-table
|
151
|
128
|
id="out-table"
|
|
129
|
+ v-if="prescription.type == 2"
|
152
|
130
|
:data="prescription.project"
|
153
|
131
|
border
|
154
|
132
|
style="width: 99%"
|
|
@@ -159,100 +137,75 @@
|
159
|
137
|
}"
|
160
|
138
|
highlight-current-row
|
161
|
139
|
>
|
162
|
|
-
|
163
|
140
|
<el-table-column
|
164
|
141
|
align="center"
|
165
|
142
|
type="index"
|
166
|
143
|
width="40"
|
167
|
144
|
label="序号"
|
168
|
145
|
></el-table-column>
|
|
146
|
+ <el-table-column
|
|
147
|
+ align="center"
|
|
148
|
+ prop="project_name"
|
|
149
|
+ width="400"
|
|
150
|
+ label="名称"
|
|
151
|
+ >
|
|
152
|
+ <template slot-scope="scope">{{ scope.row.project_name }}</template>
|
|
153
|
+ </el-table-column>
|
|
154
|
+ <el-table-column
|
|
155
|
+ align="center"
|
|
156
|
+ prop="statistical_classification"
|
|
157
|
+ width="100"
|
|
158
|
+ label="组"
|
|
159
|
+ >
|
|
160
|
+ <template slot-scope="scope">{{
|
|
161
|
+ getGroup(scope.row.statistical_classification)
|
|
162
|
+ }}</template>
|
|
163
|
+ </el-table-column>
|
169
|
164
|
|
170
|
165
|
<el-table-column
|
171
|
|
- align="center"
|
172
|
|
- prop="single_dose"
|
173
|
|
- width="80"
|
174
|
|
- label="姓名"
|
|
166
|
+ align="center"
|
|
167
|
+ prop="single_dose"
|
|
168
|
+ width="80"
|
|
169
|
+ label="单次用量"
|
175
|
170
|
>
|
176
|
171
|
<template slot-scope="scope">
|
177
|
|
- {{patientName}}
|
|
172
|
+ <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
|
|
173
|
+ {{ scope.row.single_dose }}{{ scope.row.unit }}
|
178
|
174
|
</template>
|
179
|
175
|
</el-table-column>
|
180
|
|
-
|
181
|
176
|
<el-table-column
|
182
|
|
- align="center"
|
183
|
|
- prop="single_dose"
|
184
|
|
- width="80"
|
185
|
|
- label="就诊号"
|
|
177
|
+ align="center"
|
|
178
|
+ prop="delivery_way"
|
|
179
|
+ width="80"
|
|
180
|
+ label="用法"
|
186
|
181
|
>
|
187
|
182
|
<template slot-scope="scope">
|
188
|
|
- {{number}}
|
|
183
|
+ <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
|
|
184
|
+ {{ scope.row.delivery_way }}
|
189
|
185
|
</template>
|
190
|
186
|
</el-table-column>
|
191
|
|
-
|
192
|
|
-
|
193
|
187
|
<el-table-column
|
194
|
188
|
align="center"
|
195
|
|
- prop="project_name"
|
196
|
|
- width="400"
|
197
|
|
- label="名称"
|
|
189
|
+ prop="execution_frequency"
|
|
190
|
+ width="80"
|
|
191
|
+ label="频率"
|
198
|
192
|
>
|
199
|
|
- <template slot-scope="scope">{{ scope.row.project_name }}</template>
|
|
193
|
+ <template slot-scope="scope">
|
|
194
|
+ <!--<el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>-->
|
|
195
|
+ {{ scope.row.execution_frequency }}
|
|
196
|
+ </template>
|
200
|
197
|
</el-table-column>
|
201
|
|
-<!-- <el-table-column-->
|
202
|
|
-<!-- align="center"-->
|
203
|
|
-<!-- prop="statistical_classification"-->
|
204
|
|
-<!-- width="100"-->
|
205
|
|
-<!-- label="组"-->
|
206
|
|
-<!-- >-->
|
207
|
|
-<!-- <template slot-scope="scope">{{-->
|
208
|
|
-<!-- getGroup(scope.row.statistical_classification)-->
|
209
|
|
-<!-- }}</template>-->
|
210
|
|
-<!-- </el-table-column>-->
|
211
|
|
-
|
212
|
198
|
<el-table-column
|
213
|
199
|
align="center"
|
214
|
|
- prop="single_dose"
|
|
200
|
+ prop="number_days"
|
215
|
201
|
width="80"
|
216
|
|
- label="单次用量"
|
|
202
|
+ label="天数"
|
217
|
203
|
>
|
218
|
204
|
<template slot-scope="scope">
|
219
|
|
- <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
|
220
|
|
- {{ scope.row.single_dose }}{{ scope.row.unit }}
|
|
205
|
+ <!--<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>-->
|
|
206
|
+ {{ scope.row.number_days }}天
|
221
|
207
|
</template>
|
222
|
208
|
</el-table-column>
|
223
|
|
-<!-- <el-table-column-->
|
224
|
|
-<!-- align="center"-->
|
225
|
|
-<!-- prop="delivery_way"-->
|
226
|
|
-<!-- width="80"-->
|
227
|
|
-<!-- label="用法"-->
|
228
|
|
-<!-- >-->
|
229
|
|
-<!-- <template slot-scope="scope">-->
|
230
|
|
-<!-- <!–<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>–>-->
|
231
|
|
-<!-- {{ scope.row.delivery_way }}-->
|
232
|
|
-<!-- </template>-->
|
233
|
|
-<!-- </el-table-column>-->
|
234
|
|
-<!-- <el-table-column-->
|
235
|
|
-<!-- align="center"-->
|
236
|
|
-<!-- prop="execution_frequency"-->
|
237
|
|
-<!-- width="80"-->
|
238
|
|
-<!-- label="频率"-->
|
239
|
|
-<!-- >-->
|
240
|
|
-<!-- <template slot-scope="scope">-->
|
241
|
|
-<!-- <!–<el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>–>-->
|
242
|
|
-<!-- {{ scope.row.execution_frequency }}-->
|
243
|
|
-<!-- </template>-->
|
244
|
|
-<!-- </el-table-column>-->
|
245
|
|
-<!-- <el-table-column-->
|
246
|
|
-<!-- align="center"-->
|
247
|
|
-<!-- prop="number_days"-->
|
248
|
|
-<!-- width="80"-->
|
249
|
|
-<!-- label="天数"-->
|
250
|
|
-<!-- >-->
|
251
|
|
-<!-- <template slot-scope="scope">-->
|
252
|
|
-<!-- <!–<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>–>-->
|
253
|
|
-<!-- {{ scope.row.number_days }}天-->
|
254
|
|
-<!-- </template>-->
|
255
|
|
-<!-- </el-table-column>-->
|
256
|
209
|
|
257
|
210
|
<el-table-column align="center" prop="total" width="80" label="总量">
|
258
|
211
|
<template slot-scope="scope">
|
|
@@ -351,9 +304,7 @@ import { getDictionaryDataConfig } from "@/utils/data";
|
351
|
304
|
export default {
|
352
|
305
|
props: {
|
353
|
306
|
prescription: Object,
|
354
|
|
- patientName:String,
|
355
|
|
- number:String,
|
356
|
|
-},
|
|
307
|
+ },
|
357
|
308
|
data() {
|
358
|
309
|
return {
|
359
|
310
|
drugways: [],
|
|
@@ -374,11 +325,7 @@ export default {
|
374
|
325
|
},
|
375
|
326
|
methods: {
|
376
|
327
|
exportData(){
|
377
|
|
- let excelName = ""
|
378
|
|
-
|
379
|
|
-
|
380
|
|
- excelName = this.patientName + "项目耗材"+'.xlsx';
|
381
|
|
-
|
|
328
|
+ let excelName = '导出表格名称.xlsx';
|
382
|
329
|
var xlsxParam = { raw: true };//转换成excel时,使用原始的格式
|
383
|
330
|
// 克隆节点
|
384
|
331
|
let tables = document.getElementById("out-table").cloneNode(true);
|