Sfoglia il codice sorgente

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 4 anni fa
parent
commit
4f2168e6cb

+ 353 - 0
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue Vedi File

@@ -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
+        <el-checkbox label="复选框 A" v-for="(subItem,index2) in item.prescriptions" :key="index2" :label="subItem.id">
28
+          <el-table v-if="subItem.type  == 1" :data="subItem.advices" border style="width: 99%;" :row-style="{ color: '#303133' }"
29
+                    :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
30
+            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
31
+            <el-table-column align="center" prop="drug_name" label="名称">
32
+              <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>
33
+            </el-table-column>
34
+
35
+            <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
36
+              <template slot-scope="scope">
37
+                <div style="display:flex;align-items:center;">
38
+                  <el-input v-model="scope.row.single_dose" style="width:65%;"></el-input>
39
+                  <div>{{scope.row.single_dose_unit}}</div>
40
+                </div>
41
+              </template>
42
+            </el-table-column>
43
+            <el-table-column align="center" prop="delivery_way" width="100" label="用法">
44
+              <template slot-scope="scope">
45
+                {{scope.row.delivery_way}}
46
+              </template>
47
+            </el-table-column>
48
+            <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
49
+              <template slot-scope="scope">
50
+                {{scope.row.execution_frequency}}
51
+              </template>
52
+            </el-table-column>
53
+
54
+
55
+            <el-table-column align="center" prop="day" width="50" label="天数">
56
+              <template slot-scope="scope">
57
+                <el-input v-model="scope.row.day" placeholder=""></el-input>
58
+              </template>
59
+            </el-table-column>
60
+
61
+            <el-table-column align="center" prop="prescribing_number" width="80" label="总量">
62
+              <template slot-scope="scope">
63
+                <div style="display:flex;align-items:center;">
64
+                  <el-input v-model="scope.row.prescribing_number" style="width:60%" placeholder=""></el-input>
65
+                  <div> {{scope.row.prescribing_number_unit}}</div>
66
+                </div>
67
+              </template>
68
+            </el-table-column>
69
+            <el-table-column align="center" prop="retail_price" width="60" label="单价">
70
+              <template slot-scope="scope">
71
+                <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
72
+              </template>
73
+            </el-table-column>
74
+            <el-table-column align="center" prop="remark" width="50" label="备注">
75
+              <template slot-scope="scope">
76
+                <el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
77
+              </template>
78
+            </el-table-column>
79
+          </el-table>
80
+
81
+          <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;" :row-style="{ color: '#303133' }"
82
+                    :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
83
+            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
84
+            <el-table-column align="center" prop="project_name" label="名称">
85
+              <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span></template>
86
+            </el-table-column>
87
+            <el-table-column align="center" prop="statistical_classification" width="100" label="组">
88
+              <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
89
+            </el-table-column>
90
+            <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
91
+              <template slot-scope="scope">
92
+                <el-input v-model="scope.row.single_dose" placeholder=""></el-input>
93
+              </template>
94
+            </el-table-column>
95
+            <el-table-column align="center" prop="delivery_way" width="80" label="用法">
96
+              <template slot-scope="scope">
97
+                <el-input v-model="scope.row.delivery_way" placeholder=""></el-input>
98
+              </template>
99
+            </el-table-column>
100
+            <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
101
+              <template slot-scope="scope">
102
+                <el-input v-model="scope.row.execution_frequency" placeholder=""></el-input>
103
+              </template>
104
+            </el-table-column>
105
+            <el-table-column align="center" prop="number_days" width="50" label="天数">
106
+              <template slot-scope="scope">
107
+                <el-input v-model="scope.row.number_days" placeholder=""></el-input>
108
+              </template>
109
+            </el-table-column>
110
+            <el-table-column align="center" prop="total" width="70" label="总量">
111
+              <template slot-scope="scope">
112
+                <div style="display:flex;align-items:center;">
113
+                  <el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>
114
+                  <div>{{scope.row.unit}}</div>
115
+                </div>
116
+              </template>
117
+            </el-table-column>
118
+            <el-table-column align="center" prop="name" width="50" label="单价">
119
+              <template slot-scope="scope">
120
+                <el-input v-model="scope.row.price" placeholder="" readonly></el-input>
121
+              </template>
122
+            </el-table-column>
123
+            <el-table-column align="center" prop="name" width="50" label="备注">
124
+              <template slot-scope="scope">
125
+                <el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>
126
+              </template>
127
+            </el-table-column>
128
+          </el-table>
129
+
130
+        </el-checkbox>
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>