|
@@ -24,7 +24,7 @@
|
24
|
24
|
<div v-for="(item,index) in allPrescription" :key="index">
|
25
|
25
|
<div>{{item.title}}</div>
|
26
|
26
|
<el-checkbox-group v-model="item.check_group">
|
27
|
|
- <el-checkbox label="复选框 A" v-for="(subItem,index2) in item.prescriptions" :key="index2" :label="subItem.id">
|
|
27
|
+ <el-checkbox label="复选框 A" v-for="(subItem,index2) in item.prescriptions" :key="index2" :label="subItem.id" >
|
28
|
28
|
<el-table v-if="subItem.type == 1" :data="subItem.advices" border style="width: 99%;" :row-style="{ color: '#303133' }"
|
29
|
29
|
:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
30
|
30
|
<el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
|
|
@@ -133,137 +133,9 @@
|
133
|
133
|
</div>
|
134
|
134
|
|
135
|
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
|
136
|
<div slot="footer" class="dialog-footer">
|
265
|
137
|
<el-button @click="isLastOrNextVisible = false">取 消</el-button>
|
266
|
|
- <el-button type="primary" @click="AddNewAdvice('adForm')">保存</el-button>
|
|
138
|
+ <el-button type="primary" @click="save">保存</el-button>
|
267
|
139
|
</div>
|
268
|
140
|
</el-dialog>
|
269
|
141
|
|
|
@@ -318,6 +190,7 @@
|
318
|
190
|
project:[],
|
319
|
191
|
},
|
320
|
192
|
{
|
|
193
|
+
|
321
|
194
|
id:2,
|
322
|
195
|
type:2,
|
323
|
196
|
doctor_advice:[],
|
|
@@ -344,6 +217,13 @@
|
344
|
217
|
isLastOrNextVisible: true,
|
345
|
218
|
|
346
|
219
|
}
|
|
220
|
+ },methods:{
|
|
221
|
+ save(){
|
|
222
|
+ console.log(this.allPrescription)
|
|
223
|
+ }
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
347
|
227
|
}
|
348
|
228
|
}
|
349
|
229
|
</script>
|