|
@@ -52,7 +52,7 @@
|
52
|
52
|
<td></td>
|
53
|
53
|
<td>{{it.remark}}</td>
|
54
|
54
|
<td>{{it.day}}</td>
|
55
|
|
-
|
|
55
|
+
|
56
|
56
|
</tr>
|
57
|
57
|
</table>
|
58
|
58
|
</div>
|
|
@@ -91,6 +91,100 @@
|
91
|
91
|
</tr>
|
92
|
92
|
</table>
|
93
|
93
|
</div>
|
|
94
|
+ <div id='prescriptionPrint'>
|
|
95
|
+ <div v-for="(item,index) in advicePrint" :key="index">
|
|
96
|
+ <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
|
|
97
|
+ <div style="display:flex;justify-content: space-between;font-weight:bold;">
|
|
98
|
+ <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
|
|
99
|
+ <span>费别</span>
|
|
100
|
+ <span>自费</span>
|
|
101
|
+ <span>公费</span>
|
|
102
|
+ <span>保险</span>
|
|
103
|
+ <span>其他</span>
|
|
104
|
+ </div>
|
|
105
|
+ <div>就诊日期:{{getTime(item.ctime)}}</div>
|
|
106
|
+ </div>
|
|
107
|
+ <div class="printTitle">血液透析中心</div>
|
|
108
|
+ <div class="printTitle">处方、治疗单</div>
|
|
109
|
+ <div class="infoTitle">
|
|
110
|
+ <div>门诊编号:</div>
|
|
111
|
+ <div>电脑号:</div>
|
|
112
|
+ </div>
|
|
113
|
+ <div class="infoMain">
|
|
114
|
+ <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
|
|
115
|
+ <div style="margin-bottom: 10px;width:25%">性别:
|
|
116
|
+ <span v-if="item.patient.gender == 1">男</span>
|
|
117
|
+ <span v-if="item.patient.gender == 2">女</span>
|
|
118
|
+ </div>
|
|
119
|
+ <div style="margin-bottom: 10px;width:25%">年龄:
|
|
120
|
+ <span>{{item.patient.age}}</span>
|
|
121
|
+ </div>
|
|
122
|
+ <div style="margin-bottom: 10px;width:25%">参保类型:</div>
|
|
123
|
+ <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
|
|
124
|
+ <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
|
|
125
|
+ <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
|
|
126
|
+ </div>
|
|
127
|
+ <div class="prescriptionBox">
|
|
128
|
+ <table style="width:100%;text-align:center;line-height:25px;">
|
|
129
|
+ <tr>
|
|
130
|
+ <td>序号</td>
|
|
131
|
+ <td>项目名称</td>
|
|
132
|
+ <td>数量</td>
|
|
133
|
+ <td>单位</td>
|
|
134
|
+ <td>单价</td>
|
|
135
|
+ <td>部位</td>
|
|
136
|
+ <td>备注</td>
|
|
137
|
+ <td>天数</td>
|
|
138
|
+ </tr>
|
|
139
|
+ <tr v-for="(it,index) in item.project" :key="index">
|
|
140
|
+ <td>{{index+1}}</td>
|
|
141
|
+ <td>{{getProjectName(it.project_id)}}</td>
|
|
142
|
+ <td>{{it.single_dose}}</td>
|
|
143
|
+ <td>{{getUnit(it.unit)}}</td>
|
|
144
|
+ <td>{{it.price}}</td>
|
|
145
|
+ <td></td>
|
|
146
|
+ <td>{{it.remark}}</td>
|
|
147
|
+ <td>{{it.day}}</td>
|
|
148
|
+
|
|
149
|
+ </tr>
|
|
150
|
+ </table>
|
|
151
|
+ </div>
|
|
152
|
+ <div class="infoTitle">
|
|
153
|
+ <div>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
|
|
154
|
+ <div>签章:</div>
|
|
155
|
+ </div>
|
|
156
|
+ <div class="actionBar">
|
|
157
|
+ <div>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
|
|
158
|
+ <div>费用:</div>
|
|
159
|
+ </div>
|
|
160
|
+ <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
|
|
161
|
+ <tr>
|
|
162
|
+ <td style="width:16%;">治疗时间</td>
|
|
163
|
+ <td style="width:16%;"></td>
|
|
164
|
+ <td style="width:16%;"></td>
|
|
165
|
+ <td style="width:16%;"></td>
|
|
166
|
+ <td style="width:16%;"></td>
|
|
167
|
+ <td style="width:16%;"></td>
|
|
168
|
+ </tr>
|
|
169
|
+ <tr>
|
|
170
|
+ <td style="width:16%;">医生签字</td>
|
|
171
|
+ <td style="width:16%;"></td>
|
|
172
|
+ <td style="width:16%;"></td>
|
|
173
|
+ <td style="width:16%;"></td>
|
|
174
|
+ <td style="width:16%;"></td>
|
|
175
|
+ <td style="width:16%;"></td>
|
|
176
|
+ </tr>
|
|
177
|
+ <tr>
|
|
178
|
+ <td style="width:16px;">患者签字</td>
|
|
179
|
+ <td style="width:16px;"></td>
|
|
180
|
+ <td style="width:16px;"></td>
|
|
181
|
+ <td style="width:16px;"></td>
|
|
182
|
+ <td style="width:16px;"></td>
|
|
183
|
+ <td style="width:16px;"></td>
|
|
184
|
+ </tr>
|
|
185
|
+ </table>
|
|
186
|
+ </div>
|
|
187
|
+ </div>
|
94
|
188
|
</div>
|
95
|
189
|
</template>
|
96
|
190
|
<script>
|
|
@@ -101,7 +195,7 @@ export default {
|
101
|
195
|
patient_id:Number,
|
102
|
196
|
record_date:String,
|
103
|
197
|
prescription_id:Number
|
104
|
|
- },
|
|
198
|
+ },
|
105
|
199
|
data(){
|
106
|
200
|
return {
|
107
|
201
|
doctorList:[],
|
|
@@ -131,10 +225,10 @@ export default {
|
131
|
225
|
getAllDoctorList().then(response=>{
|
132
|
226
|
if(response.data.state == 1){
|
133
|
227
|
var doctor = response.data.data.doctor
|
134
|
|
-
|
|
228
|
+
|
135
|
229
|
this.doctorList = doctor
|
136
|
230
|
}
|
137
|
|
- })
|
|
231
|
+ })
|
138
|
232
|
},
|
139
|
233
|
|
140
|
234
|
getDoctor(id){
|
|
@@ -160,7 +254,7 @@ export default {
|
160
|
254
|
patient_id:this.$route.query.patient_id,
|
161
|
255
|
record_date:this.$route.query.record,
|
162
|
256
|
prescription_id:this.$route.query.prescription_id,
|
163
|
|
- ids:this.$route.query.ids,
|
|
257
|
+ ids:this.$route.query.ids,
|
164
|
258
|
}
|
165
|
259
|
console.log("999999",params)
|
166
|
260
|
getPrescriptionPrint(params).then(response=>{
|
|
@@ -172,7 +266,7 @@ export default {
|
172
|
266
|
var projectlist = response.data.data.projectlist
|
173
|
267
|
console.log("所有项目列表",projectlist)
|
174
|
268
|
this.projectList = projectlist
|
175
|
|
-
|
|
269
|
+
|
176
|
270
|
}
|
177
|
271
|
})
|
178
|
272
|
},
|
|
@@ -196,7 +290,7 @@ export default {
|
196
|
290
|
},
|
197
|
291
|
|
198
|
292
|
getTotalOne(id) {
|
199
|
|
-
|
|
293
|
+
|
200
|
294
|
var total = 0
|
201
|
295
|
var addtotal = 0
|
202
|
296
|
for (let i = 0; i < this.prescriptions.length; i++) {
|
|
@@ -206,7 +300,7 @@ export default {
|
206
|
300
|
total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
|
207
|
301
|
}
|
208
|
302
|
}
|
209
|
|
-
|
|
303
|
+
|
210
|
304
|
if (this.prescriptions[i].additionalcharge != null) {
|
211
|
305
|
for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
|
212
|
306
|
addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
|
|
@@ -216,7 +310,7 @@ export default {
|
216
|
310
|
}
|
217
|
311
|
return total + addtotal
|
218
|
312
|
}
|
219
|
|
- },
|
|
313
|
+ },
|
220
|
314
|
},
|
221
|
315
|
created(){
|
222
|
316
|
this.getAllDoctorList()
|
|
@@ -233,8 +327,11 @@ export default {
|
233
|
327
|
|
234
|
328
|
|
235
|
329
|
<style lang="scss" scoped>
|
|
330
|
+.prescription-print{
|
|
331
|
+ font-size: 14px;
|
|
332
|
+}
|
236
|
333
|
.printTitle{
|
237
|
|
- font-size: 22px;
|
|
334
|
+ font-size: 18px;
|
238
|
335
|
text-align: center;
|
239
|
336
|
font-weight: bold;
|
240
|
337
|
}
|
|
@@ -245,7 +342,7 @@ export default {
|
245
|
342
|
line-height: 24px;
|
246
|
343
|
padding:0 10px;
|
247
|
344
|
}
|
248
|
|
-.infoTitle p{
|
|
345
|
+.infoTitle div{
|
249
|
346
|
width: 300px;
|
250
|
347
|
}
|
251
|
348
|
.infoMain{
|
|
@@ -254,7 +351,7 @@ export default {
|
254
|
351
|
border-bottom: 2px solid #000;
|
255
|
352
|
padding:0 10px;
|
256
|
353
|
}
|
257
|
|
-.infoMain p{
|
|
354
|
+.infoMain div{
|
258
|
355
|
width: 50%;
|
259
|
356
|
line-height: 24px;
|
260
|
357
|
}
|
|
@@ -281,11 +378,11 @@ export default {
|
281
|
378
|
}
|
282
|
379
|
.actionBar{
|
283
|
380
|
display: flex;
|
284
|
|
- justify-content: space-between;
|
|
381
|
+ justify-content: space-between;
|
285
|
382
|
line-height: 24px;
|
286
|
383
|
padding:0 10px;
|
287
|
384
|
}
|
288
|
|
-.actionBar p{
|
|
385
|
+.actionBar div{
|
289
|
386
|
width:150px;
|
290
|
387
|
}
|
291
|
388
|
</style>
|