|
@@ -1,132 +1,154 @@
|
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
|
|
- <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>
|
|
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>-->
|
49
|
27
|
|
50
|
|
- <!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
|
51
|
|
- </template>
|
52
|
|
- </el-table-column>
|
|
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>-->
|
53
|
38
|
|
54
|
|
- <el-table-column align="center" prop="day" width="80" label="天数">
|
55
|
|
- <template slot-scope="scope">{{ scope.row.day }}天</template>
|
56
|
|
- </el-table-column>
|
|
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>-->
|
57
|
49
|
|
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>
|
|
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>-->
|
67
|
72
|
|
68
|
|
- <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
|
69
|
|
- </template>
|
70
|
|
- </el-table-column>
|
|
73
|
+<!-- <!–<el-input v-model="scope.row.execution_frequency" readonly></el-input>–>-->
|
|
74
|
+<!-- </template>-->
|
|
75
|
+<!-- </el-table-column>-->
|
71
|
76
|
|
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>
|
|
77
|
+<!--<!– <el-table-column align="center" prop="day" width="80" label="天数">–>-->
|
|
78
|
+<!--<!– <template slot-scope="scope">{{ scope.row.day }}天</template>–>-->
|
|
79
|
+<!--<!– </el-table-column>–>-->
|
81
|
80
|
|
82
|
|
- <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
|
83
|
|
- </template>
|
84
|
|
- </el-table-column>
|
|
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>-->
|
85
|
90
|
|
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>
|
|
91
|
+<!-- <!–<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>–>-->
|
|
92
|
+<!-- </template>-->
|
|
93
|
+<!-- </el-table-column>-->
|
91
|
94
|
|
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>
|
|
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>-->
|
97
|
104
|
|
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>
|
|
105
|
+<!-- <!–<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>–>-->
|
|
106
|
+<!-- </template>-->
|
|
107
|
+<!-- </el-table-column>-->
|
108
|
108
|
|
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>
|
|
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>-->
|
119
|
114
|
|
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>
|
|
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>-->
|
|
120
|
+
|
|
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>-->
|
|
131
|
+
|
|
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>-->
|
|
142
|
+
|
|
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>-->
|
127
|
150
|
<el-table
|
128
|
151
|
id="out-table"
|
129
|
|
- v-if="prescription.type == 2"
|
130
|
152
|
:data="prescription.project"
|
131
|
153
|
border
|
132
|
154
|
style="width: 99%"
|
|
@@ -137,75 +159,100 @@
|
137
|
159
|
}"
|
138
|
160
|
highlight-current-row
|
139
|
161
|
>
|
|
162
|
+
|
140
|
163
|
<el-table-column
|
141
|
164
|
align="center"
|
142
|
165
|
type="index"
|
143
|
166
|
width="40"
|
144
|
167
|
label="序号"
|
145
|
168
|
></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>
|
164
|
169
|
|
165
|
170
|
<el-table-column
|
166
|
|
- align="center"
|
167
|
|
- prop="single_dose"
|
168
|
|
- width="80"
|
169
|
|
- label="单次用量"
|
|
171
|
+ align="center"
|
|
172
|
+ prop="single_dose"
|
|
173
|
+ width="80"
|
|
174
|
+ label="姓名"
|
170
|
175
|
>
|
171
|
176
|
<template slot-scope="scope">
|
172
|
|
- <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
|
173
|
|
- {{ scope.row.single_dose }}{{ scope.row.unit }}
|
|
177
|
+ {{patientName}}
|
174
|
178
|
</template>
|
175
|
179
|
</el-table-column>
|
|
180
|
+
|
176
|
181
|
<el-table-column
|
177
|
|
- align="center"
|
178
|
|
- prop="delivery_way"
|
179
|
|
- width="80"
|
180
|
|
- label="用法"
|
|
182
|
+ align="center"
|
|
183
|
+ prop="single_dose"
|
|
184
|
+ width="80"
|
|
185
|
+ label="就诊号"
|
181
|
186
|
>
|
182
|
187
|
<template slot-scope="scope">
|
183
|
|
- <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
|
184
|
|
- {{ scope.row.delivery_way }}
|
|
188
|
+ {{number}}
|
185
|
189
|
</template>
|
186
|
190
|
</el-table-column>
|
|
191
|
+
|
|
192
|
+
|
187
|
193
|
<el-table-column
|
188
|
194
|
align="center"
|
189
|
|
- prop="execution_frequency"
|
190
|
|
- width="80"
|
191
|
|
- label="频率"
|
|
195
|
+ prop="project_name"
|
|
196
|
+ width="400"
|
|
197
|
+ label="名称"
|
192
|
198
|
>
|
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>
|
|
199
|
+ <template slot-scope="scope">{{ scope.row.project_name }}</template>
|
197
|
200
|
</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
|
+
|
198
|
212
|
<el-table-column
|
199
|
213
|
align="center"
|
200
|
|
- prop="number_days"
|
|
214
|
+ prop="single_dose"
|
201
|
215
|
width="80"
|
202
|
|
- label="天数"
|
|
216
|
+ label="单次用量"
|
203
|
217
|
>
|
204
|
218
|
<template slot-scope="scope">
|
205
|
|
- <!--<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>-->
|
206
|
|
- {{ scope.row.number_days }}天
|
|
219
|
+ <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
|
|
220
|
+ {{ scope.row.single_dose }}{{ scope.row.unit }}
|
207
|
221
|
</template>
|
208
|
222
|
</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>-->
|
209
|
256
|
|
210
|
257
|
<el-table-column align="center" prop="total" width="80" label="总量">
|
211
|
258
|
<template slot-scope="scope">
|
|
@@ -304,7 +351,9 @@ import { getDictionaryDataConfig } from "@/utils/data";
|
304
|
351
|
export default {
|
305
|
352
|
props: {
|
306
|
353
|
prescription: Object,
|
307
|
|
- },
|
|
354
|
+ patientName:String,
|
|
355
|
+ number:String,
|
|
356
|
+},
|
308
|
357
|
data() {
|
309
|
358
|
return {
|
310
|
359
|
drugways: [],
|
|
@@ -325,7 +374,11 @@ export default {
|
325
|
374
|
},
|
326
|
375
|
methods: {
|
327
|
376
|
exportData(){
|
328
|
|
- let excelName = '导出表格名称.xlsx';
|
|
377
|
+ let excelName = ""
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+ excelName = this.patientName + "项目耗材"+'.xlsx';
|
|
381
|
+
|
329
|
382
|
var xlsxParam = { raw: true };//转换成excel时,使用原始的格式
|
330
|
383
|
// 克隆节点
|
331
|
384
|
let tables = document.getElementById("out-table").cloneNode(true);
|