|
@@ -1,165 +1,135 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div>
|
3
|
|
- <div id="prescription-print3" class="prescription-print">
|
4
|
|
- <img
|
5
|
|
- style="width: 100%; height: 80px"
|
6
|
|
- v-if="org_id == 10138"
|
7
|
|
- src="https://kuyi.shengws.com/bailin/bltotle.jpg"
|
8
|
|
- alt=""
|
9
|
|
- />
|
10
|
|
- <img
|
11
|
|
- style="width: 100%; height: 80px"
|
12
|
|
- v-if="org_id == 10278 || org_id == 0"
|
13
|
|
- src="https://kuyi.shengws.com/beierlog.png"
|
14
|
|
- alt=""
|
15
|
|
- />
|
16
|
|
- <div class="printTitle">检验申请单</div>
|
17
|
|
-
|
18
|
|
- <div style="border: 1px solid #000;margin-bottom: 10px;">
|
19
|
|
- <div
|
20
|
|
- style="
|
21
|
|
- display: flex;
|
22
|
|
- justify-content: space-between;
|
23
|
|
- border-bottom: 1px solid #000;
|
24
|
|
- line-height: 40px;
|
25
|
|
- padding: 0 10px;
|
26
|
|
- "
|
27
|
|
- >
|
28
|
|
- <div>是否急诊:否</div>
|
29
|
|
- <div>
|
30
|
|
- 结算方式:{{
|
31
|
|
- faber && faber.transBody
|
32
|
|
- ? getName(faber.transBody.outputlist1)
|
33
|
|
- : ""
|
34
|
|
- }}
|
|
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>
|
35
|
27
|
</div>
|
36
|
|
- <div>金额:{{ total }}</div>
|
37
|
|
- </div>
|
38
|
|
- <div
|
39
|
|
- style="
|
40
|
|
- display: flex;
|
41
|
|
- justify-content: space-between;
|
42
|
|
- border-bottom: 1px solid #000;
|
43
|
|
- line-height: 40px;
|
44
|
|
- padding: 0 10px;
|
45
|
|
- "
|
46
|
|
- >
|
47
|
|
- <div>
|
48
|
|
- 姓名:{{
|
49
|
|
- advicePrint[0].patient.name
|
50
|
|
- ? advicePrint[0].patient.name.indexOf("(") > -1
|
51
|
|
- ? advicePrint[0].patient.name.substring(
|
52
|
|
- 0,
|
53
|
|
- advicePrint[0].patient.name.indexOf("(")
|
54
|
|
- )
|
55
|
|
- : advicePrint[0].patient.name
|
|
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
|
56
|
62
|
: ""
|
57
|
63
|
}}
|
58
|
64
|
</div>
|
59
|
|
- <div>
|
60
|
|
- 性别:
|
61
|
|
- <span v-if="advicePrint[0].patient.gender == 1">男</span>
|
62
|
|
- <span v-if="advicePrint[0].patient.gender == 2">女</span>
|
|
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) }}
|
63
|
73
|
</div>
|
64
|
|
-<!-- <div>-->
|
65
|
|
-<!-- 年龄:{{-->
|
66
|
|
-<!-- advicePrint[0].patient.age ? advicePrint[0].patient.age : ""-->
|
67
|
|
-<!-- }}岁-->
|
68
|
|
-<!-- </div>-->
|
69
|
|
- <div>年龄:{{getAge(advicePrint[0].patient)?getAge(advicePrint[0].patient):""}}岁</div>
|
70
|
|
-
|
71
|
|
- </div>
|
72
|
|
- <div style="margin-bottom: 20px; padding: 10px 10px 0" >
|
73
|
|
- 病史摘要:{{
|
74
|
|
- history.history_of_present_illness
|
75
|
|
- ? history.history_of_present_illness
|
76
|
|
- : ""
|
77
|
|
- }}
|
78
|
|
- </div>
|
79
|
|
- <!-- <div style="margin-bottom:20px;padding:0 10px;" >体格检查:
|
80
|
|
- <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
|
81
|
|
- <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
|
82
|
|
- <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
|
83
|
|
- <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
|
84
|
|
- </div> -->
|
85
|
|
- <div style="margin-bottom: 20px; padding: 0 10px">
|
86
|
|
- 临床诊断:{{ getDiagnosis(advicePrint[0].info.diagnosis) }}
|
87
|
|
- </div>
|
88
|
|
- <div style="display: flex; margin-bottom: 20px; padding: 0 10px">
|
89
|
|
- <div>检验项目:</div>
|
90
|
|
- <div style="position: relative;">
|
91
|
|
- <div v-for="item in projectPrint" style="margin-bottom: 10px">
|
92
|
|
- {{ item.team.project_team }}
|
93
|
|
- </div>
|
94
|
|
- <div v-for="item in singleProjectPrint">
|
95
|
|
- <div v-if="item.remark == '血透前抽血'" style="border-right: 1px solid red;padding-bottom: 5px;">
|
96
|
|
- {{ item.project.project_name }}
|
|
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 }}
|
97
|
79
|
</div>
|
98
|
|
- <!-- <div v-else style="border-right: 1px solid rgb(0, 47, 255);">
|
99
|
|
- {{ item.project.project_name }}
|
100
|
|
- </div> -->
|
101
|
|
- </div>
|
102
|
|
- <div style="height: 10px;"></div>
|
103
|
|
- <div v-for="item in singleProjectPrint" >
|
104
|
|
- <!-- <div v-if="item.remark == '血透前抽血'" style="border-right: 1px solid red;">
|
105
|
|
- {{ item.project.project_name }}
|
106
|
|
- </div> -->
|
107
|
|
- <div v-if="item.remark == '血透后抽血'" style="border-right: 1px solid rgb(0, 47, 255);padding-bottom: 5px;">
|
108
|
|
- {{ item.project.project_name }}
|
|
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>
|
109
|
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> -->
|
110
|
93
|
</div>
|
111
|
|
- <span style="position: absolute;top: 65px;right: -77px;" v-if=" singleProjectPrint.length>0">血透前抽血</span>
|
112
|
|
- <span style="position: absolute;bottom: 96px;right: -77px;" v-if=" singleProjectPrint.length>0">血透后抽血</span>
|
113
|
94
|
</div>
|
114
|
|
- </div>
|
115
|
|
- <div
|
116
|
|
- style="
|
117
|
|
- display: flex;
|
118
|
|
- justify-content: space-between;
|
119
|
|
- border-top: 1px solid #000;
|
120
|
|
- line-height: 40px;
|
121
|
|
- padding: 0 10px;
|
122
|
|
- "
|
123
|
|
- >
|
124
|
|
- <div>开单医生:{{ doctor ? doctor : "" }}</div>
|
125
|
|
- <div>
|
126
|
|
- 开单日期:
|
127
|
|
- {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
|
128
|
|
- </div>
|
129
|
|
- <div>
|
130
|
|
- 医生签字:
|
131
|
|
-
|
132
|
|
- <img
|
133
|
|
- v-if="setAdminUserES(advicePrint[0].creator)"
|
134
|
|
- style="height: 80px; width: 80px;"
|
135
|
|
- :src="setAdminUserES(advicePrint[0].creator)"
|
136
|
|
- alt=""
|
137
|
|
- srcset=""
|
138
|
|
- />
|
139
|
|
- <span
|
140
|
|
- style="width: 100px; display: inline-block"
|
141
|
|
- v-else-if="advicePrint[0].doctor != ''"
|
142
|
|
- >
|
143
|
|
- {{ advicePrint[0].doctor ? advicePrint[0].doctor : "" }}
|
144
|
|
- </span>
|
145
|
|
- <span v-else>
|
146
|
|
-
|
147
|
|
- </span>
|
|
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
|
+ 医生签字:
|
|
111
|
+
|
|
112
|
+ <img
|
|
113
|
+ v-if="setAdminUserES(advicePrint[0].creator)"
|
|
114
|
+ style="height: 80px; width: 80px;"
|
|
115
|
+ :src="setAdminUserES(advicePrint[0].creator)"
|
|
116
|
+ alt=""
|
|
117
|
+ srcset=""
|
|
118
|
+ />
|
|
119
|
+ <span
|
|
120
|
+ style="width: 100px; display: inline-block"
|
|
121
|
+ v-else-if="advicePrint[0].doctor != ''"
|
|
122
|
+ >
|
|
123
|
+ {{ advicePrint[0].doctor ? advicePrint[0].doctor : "" }}
|
|
124
|
+ </span>
|
|
125
|
+ <span v-else>
|
|
126
|
+
|
|
127
|
+ </span>
|
|
128
|
+ </div>
|
148
|
129
|
</div>
|
149
|
130
|
</div>
|
|
131
|
+
|
150
|
132
|
</div>
|
151
|
|
- <img
|
152
|
|
- style="width: 100%"
|
153
|
|
- v-if="org_id == 10138 "
|
154
|
|
- src="https://kuyi.shengws.com/bailin/blend.jpg"
|
155
|
|
- alt=""
|
156
|
|
- />
|
157
|
|
- <img
|
158
|
|
- style="width: 100%"
|
159
|
|
- v-if="org_id == 10278 || org_id == 0"
|
160
|
|
- src="https://kuyi.shengws.com/bailinbeier.png"
|
161
|
|
- alt=""
|
162
|
|
- />
|
163
|
133
|
</div>
|
164
|
134
|
</div>
|
165
|
135
|
</template>
|
|
@@ -272,10 +242,10 @@ export default {
|
272
|
242
|
getPrescriptionPrint(params).then((response) => {
|
273
|
243
|
if (response.data.state == 1) {
|
274
|
244
|
var advicePrint = response.data.data.advicePrint;
|
275
|
|
- // console.log("adviceprint9999", advicePrint);
|
|
245
|
+ console.log("adviceprint9999", advicePrint);
|
276
|
246
|
this.advicePrint = advicePrint;
|
277
|
247
|
this.prescriptions = advicePrint;
|
278
|
|
- // console.log("处方222222", this.prescriptions);
|
|
248
|
+ console.log("处方222222", this.prescriptions);
|
279
|
249
|
var hisPatient = response.data.data.hisPatient;
|
280
|
250
|
// console.log("hisPatient", hisPatient);
|
281
|
251
|
this.hisPatient = hisPatient;
|