Browse Source

4月26日杨青

杨青 2 years ago
parent
commit
c877afaded
1 changed files with 229 additions and 0 deletions
  1. 229 0
      src/xt_pages/user/physiqueprinting.vue

+ 229 - 0
src/xt_pages/user/physiqueprinting.vue View File

@@ -0,0 +1,229 @@
1
+<template>
2
+    <div>
3
+        <div class="position">
4
+            <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+            <el-button :loading="loading" size="small" icon="el-icon-printer" @click="printAction" type="primary">打印
6
+            </el-button>
7
+        </div>
8
+        <div class="app-container">
9
+            <div id="print_content">
10
+                <div class="print_page_main_content">
11
+                    
12
+                    <h1 style="text-align: center; padding-top:12px;">{{orgname}}血液净化治疗病历</h1> 
13
+                    <div style="border-bottom: 1px solid black;display: flex;padding-bottom: 10px;padding-top: 10px;">
14
+                        <div  style="flex:1;text-align: center;">
15
+                            姓名:
16
+                            <div  style="width: 120px;text-align: left;display:inline-block;">{{patient.name }}</div>
17
+                        </div>
18
+
19
+                        <div style="flex:1;text-align: center;" >
20
+                            病历号:
21
+                            <div  style="width: 120px;text-align: left;display:inline-block;">
22
+                                {{patient.disease_no?patient.disease_no:"/"}}
23
+                            </div>
24
+                        </div>
25
+
26
+                        <div style="flex:1;text-align: center;" >
27
+                           病区-床号:
28
+                            <div  style="width: 120px;text-align: left;display:inline-block;">
29
+                                {{patient.ward}}-{{patient.bed_no}}
30
+                            </div>
31
+                        </div>
32
+
33
+                        <div  style="flex:1;text-align: center;">
34
+                           接收日期:
35
+                            <div style="width: 100px;text-align: left;display:inline-block;">
36
+                                {{patient.date}}
37
+                            </div>
38
+                        </div>
39
+                    </div>
40
+
41
+                    <div style="display: flex; justify-self: start;margin-top: 5px ;">
42
+                        <div style="flex: 1;">性别:{{information.sex}}</div>
43
+                        <div style="flex: 1;">年龄:{{information.age}}</div>
44
+                        <div style="flex: 1;">出生日期:{{information.birthday}}</div>
45
+                    </div>
46
+                    <div style="display: flex; justify-self: start; margin-top: 5px ;">
47
+                        <div style="flex: 1;">身份证号:{{information.id_number}}</div>
48
+                        <div style="flex: 1;">病人来源:{{information.patient_source}}</div>
49
+                        <div style="flex: 1;">透析号:{{information.dialysis_num}}</div>
50
+                    </div>
51
+                    <div style="display: flex; justify-self: start; margin-top: 5px ;">
52
+                        <div style="flex: 1;">首次透析日期:{{information.first_date}}</div>
53
+                        <div style="flex: 1;">血型:{{information.blood_type}}</div>
54
+                        <div style="flex: 1;">报销方式:{{information.reimbursement}}</div>
55
+                    </div>
56
+                    <div style="display: flex; justify-self: start; margin-top: 5px ;">
57
+                        <div style="flex: 1;">工作单位:{{information.work_unit}}</div>
58
+                        <div style="flex: 1;">联系电话:{{information.contact_number}}</div>
59
+                        <div style="flex: 1;">家庭住址:{{information.home_address}}</div>
60
+                    </div>
61
+                    <div style="display: flex; justify-self: start; margin-top: 5px ;">
62
+                        <div style="flex: 1;">肾移植史:{{information.transplantation}}</div>
63
+                        <div style="flex: 1;">腹膜透析史:{{information.peritoneum}}</div>
64
+                        <div style="flex: 1;">过敏药物:{{information.allergy_drug}}</div>
65
+                    </div>
66
+
67
+                    <h3 style="text-align: center; margin: 20px 0px;">病史内容</h3>
68
+                    <div>
69
+                        <div>主诉:</div>
70
+                        <div>{{ medical_history.chief_complaint }}</div>
71
+                        <div>现病史:</div>
72
+                        <div>{{ medical_history.present_disease }}</div>
73
+                        <div>既往史:</div>
74
+                        <div>{{ medical_history.past }}</div>
75
+                        <div>个人史:</div>
76
+                        <div>{{ medical_history.personal }}</div>
77
+                        <div>婚育史:</div>
78
+                        <div>{{ medical_history.marriage }}</div>
79
+                        <div>家族史:</div>
80
+                        <div>{{ medical_history.family }}</div>
81
+                    </div>
82
+                    <h3 style="text-align: center; margin: 30px 0px 10px 0px;">体格检查</h3>
83
+                    <div>
84
+                        <div style="display: flex; justify-self: start;">
85
+                            <div style="flex:1;text-align: center;">T: {{physique.temperature}}℃</div>
86
+                            <div style="flex:1;text-align: center;">P:{{ physique.heartbeat }}次/分</div>
87
+                            <div style="flex:1;text-align: center;">R:{{ physique.R }}次/分</div>
88
+                            <div style="flex:1;text-align: center;">Bp:{{ physique.Bp }}mmHg</div>
89
+                        </div>
90
+                        <div style="margin-top: 5px;">
91
+                            无贫血容貌,自主体位,无浮肿,出血点/瘀斑/血肿:无,发育正常,营养良好,神志:清楚
92
+                            {{ physique.anemia }}
93
+                        </div>
94
+                        <div style="margin-top: 5px;">
95
+                            <span style="font-weight: bold;">皮肤黏膜</span>:
96
+                            {{ physique.cutaneous }}
97
+                        </div>
98
+                        <div style="margin-top: 5px;">
99
+                            <span style="font-weight: bold;">淋巴结</span>:
100
+                            {{ physique.lymph_node }}
101
+                        </div>
102
+                        <div style="margin-top: 5px;">
103
+                            <span style="font-weight: bold;">头部</span>:
104
+                            {{ physique.head }}
105
+                        </div>
106
+                        <div style="margin-top: 5px;">
107
+                            <span style="font-weight: bold;">颈部</span>:    
108
+                            {{ physique.neck }}
109
+                        </div>
110
+                        <div style="margin-top: 5px;">
111
+                            <span style="font-weight: bold;">肺脏</span>:
112
+                            {{ physique.lung }}
113
+                        </div>
114
+                        <div style="margin-top: 5px;">
115
+                            <span style="font-weight: bold;">心脏</span>:
116
+                            {{ physique.heart }}
117
+                        </div>
118
+                        <div style="margin-top: 5px;">
119
+                            <span style="font-weight: bold;">腹部</span>:
120
+                            {{ physique.abdomen }}
121
+                        </div>
122
+                        <div style="margin-top: 5px;">
123
+                            <span style="font-weight: bold;">其他</span>:
124
+                             {{ physique.other }}
125
+                        </div>
126
+                    </div>
127
+
128
+                    <div style="margin-top: 30px;">
129
+                        <span style="font-weight: bold; display: block;">初步诊断:</span>
130
+                        {{ diagnosis }}                       
131
+                    </div>
132
+                </div>
133
+                
134
+                
135
+            </div>
136
+        </div>
137
+    </div>
138
+</template>
139
+
140
+<script>
141
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
142
+import print from "print-js";
143
+export default {
144
+    name:'physiquePrinting',
145
+    data() {
146
+        return {
147
+          crumbs: [
148
+            { path: false, name: '病人管理' },
149
+            { path: false, name: '病程打印' }
150
+          ],  
151
+          loading: false,
152
+          orgname:'',
153
+          patient:{
154
+            name:'',
155
+            disease_no:'',
156
+            ward:'',
157
+            bed_no:'',
158
+            date:'',
159
+          },
160
+          information:{
161
+            sex:'',
162
+            age:'',
163
+            birthday:'',
164
+            id_number:'',
165
+            patient_source:'',
166
+            dialysis_num:'',
167
+            first_date:'',
168
+            blood_type:'',
169
+            reimbursement:'',
170
+            work_unit:'',
171
+            contact_number:'',
172
+            home_address:'',
173
+            transplantation:'',
174
+            peritoneum:'',
175
+            allergy_drug:'',
176
+          },
177
+          medical_history:{
178
+            chief_complaint:'',
179
+            present_disease:'',
180
+            past:'',
181
+            personal:'',
182
+            marriage:'',
183
+            family:'',
184
+          },
185
+          physique:{
186
+            temperature:'',
187
+            heartbeat:'',
188
+            R:'',
189
+            Bp:'',
190
+            anemia:'',
191
+            cutaneous:'',
192
+            lymph_node:'',
193
+            head:'',
194
+            neck:'',
195
+            lung:'',
196
+            heart:'',
197
+            abdomen:'',
198
+            other:''
199
+          },
200
+          diagnosis:'',
201
+        }
202
+    },
203
+    components: {
204
+      BreadCrumb
205
+    },
206
+    methods: {
207
+        printAction: function () {
208
+            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;}'
209
+            printJS({
210
+                printable: 'print_content',
211
+                type: 'html',
212
+                documentTitle: '  ',
213
+                style: style,
214
+                scanStyles: false
215
+            })
216
+        },
217
+    }
218
+}
219
+</script>
220
+<style scoped>
221
+.print_page_main_content {
222
+    background-color: white;
223
+    width: 960px;
224
+    margin: 0 auto 50px;
225
+    padding: 0 0 0 0;
226
+    page-break-after: always;
227
+}
228
+
229
+</style>