|
@@ -1,121 +1,114 @@
|
1
|
1
|
<template>
|
2
|
|
- <div>
|
|
2
|
+ <div id="prescription-print">
|
3
|
3
|
<div v-for="(item, index) in advicePrint" :key="index">
|
4
|
|
- <div id="prescription-print3" class="prescription-print">
|
5
|
|
-
|
6
|
|
- <div class="printTitle">检验申请单</div>
|
7
|
|
-
|
8
|
|
- <div style="border: 1px solid #000;margin-bottom: 10px;">
|
9
|
|
- <div
|
10
|
|
- style="
|
11
|
|
- display: flex;
|
12
|
|
- justify-content: space-between;
|
13
|
|
- border-bottom: 1px solid #000;
|
14
|
|
- line-height: 40px;
|
15
|
|
- padding: 0 10px;
|
16
|
|
- "
|
17
|
|
- >
|
18
|
|
- <div>是否急诊:否</div>
|
19
|
|
- <div>
|
20
|
|
- 结算方式:{{
|
21
|
|
- faber && faber.transBody
|
22
|
|
- ? getName(faber.transBody.outputlist1)
|
23
|
|
- : ""
|
24
|
|
- }}
|
25
|
|
- </div>
|
26
|
|
- <div>金额:{{ total }}</div>
|
27
|
|
- </div>
|
28
|
|
- <div
|
29
|
|
- style="
|
30
|
|
- display: flex;
|
31
|
|
- justify-content: space-between;
|
32
|
|
- border-bottom: 1px solid #000;
|
33
|
|
- line-height: 40px;
|
34
|
|
- padding: 0 10px;
|
35
|
|
- "
|
36
|
|
- >
|
37
|
|
- <div>
|
38
|
|
- 姓名:{{ item.patient.name }}
|
39
|
|
- <!-- {{
|
40
|
|
- advicePrint[0].patient.name
|
41
|
|
- ? advicePrint[0].patient.name.indexOf("(") > -1
|
42
|
|
- ? advicePrint[0].patient.name.substring(
|
43
|
|
- 0,
|
44
|
|
- advicePrint[0].patient.name.indexOf("(")
|
45
|
|
- )
|
46
|
|
- : advicePrint[0].patient.name
|
47
|
|
- : ""
|
48
|
|
- }} -->
|
49
|
|
- </div>
|
50
|
|
- <div>
|
51
|
|
- 性别:
|
52
|
|
- <span v-if="item.patient.gender == 1">男</span>
|
53
|
|
- <span v-if="item.patient.gender == 2">女</span>
|
54
|
|
- </div>
|
55
|
|
- <div>年龄:{{getAge(item.patient)?getAge(item.patient):""}}岁</div>
|
56
|
|
-
|
57
|
|
- </div>
|
58
|
|
- <div style="margin-bottom: 20px; padding: 10px 10px 0" >
|
59
|
|
- 病史摘要:{{
|
60
|
|
- history.history_of_present_illness
|
61
|
|
- ? history.history_of_present_illness
|
|
4
|
+ <div id="prescription-print" class="prescription-print" style="page-break-after: always">
|
|
5
|
+ <div class="printTitle">检验申请单</div>
|
|
6
|
+
|
|
7
|
+ <div style="border: 1px solid #000;margin-bottom: 10px;">
|
|
8
|
+ <div
|
|
9
|
+ style="
|
|
10
|
+ display: flex;
|
|
11
|
+ justify-content: space-between;
|
|
12
|
+ border-bottom: 1px solid #000;
|
|
13
|
+ line-height: 40px;
|
|
14
|
+ padding: 0 10px;
|
|
15
|
+ "
|
|
16
|
+ >
|
|
17
|
+ <div>是否急诊:否</div>
|
|
18
|
+ <div>
|
|
19
|
+ 结算方式:{{
|
|
20
|
+ faber && faber.transBody
|
|
21
|
+ ? getName(faber.transBody.outputlist1)
|
62
|
22
|
: ""
|
63
|
23
|
}}
|
64
|
24
|
</div>
|
65
|
|
- <!-- <div style="margin-bottom:20px;padding:0 10px;" >体格检查:
|
66
|
|
- <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
|
67
|
|
- <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
|
68
|
|
- <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
|
69
|
|
- <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
|
70
|
|
- </div> -->
|
71
|
|
- <div style="margin-bottom: 20px; padding: 0 10px">
|
72
|
|
- 临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
|
|
25
|
+ <div>金额:{{ total }}</div>
|
|
26
|
+ </div>
|
|
27
|
+ <div
|
|
28
|
+ style="
|
|
29
|
+ display: flex;
|
|
30
|
+ justify-content: space-between;
|
|
31
|
+ border-bottom: 1px solid #000;
|
|
32
|
+ line-height: 40px;
|
|
33
|
+ padding: 0 10px;
|
|
34
|
+ "
|
|
35
|
+ >
|
|
36
|
+ <div>
|
|
37
|
+ 姓名:{{
|
|
38
|
+ advicePrint[0].patient.name
|
|
39
|
+ ? advicePrint[0].patient.name.indexOf("(") > -1
|
|
40
|
+ ? advicePrint[0].patient.name.substring(
|
|
41
|
+ 0,
|
|
42
|
+ advicePrint[0].patient.name.indexOf("(")
|
|
43
|
+ )
|
|
44
|
+ : advicePrint[0].patient.name
|
|
45
|
+ : ""
|
|
46
|
+ }}
|
73
|
47
|
</div>
|
74
|
|
- <div style="display: flex; margin-bottom: 20px; padding: 0 10px">
|
75
|
|
- <div>检验项目:</div>
|
76
|
|
- <div style="position: relative;">
|
77
|
|
- <div v-for="item in projectPrint" style="margin-bottom: 10px">
|
78
|
|
- {{ item.team.project_team }}
|
79
|
|
- </div>
|
80
|
|
- <div v-for="item in singleProjectPrint">
|
81
|
|
- <!-- <div v-if="item.remark == '血透前抽血'" style="border-right: 1px solid red;padding-bottom: 5px;"> -->
|
82
|
|
- {{ item.project.project_name }}
|
83
|
|
- <!-- </div> -->
|
84
|
|
- </div>
|
85
|
|
- <!-- <div style="height: 10px;"></div>
|
86
|
|
- <div v-for="item in singleProjectPrint" >
|
87
|
|
- <div v-if="item.remark == '血透后抽血'" style="border-right: 1px solid rgb(0, 47, 255);padding-bottom: 5px;">
|
88
|
|
- {{ item.project.project_name }}
|
89
|
|
- </div>
|
90
|
|
- </div> -->
|
91
|
|
- <!-- <span style="position: absolute;top: 65px;right: -77px;" v-if=" singleProjectPrint.length>0">血透前抽血</span>
|
92
|
|
- <span style="position: absolute;bottom: 96px;right: -77px;" v-if=" singleProjectPrint.length>0">血透后抽血</span> -->
|
93
|
|
- </div>
|
|
48
|
+ <div>
|
|
49
|
+ 性别:
|
|
50
|
+ <span v-if="advicePrint[0].patient.gender == 1">男</span>
|
|
51
|
+ <span v-if="advicePrint[0].patient.gender == 2">女</span>
|
94
|
52
|
</div>
|
95
|
|
- <div
|
96
|
|
- style="
|
97
|
|
- display: flex;
|
98
|
|
- justify-content: space-between;
|
99
|
|
- border-top: 1px solid #000;
|
100
|
|
- line-height: 40px;
|
101
|
|
- padding: 0 10px;
|
102
|
|
- "
|
103
|
|
- >
|
104
|
|
- <div>开单医生:{{ doctor ? doctor : "" }}</div>
|
105
|
|
- <div>
|
106
|
|
- 开单日期:
|
107
|
|
- {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
|
108
|
|
- </div>
|
109
|
|
- <div>
|
110
|
|
- 医生签字:
|
|
53
|
+ <!-- <div>-->
|
|
54
|
+ <!-- 年龄:{{-->
|
|
55
|
+ <!-- advicePrint[0].patient.age ? advicePrint[0].patient.age : ""-->
|
|
56
|
+ <!-- }}岁-->
|
|
57
|
+ <!-- </div>-->
|
|
58
|
+ <div>年龄:{{getAge(advicePrint[0].patient)?getAge(advicePrint[0].patient):""}}岁</div>
|
111
|
59
|
|
112
|
|
- <span style="width: 100px; display: inline-block"></span>
|
|
60
|
+ </div>
|
|
61
|
+ <div style="margin-bottom: 20px; padding: 10px 10px 0" v-if="org_id!=10278 && org_id!=10138 && org_id!=0">
|
|
62
|
+ 病史摘要:{{
|
|
63
|
+ history.history_of_present_illness
|
|
64
|
+ ? history.history_of_present_illness
|
|
65
|
+ : ""
|
|
66
|
+ }}
|
|
67
|
+ </div>
|
|
68
|
+ <!-- <div style="margin-bottom:20px;padding:0 10px;">体格检查:
|
|
69
|
+ <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
|
|
70
|
+ <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
|
|
71
|
+ <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
|
|
72
|
+ <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
|
|
73
|
+ </div> -->
|
|
74
|
+ <div style="margin-bottom: 20px; padding: 0 10px">
|
|
75
|
+ 临床诊断:{{ getDiagnosis(advicePrint[0].info.diagnosis) }}
|
|
76
|
+ </div>
|
|
77
|
+ <div style="display: flex; margin-bottom: 20px; padding: 0 10px">
|
|
78
|
+ <div>检验项目:</div>
|
|
79
|
+ <div>
|
|
80
|
+<!-- <div v-for="item in projectPrint" style="margin-bottom: 10px">-->
|
|
81
|
+<!-- {{ item.team.project_team }}-->
|
|
82
|
+<!-- </div>-->
|
|
83
|
+ <div v-for="subitem in item.singleProjectPrint" style="margin-bottom: 10px">
|
|
84
|
+ {{ subitem.project.project_name }}
|
113
|
85
|
</div>
|
114
|
86
|
</div>
|
115
|
87
|
</div>
|
116
|
|
-
|
|
88
|
+ <div
|
|
89
|
+ style="
|
|
90
|
+ display: flex;
|
|
91
|
+ justify-content: space-between;
|
|
92
|
+ border-top: 1px solid #000;
|
|
93
|
+ line-height: 40px;
|
|
94
|
+ padding: 0 10px;
|
|
95
|
+ "
|
|
96
|
+ >
|
|
97
|
+ <div>开单医生:{{ doctor ? doctor : "" }}</div>
|
|
98
|
+ <div>
|
|
99
|
+ 开单日期:
|
|
100
|
+ {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
|
|
101
|
+ </div>
|
|
102
|
+ <div>
|
|
103
|
+ 医生签字:
|
|
104
|
+ <span style="width: 100px; display: inline-block"></span>
|
|
105
|
+ </div>
|
|
106
|
+ </div>
|
117
|
107
|
</div>
|
|
108
|
+
|
118
|
109
|
</div>
|
|
110
|
+ </div>
|
|
111
|
+
|
119
|
112
|
</div>
|
120
|
113
|
</template>
|
121
|
114
|
<script>
|
|
@@ -281,7 +274,7 @@ export default {
|
281
|
274
|
var projectlist = response.data.data.projectlist;
|
282
|
275
|
|
283
|
276
|
var projectlist = response.data.data.projectlist;
|
284
|
|
- console.log("所有项目列表", this.singleProjectPrint);
|
|
277
|
+ // console.log("所有项目列表", projectlist);
|
285
|
278
|
this.projectList = projectlist;
|
286
|
279
|
this.getPage();
|
287
|
280
|
let outputlist1Name = response.data.data.his.patient_info
|
|
@@ -345,7 +338,7 @@ export default {
|
345
|
338
|
total =
|
346
|
339
|
total +
|
347
|
340
|
this.prescriptions[i].project[a].price *
|
348
|
|
- this.prescriptions[i].project[a].count;
|
|
341
|
+ this.prescriptions[i].project[a].count;
|
349
|
342
|
}
|
350
|
343
|
}
|
351
|
344
|
|
|
@@ -358,7 +351,7 @@ export default {
|
358
|
351
|
addtotal =
|
359
|
352
|
addtotal +
|
360
|
353
|
this.prescriptions[i].additionalcharge[a].price *
|
361
|
|
- this.prescriptions[i].additionalcharge[a].count;
|
|
354
|
+ this.prescriptions[i].additionalcharge[a].count;
|
362
|
355
|
}
|
363
|
356
|
}
|
364
|
357
|
addtotal = Math.floor(addtotal * 100) / 100;
|
|
@@ -372,7 +365,7 @@ export default {
|
372
|
365
|
total =
|
373
|
366
|
total +
|
374
|
367
|
this.prescriptions[i].advices[a].price *
|
375
|
|
- this.prescriptions[i].advices[a].prescribing_number;
|
|
368
|
+ this.prescriptions[i].advices[a].prescribing_number;
|
376
|
369
|
}
|
377
|
370
|
}
|
378
|
371
|
|
|
@@ -385,7 +378,7 @@ export default {
|
385
|
378
|
addtotal =
|
386
|
379
|
addtotal +
|
387
|
380
|
this.prescriptions[i].additionalcharge[a].price *
|
388
|
|
- this.prescriptions[i].additionalcharge[a].count;
|
|
381
|
+ this.prescriptions[i].additionalcharge[a].count;
|
389
|
382
|
}
|
390
|
383
|
}
|
391
|
384
|
addtotal = Math.floor(addtotal * 100) / 100;
|
|
@@ -556,9 +549,9 @@ export default {
|
556
|
549
|
<style lang="scss" scoped>
|
557
|
550
|
.prescription-print {
|
558
|
551
|
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
|
559
|
|
- 0 0 60px rgba(0, 0, 0, 0.06) inset;
|
|
552
|
+ 0 0 60px rgba(0, 0, 0, 0.06) inset;
|
560
|
553
|
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
|
561
|
|
- 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
|
554
|
+ 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
562
|
555
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
563
|
556
|
margin-bottom: 20px;
|
564
|
557
|
padding: 20px 10px;
|