|
@@ -1,44 +1,4 @@
|
1
|
1
|
<template>
|
2
|
|
- <div>
|
3
|
|
- <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
|
4
|
|
- <div class="printTitle">血液透析中心处方笺</div>
|
5
|
|
- <div class="infoTitle">
|
6
|
|
- <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
|
7
|
|
- <p>性别:
|
8
|
|
- <span v-if="item.patient.gender == 1">男</span>
|
9
|
|
- <span v-if="item.patient.gender == 2">女</span>
|
10
|
|
- </p>
|
11
|
|
- <p>年龄:{{item.patient.age?item.patient.age:""}}岁</p>
|
12
|
|
- </div>
|
13
|
|
- <div class="infoMain">
|
14
|
|
- <div style="margin-bottom: 10px;">门诊号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
|
15
|
|
- <div style="margin-bottom: 10px;">科室:{{getDepart(item.hisPatient.departments?item.hisPatient.departments:"")}}</div>
|
16
|
|
- <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
|
17
|
|
- <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
|
18
|
|
- <div>地址:{{item.patient.home_address}}</div>
|
19
|
|
- <div style="display:flex;width:50%;">临床诊断:{{item.patient.diagnose}}</div>
|
20
|
|
- </div>
|
21
|
|
- <div class="prescriptionBox">
|
22
|
|
- <div class="Rp">Rp:</div>
|
23
|
|
- <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
|
24
|
|
- <div class="drugsOne">{{it.advice_name?it.advice_name:""}} {{it.single_dose}}{{it.single_dose_unit}} × {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
|
25
|
|
- <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span> <span>{{it.execution_frequency}}</span> <span>{{it.advice_desc}}</span></div>
|
26
|
|
- </div>
|
27
|
|
- <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
|
28
|
|
- <div class="drugsOne">{{it.item_name?it.item_name:""}}: {{it.price}}元/{{it.count}}次</div>
|
29
|
|
- </div>
|
30
|
|
- </div>
|
31
|
|
- <div class="doctorBox">
|
32
|
|
- <p>医师:{{item.doctor?item.doctor:""}}</p>
|
33
|
|
- <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
|
34
|
|
- </div>
|
35
|
|
- <div class="actionBar">
|
36
|
|
- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
|
37
|
|
- <p>配对:{{getDoctor(item.advices[0].advice_doctor)?getDoctor(item.advices[0].advice_doctor):""}}</p>
|
38
|
|
- <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
|
39
|
|
- <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
|
40
|
|
- <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p>
|
41
|
|
- </div>
|
42
|
2
|
<div id='prescriptionPrint'>
|
43
|
3
|
<div v-for="(item,index) in advicePrint" :key="index">
|
44
|
4
|
<div id='prescription-print' class="prescription-print" style="page-break-after: always;">
|
|
@@ -65,25 +25,29 @@
|
65
|
25
|
<div class="drugsOne">{{it.advice_name?it.advice_name:""}} {{it.single_dose}}{{it.single_dose_unit}} × {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
|
66
|
26
|
<div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span> <span>{{it.execution_frequency}}</span> <span>{{it.advice_desc}}</span></div>
|
67
|
27
|
</div>
|
|
28
|
+ <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
|
|
29
|
+ <div class="drugsOne">{{it.item_name?it.item_name:""}}: {{it.price}}元/{{it.count}}次</div>
|
|
30
|
+ </div>
|
|
31
|
+
|
68
|
32
|
</div>
|
69
|
33
|
<div class="doctorBox">
|
70
|
34
|
<p>医师:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
|
71
|
35
|
<p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
|
72
|
36
|
</div>
|
73
|
37
|
<div class="actionBar">
|
74
|
|
- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
|
75
|
|
- <p>配对:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
|
76
|
|
- <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
|
77
|
|
- <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
|
78
|
|
- <p>药费:</p>
|
|
38
|
+ <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
|
|
39
|
+ <p>配对:{{getDoctor(item.advices[0].advice_doctor)?getDoctor(item.advices[0].advice_doctor):""}}</p>
|
|
40
|
+ <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
|
|
41
|
+ <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
|
|
42
|
+ <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p>
|
79
|
43
|
</div>
|
80
|
44
|
<div style="page-break-after:always"></div>
|
81
|
45
|
</div>
|
82
|
46
|
</div>
|
83
|
|
-
|
|
47
|
+
|
84
|
48
|
</div>
|
85
|
49
|
|
86
|
|
-
|
|
50
|
+
|
87
|
51
|
</template>
|
88
|
52
|
<script>
|
89
|
53
|
import { jsGetAge, uParseTime } from '@/utils/tools'
|
|
@@ -94,7 +58,7 @@ export default {
|
94
|
58
|
patient_id:Number,
|
95
|
59
|
record_date:String,
|
96
|
60
|
prescription_id:Number
|
97
|
|
- },
|
|
61
|
+ },
|
98
|
62
|
data(){
|
99
|
63
|
return {
|
100
|
64
|
doctorList:[],
|
|
@@ -105,18 +69,19 @@ export default {
|
105
|
69
|
hisPatient:{},
|
106
|
70
|
department:[],
|
107
|
71
|
prescriptions:[]
|
|
72
|
+
|
108
|
73
|
}
|
109
|
74
|
},
|
110
|
75
|
methods:{
|
111
|
|
-
|
|
76
|
+
|
112
|
77
|
getAllDoctorList(){
|
113
|
78
|
getAllDoctorList().then(response=>{
|
114
|
79
|
if(response.data.state == 1){
|
115
|
80
|
var doctor = response.data.data.doctor
|
116
|
|
- console.log("医生列表数据",doctor)
|
|
81
|
+
|
117
|
82
|
this.doctorList = doctor
|
118
|
83
|
}
|
119
|
|
- })
|
|
84
|
+ })
|
120
|
85
|
},
|
121
|
86
|
|
122
|
87
|
getDoctor(id){
|
|
@@ -144,14 +109,13 @@ export default {
|
144
|
109
|
prescription_id:this.$route.query.prescription_id,
|
145
|
110
|
ids:this.$route.query.ids
|
146
|
111
|
}
|
147
|
|
- console.log("params---",params)
|
|
112
|
+ console.log("params",params)
|
148
|
113
|
getPrescriptionPrint(params).then(response=>{
|
149
|
114
|
if(response.data.state == 1){
|
150
|
115
|
var advicePrint = response.data.data.advicePrint
|
151
|
116
|
console.log("adviceprint9999",advicePrint)
|
152
|
117
|
this.advicePrint = advicePrint
|
153
|
118
|
this.prescriptions = advicePrint
|
154
|
|
-
|
155
|
119
|
}
|
156
|
120
|
})
|
157
|
121
|
},
|
|
@@ -171,7 +135,7 @@ export default {
|
171
|
135
|
getInitData().then(response=>{
|
172
|
136
|
if(response.data.state == 1){
|
173
|
137
|
this.department = response.data.data.department
|
174
|
|
-
|
|
138
|
+
|
175
|
139
|
}
|
176
|
140
|
})
|
177
|
141
|
},
|
|
@@ -184,9 +148,8 @@ export default {
|
184
|
148
|
}
|
185
|
149
|
return name
|
186
|
150
|
},
|
187
|
|
-
|
188
|
151
|
getTotalOne(id) {
|
189
|
|
-
|
|
152
|
+
|
190
|
153
|
var total = 0
|
191
|
154
|
var addtotal = 0
|
192
|
155
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
|
@@ -196,7 +159,7 @@ export default {
|
196
|
159
|
total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
|
197
|
160
|
}
|
198
|
161
|
}
|
199
|
|
-
|
|
162
|
+
|
200
|
163
|
if (this.prescriptions[i].additionalcharge != null) {
|
201
|
164
|
for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
|
202
|
165
|
addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
|
|
@@ -206,8 +169,7 @@ export default {
|
206
|
169
|
}
|
207
|
170
|
return total + addtotal
|
208
|
171
|
}
|
209
|
|
- },
|
210
|
|
-
|
|
172
|
+ },
|
211
|
173
|
|
212
|
174
|
|
213
|
175
|
},
|
|
@@ -217,7 +179,7 @@ export default {
|
217
|
179
|
this.getPrescriptionPrint()
|
218
|
180
|
this.getHisPatientDetail()
|
219
|
181
|
|
220
|
|
-
|
|
182
|
+
|
221
|
183
|
},
|
222
|
184
|
// watch:{
|
223
|
185
|
// patient_id:function(val){
|
|
@@ -286,7 +248,7 @@ export default {
|
286
|
248
|
}
|
287
|
249
|
.actionBar{
|
288
|
250
|
display: flex;
|
289
|
|
- justify-content: space-between;
|
|
251
|
+ justify-content: space-between;
|
290
|
252
|
line-height: 24px;
|
291
|
253
|
padding:0 10px;
|
292
|
254
|
}
|