|
@@ -1,181 +1,73 @@
|
1
|
1
|
<template>
|
2
|
|
-<div>
|
3
|
|
- <div style="float:right;margin-right:10px">
|
4
|
|
- <el-button type="primary" size="small" @click="printThisPage">打印</el-button>
|
5
|
|
- </div>
|
6
|
|
- <div id="dialysis-print-box">
|
7
|
|
- <div class="dialysis-print-order">
|
8
|
|
- <div class="order-yy-name"></div>
|
9
|
|
- <div class="order-title">{{ orgname }}首次病程记录</div>
|
10
|
|
- <div>
|
11
|
|
- <table class="print-table" border="1" style="margin-top: 10px;">
|
12
|
|
- <tr>
|
13
|
|
- <td style="text-align:center;width:200px" colspan="1">
|
14
|
|
- 姓名:
|
15
|
|
- </td>
|
16
|
|
- <td style="text-align:center;width:200px" colspan="1">
|
17
|
|
- <span style="display:inline-block;margin-left:10px;">
|
18
|
|
- {{patient.name}}
|
19
|
|
- </span>
|
20
|
|
- </td>
|
21
|
|
- <td style="text-align:center;width:200px" colspan="1">
|
22
|
|
- 性别:
|
23
|
|
- </td>
|
24
|
|
- <td style="text-align:center;width:200px" colspan="1">
|
25
|
|
- <span style="display:inline-block;margin-left:10px;">
|
26
|
|
- <span v-if="patient.gender == 1">男</span>
|
27
|
|
- <span v-if="patient.gender == 2">女</span>
|
28
|
|
- </span>
|
29
|
|
- </td>
|
30
|
|
- <td style="text-align:center;width:100px" colspan="1">
|
31
|
|
- 年龄:
|
32
|
|
- </td>
|
33
|
|
- <td style="text-align:center;width:50px" colspan="1">
|
34
|
|
- <span style="display:inline-block;margin-left:10px;">
|
35
|
|
- {{getNewAge(patient.id_card_no)}}
|
36
|
|
- </span>
|
37
|
|
- </td>
|
38
|
|
- <td style="text-align:center;width:100px" colspan="1">
|
39
|
|
- 婚姻:
|
40
|
|
- </td>
|
41
|
|
- <td style="text-align:center;width:100px" colspan="1">
|
42
|
|
- <span style="display:inline-block;margin-left:10px;">
|
43
|
|
- <span v-if="patient.marital_status == 0"></span>
|
44
|
|
- <span v-if="patient.marital_status == 1">未婚</span>
|
45
|
|
- <span v-if="patient.marital_status == 2">已婚</span>
|
46
|
|
- <span v-if="patient.marital_status == 3">离异</span>
|
47
|
|
- <span v-if="patient.marital_status == 4">丧偶</span>
|
48
|
|
- </span>
|
49
|
|
- </td>
|
50
|
|
- <td style="text-align:center;width:200px" colspan="1">
|
51
|
|
- 职业:
|
52
|
|
- </td>
|
53
|
|
- <td style="text-align:center;width:100px" colspan="1">
|
54
|
|
- <span style="display:inline-block;margin-left:10px;">
|
55
|
|
- {{getProfession(patient.profession)?getProfession(patient.profession):''}}
|
56
|
|
- </span>
|
57
|
|
- </td>
|
58
|
|
- <td style="text-align:center;width:300px" colspan="1">
|
59
|
|
- 电话:
|
60
|
|
- </td>
|
61
|
|
- <td style="text-align:center;width:100px" colspan="1">
|
62
|
|
- <span style="display:inline-block;margin-left:10px;">
|
63
|
|
- {{patient.phone}}
|
64
|
|
- </span>
|
65
|
|
- </td>
|
66
|
|
- </tr>
|
67
|
|
-
|
68
|
|
- <tr>
|
69
|
|
- <td style="text-align:center;width:100px" colspan="1">
|
70
|
|
- 住址:
|
71
|
|
- </td>
|
72
|
|
- <td style="text-align:center;width:500px" colspan="12">
|
73
|
|
-
|
74
|
|
- <span style="display:inline-block;margin-left:10px;">
|
75
|
|
- {{patient.home_address}}
|
76
|
|
- </span>
|
77
|
|
- </td>
|
78
|
|
- </tr>
|
79
|
|
-
|
80
|
|
-
|
81
|
|
- <tr>
|
82
|
|
- <td style="text-align:center;width:300px" colspan="1">
|
83
|
|
- 主诉内容:
|
84
|
|
- <span style="display:inline-block;margin-left:10px;">
|
85
|
|
-
|
86
|
|
- </span>
|
87
|
|
- </td>
|
88
|
|
- <td style="text-align:center;" colspan="11">
|
89
|
|
- <span style="display:block;margin-left:10px;text-align:left;">
|
90
|
|
- <span v-html="hosDetail.main_content"></span>
|
91
|
|
- </span>
|
92
|
|
- </td>
|
93
|
|
- </tr>
|
94
|
|
-
|
95
|
|
- <tr>
|
96
|
|
- <td style="text-align:center;width:300px" colspan="1">
|
97
|
|
- 病例特点:
|
98
|
|
- <span style="display:inline-block;margin-left:10px;">
|
99
|
|
-
|
100
|
|
- </span>
|
101
|
|
- </td>
|
102
|
|
- <td style="text-align:center;" colspan="11">
|
103
|
|
- <span style="display:block;margin-left:10px;text-align:left;">
|
104
|
|
- <span v-html="hosDetail.patient_case"></span>
|
105
|
|
- </span>
|
106
|
|
- </td>
|
107
|
|
- </tr>
|
108
|
|
-
|
109
|
|
- <tr>
|
110
|
|
- <td style="text-align:center;width:300px" colspan="1">
|
111
|
|
- 初步诊断:
|
112
|
|
- <span style="display:inline-block;margin-left:10px;">
|
|
2
|
+ <div class="main-contain">
|
|
3
|
+
|
|
4
|
+ <div class="position">
|
|
5
|
+ <bread-crumb :crumbs='crumbs'></bread-crumb>
|
|
6
|
+ <el-button :loading="loading" size="small" icon="el-icon-printer" @click="printAction" type="primary">打印
|
|
7
|
+ </el-button>
|
|
8
|
+ </div>
|
|
9
|
+ <div class="app-container">
|
|
10
|
+ <div id="print_content">
|
|
11
|
+ <div class="print_page_main_content">
|
|
12
|
+ <div class="order-yy-name"></div>
|
|
13
|
+ <!-- <div class="order_title" style="padding-top:12px;text-align:center;">首次病程记录</div>
|
|
14
|
+ -->
|
|
15
|
+ <h1 style="text-align:center;">首次病程记录</h1>
|
|
16
|
+ <div class="row" style="padding: 2px 0;line-height:24px;margin-top:10px;">
|
|
17
|
+ <div class="inline_block;">
|
|
18
|
+ <div style="font-size:20px">{{getTime(hosDetail.record_date)}}</div>
|
|
19
|
+ </div>
|
|
20
|
+ <div class="inline_block" style="margin-left: 30px">
|
|
21
|
+ <div v-html="hosDetail.main_content"> </div>
|
|
22
|
+ </div>
|
|
23
|
+
|
|
24
|
+ <div class="inline_block" style="width:100%;">
|
|
25
|
+ <span style="font-size:20px">病例特点:</span>
|
|
26
|
+ <div v-html="hosDetail.patient_case" class="printP" style="text-indent:20px">
|
|
27
|
+
|
|
28
|
+ </div>
|
|
29
|
+ </div>
|
|
30
|
+
|
|
31
|
+ <div class="inline_block" style="width:100%;">
|
|
32
|
+ <span style="font-size:20px">初步诊断:</span>
|
|
33
|
+ <div v-html="hosDetail.tentative_diagnosis" class="printP" style="text-indent:20px">
|
|
34
|
+
|
|
35
|
+ </div>
|
|
36
|
+ </div>
|
|
37
|
+
|
|
38
|
+ <div class="inline_block" style="width:100%;">
|
|
39
|
+ <span style="font-size:20px"> 诊断依据:</span>
|
|
40
|
+ <div v-html="hosDetail.tentative_diagnosis" class="printP" style="text-indent:20px">
|
|
41
|
+
|
|
42
|
+ </div>
|
|
43
|
+ </div>
|
|
44
|
+
|
|
45
|
+ <div class="inline_block" style="width:100%;">
|
|
46
|
+ <span style="font-size:20px">鉴别诊断:</span>
|
|
47
|
+ <div v-html="hosDetail.tentative_diagnosis" class="printP" style="text-indent:20px">
|
|
48
|
+
|
|
49
|
+ </div>
|
|
50
|
+ </div>
|
|
51
|
+
|
|
52
|
+ <div class="inline_block" style="width:100%;">
|
|
53
|
+ <span style="font-size:20px">诊疗计划:</span>
|
|
54
|
+ <div v-html="hosDetail.tentative_diagnosis" class="printP" style="text-indent:20px">
|
|
55
|
+
|
|
56
|
+ </div>
|
|
57
|
+ </div>
|
|
58
|
+
|
|
59
|
+ <div class="inline_block" style="float:right;margin-right:50px">
|
|
60
|
+ <span style="font-size:20px">医生签名: {{getDoctor(hosDetail.doctor)}}</span>
|
113
|
61
|
|
114
|
|
- </span>
|
115
|
|
- </td>
|
116
|
|
- <td style="text-align:center;" colspan="11">
|
117
|
|
- <span style="display:block;margin-left:10px;text-align:left;">
|
118
|
|
- <span v-html="hosDetail.tentative_diagnosis"></span>
|
119
|
|
- </span>
|
120
|
|
- </td>
|
121
|
|
- </tr>
|
122
|
|
-
|
|
62
|
+ </div>
|
|
63
|
+ </div>
|
|
64
|
+
|
123
|
65
|
|
124
|
|
- <tr>
|
125
|
|
- <td style="text-align:center;width:300px" colspan="1">
|
126
|
|
- 诊断依据:
|
127
|
|
- <span style="display:inline-block;margin-left:10px;">
|
128
|
|
-
|
129
|
|
- </span>
|
130
|
|
- </td>
|
131
|
|
- <td style="text-align:center;" colspan="11">
|
132
|
|
- <span style="display:block;margin-left:10px;text-align:left;">
|
133
|
|
- <span v-html="hosDetail.diagnostic_basis"></span>
|
134
|
|
- </span>
|
135
|
|
- </td>
|
136
|
|
- </tr>
|
137
|
|
-
|
138
|
|
- <tr>
|
139
|
|
- <td style="text-align:center;width:300px" colspan="1">
|
140
|
|
- 鉴别诊断:
|
141
|
|
- <span style="display:inline-block;margin-left:10px;">
|
142
|
|
-
|
143
|
|
- </span>
|
144
|
|
- </td>
|
145
|
|
- <td style="text-align:center;" colspan="11">
|
146
|
|
- <span style="display:block;margin-left:10px;text-align:left;">
|
147
|
|
- <span v-html="hosDetail.differential_diagnosis"></span>
|
148
|
|
- </span>
|
149
|
|
- </td>
|
150
|
|
- </tr>
|
151
|
|
-
|
152
|
|
- <tr>
|
153
|
|
- <td style="text-align:center;width:300px" colspan="1">
|
154
|
|
- 诊疗计划:
|
155
|
|
- <span style="display:inline-block;margin-left:10px;">
|
156
|
|
-
|
157
|
|
- </span>
|
158
|
|
- </td>
|
159
|
|
- <td style="text-align:center;" colspan="11">
|
160
|
|
- <span style="display:block;margin-left:10px;text-align:left;">
|
161
|
|
- <span v-html="hosDetail.treatment_plan"></span>
|
162
|
|
- </span>
|
163
|
|
- </td>
|
164
|
|
- </tr>
|
165
|
|
-
|
166
|
|
-
|
167
|
|
-
|
168
|
|
-
|
169
|
|
-
|
170
|
|
- </table>
|
171
|
|
- </div>
|
172
|
|
-
|
173
|
|
-
|
174
|
|
-
|
175
|
|
-
|
176
|
|
- </div>
|
|
66
|
+ </div>
|
|
67
|
+ </div>
|
177
|
68
|
</div>
|
178
|
|
-</div>
|
|
69
|
+ </div>
|
|
70
|
+
|
179
|
71
|
</template>
|
180
|
72
|
|
181
|
73
|
<script>
|
|
@@ -215,7 +107,7 @@ export default {
|
215
|
107
|
if(val == "" || val == undefined){
|
216
|
108
|
return ""
|
217
|
109
|
}else {
|
218
|
|
- return uParseTime(val, '{y}-{m}-{d}')
|
|
110
|
+ return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
|
219
|
111
|
}
|
220
|
112
|
},
|
221
|
113
|
printThisPage() {
|
|
@@ -303,7 +195,26 @@ export default {
|
303
|
195
|
var count = ""
|
304
|
196
|
count = (end-start)/86400
|
305
|
197
|
return count + 1
|
306
|
|
- }
|
|
198
|
+ },
|
|
199
|
+ printAction: function() {
|
|
200
|
+ const style = '@media print {.printP div{margin-bottom:5px;} .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 20px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
|
|
201
|
+ printJS({
|
|
202
|
+ printable: 'print_content',
|
|
203
|
+ type: 'html',
|
|
204
|
+ documentTitle: ' ',
|
|
205
|
+ style: style,
|
|
206
|
+ scanStyles: false
|
|
207
|
+ })
|
|
208
|
+ },
|
|
209
|
+ getDoctor(id){
|
|
210
|
+ var name = ""
|
|
211
|
+ for(let i=0;i<this.doctorList.length;i++){
|
|
212
|
+ if(id == this.doctorList[i].admin_user_id){
|
|
213
|
+ name = this.doctorList[i].user_name
|
|
214
|
+ }
|
|
215
|
+ }
|
|
216
|
+ return name
|
|
217
|
+ },
|
307
|
218
|
},
|
308
|
219
|
|
309
|
220
|
created() {
|