|
@@ -0,0 +1,206 @@
|
|
1
|
+<template>
|
|
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 align="center" type="index" width="40" label="序号"></el-table-column>
|
|
7
|
+ <el-table-column 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="单次用量">
|
|
12
|
+ <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>
|
|
15
|
+ </template>
|
|
16
|
+ </el-table-column>
|
|
17
|
+ <el-table-column align="center" prop="name" width="100" label="用法">
|
|
18
|
+ <template slot-scope="scope">
|
|
19
|
+ <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
|
|
20
|
+ <div> {{scope.row.delivery_way}}</div>
|
|
21
|
+
|
|
22
|
+ </template>
|
|
23
|
+ </el-table-column>
|
|
24
|
+ <el-table-column align="center" prop="name" width="100" label="频率">
|
|
25
|
+ <template slot-scope="scope">
|
|
26
|
+ <div> {{scope.row.execution_frequency}}</div>
|
|
27
|
+
|
|
28
|
+ <!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
|
|
29
|
+ </template>
|
|
30
|
+ </el-table-column>
|
|
31
|
+
|
|
32
|
+ <el-table-column align="center" prop="day" width="50" label="天数">
|
|
33
|
+ <template slot-scope="scope">{{scope.row.day}}天</template>
|
|
34
|
+ </el-table-column>
|
|
35
|
+
|
|
36
|
+ <el-table-column align="center" prop="name" width="100" label="总量">
|
|
37
|
+ <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>
|
|
40
|
+ </template>
|
|
41
|
+ </el-table-column>
|
|
42
|
+ <el-table-column align="center" prop="name" width="60" label="单价">
|
|
43
|
+ <template slot-scope="scope">
|
|
44
|
+ <div> {{scope.row.retail_price}}元</div>
|
|
45
|
+
|
|
46
|
+ <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
|
|
47
|
+ </template>
|
|
48
|
+ </el-table-column>
|
|
49
|
+ <el-table-column align="center" prop="name" width="50" label="备注">
|
|
50
|
+ <template slot-scope="scope">
|
|
51
|
+ <!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>-->
|
|
52
|
+ <div> {{scope.row.remark}}</div>
|
|
53
|
+ </template>
|
|
54
|
+ </el-table-column>
|
|
55
|
+ </el-table>
|
|
56
|
+ <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
|
|
57
|
+ :row-style="{ color: '#303133' }"
|
|
58
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
|
59
|
+ <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
|
|
60
|
+ <el-table-column align="center" prop="project_name" label="名称">
|
|
61
|
+ <template slot-scope="scope">{{ scope.row.project_name }}</template>
|
|
62
|
+ </el-table-column>
|
|
63
|
+ <el-table-column align="center" prop="statistical_classification" width="100" label="组">
|
|
64
|
+ <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
|
|
65
|
+ </el-table-column>
|
|
66
|
+ <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
|
|
67
|
+ <template slot-scope="scope">{{scope.row.single_dose}}{{scope.row.unit}}</template>
|
|
68
|
+
|
|
69
|
+ </el-table-column>
|
|
70
|
+ <el-table-column align="center" prop="delivery_way" width="80" label="用法">
|
|
71
|
+ <template slot-scope="scope">
|
|
72
|
+ <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
|
|
73
|
+ {{scope.row.delivery_way}}
|
|
74
|
+
|
|
75
|
+ </template>
|
|
76
|
+ </el-table-column>
|
|
77
|
+ <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
|
|
78
|
+ <template slot-scope="scope">
|
|
79
|
+ <!--<el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>-->
|
|
80
|
+ {{scope.row.execution_frequency}}
|
|
81
|
+
|
|
82
|
+ </template>
|
|
83
|
+ </el-table-column>
|
|
84
|
+ <el-table-column align="center" prop="number_days" width="50" label="天数">
|
|
85
|
+ <template slot-scope="scope">
|
|
86
|
+ <!--<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>-->
|
|
87
|
+ {{scope.row.number_days}}天
|
|
88
|
+
|
|
89
|
+ </template>
|
|
90
|
+
|
|
91
|
+ </el-table-column>
|
|
92
|
+ <el-table-column align="center" prop="total" width="50" label="总量">
|
|
93
|
+ <template slot-scope="scope">
|
|
94
|
+ <div style="display:flex;">
|
|
95
|
+ <!--<el-input v-model="scope.row.total" placeholder="" readonly></el-input>-->
|
|
96
|
+ {{scope.row.total}} {{scope.row.unit}}
|
|
97
|
+
|
|
98
|
+ </div>
|
|
99
|
+ </template>
|
|
100
|
+ </el-table-column>
|
|
101
|
+ <el-table-column align="center" prop="name" width="50" label="单价">
|
|
102
|
+ <template slot-scope="scope">
|
|
103
|
+ <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
|
|
104
|
+ {{scope.row.price}}元
|
|
105
|
+
|
|
106
|
+ </template>
|
|
107
|
+ </el-table-column>
|
|
108
|
+ <el-table-column align="center" prop="name" width="50" label="备注">
|
|
109
|
+ <template slot-scope="scope">
|
|
110
|
+ <!--<el-input v-model="scope.row.remark" readonly></el-input>-->
|
|
111
|
+ {{scope.row.remark}}
|
|
112
|
+
|
|
113
|
+ </template>
|
|
114
|
+ </el-table-column>
|
|
115
|
+ </el-table>
|
|
116
|
+
|
|
117
|
+ <div class="additionalBox">
|
|
118
|
+ <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
|
|
119
|
+ <span :title="item.item_name">{{item.item_name}}</span>
|
|
120
|
+ <el-input v-model="item.price" placeholder="" style="width:50px;" readonly></el-input>
|
|
121
|
+ 共
|
|
122
|
+ <el-input v-model="item.count" placeholder="" style="width:50px;" readonly></el-input>
|
|
123
|
+ 次
|
|
124
|
+ <!--<i class="el-icon-delete deleteIcon" @click="delAddition(index,item)"></i>-->
|
|
125
|
+ </div>
|
|
126
|
+ </div>
|
|
127
|
+ </div>
|
|
128
|
+</template>
|
|
129
|
+
|
|
130
|
+<script>
|
|
131
|
+import { getInitData } from '@/api/his/his'
|
|
132
|
+import { getDictionaryDataConfig} from "@/utils/data";
|
|
133
|
+
|
|
134
|
+export default {
|
|
135
|
+ props: {
|
|
136
|
+ prescription: Object
|
|
137
|
+ },
|
|
138
|
+ data() {
|
|
139
|
+ return {
|
|
140
|
+ drugways: [],
|
|
141
|
+ efs: []
|
|
142
|
+ }
|
|
143
|
+ }, mounted() {
|
|
144
|
+ getInitData().then(response => {
|
|
145
|
+ if (response.data.state == 0) {
|
|
146
|
+ this.$message.error(response.data.msg);
|
|
147
|
+ return false
|
|
148
|
+ } else {
|
|
149
|
+ this.drugways = response.data.data.drugways;
|
|
150
|
+ this.efs = response.data.data.efs
|
|
151
|
+ }
|
|
152
|
+ })
|
|
153
|
+ }, methods: {
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+ getGroup(id){
|
|
157
|
+ var name = "";
|
|
158
|
+ var statistics_category = getDictionaryDataConfig('system','statistics_category');
|
|
159
|
+ console.log("2235",statistics_category);
|
|
160
|
+ for(let i=0;i<statistics_category.length;i++){
|
|
161
|
+ if(id == statistics_category[i].id){
|
|
162
|
+ name = statistics_category[i].name
|
|
163
|
+ }
|
|
164
|
+ }
|
|
165
|
+ return name
|
|
166
|
+ },
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+ }
|
|
170
|
+}
|
|
171
|
+</script>
|
|
172
|
+
|
|
173
|
+<style lang="scss">
|
|
174
|
+.prescriptionTable{
|
|
175
|
+.additionalBox{
|
|
176
|
+ margin-top: 20px;
|
|
177
|
+ display: flex;
|
|
178
|
+ flex-wrap: wrap;
|
|
179
|
+.additionalOne{
|
|
180
|
+ margin-right:20px;
|
|
181
|
+ margin-bottom:10px;
|
|
182
|
+ display: flex;
|
|
183
|
+ align-items: center;
|
|
184
|
+>span{
|
|
185
|
+ white-space: nowrap;
|
|
186
|
+ overflow: hidden;
|
|
187
|
+ text-overflow: ellipsis;
|
|
188
|
+ width:80px;
|
|
189
|
+ display: inline-block;
|
|
190
|
+ font-size: 14px;
|
|
191
|
+}
|
|
192
|
+}
|
|
193
|
+.deleteIcon{
|
|
194
|
+ color:red;
|
|
195
|
+ margin-left:5px;
|
|
196
|
+}
|
|
197
|
+}
|
|
198
|
+.el-table th .cell, .el-table td .cell{
|
|
199
|
+ padding: 0 2px;
|
|
200
|
+ white-space: pre-line;
|
|
201
|
+}
|
|
202
|
+.el-icon-delete{
|
|
203
|
+ color:red;
|
|
204
|
+}
|
|
205
|
+}
|
|
206
|
+</style>
|