|
@@ -2,7 +2,7 @@
|
2
|
2
|
<div id='prescriptionPrint'>
|
3
|
3
|
<div v-for="(item,index) in advicePrint" :key="index">
|
4
|
4
|
<div id='prescription-print' class="prescription-print" style="page-break-after: always;">
|
5
|
|
- <div class="printTitle">{{orgname}} 血液透析中心处方笺</div>
|
|
5
|
+ <div class="printTitle">血液透析中心处方笺</div>
|
6
|
6
|
<div class="infoTitle">
|
7
|
7
|
<p>姓名:{{item.patient.name?item.patient.name:""}}</p>
|
8
|
8
|
<p>性别:
|
|
@@ -69,8 +69,8 @@ export default {
|
69
|
69
|
prescriptionInfo:[],
|
70
|
70
|
hisPatient:{},
|
71
|
71
|
department:[],
|
72
|
|
- prescriptions:[],
|
73
|
|
- orgname:""
|
|
72
|
+ prescriptions:[]
|
|
73
|
+
|
74
|
74
|
}
|
75
|
75
|
},
|
76
|
76
|
methods:{
|
|
@@ -150,6 +150,7 @@ export default {
|
150
|
150
|
return name
|
151
|
151
|
},
|
152
|
152
|
getTotalOne(id) {
|
|
153
|
+ console.log("处方数据",this.prescriptions)
|
153
|
154
|
var total = 0
|
154
|
155
|
var addtotal = 0
|
155
|
156
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
|
@@ -161,14 +162,15 @@ export default {
|
161
|
162
|
}
|
162
|
163
|
|
163
|
164
|
if (this.prescriptions[i].additionalcharge != null) {
|
164
|
|
- for (let b = 0; b < this.prescriptions[i].additionalcharge.length; b++) {
|
165
|
|
- addtotal = addtotal + this.prescriptions[i].additionalcharge[b].price * this.prescriptions[i].additionalcharge[b].count
|
|
165
|
+ for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
|
|
166
|
+ addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
|
166
|
167
|
}
|
167
|
168
|
}
|
168
|
169
|
addtotal = Math.floor(addtotal * 100) / 100
|
169
|
170
|
}
|
|
171
|
+
|
|
172
|
+ return total + addtotal
|
170
|
173
|
}
|
171
|
|
- return total + addtotal
|
172
|
174
|
},
|
173
|
175
|
|
174
|
176
|
|
|
@@ -178,12 +180,11 @@ export default {
|
178
|
180
|
this.getInitData()
|
179
|
181
|
this.getPrescriptionPrint()
|
180
|
182
|
this.getHisPatientDetail()
|
181
|
|
- var xtuser = this.$store.getters.xt_user
|
182
|
|
- this.orgname = xtuser.org.org_name
|
|
183
|
+
|
183
|
184
|
|
184
|
185
|
},
|
185
|
186
|
watch:{
|
186
|
|
- ids:function(val){
|
|
187
|
+ ids:function(val){
|
187
|
188
|
this.ids = val
|
188
|
189
|
this.getPrescriptionPrint()
|
189
|
190
|
}
|