|
@@ -1,88 +1,45 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div v-loading="loading">
|
3
|
|
- <div class="Dialog" style="width: 11.8rem;" v-show="show_dialog_key == 0">
|
|
3
|
+ <div class="Dialog" style="width: 16.8rem;" v-show="show_dialog_key == 0">
|
4
|
4
|
<div class="DialogTit">
|
5
|
5
|
<div class="back" @click="backAction">
|
6
|
6
|
<span class="iconfont"></span>返回
|
7
|
7
|
</div>
|
8
|
8
|
<h1 class="name">新增医嘱</h1>
|
9
|
|
- <span class="success" @click="comfirmAction">保存</span>
|
|
9
|
+ <span class="success" @click="comfirmAction">完成</span>
|
10
|
10
|
</div>
|
11
|
11
|
<div class="yzNav" style="width:100%;">
|
12
|
|
- <span @click="addOrderByTemplateAction">选择医嘱模板</span>
|
13
|
|
- <span @click="addNewOrderAction">新增医嘱内容</span>
|
14
|
|
- <span @click="modifyOrderAction">修改医嘱内容</span>
|
15
|
|
- <span @click="deleteOrderAction">删除医嘱内容</span>
|
|
12
|
+ <span @click="addOrderByTemplateAction">选择医嘱模板</span>
|
|
13
|
+ <span @click="addNewOrderAction">新增医嘱内容</span>
|
|
14
|
+ <span @click="modifyOrderAction">修改医嘱内容</span>
|
|
15
|
+ <span @click="deleteOrderAction">删除医嘱内容</span>
|
16
|
16
|
</div>
|
17
|
|
- <div class="content clearfix backgroundColor">
|
18
|
|
- <div style="overflow: hidden;">
|
19
|
|
- <div class="cell" style="margin-top: 0;">
|
20
|
|
- <label>医嘱类型</label>
|
21
|
|
- <el-input ref="advice_type" value="临时" disabled></el-input>
|
|
17
|
+ <div class="DialogContent choose" style="height: 6.2rem;" >
|
|
18
|
+ <div class="content clearfix">
|
|
19
|
+ <div style="overflow: hidden;">
|
|
20
|
+ <div class="cell" style="margin-top: 0;">
|
|
21
|
+ <label>医嘱类型</label>
|
|
22
|
+ <el-input ref="advice_type" value="临时" disabled></el-input>
|
|
23
|
+ </div>
|
|
24
|
+ <div class="cell" style="margin-top: 0;">
|
|
25
|
+ <label>开始时间</label>
|
|
26
|
+ <el-input :value="start_time_str" readonly @focus="selectStartTimeAction"></el-input>
|
|
27
|
+ </div>
|
22
|
28
|
</div>
|
23
|
|
- <div class="cell" style="margin-top: 0;">
|
24
|
|
- <label>开始时间</label>
|
25
|
|
- <el-input
|
26
|
|
- :value="start_time_str"
|
27
|
|
- readonly
|
28
|
|
- @focus="selectStartTimeAction"
|
29
|
|
- ></el-input>
|
|
29
|
+ <div style="overflow: hidden;margin-top: 15px" >
|
|
30
|
+ <div class="cell" style="margin-top: 0;">
|
|
31
|
+ <label>开嘱医生: {{$store.getters.user.user.user_name}}</label>
|
|
32
|
+ </div>
|
|
33
|
+ <div class="cell" style="margin-top: 0;">
|
|
34
|
+ <label>开嘱时间 {{record_date_str}}</label>
|
|
35
|
+ </div>
|
30
|
36
|
</div>
|
31
|
|
- </div>
|
32
|
|
- <div style="overflow: hidden;margin-top: 15px">
|
33
|
|
- <div class="cell" style="margin-top: 0;">
|
34
|
|
- <label>开嘱医生: {{ $store.getters.user.user.user_name }}</label>
|
35
|
|
- </div>
|
36
|
|
- <div class="cell" style="margin-top: 0;">
|
37
|
|
- <label>开嘱时间 {{ record_date_str }}</label>
|
38
|
|
- </div>
|
39
|
|
- </div>
|
40
|
|
-
|
41
|
|
- <!-- <el-table :data="advices" border style="width: 100%" :row-class-name="tableRowClassName" @row-click="clickAdviceAction">
|
42
|
|
- <el-table-column fixed prop="date" label="医嘱内容" width="150">
|
43
|
|
- <template slot-scope="scope">
|
44
|
|
- {{ scope.row.title }}
|
45
|
|
- </template>
|
46
|
|
- </el-table-column>
|
47
|
|
- <el-table-column prop="name" label="药品规格" width="120">
|
48
|
|
- <template slot-scope="scope">
|
49
|
|
- {{ scope.row.prescribing_number }}{{ scope.row.prescribing_number_unit }}
|
50
|
|
- </template>
|
51
|
|
- </el-table-column>
|
52
|
|
- <el-table-column prop="province" label="开药数量" width="120">
|
53
|
|
- <template slot-scope="scope">
|
54
|
|
- {{ scope.row.prescribing_number }}{{ scope.row.prescribing_number_unit }}
|
55
|
|
- </template>
|
56
|
|
- </el-table-column>
|
57
|
|
- <el-table-column prop="city" label="单次用量" width="120">
|
58
|
|
- <template slot-scope="scope">
|
59
|
|
-
|
60
|
|
- </template>
|
61
|
|
- </el-table-column>
|
62
|
|
- <el-table-column prop="address" label="给药途径" width="300">
|
63
|
|
- <template slot-scope="scope">
|
64
|
|
- {{ scope.row.delivery_way }}
|
65
|
|
- </template>
|
66
|
|
- </el-table-column>
|
67
|
|
- <el-table-column prop="zip" label="执行频率" width="120">
|
68
|
|
- <template slot-scope="scope">
|
69
|
|
- {{ scope.row.execution_frequency }}
|
70
|
|
- </template>
|
71
|
|
- </el-table-column>
|
72
|
|
- </el-table>-->
|
73
|
|
- </div>
|
74
|
|
- <div
|
75
|
|
- id="newDialogContent"
|
76
|
|
- class="DialogContent choose"
|
77
|
|
- style="height: 6.2rem;"
|
78
|
|
- >
|
79
|
|
- <div class="newAddTable">
|
80
|
37
|
<table class="table">
|
81
|
38
|
<tr>
|
82
|
|
- <th width="26%">医嘱内容</th>
|
|
39
|
+ <th width="30%">医嘱内容</th>
|
83
|
40
|
<th width="20%">药品规格</th>
|
84
|
|
- <th width="12%">开药数量</th>
|
85
|
|
- <th width="12%">单次用量</th>
|
|
41
|
+ <th width="10%">开药数量</th>
|
|
42
|
+ <th width="10%">单次用量</th>
|
86
|
43
|
<th width="15%">给药途径</th>
|
87
|
44
|
<th width="15%">执行频率</th>
|
88
|
45
|
</tr>
|
|
@@ -90,65 +47,32 @@
|
90
|
47
|
<tr
|
91
|
48
|
:key="advice_index"
|
92
|
49
|
@click="clickAdviceAction(advice_index)"
|
93
|
|
- :class="{
|
94
|
|
- 'row-class-active':
|
95
|
|
- advice_index == selecting_advice_index &&
|
96
|
|
- selecting_subdrug_index < 0
|
97
|
|
- }"
|
|
50
|
+ :class="{ 'row-class-active': (advice_index == selecting_advice_index && selecting_subdrug_index < 0) }"
|
98
|
51
|
>
|
99
|
52
|
<td
|
100
|
53
|
style="text-align: left; padding-left: 5px; padding-right: 5px;"
|
101
|
|
- >
|
102
|
|
- {{ advice.title }}
|
103
|
|
- </td>
|
104
|
|
-
|
105
|
|
- <td v-if="advice.advice_desc">
|
106
|
|
- {{ advice.advice_desc }}{{ advice.drug_spec_unit }}
|
107
|
|
- </td>
|
108
|
|
-
|
109
|
|
- <td v-if="advice.prescribing_number">
|
110
|
|
- {{ advice.prescribing_number
|
111
|
|
- }}{{ advice.prescribing_number_unit }}
|
112
|
|
- </td>
|
|
54
|
+ >{{ advice.title }}</td>
|
|
55
|
+ <td v-if="advice.advice_desc">{{ advice.advice_desc }}{{advice.drug_spec_unit}}</td>
|
|
56
|
+ <td v-if="advice.prescribing_number">{{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</td>
|
113
|
57
|
<td v-else></td>
|
114
|
|
- <td v-if="advice.single_dose">
|
115
|
|
- {{ advice.single_dose }} {{ advice.single_dose_unit }}
|
116
|
|
- </td>
|
|
58
|
+ <td v-if="advice.single_dose">{{ advice.single_dose }} {{ advice.single_dose_unit }}</td>
|
117
|
59
|
<td v-else></td>
|
118
|
|
-
|
119
|
60
|
<td>{{ advice.delivery_way }}</td>
|
120
|
|
-
|
121
|
61
|
<td>{{ advice.execution_frequency }}</td>
|
122
|
62
|
</tr>
|
123
|
63
|
<tr
|
124
|
64
|
v-for="(subdrug, subdrug_index) in advice.subdrugs"
|
125
|
65
|
:key="advice_index + '_' + subdrug_index"
|
126
|
66
|
@click="clickSubdrugAction(advice_index, subdrug_index)"
|
127
|
|
- :class="{
|
128
|
|
- 'row-class-active':
|
129
|
|
- advice_index == selecting_advice_index &&
|
130
|
|
- subdrug_index == selecting_subdrug_index
|
131
|
|
- }"
|
|
67
|
+ :class="{ 'row-class-active': (advice_index == selecting_advice_index && subdrug_index == selecting_subdrug_index) }"
|
132
|
68
|
>
|
133
|
69
|
<td
|
134
|
70
|
style="text-align: left; padding-right: 5px; padding-left: 25px;"
|
135
|
|
- >
|
136
|
|
- {{ subdrug.title }}
|
137
|
|
- </td>
|
138
|
|
- <td>{{ subdrug.advice_desc }} {{ subdrug.drug_spec_unit }}</td>
|
139
|
|
- <td>
|
140
|
|
- <span v-if="subdrug.prescribing_number"
|
141
|
|
- >{{ subdrug.prescribing_number
|
142
|
|
- }}{{ subdrug.prescribing_number_unit }}</span
|
143
|
|
- >
|
144
|
|
- </td>
|
145
|
|
- <td>
|
146
|
|
- <span v-if="subdrug.single_dose"
|
147
|
|
- >{{ subdrug.single_dose }}
|
148
|
|
- {{ subdrug.single_dose_unit }}</span
|
149
|
|
- >
|
150
|
|
- </td>
|
151
|
|
-
|
|
71
|
+ >{{ subdrug.title }}</td>
|
|
72
|
+ <td>{{ subdrug.advice_desc }} {{subdrug.drug_spec_unit}}</td>
|
|
73
|
+ <td><span v-if="subdrug.prescribing_number">{{ subdrug.prescribing_number }}{{ subdrug.prescribing_number_unit }}</span></td>
|
|
74
|
+ <td><span v-if="subdrug.single_dose">{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</span></td>
|
|
75
|
+ <!--<td v-if="subdrug.single_dose">{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</td>-->
|
152
|
76
|
<td></td>
|
153
|
77
|
<td></td>
|
154
|
78
|
</tr>
|
|
@@ -230,7 +154,7 @@ export default {
|
230
|
154
|
},
|
231
|
155
|
drug_spec_unit_options: {
|
232
|
156
|
type: Array,
|
233
|
|
- default: function() {
|
|
157
|
+ default: function () {
|
234
|
158
|
return [];
|
235
|
159
|
}
|
236
|
160
|
},
|
|
@@ -360,7 +284,7 @@ export default {
|
360
|
284
|
prescribing_number_unit: advice.prescribing_number_unit,
|
361
|
285
|
delivery_way: advice.delivery_way,
|
362
|
286
|
execution_frequency: advice.execution_frequency,
|
363
|
|
- remark: advice.remark,
|
|
287
|
+ remark : advice.remark,
|
364
|
288
|
subdrugs: []
|
365
|
289
|
};
|
366
|
290
|
for (let s_i = 0; s_i < advice.subdrugs.length; s_i++) {
|
|
@@ -412,7 +336,7 @@ export default {
|
412
|
336
|
},
|
413
|
337
|
didSelectTemplateAdvice: function(resp_advices) {
|
414
|
338
|
this.show_dialog_key = 0;
|
415
|
|
- var advices = [];
|
|
339
|
+ var advices = []
|
416
|
340
|
for (let index = 0; index < resp_advices.length; index++) {
|
417
|
341
|
const adv = resp_advices[index];
|
418
|
342
|
if (adv.parent_id == 0) {
|
|
@@ -429,7 +353,7 @@ export default {
|
429
|
353
|
prescribing_number: adv.prescribing_number,
|
430
|
354
|
prescribing_number_unit: adv.prescribing_number_unit,
|
431
|
355
|
subdrugs: []
|
432
|
|
- });
|
|
356
|
+ })
|
433
|
357
|
}
|
434
|
358
|
}
|
435
|
359
|
for (let r_a_i = 0; r_a_i < resp_advices.length; r_a_i++) {
|
|
@@ -542,6 +466,7 @@ export default {
|
542
|
466
|
advice.prescribing_number = order.prescribing_number;
|
543
|
467
|
advice.prescribing_number_unit = order.prescribing_number_unit;
|
544
|
468
|
advice.remark = order.remark;
|
|
469
|
+
|
545
|
470
|
} else {
|
546
|
471
|
var subdrug = advice.subdrugs[this.selecting_subdrug_index];
|
547
|
472
|
subdrug.title = order.title;
|
|
@@ -560,24 +485,8 @@ export default {
|
560
|
485
|
</script>
|
561
|
486
|
|
562
|
487
|
<style style="stylesheet/scss" lang="scss" scoped>
|
563
|
|
-#newDialogContent {
|
564
|
|
- @media only screen and (max-width: 415px) {
|
565
|
|
- height: 10.8rem !important;
|
566
|
|
- }
|
567
|
|
- @media only screen and (min-width: 768px) {
|
568
|
|
- height: 7.8rem !important;
|
569
|
|
- }
|
570
|
|
-}
|
571
|
|
-.backgroundColor {
|
572
|
|
- background: #fff;
|
573
|
|
-}
|
574
|
|
-.newAddTable {
|
575
|
|
- width: 100%;
|
576
|
|
- // overflow: auto;
|
577
|
|
-}
|
578
|
488
|
.table {
|
579
|
|
- width: 768px;
|
580
|
|
- overflow-x: scroll;
|
|
489
|
+ width: 100%;
|
581
|
490
|
// margin-top: 0rem;
|
582
|
491
|
tr {
|
583
|
492
|
th {
|
|
@@ -601,7 +510,7 @@ export default {
|
601
|
510
|
height: 0.6rem;
|
602
|
511
|
line-height: 0.6rem;
|
603
|
512
|
color: $pgh-color;
|
604
|
|
- font-size: 0.45rem;
|
|
513
|
+ font-size: 0.32rem;
|
605
|
514
|
}
|
606
|
515
|
select {
|
607
|
516
|
width: 100%;
|
|
@@ -634,7 +543,7 @@ export default {
|
634
|
543
|
}
|
635
|
544
|
|
636
|
545
|
.row-class-active > td {
|
637
|
|
- background: #badcff !important;
|
|
546
|
+ background: #badcff!important;
|
638
|
547
|
}
|
639
|
548
|
}
|
640
|
549
|
</style>
|