|
@@ -1,238 +1,317 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="prescriptionTable">
|
3
|
|
- <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
|
4
|
|
- :row-style="{ color: '#303133' }"
|
5
|
|
- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
6
|
|
- <el-table-column fixed align="center" type="index" width="40" label="序号"></el-table-column>
|
7
|
|
- <el-table-column fixed align="center" prop="name" label="名称">
|
8
|
|
- <template slot-scope="scope"><span :title='scope.row.drug_name'>{{ scope.row.drug_name }}</span></template>
|
9
|
|
- </el-table-column>
|
10
|
|
-
|
11
|
|
- <el-table-column align="center" prop="name" width="90" label="单次用量">
|
|
3
|
+ <el-table
|
|
4
|
+ v-if="prescription.type == 1"
|
|
5
|
+ :data="prescription.advices"
|
|
6
|
+ border
|
|
7
|
+ style="width: 99%"
|
|
8
|
+ :row-style="changColor"
|
|
9
|
+ :row-class-name="tableRowClassName"
|
|
10
|
+ :header-cell-style="{
|
|
11
|
+ color: '#606266',
|
|
12
|
+ }"
|
|
13
|
+ highlight-current-row
|
|
14
|
+ >
|
|
15
|
+ <el-table-column
|
|
16
|
+ fixed
|
|
17
|
+ align="center"
|
|
18
|
+ type="index"
|
|
19
|
+ width="40"
|
|
20
|
+ label="序号"
|
|
21
|
+ ></el-table-column>
|
|
22
|
+ <el-table-column fixed align="center" prop="name" width="400" label="名称">
|
|
23
|
+ <template slot-scope="scope"
|
|
24
|
+ ><span :title="scope.row.drug_name">{{
|
|
25
|
+ scope.row.drug_name
|
|
26
|
+ }}</span></template
|
|
27
|
+ >
|
|
28
|
+ </el-table-column>
|
|
29
|
+
|
|
30
|
+ <el-table-column align="center" prop="name" width="70" label="单次用量">
|
12
|
31
|
<template slot-scope="scope">
|
13
|
|
- <!--<el-input v-model="scope.row.single_dose" readonly style="width:65%;"></el-input>-->
|
14
|
|
- <div>{{scope.row.single_dose}} {{scope.row.single_dose_unit}}</div>
|
|
32
|
+ <!--<el-input v-model="scope.row.single_dose" readonly style="width:65%;"></el-input>-->
|
|
33
|
+ <div>
|
|
34
|
+ {{ scope.row.single_dose }} {{
|
|
35
|
+ scope.row.single_dose_unit
|
|
36
|
+ }}
|
|
37
|
+ </div>
|
15
|
38
|
</template>
|
16
|
39
|
</el-table-column>
|
17
|
|
- <el-table-column align="center" prop="name" width="100" label="用法">
|
|
40
|
+ <el-table-column align="center" prop="name" width="80" label="用法">
|
18
|
41
|
<template slot-scope="scope">
|
19
|
42
|
<!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
|
20
|
|
- <div> {{scope.row.delivery_way}}</div>
|
21
|
|
-
|
|
43
|
+ <div>{{ scope.row.delivery_way }}</div>
|
22
|
44
|
</template>
|
23
|
45
|
</el-table-column>
|
24
|
|
- <el-table-column align="center" prop="name" width="100" label="频率">
|
|
46
|
+ <el-table-column align="center" prop="name" width="80" label="频率">
|
25
|
47
|
<template slot-scope="scope">
|
26
|
|
- <div> {{scope.row.execution_frequency}}</div>
|
|
48
|
+ <div>{{ scope.row.execution_frequency }}</div>
|
27
|
49
|
|
28
|
50
|
<!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
|
29
|
51
|
</template>
|
30
|
52
|
</el-table-column>
|
31
|
53
|
|
32
|
|
- <el-table-column align="center" prop="day" width="50" label="天数">
|
33
|
|
- <template slot-scope="scope">{{scope.row.day}}天</template>
|
|
54
|
+ <el-table-column align="center" prop="day" width="80" label="天数">
|
|
55
|
+ <template slot-scope="scope">{{ scope.row.day }}天</template>
|
34
|
56
|
</el-table-column>
|
35
|
57
|
|
36
|
|
- <el-table-column align="center" prop="name" width="100" label="总量">
|
|
58
|
+ <el-table-column align="center" prop="name" width="80" label="总量">
|
37
|
59
|
<template slot-scope="scope">
|
38
|
|
- <!--<el-input v-model="scope.row.prescribing_number" style="width:60%" readonly placeholder=""></el-input>-->
|
39
|
|
- <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
|
|
60
|
+ <!--<el-input v-model="scope.row.prescribing_number" style="width:60%" readonly placeholder=""></el-input>-->
|
|
61
|
+ <div>
|
|
62
|
+ {{ scope.row.prescribing_number }} {{
|
|
63
|
+ scope.row.prescribing_number_unit
|
|
64
|
+ }}
|
|
65
|
+ </div>
|
40
|
66
|
</template>
|
41
|
67
|
</el-table-column>
|
42
|
|
- <el-table-column align="center" prop="name" width="60" label="单价">
|
|
68
|
+ <el-table-column align="center" prop="name" width="80" label="单价">
|
43
|
69
|
<template slot-scope="scope">
|
44
|
|
- <div> {{scope.row.retail_price}}元</div>
|
|
70
|
+ <div>{{ scope.row.retail_price }}元</div>
|
45
|
71
|
|
46
|
72
|
<!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
|
47
|
73
|
</template>
|
48
|
74
|
</el-table-column>
|
49
|
75
|
|
50
|
|
- <el-table-column align="center" prop="name" width="60" label="执行状态">
|
|
76
|
+ <el-table-column align="center" prop="name" width="80" label="执行状态">
|
51
|
77
|
<template slot-scope="scope">
|
52
|
|
- <div> {{scope.row.execution_state == 1 ? '已执行':'未执行'}}</div>
|
|
78
|
+ <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
|
53
|
79
|
</template>
|
54
|
80
|
</el-table-column>
|
55
|
81
|
|
56
|
|
-
|
57
|
|
- <el-table-column align="center" prop="name" width="120" label="医保编码">
|
|
82
|
+ <el-table-column align="center" prop="name" width="320" label="医保编码">
|
58
|
83
|
<template slot-scope="scope">
|
59
|
|
- <div> {{scope.row.code}}</div>
|
|
84
|
+ <div>{{ scope.row.code }}</div>
|
60
|
85
|
</template>
|
61
|
86
|
</el-table-column>
|
62
|
87
|
|
63
|
|
-
|
64
|
88
|
<el-table-column align="center" prop="name" width="80" label="规格/型号">
|
65
|
89
|
<template slot-scope="scope">
|
66
|
|
- <div> {{scope.row.spec}}</div>
|
|
90
|
+ <div>{{ scope.row.spec }}</div>
|
67
|
91
|
</template>
|
68
|
92
|
</el-table-column>
|
69
|
93
|
|
70
|
94
|
<el-table-column align="center" prop="name" width="60" label="金额">
|
71
|
95
|
<template slot-scope="scope">
|
72
|
|
- <div> {{scope.row.det_item_fee_sumamt}}</div>
|
|
96
|
+ <div>{{ scope.row.det_item_fee_sumamt }}</div>
|
73
|
97
|
</template>
|
74
|
98
|
</el-table-column>
|
75
|
99
|
|
76
|
|
-
|
77
|
100
|
<el-table-column align="center" prop="name" width="120" label="生产厂家">
|
78
|
101
|
<template slot-scope="scope">
|
79
|
|
- <div> {{getName(scope.row.name_id)}}</div>
|
|
102
|
+ <div>{{ getName(scope.row.name_id) }}</div>
|
80
|
103
|
</template>
|
81
|
104
|
</el-table-column>
|
82
|
105
|
|
83
|
|
-
|
84
|
|
-
|
85
|
106
|
<el-table-column align="center" prop="name" width="90" label="全自费金额">
|
86
|
107
|
<template slot-scope="scope">
|
87
|
|
- <div> {{scope.row.fulamt_ownpay_amt}}元</div>
|
|
108
|
+ <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
|
88
|
109
|
</template>
|
89
|
110
|
</el-table-column>
|
90
|
111
|
|
91
|
|
-
|
92
|
|
-
|
93
|
112
|
<el-table-column align="center" prop="name" width="90" label="超限价金额">
|
94
|
113
|
<template slot-scope="scope">
|
95
|
|
- <div> {{scope.row.overlmt_amt}}元</div>
|
|
114
|
+ <div>{{ scope.row.overlmt_amt }}元</div>
|
96
|
115
|
</template>
|
97
|
116
|
</el-table-column>
|
98
|
117
|
|
99
|
|
-
|
100
|
|
- <el-table-column align="center" prop="name" width="90" label="先行自付金额">
|
|
118
|
+ <el-table-column
|
|
119
|
+ align="center"
|
|
120
|
+ prop="name"
|
|
121
|
+ width="90"
|
|
122
|
+ label="先行自付金额"
|
|
123
|
+ >
|
101
|
124
|
<template slot-scope="scope">
|
102
|
|
- <div> {{scope.row.preselfpay_amt}}元</div>
|
|
125
|
+ <div>{{ scope.row.preselfpay_amt }}元</div>
|
103
|
126
|
</template>
|
104
|
127
|
</el-table-column>
|
105
|
128
|
|
106
|
|
-
|
107
|
|
- <el-table-column align="center" prop="name" width="90" label="符合正常范围金额">
|
|
129
|
+ <el-table-column
|
|
130
|
+ align="center"
|
|
131
|
+ prop="name"
|
|
132
|
+ width="90"
|
|
133
|
+ label="符合正常范围金额"
|
|
134
|
+ >
|
108
|
135
|
<template slot-scope="scope">
|
109
|
|
- <div> {{scope.row.inscp_scp_amt}}元</div>
|
|
136
|
+ <div>{{ scope.row.inscp_scp_amt }}元</div>
|
110
|
137
|
</template>
|
111
|
138
|
</el-table-column>
|
112
|
139
|
|
113
|
|
-
|
114
|
|
-
|
115
|
|
-
|
116
|
|
-
|
117
|
|
-
|
118
|
|
-
|
119
|
140
|
<el-table-column align="center" prop="name" width="50" label="备注">
|
120
|
141
|
<template slot-scope="scope">
|
121
|
142
|
<!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>-->
|
122
|
|
- <div> {{scope.row.remark}}</div>
|
|
143
|
+ <div>{{ scope.row.remark }}</div>
|
123
|
144
|
</template>
|
124
|
145
|
</el-table-column>
|
125
|
146
|
</el-table>
|
126
|
|
- <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
|
127
|
|
- :row-style="{ color: '#303133' }"
|
128
|
|
- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
129
|
|
- <el-table-column fixed align="center" type="index" width="40" label="序号"></el-table-column>
|
130
|
|
- <el-table-column fixed align="center" prop="project_name" label="名称">
|
|
147
|
+ <el-table
|
|
148
|
+ v-if="prescription.type == 2"
|
|
149
|
+ :data="prescription.project"
|
|
150
|
+ border
|
|
151
|
+ style="width: 99%"
|
|
152
|
+ :row-style="changColor"
|
|
153
|
+ :header-cell-style="{
|
|
154
|
+ backgroundColor: 'rgb(245, 247, 250)',
|
|
155
|
+ color: '#606266',
|
|
156
|
+ }"
|
|
157
|
+ highlight-current-row
|
|
158
|
+ >
|
|
159
|
+ <el-table-column
|
|
160
|
+ fixed
|
|
161
|
+ align="center"
|
|
162
|
+ type="index"
|
|
163
|
+ width="40"
|
|
164
|
+ label="序号"
|
|
165
|
+ ></el-table-column>
|
|
166
|
+ <el-table-column fixed align="center" prop="project_name" width="400" label="名称">
|
131
|
167
|
<template slot-scope="scope">{{ scope.row.project_name }}</template>
|
132
|
168
|
</el-table-column>
|
133
|
|
- <el-table-column align="center" prop="statistical_classification" width="100" label="组">
|
134
|
|
- <template slot-scope="scope">{{scope.row.type == 2?getGroup(scope.row.statistical_classification):"耗材"}}</template>
|
135
|
|
- </el-table-column>
|
136
|
|
- <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
|
137
|
|
- <template slot-scope="scope">{{scope.row.single_dose}}{{scope.row.unit}}</template>
|
138
|
|
-
|
139
|
|
- </el-table-column>
|
140
|
|
- <el-table-column align="center" prop="delivery_way" width="80" label="用法">
|
141
|
|
- <template slot-scope="scope">{{scope.row.delivery_way}}</template>
|
142
|
|
- </el-table-column>
|
143
|
|
- <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
|
144
|
|
- <template slot-scope="scope">{{scope.row.execution_frequency}}</template>
|
145
|
|
- </el-table-column>
|
146
|
|
- <el-table-column align="center" prop="number_days" width="50" label="天数">
|
147
|
|
- <template slot-scope="scope">{{scope.row.number_days}}天</template>
|
148
|
|
-
|
|
169
|
+ <el-table-column
|
|
170
|
+ align="center"
|
|
171
|
+ prop="statistical_classification"
|
|
172
|
+ width="100"
|
|
173
|
+ label="组"
|
|
174
|
+ >
|
|
175
|
+ <template slot-scope="scope">{{
|
|
176
|
+ scope.row.type == 2
|
|
177
|
+ ? getGroup(scope.row.statistical_classification)
|
|
178
|
+ : "耗材"
|
|
179
|
+ }}</template>
|
|
180
|
+ </el-table-column>
|
|
181
|
+ <el-table-column
|
|
182
|
+ align="center"
|
|
183
|
+ prop="single_dose"
|
|
184
|
+ width="80"
|
|
185
|
+ label="单次用量"
|
|
186
|
+ >
|
|
187
|
+ <template slot-scope="scope"
|
|
188
|
+ >{{ scope.row.single_dose }}{{ scope.row.unit }}</template
|
|
189
|
+ >
|
|
190
|
+ </el-table-column>
|
|
191
|
+ <el-table-column
|
|
192
|
+ align="center"
|
|
193
|
+ prop="delivery_way"
|
|
194
|
+ width="80"
|
|
195
|
+ label="用法"
|
|
196
|
+ >
|
|
197
|
+ <template slot-scope="scope">{{ scope.row.delivery_way }}</template>
|
|
198
|
+ </el-table-column>
|
|
199
|
+ <el-table-column
|
|
200
|
+ align="center"
|
|
201
|
+ prop="execution_frequency"
|
|
202
|
+ width="80"
|
|
203
|
+ label="频率"
|
|
204
|
+ >
|
|
205
|
+ <template slot-scope="scope">{{
|
|
206
|
+ scope.row.execution_frequency
|
|
207
|
+ }}</template>
|
|
208
|
+ </el-table-column>
|
|
209
|
+ <el-table-column
|
|
210
|
+ align="center"
|
|
211
|
+ prop="number_days"
|
|
212
|
+ width="50"
|
|
213
|
+ label="天数"
|
|
214
|
+ >
|
|
215
|
+ <template slot-scope="scope">{{ scope.row.number_days }}天</template>
|
149
|
216
|
</el-table-column>
|
150
|
217
|
<el-table-column align="center" prop="total" width="50" label="总量">
|
151
|
218
|
<template slot-scope="scope">
|
152
|
|
- <div>{{scope.row.total}} {{scope.row.unit}}</div>
|
|
219
|
+ <div>{{ scope.row.total }} {{ scope.row.unit }}</div>
|
153
|
220
|
</template>
|
154
|
221
|
</el-table-column>
|
155
|
222
|
<el-table-column align="center" prop="name" width="50" label="单价">
|
156
|
|
- <template slot-scope="scope">{{scope.row.price}}元</template>
|
|
223
|
+ <template slot-scope="scope">{{ scope.row.price }}元</template>
|
157
|
224
|
</el-table-column>
|
158
|
225
|
|
159
|
226
|
<el-table-column align="center" prop="name" width="60" label="执行状态">
|
160
|
227
|
<template slot-scope="scope">
|
161
|
|
- <div> {{scope.row.execution_state == 1 ? '已执行':'未执行'}}</div>
|
|
228
|
+ <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
|
162
|
229
|
</template>
|
163
|
230
|
</el-table-column>
|
164
|
231
|
|
165
|
|
-
|
166
|
232
|
<el-table-column align="center" prop="name" width="120" label="医保编码">
|
167
|
233
|
<template slot-scope="scope">
|
168
|
|
- <div> {{scope.row.medical_code}}</div>
|
|
234
|
+ <div>{{ scope.row.medical_code }}</div>
|
169
|
235
|
</template>
|
170
|
236
|
</el-table-column>
|
171
|
237
|
|
172
|
|
-
|
173
|
238
|
<el-table-column align="center" prop="name" width="80" label="规格/型号">
|
174
|
239
|
<template slot-scope="scope">
|
175
|
|
- <div> {{scope.row.spec}}</div>
|
|
240
|
+ <div>{{ scope.row.spec }}</div>
|
176
|
241
|
</template>
|
177
|
242
|
</el-table-column>
|
178
|
243
|
|
179
|
244
|
<el-table-column align="center" prop="name" width="60" label="金额">
|
180
|
245
|
<template slot-scope="scope">
|
181
|
|
- <div> {{scope.row.det_item_fee_sumamt}}元</div>
|
|
246
|
+ <div>{{ scope.row.det_item_fee_sumamt }}元</div>
|
182
|
247
|
</template>
|
183
|
248
|
</el-table-column>
|
184
|
249
|
|
185
|
|
-
|
186
|
250
|
<el-table-column align="center" prop="name" width="120" label="生产厂家">
|
187
|
251
|
<template slot-scope="scope">
|
188
|
|
- <div> {{getName(scope.row.name_id)}}</div>
|
|
252
|
+ <div>{{ getName(scope.row.name_id) }}</div>
|
189
|
253
|
</template>
|
190
|
254
|
</el-table-column>
|
191
|
255
|
|
192
|
|
-
|
193
|
|
-
|
194
|
256
|
<el-table-column align="center" prop="name" width="90" label="全自费金额">
|
195
|
257
|
<template slot-scope="scope">
|
196
|
|
- <div> {{scope.row.fulamt_ownpay_amt}}元</div>
|
|
258
|
+ <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
|
197
|
259
|
</template>
|
198
|
260
|
</el-table-column>
|
199
|
261
|
|
200
|
|
-
|
201
|
|
-
|
202
|
262
|
<el-table-column align="center" prop="name" width="90" label="超限价金额">
|
203
|
263
|
<template slot-scope="scope">
|
204
|
|
- <div> {{scope.row.overlmt_amt}}元</div>
|
|
264
|
+ <div>{{ scope.row.overlmt_amt }}元</div>
|
205
|
265
|
</template>
|
206
|
266
|
</el-table-column>
|
207
|
267
|
|
208
|
|
-
|
209
|
|
- <el-table-column align="center" prop="name" width="90" label="先行自付金额">
|
|
268
|
+ <el-table-column
|
|
269
|
+ align="center"
|
|
270
|
+ prop="name"
|
|
271
|
+ width="90"
|
|
272
|
+ label="先行自付金额"
|
|
273
|
+ >
|
210
|
274
|
<template slot-scope="scope">
|
211
|
|
- <div> {{scope.row.preselfpay_amt}}元</div>
|
|
275
|
+ <div>{{ scope.row.preselfpay_amt }}元</div>
|
212
|
276
|
</template>
|
213
|
277
|
</el-table-column>
|
214
|
278
|
|
215
|
|
-
|
216
|
|
- <el-table-column align="center" prop="name" width="90" label="符合正常范围金额">
|
|
279
|
+ <el-table-column
|
|
280
|
+ align="center"
|
|
281
|
+ prop="name"
|
|
282
|
+ width="90"
|
|
283
|
+ label="符合正常范围金额"
|
|
284
|
+ >
|
217
|
285
|
<template slot-scope="scope">
|
218
|
|
- <div> {{scope.row.inscp_scp_amt}}元</div>
|
|
286
|
+ <div>{{ scope.row.inscp_scp_amt }}元</div>
|
219
|
287
|
</template>
|
220
|
288
|
</el-table-column>
|
221
|
289
|
|
222
|
|
-
|
223
|
|
-
|
224
|
|
-
|
225
|
290
|
<el-table-column align="center" prop="name" width="50" label="备注">
|
226
|
|
- <template slot-scope="scope">{{scope.row.remark}}</template>
|
|
291
|
+ <template slot-scope="scope">{{ scope.row.remark }}</template>
|
227
|
292
|
</el-table-column>
|
228
|
293
|
</el-table>
|
229
|
294
|
|
230
|
295
|
<div class="additionalBox">
|
231
|
|
- <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
|
232
|
|
- <span :title="item.item_name">{{item.item_name}}</span>
|
233
|
|
- <el-input v-model="item.price" placeholder="" style="width:50px;" readonly></el-input>
|
|
296
|
+ <div
|
|
297
|
+ class="additionalOne"
|
|
298
|
+ v-for="(item, index) in prescription.addition"
|
|
299
|
+ :key="index"
|
|
300
|
+ >
|
|
301
|
+ <span :title="item.item_name">{{ item.item_name }}</span>
|
|
302
|
+ <el-input
|
|
303
|
+ v-model="item.price"
|
|
304
|
+ placeholder=""
|
|
305
|
+ style="width: 50px"
|
|
306
|
+ readonly
|
|
307
|
+ ></el-input>
|
234
|
308
|
共
|
235
|
|
- <el-input v-model="item.count" placeholder="" style="width:50px;" readonly></el-input>
|
|
309
|
+ <el-input
|
|
310
|
+ v-model="item.count"
|
|
311
|
+ placeholder=""
|
|
312
|
+ style="width: 50px"
|
|
313
|
+ readonly
|
|
314
|
+ ></el-input>
|
236
|
315
|
次
|
237
|
316
|
<!--<i class="el-icon-delete deleteIcon" @click="delAddition(index,item)"></i>-->
|
238
|
317
|
</div>
|
|
@@ -241,89 +320,106 @@
|
241
|
320
|
</template>
|
242
|
321
|
|
243
|
322
|
<script>
|
244
|
|
- import { getInitData } from '@/api/his/his'
|
245
|
|
- import { getDictionaryDataConfig} from "@/utils/data";
|
246
|
|
-
|
247
|
|
- export default {
|
248
|
|
- props: {
|
249
|
|
- prescription: Object,
|
250
|
|
- manufacturers:Array,
|
|
323
|
+import { getInitData } from "@/api/his/his";
|
|
324
|
+import { getDictionaryDataConfig } from "@/utils/data";
|
|
325
|
+
|
|
326
|
+export default {
|
|
327
|
+ props: {
|
|
328
|
+ prescription: Object,
|
|
329
|
+ manufacturers: Array,
|
|
330
|
+ },
|
|
331
|
+ data() {
|
|
332
|
+ return {
|
|
333
|
+ drugways: [],
|
|
334
|
+ efs: [],
|
|
335
|
+ };
|
|
336
|
+ },
|
|
337
|
+ mounted() {
|
|
338
|
+ // getInitData().then(response => {
|
|
339
|
+ // if (response.data.state == 0) {
|
|
340
|
+ // this.$message.error(response.data.msg)
|
|
341
|
+ // return false
|
|
342
|
+ // } else {
|
|
343
|
+ // this.drugways = response.data.data.drugways
|
|
344
|
+ // this.efs = response.data.data.efs
|
|
345
|
+ // }
|
|
346
|
+ // })
|
|
347
|
+ },
|
|
348
|
+ methods: {
|
|
349
|
+ changColor({ row, rowIndex }) {
|
|
350
|
+ if (rowIndex % 2 == 1) { // 变颜色的条件
|
|
351
|
+ return {
|
|
352
|
+ backgroundColor: "#C4E1FF",
|
|
353
|
+ color: '#303133' // 这个return的就是样式 可以是color 也可以是backgroundColor
|
|
354
|
+ }
|
|
355
|
+ }else{
|
|
356
|
+ return {
|
|
357
|
+ backgroundColor:"#ACD6FF",
|
|
358
|
+ color: '#303133'
|
|
359
|
+ }
|
|
360
|
+ }
|
251
|
361
|
},
|
252
|
|
- data() {
|
253
|
|
- return {
|
254
|
|
- drugways: [],
|
255
|
|
- efs: [],
|
256
|
|
- }
|
257
|
|
- }, mounted() {
|
258
|
|
- // getInitData().then(response => {
|
259
|
|
- // if (response.data.state == 0) {
|
260
|
|
- // this.$message.error(response.data.msg)
|
261
|
|
- // return false
|
262
|
|
- // } else {
|
263
|
|
- // this.drugways = response.data.data.drugways
|
264
|
|
- // this.efs = response.data.data.efs
|
265
|
|
- // }
|
266
|
|
- // })
|
267
|
|
- }, methods: {
|
268
|
362
|
|
269
|
|
- getName(id){
|
270
|
|
- let name = ""
|
271
|
|
- for(let i = 0; i < this.manufacturers.length; i++){
|
272
|
|
- if(id == this.manufacturers[i].id){
|
273
|
|
- name = this.manufacturers[i].manufacturer_name
|
274
|
|
- }
|
|
363
|
+ getName(id) {
|
|
364
|
+ let name = "";
|
|
365
|
+ for (let i = 0; i < this.manufacturers.length; i++) {
|
|
366
|
+ if (id == this.manufacturers[i].id) {
|
|
367
|
+ name = this.manufacturers[i].manufacturer_name;
|
275
|
368
|
}
|
276
|
|
- return name
|
277
|
|
-
|
278
|
|
- },
|
279
|
|
- getGroup(id){
|
280
|
|
- var name = ""
|
281
|
|
- var statistics_category = getDictionaryDataConfig('system','statistics_category')
|
282
|
|
- console.log("2235",statistics_category)
|
283
|
|
- for(let i=0;i<statistics_category.length;i++){
|
284
|
|
- if(id == statistics_category[i].id){
|
285
|
|
- name = statistics_category[i].name
|
286
|
|
- }
|
|
369
|
+ }
|
|
370
|
+ return name;
|
|
371
|
+ },
|
|
372
|
+ getGroup(id) {
|
|
373
|
+ var name = "";
|
|
374
|
+ var statistics_category = getDictionaryDataConfig(
|
|
375
|
+ "system",
|
|
376
|
+ "statistics_category"
|
|
377
|
+ );
|
|
378
|
+ console.log("2235", statistics_category);
|
|
379
|
+ for (let i = 0; i < statistics_category.length; i++) {
|
|
380
|
+ if (id == statistics_category[i].id) {
|
|
381
|
+ name = statistics_category[i].name;
|
287
|
382
|
}
|
288
|
|
- return name
|
289
|
|
- },
|
290
|
|
-
|
291
|
|
-
|
292
|
|
- }
|
293
|
|
- }
|
|
383
|
+ }
|
|
384
|
+ return name;
|
|
385
|
+ },
|
|
386
|
+ },
|
|
387
|
+};
|
294
|
388
|
</script>
|
295
|
389
|
|
|
390
|
+
|
296
|
391
|
<style lang="scss">
|
297
|
|
-.prescriptionTable{
|
298
|
|
- .additionalBox{
|
299
|
|
- margin-top: 20px;
|
|
392
|
+.prescriptionTable {
|
|
393
|
+ .additionalBox {
|
|
394
|
+ margin-top: 20px;
|
|
395
|
+ display: flex;
|
|
396
|
+ flex-wrap: wrap;
|
|
397
|
+ .additionalOne {
|
|
398
|
+ margin-right: 20px;
|
|
399
|
+ margin-bottom: 10px;
|
300
|
400
|
display: flex;
|
301
|
|
- flex-wrap: wrap;
|
302
|
|
- .additionalOne{
|
303
|
|
- margin-right:20px;
|
304
|
|
- margin-bottom:10px;
|
305
|
|
- display: flex;
|
306
|
|
- align-items: center;
|
307
|
|
- >span{
|
308
|
|
- white-space: nowrap;
|
309
|
|
- overflow: hidden;
|
310
|
|
- text-overflow: ellipsis;
|
311
|
|
- width:80px;
|
312
|
|
- display: inline-block;
|
313
|
|
- font-size: 14px;
|
314
|
|
- }
|
|
401
|
+ align-items: center;
|
|
402
|
+ > span {
|
|
403
|
+ white-space: nowrap;
|
|
404
|
+ overflow: hidden;
|
|
405
|
+ text-overflow: ellipsis;
|
|
406
|
+ width: 80px;
|
|
407
|
+ display: inline-block;
|
|
408
|
+ font-size: 14px;
|
315
|
409
|
}
|
316
|
|
- .deleteIcon{
|
317
|
|
- color:red;
|
318
|
|
- margin-left:5px;
|
319
|
|
- }
|
320
|
|
- }
|
321
|
|
- .el-table th .cell, .el-table td .cell{
|
322
|
|
- padding: 0 2px;
|
323
|
|
- white-space: pre-line;
|
324
|
410
|
}
|
325
|
|
- .el-icon-delete{
|
326
|
|
- color:red;
|
|
411
|
+ .deleteIcon {
|
|
412
|
+ color: red;
|
|
413
|
+ margin-left: 5px;
|
327
|
414
|
}
|
|
415
|
+ }
|
|
416
|
+ .el-table th .cell,
|
|
417
|
+ .el-table td .cell {
|
|
418
|
+ padding: 0 2px;
|
|
419
|
+ white-space: pre-line;
|
|
420
|
+ }
|
|
421
|
+ .el-icon-delete {
|
|
422
|
+ color: red;
|
|
423
|
+ }
|
328
|
424
|
}
|
329
|
425
|
</style>
|