|
@@ -0,0 +1,353 @@
|
|
1
|
+<template>
|
|
2
|
+ <el-dialog
|
|
3
|
+ title="1111"
|
|
4
|
+ :visible.sync="isLastOrNextVisible"
|
|
5
|
+ width="1010px"
|
|
6
|
+ @close="resetDialog"
|
|
7
|
+ :modal-append-to-body="false"
|
|
8
|
+ >
|
|
9
|
+ <div class="txsj">
|
|
10
|
+ <el-button
|
|
11
|
+ round
|
|
12
|
+
|
|
13
|
+ @click="openLast(1)"
|
|
14
|
+ >上一方
|
|
15
|
+ </el-button>
|
|
16
|
+
|
|
17
|
+ <el-button
|
|
18
|
+ round
|
|
19
|
+ @click="openNext(2)"
|
|
20
|
+ >下一方
|
|
21
|
+ </el-button>
|
|
22
|
+ </div>
|
|
23
|
+
|
|
24
|
+ <div v-for="(item,index) in allPrescription" :key="index">
|
|
25
|
+ <div>{{item.title}}</div>
|
|
26
|
+ <el-checkbox-group v-model="item.check_group">
|
|
27
|
+ <div v-for="(subItem,index2) in item.prescriptions" :key="index2" >
|
|
28
|
+ <el-checkbox :label="subItem.id" :name='index2'>123{{ index2 }}</el-checkbox>
|
|
29
|
+ <el-table v-if="subItem.type == 1" :data="subItem.advices" border style="width: 99%;" :row-style="{ color: '#303133' }"
|
|
30
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
|
31
|
+ <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
|
|
32
|
+ <el-table-column align="center" prop="drug_name" label="名称">
|
|
33
|
+ <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>
|
|
34
|
+ </el-table-column>
|
|
35
|
+
|
|
36
|
+ <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
|
|
37
|
+ <template slot-scope="scope">
|
|
38
|
+ <div style="display:flex;align-items:center;">
|
|
39
|
+ <el-input v-model="scope.row.single_dose" style="width:65%;"></el-input>
|
|
40
|
+ <div>{{scope.row.single_dose_unit}}</div>
|
|
41
|
+ </div>
|
|
42
|
+ </template>
|
|
43
|
+ </el-table-column>
|
|
44
|
+ <el-table-column align="center" prop="delivery_way" width="100" label="用法">
|
|
45
|
+ <template slot-scope="scope">
|
|
46
|
+ {{scope.row.delivery_way}}
|
|
47
|
+ </template>
|
|
48
|
+ </el-table-column>
|
|
49
|
+ <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
|
|
50
|
+ <template slot-scope="scope">
|
|
51
|
+ {{scope.row.execution_frequency}}
|
|
52
|
+ </template>
|
|
53
|
+ </el-table-column>
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+ <el-table-column align="center" prop="day" width="50" label="天数">
|
|
57
|
+ <template slot-scope="scope">
|
|
58
|
+ <el-input v-model="scope.row.day" placeholder=""></el-input>
|
|
59
|
+ </template>
|
|
60
|
+ </el-table-column>
|
|
61
|
+
|
|
62
|
+ <el-table-column align="center" prop="prescribing_number" width="80" label="总量">
|
|
63
|
+ <template slot-scope="scope">
|
|
64
|
+ <div style="display:flex;align-items:center;">
|
|
65
|
+ <el-input v-model="scope.row.prescribing_number" style="width:60%" placeholder=""></el-input>
|
|
66
|
+ <div> {{scope.row.prescribing_number_unit}}</div>
|
|
67
|
+ </div>
|
|
68
|
+ </template>
|
|
69
|
+ </el-table-column>
|
|
70
|
+ <el-table-column align="center" prop="retail_price" width="60" label="单价">
|
|
71
|
+ <template slot-scope="scope">
|
|
72
|
+ <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
|
|
73
|
+ </template>
|
|
74
|
+ </el-table-column>
|
|
75
|
+ <el-table-column align="center" prop="remark" width="50" label="备注">
|
|
76
|
+ <template slot-scope="scope">
|
|
77
|
+ <el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
|
|
78
|
+ </template>
|
|
79
|
+ </el-table-column>
|
|
80
|
+ </el-table>
|
|
81
|
+
|
|
82
|
+ <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;" :row-style="{ color: '#303133' }"
|
|
83
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
|
84
|
+ <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
|
|
85
|
+ <el-table-column align="center" prop="project_name" label="名称">
|
|
86
|
+ <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span></template>
|
|
87
|
+ </el-table-column>
|
|
88
|
+ <el-table-column align="center" prop="statistical_classification" width="100" label="组">
|
|
89
|
+ <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
|
|
90
|
+ </el-table-column>
|
|
91
|
+ <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
|
|
92
|
+ <template slot-scope="scope">
|
|
93
|
+ <el-input v-model="scope.row.single_dose" placeholder=""></el-input>
|
|
94
|
+ </template>
|
|
95
|
+ </el-table-column>
|
|
96
|
+ <el-table-column align="center" prop="delivery_way" width="80" label="用法">
|
|
97
|
+ <template slot-scope="scope">
|
|
98
|
+ <el-input v-model="scope.row.delivery_way" placeholder=""></el-input>
|
|
99
|
+ </template>
|
|
100
|
+ </el-table-column>
|
|
101
|
+ <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
|
|
102
|
+ <template slot-scope="scope">
|
|
103
|
+ <el-input v-model="scope.row.execution_frequency" placeholder=""></el-input>
|
|
104
|
+ </template>
|
|
105
|
+ </el-table-column>
|
|
106
|
+ <el-table-column align="center" prop="number_days" width="50" label="天数">
|
|
107
|
+ <template slot-scope="scope">
|
|
108
|
+ <el-input v-model="scope.row.number_days" placeholder=""></el-input>
|
|
109
|
+ </template>
|
|
110
|
+ </el-table-column>
|
|
111
|
+ <el-table-column align="center" prop="total" width="70" label="总量">
|
|
112
|
+ <template slot-scope="scope">
|
|
113
|
+ <div style="display:flex;align-items:center;">
|
|
114
|
+ <el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>
|
|
115
|
+ <div>{{scope.row.unit}}</div>
|
|
116
|
+ </div>
|
|
117
|
+ </template>
|
|
118
|
+ </el-table-column>
|
|
119
|
+ <el-table-column align="center" prop="name" width="50" label="单价">
|
|
120
|
+ <template slot-scope="scope">
|
|
121
|
+ <el-input v-model="scope.row.price" placeholder="" readonly></el-input>
|
|
122
|
+ </template>
|
|
123
|
+ </el-table-column>
|
|
124
|
+ <el-table-column align="center" prop="name" width="50" label="备注">
|
|
125
|
+ <template slot-scope="scope">
|
|
126
|
+ <el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>
|
|
127
|
+ </template>
|
|
128
|
+ </el-table-column>
|
|
129
|
+ </el-table>
|
|
130
|
+ </div>
|
|
131
|
+ </el-checkbox-group>
|
|
132
|
+
|
|
133
|
+ </div>
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+ <!--<el-table v-if="activeType == 1" :data="prescription.advices" border style="width: 99%;" :row-style="{ color: '#303133' }"-->
|
|
137
|
+ <!--:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>-->
|
|
138
|
+ <!--<el-table-column align="center" type="index" width="40" label="序号"></el-table-column>-->
|
|
139
|
+ <!--<el-table-column align="center" prop="drug_name" label="名称">-->
|
|
140
|
+ <!--<template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>-->
|
|
141
|
+ <!--</el-table-column>-->
|
|
142
|
+
|
|
143
|
+ <!--<el-table-column align="center" prop="single_dose" width="90" label="单次用量">-->
|
|
144
|
+ <!--<template slot-scope="scope">-->
|
|
145
|
+ <!--<div style="display:flex;align-items:center;">-->
|
|
146
|
+ <!--<el-input v-model="scope.row.single_dose" style="width:65%;"></el-input>-->
|
|
147
|
+ <!--<div>{{scope.row.single_dose_unit}}</div>-->
|
|
148
|
+ <!--</div>-->
|
|
149
|
+ <!--</template>-->
|
|
150
|
+ <!--</el-table-column>-->
|
|
151
|
+ <!--<el-table-column align="center" prop="delivery_way" width="100" label="用法">-->
|
|
152
|
+ <!--<template slot-scope="scope">-->
|
|
153
|
+ <!--<el-select v-model="scope.row.delivery_way" placeholder="请选择">-->
|
|
154
|
+ <!--<el-option-->
|
|
155
|
+ <!--v-for="(item,index) in drugways"-->
|
|
156
|
+ <!--:key="index"-->
|
|
157
|
+ <!--:label="item.name"-->
|
|
158
|
+ <!--:value="item.name">-->
|
|
159
|
+ <!--</el-option>-->
|
|
160
|
+ <!--</el-select>-->
|
|
161
|
+ <!--</template>-->
|
|
162
|
+ <!--</el-table-column>-->
|
|
163
|
+ <!--<el-table-column align="center" prop="execution_frequency" width="100" label="频率">-->
|
|
164
|
+ <!--<template slot-scope="scope">-->
|
|
165
|
+ <!--<el-select v-model="scope.row.execution_frequency" placehold er="请选择">-->
|
|
166
|
+ <!--<el-option-->
|
|
167
|
+ <!--v-for="item,index in efs"-->
|
|
168
|
+ <!--:key="index"-->
|
|
169
|
+ <!--:label="item.name"-->
|
|
170
|
+ <!--:value="item.name">-->
|
|
171
|
+ <!--</el-option>-->
|
|
172
|
+ <!--</el-select>-->
|
|
173
|
+ <!--</template>-->
|
|
174
|
+ <!--</el-table-column>-->
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+ <!--<el-table-column align="center" prop="day" width="50" label="天数">-->
|
|
178
|
+ <!--<template slot-scope="scope">-->
|
|
179
|
+ <!--<el-input v-model="scope.row.day" placeholder=""></el-input>-->
|
|
180
|
+ <!--</template>-->
|
|
181
|
+ <!--</el-table-column>-->
|
|
182
|
+
|
|
183
|
+ <!--<el-table-column align="center" prop="prescribing_number" width="80" label="总量">-->
|
|
184
|
+ <!--<template slot-scope="scope">-->
|
|
185
|
+ <!--<div style="display:flex;align-items:center;">-->
|
|
186
|
+ <!--<el-input v-model="scope.row.prescribing_number" style="width:60%" placeholder=""></el-input>-->
|
|
187
|
+ <!--<div> {{scope.row.prescribing_number_unit}}</div>-->
|
|
188
|
+ <!--</div>-->
|
|
189
|
+ <!--</template>-->
|
|
190
|
+ <!--</el-table-column>-->
|
|
191
|
+ <!--<el-table-column align="center" prop="retail_price" width="60" label="单价">-->
|
|
192
|
+ <!--<template slot-scope="scope">-->
|
|
193
|
+ <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
|
|
194
|
+ <!--</template>-->
|
|
195
|
+ <!--</el-table-column>-->
|
|
196
|
+ <!--<el-table-column align="center" prop="remark" width="50" label="备注">-->
|
|
197
|
+ <!--<template slot-scope="scope">-->
|
|
198
|
+ <!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>-->
|
|
199
|
+ <!--</template>-->
|
|
200
|
+ <!--</el-table-column>-->
|
|
201
|
+ <!--<el-table-column align="center" width="40" prop="name" label="操作">-->
|
|
202
|
+ <!--<template slot-scope="scope">-->
|
|
203
|
+ <!--<i class="el-icon-delete" @click="deleteDrug(scope.$index, scope.row)"></i>-->
|
|
204
|
+ <!--</template>-->
|
|
205
|
+ <!--</el-table-column>-->
|
|
206
|
+ <!--</el-table>-->
|
|
207
|
+
|
|
208
|
+ <!--<el-table v-if="activeType == 2" :data="prescription.project" border style="width: 99%;" :row-style="{ color: '#303133' }"-->
|
|
209
|
+ <!--:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>-->
|
|
210
|
+ <!--<el-table-column align="center" type="index" width="40" label="序号"></el-table-column>-->
|
|
211
|
+ <!--<el-table-column align="center" prop="project_name" label="名称">-->
|
|
212
|
+ <!--<template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span></template>-->
|
|
213
|
+ <!--</el-table-column>-->
|
|
214
|
+ <!--<el-table-column align="center" prop="statistical_classification" width="100" label="组">-->
|
|
215
|
+ <!--<template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>-->
|
|
216
|
+ <!--</el-table-column>-->
|
|
217
|
+ <!--<el-table-column align="center" prop="single_dose" width="80" label="单次用量">-->
|
|
218
|
+ <!--<template slot-scope="scope">-->
|
|
219
|
+ <!--<el-input v-model="scope.row.single_dose" placeholder=""></el-input>-->
|
|
220
|
+ <!--</template>-->
|
|
221
|
+ <!--</el-table-column>-->
|
|
222
|
+ <!--<el-table-column align="center" prop="delivery_way" width="80" label="用法">-->
|
|
223
|
+ <!--<template slot-scope="scope">-->
|
|
224
|
+ <!--<el-input v-model="scope.row.delivery_way" placeholder=""></el-input>-->
|
|
225
|
+ <!--</template>-->
|
|
226
|
+ <!--</el-table-column>-->
|
|
227
|
+ <!--<el-table-column align="center" prop="execution_frequency" width="80" label="频率">-->
|
|
228
|
+ <!--<template slot-scope="scope">-->
|
|
229
|
+ <!--<el-input v-model="scope.row.execution_frequency" placeholder=""></el-input>-->
|
|
230
|
+ <!--</template>-->
|
|
231
|
+ <!--</el-table-column>-->
|
|
232
|
+ <!--<el-table-column align="center" prop="number_days" width="50" label="天数">-->
|
|
233
|
+ <!--<template slot-scope="scope">-->
|
|
234
|
+ <!--<el-input v-model="scope.row.number_days" placeholder=""></el-input>-->
|
|
235
|
+ <!--</template>-->
|
|
236
|
+ <!--</el-table-column>-->
|
|
237
|
+ <!--<el-table-column align="center" prop="total" width="70" label="总量">-->
|
|
238
|
+ <!--<template slot-scope="scope">-->
|
|
239
|
+ <!--<div style="display:flex;align-items:center;">-->
|
|
240
|
+ <!--<el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>-->
|
|
241
|
+ <!--<div>{{scope.row.unit}}</div>-->
|
|
242
|
+
|
|
243
|
+ <!--</div>-->
|
|
244
|
+ <!--</template>-->
|
|
245
|
+ <!--</el-table-column>-->
|
|
246
|
+ <!--<el-table-column align="center" prop="name" width="50" label="单价">-->
|
|
247
|
+ <!--<template slot-scope="scope">-->
|
|
248
|
+ <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
|
|
249
|
+ <!--</template>-->
|
|
250
|
+ <!--</el-table-column>-->
|
|
251
|
+ <!--<el-table-column align="center" prop="name" width="50" label="备注">-->
|
|
252
|
+ <!--<template slot-scope="scope">-->
|
|
253
|
+ <!--<el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>-->
|
|
254
|
+ <!--</template>-->
|
|
255
|
+ <!--</el-table-column>-->
|
|
256
|
+ <!--<el-table-column align="center" width="40" prop="name" label="操作">-->
|
|
257
|
+ <!--<template slot-scope="scope">-->
|
|
258
|
+ <!--<i class="el-icon-delete" @click="deleteProject(scope.row,scope.$index)"></i>-->
|
|
259
|
+ <!--</template>-->
|
|
260
|
+ <!--</el-table-column>-->
|
|
261
|
+ <!--</el-table>-->
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+ <div slot="footer" class="dialog-footer">
|
|
265
|
+ <el-button @click="isLastOrNextVisible = false">取 消</el-button>
|
|
266
|
+ <el-button type="primary" @click="AddNewAdvice('adForm')">保存</el-button>
|
|
267
|
+ </div>
|
|
268
|
+ </el-dialog>
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+</template>
|
|
272
|
+
|
|
273
|
+<script>
|
|
274
|
+ export default {
|
|
275
|
+ name: "nextOrLastPrescription",
|
|
276
|
+ data() {
|
|
277
|
+ return {
|
|
278
|
+ allPrescription:[
|
|
279
|
+ {
|
|
280
|
+ title:"12333",
|
|
281
|
+ check_group:[],
|
|
282
|
+ prescriptions:[
|
|
283
|
+ {
|
|
284
|
+ id:5,
|
|
285
|
+
|
|
286
|
+ type:1,
|
|
287
|
+ doctor_advice:[],
|
|
288
|
+ project:[],
|
|
289
|
+ },
|
|
290
|
+ {
|
|
291
|
+ id:8,
|
|
292
|
+ type:1,
|
|
293
|
+ doctor_advice:[],
|
|
294
|
+ project:[],
|
|
295
|
+ },
|
|
296
|
+ {
|
|
297
|
+ id:6,
|
|
298
|
+
|
|
299
|
+ type:2,
|
|
300
|
+ doctor_advice:[],
|
|
301
|
+ project:[],
|
|
302
|
+ },
|
|
303
|
+ {
|
|
304
|
+ id:7,
|
|
305
|
+ type:2,
|
|
306
|
+ doctor_advice:[],
|
|
307
|
+ project:[],
|
|
308
|
+ },
|
|
309
|
+ ],
|
|
310
|
+ }, {
|
|
311
|
+ title:"4567",
|
|
312
|
+ check_group:[],
|
|
313
|
+ prescriptions:[
|
|
314
|
+ {
|
|
315
|
+ id:1,
|
|
316
|
+ type:2,
|
|
317
|
+ doctor_advice:[],
|
|
318
|
+ project:[],
|
|
319
|
+ },
|
|
320
|
+ {
|
|
321
|
+ id:2,
|
|
322
|
+ type:2,
|
|
323
|
+ doctor_advice:[],
|
|
324
|
+ project:[],
|
|
325
|
+ },
|
|
326
|
+ {
|
|
327
|
+ id:3,
|
|
328
|
+
|
|
329
|
+ type:1,
|
|
330
|
+ doctor_advice:[],
|
|
331
|
+ project:[],
|
|
332
|
+ },
|
|
333
|
+ {
|
|
334
|
+ id:4,
|
|
335
|
+
|
|
336
|
+ type:1,
|
|
337
|
+ doctor_advice:[],
|
|
338
|
+ project:[],
|
|
339
|
+ },
|
|
340
|
+ ],
|
|
341
|
+ }
|
|
342
|
+ ],
|
|
343
|
+
|
|
344
|
+ isLastOrNextVisible: true,
|
|
345
|
+
|
|
346
|
+ }
|
|
347
|
+ }
|
|
348
|
+ }
|
|
349
|
+</script>
|
|
350
|
+
|
|
351
|
+<style scoped>
|
|
352
|
+
|
|
353
|
+</style>
|