|
@@ -0,0 +1,912 @@
|
|
1
|
+<template>
|
|
2
|
+ <div class="app-container">
|
|
3
|
+ <el-row style="padding-bottom: 15px;">
|
|
4
|
+ <el-col :span="24">
|
|
5
|
+ <el-button type="primary" @click="printAction">打印</el-button>
|
|
6
|
+ </el-col>
|
|
7
|
+ </el-row>
|
|
8
|
+ <div id="print_content">
|
|
9
|
+ <div v-for="(record, index) in records" :key="index" class="print_page_main_content">
|
|
10
|
+ <div class="order-yy-name">{{orgname}}</div>
|
|
11
|
+ <div class="order_title">
|
|
12
|
+ 血液净化治疗记录单
|
|
13
|
+ </div>
|
|
14
|
+ <div class="row" style="margin-top: 15px;">
|
|
15
|
+ <div class="inline_block">
|
|
16
|
+ 姓名:<div class="under_line" style="width: 120px;">{{ record.patient.name }}</div>
|
|
17
|
+ </div>
|
|
18
|
+ <div class="inline_block" style="margin-left: 20px;">
|
|
19
|
+ 性别:
|
|
20
|
+ <check-box text="男" :checked="record.patient.gender == 1"></check-box>
|
|
21
|
+ <check-box text="女" :checked="record.patient.gender == 2"></check-box>
|
|
22
|
+ </div>
|
|
23
|
+ <div class="inline_block" style="margin-left: 15px;">
|
|
24
|
+ 年龄:<div class="under_line" style="width: 50px;">{{jsGetAge(record.patient.birthday)}}</div>岁
|
|
25
|
+ </div>
|
|
26
|
+ <div class="inline_block" style="float: right;">
|
|
27
|
+ 科室:
|
|
28
|
+ <check-box text="门诊透析" :checked="record.patient.source == 1"></check-box>
|
|
29
|
+ <check-box text="住院" :checked="record.patient.source == 2"></check-box>
|
|
30
|
+ <!-- TODO -->
|
|
31
|
+ </div>
|
|
32
|
+ </div>
|
|
33
|
+ <div class="row flex">
|
|
34
|
+ <div class="inline_block">
|
|
35
|
+ 住院号/透析卡号:<div class="under_line" style="width: 100px;">{{record.patient.admission_number?record.patient.admission_number:'无'}}/{{ record.patient.dialysis_no }}</div>
|
|
36
|
+ </div>
|
|
37
|
+ <div class="inline_block">
|
|
38
|
+ 诊断:<div class="under_line" style="width: 500px;">{{record.patient.diagnose}}</div>
|
|
39
|
+ </div>
|
|
40
|
+ <div class="inline_block">
|
|
41
|
+ 治疗日期:<div class="under_line" style="width: 100px;">{{getTime(record.schedule_date, '{y}-{m}-{d}')}}</div>
|
|
42
|
+ </div>
|
|
43
|
+ </div>
|
|
44
|
+ <div class="row">
|
|
45
|
+ <table class="proj_table">
|
|
46
|
+ <tbody>
|
|
47
|
+ <tr>
|
|
48
|
+ <td width="25px">
|
|
49
|
+ 透<br/>前<br/>评<br/>估
|
|
50
|
+ </td>
|
|
51
|
+ <td>
|
|
52
|
+ <div class="row" style="padding: 2px 0;">
|
|
53
|
+ <div class="inline_block">
|
|
54
|
+ 入院方式:
|
|
55
|
+ <check-box text="步行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 1)"></check-box>
|
|
56
|
+ <check-box text="扶行" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 2)"></check-box>
|
|
57
|
+ <check-box text="轮椅" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 3)"></check-box>
|
|
58
|
+ <check-box text="平车" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 4)"></check-box>
|
|
59
|
+ </div>
|
|
60
|
+ <div class="inline_block" style="margin-left: 30px;">
|
|
61
|
+ 意识:
|
|
62
|
+ <check-box text="清醒" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>
|
|
63
|
+ <check-box text="嗜睡" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>
|
|
64
|
+ <check-box text="昏迷" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>
|
|
65
|
+ </div>
|
|
66
|
+ <div class="inline_block" style="margin-left: 30px;">
|
|
67
|
+ 体温:<div class="under_line" style="width: 60px;">{{record.assessment_before_dislysis?record.assessment_before_dislysis.temperature:''}}</div>℃
|
|
68
|
+ </div>
|
|
69
|
+ </div>
|
|
70
|
+ <div class="row" style="padding: 2px 0;">
|
|
71
|
+ <div class="inline_block">
|
|
72
|
+ 体位:
|
|
73
|
+ <check-box text="自动体位" :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 1)"></check-box>
|
|
74
|
+ <check-box text="平卧位" :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 2)"></check-box>
|
|
75
|
+ <check-box text="半卧位" :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 3)"></check-box>
|
|
76
|
+ <check-box text="端坐位" :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 4)"></check-box>
|
|
77
|
+ <check-box text="躁动不安" :checked="isCheckBoxChecked(record.receive_assessment, 'posture', 5)"></check-box>
|
|
78
|
+ </div>
|
|
79
|
+ </div>
|
|
80
|
+ <div class="row" style="padding: 2px 0;">
|
|
81
|
+ <div class="inline_block">
|
|
82
|
+ 出血:
|
|
83
|
+ <check-box text="无" :checked="isCheckBoxChecked(record.assessment_before_dislysis, 'is_hemorrhage', 2)"></check-box>
|
|
84
|
+ <check-box text="有" :checked="isCheckBoxChecked(record.assessment_before_dislysis, 'is_hemorrhage', 1)"></check-box>
|
|
85
|
+ (
|
|
86
|
+ <check-box text="穿刺点渗血" :checked="isCheckBoxChecked(record.assessment_before_dislysis, 'is_hemorrhage', 1)&&record.assessment_before_dislysis.hemorrhage.indexOf('穿刺点渗血')>-1?true:false"></check-box>
|
|
87
|
+ <check-box text="牙龈出血" :checked="isCheckBoxChecked(record.assessment_before_dislysis, 'is_hemorrhage', 1)&&record.assessment_before_dislysis.hemorrhage.indexOf('牙龈出血')>-1?true:false"></check-box>
|
|
88
|
+ <check-box text="消化道出血" :checked="isCheckBoxChecked(record.assessment_before_dislysis, 'is_hemorrhage', 1)&&record.assessment_before_dislysis.hemorrhage.indexOf('消化道出血')>-1?true:false"></check-box>
|
|
89
|
+ <check-box text="女性经期" :checked="isCheckBoxChecked(record.assessment_before_dislysis, 'is_hemorrhage', 1)&&record.assessment_before_dislysis.hemorrhage.indexOf('女性经期')>-1?true:false"></check-box>
|
|
90
|
+ 其他:<div class="under_line" style="width: 300px;">{{isCheckBoxChecked(record.assessment_before_dislysis, 'is_hemorrhage', 1)?record.assessment_before_dislysis.hemorrhage_other:''}}</div>
|
|
91
|
+ )
|
|
92
|
+ </div>
|
|
93
|
+ </div>
|
|
94
|
+ <div class="row" style="padding: 2px 0;">
|
|
95
|
+ <div class="inline_block">
|
|
96
|
+ 血管通路:
|
|
97
|
+ <check-box text="自体内瘘" :checked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '自体内瘘')"></check-box>
|
|
98
|
+ <check-box text="人造血管" :checked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '人造血管')"></check-box>
|
|
99
|
+ <check-box text="直穿" :checked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '直穿')"></check-box>
|
|
100
|
+ <check-box text="颈内静脉" :checked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '颈内静脉')"></check-box>
|
|
101
|
+ <check-box text="股静脉" :checked="isBbloodAccessParOperaCheck(record.assessment_before_dislysis, '股静脉')"></check-box>
|
|
102
|
+ </div>
|
|
103
|
+ </div>
|
|
104
|
+ <div class="row" style="padding: 2px 0;">
|
|
105
|
+ <div class="inline_block">
|
|
106
|
+ 内瘘:震颤
|
|
107
|
+ <!-- <check-box text="震颤" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula', '震颤-存在')"></check-box> -->
|
|
108
|
+ (
|
|
109
|
+ <check-box text="存在" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula', '震颤-存在')"></check-box>
|
|
110
|
+ <check-box text="减弱" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula', '震颤-减弱')"></check-box>
|
|
111
|
+ <check-box text="无" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula', '震颤-无')"></check-box>
|
|
112
|
+ <!-- <check-box text="股静脉" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula', '震颤-存在')"></check-box> -->
|
|
113
|
+ )
|
|
114
|
+ 内瘘皮肤情况:(
|
|
115
|
+ <check-box text="正常" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula_skin', '正常')"></check-box>
|
|
116
|
+ <check-box text="瘀斑" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula_skin', '瘀斑')"></check-box>
|
|
117
|
+ <check-box text="红" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula_skin', '红')"></check-box>
|
|
118
|
+ <check-box text="肿" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula_skin', '肿')"></check-box>
|
|
119
|
+ )
|
|
120
|
+ </div>
|
|
121
|
+ </div>
|
|
122
|
+ <div class="row" style="padding: 2px 0;">
|
|
123
|
+ <div class="inline_block">
|
|
124
|
+ 导管:穿刺口
|
|
125
|
+ (
|
|
126
|
+ <check-box text="干洁" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '穿刺口-干洁')"></check-box>
|
|
127
|
+ <check-box text="红肿" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '穿刺口-红肿')"></check-box>
|
|
128
|
+ <check-box text="分泌物" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '穿刺口-分泌物')"></check-box>
|
|
129
|
+ <check-box text="渗血" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'catheter', '穿刺口-渗血')"></check-box>
|
|
130
|
+ )
|
|
131
|
+ 导管打折:(
|
|
132
|
+ <check-box text="有" :checked="isCheckBoxChecked(record.assessment_before_dislysis, 'catheter_bend', 1)"></check-box>
|
|
133
|
+ <check-box text="无" :checked="isCheckBoxChecked(record.assessment_before_dislysis, 'catheter_bend', 1)?false:true"></check-box>
|
|
134
|
+ )
|
|
135
|
+ </div>
|
|
136
|
+ </div>
|
|
137
|
+ </td>
|
|
138
|
+ </tr>
|
|
139
|
+ <tr>
|
|
140
|
+ <td width="25px">
|
|
141
|
+ 透<br/>析<br/>处<br/>方
|
|
142
|
+ </td>
|
|
143
|
+ <td>
|
|
144
|
+ <div class="row" style="padding: 2px 0;">
|
|
145
|
+ <div class="inline_block">
|
|
146
|
+ 透析时间:
|
|
147
|
+ <div class="under_line" style="width: 30px;">{{record.prescription&&record.prescription.dialysis_duration_hour?record.prescription.dialysis_duration_hour:''}}</div>h
|
|
148
|
+ <div class="under_line" style="width: 30px;">{{record.prescription&&record.prescription.dialysis_duration_minute?record.prescription.dialysis_duration_minute:''}}</div>min
|
|
149
|
+ </div>
|
|
150
|
+ <div class="inline_block" style="margin-left: 30px;">
|
|
151
|
+ 血流量:
|
|
152
|
+ <div class="under_line" style="width: 50px;">{{record.prescription&&record.prescription.blood_flow_volume?record.prescription.blood_flow_volume:''}}</div>ml/min
|
|
153
|
+ </div>
|
|
154
|
+ <div class="inline_block" style="margin-left: 30px;">
|
|
155
|
+ 体重:
|
|
156
|
+ 透前 <div class="under_line" style="width: 50px;">{{record.assessment_before_dislysis&&record.assessment_before_dislysis.weight_before?record.assessment_before_dislysis.weight_before:''}}</div>kg
|
|
157
|
+ 干体重 <div class="under_line" style="width: 50px;">{{record.assessment_before_dislysis&&record.assessment_before_dislysis.dry_weight?record.assessment_before_dislysis.dry_weight:''}}</div>kg
|
|
158
|
+ </div>
|
|
159
|
+ <div class="inline_block" style="margin-left: 30px;">
|
|
160
|
+ 目标超滤量:
|
|
161
|
+ <div class="under_line" style="width: 80px;">{{record.prescription&&record.prescription.target_ultrafiltration?record.prescription.target_ultrafiltration:''}}</div>ml
|
|
162
|
+ </div>
|
|
163
|
+ </div>
|
|
164
|
+ <div class="row" style="padding: 2px 0;">
|
|
165
|
+ <div class="inline_block">
|
|
166
|
+ 抗凝方式:
|
|
167
|
+ <check-box text="普通肝素" :checked="isCheckBoxChecked(record.prescription, 'anticoagulant', 2)"></check-box>(
|
|
168
|
+ 首剂 <div class="under_line" style="width: 40px;">{{isCheckBoxChecked(record.prescription, 'anticoagulant', 2)?record.prescription.anticoagulant_shouji:''}}</div>mg
|
|
169
|
+ 维持 <div class="under_line" style="width: 40px;">{{isCheckBoxChecked(record.prescription, 'anticoagulant', 2)?record.prescription.anticoagulant_weichi:''}}</div>mg/h
|
|
170
|
+ )
|
|
171
|
+
|
|
172
|
+ <check-box text="低分子肝素" :checked="isCheckBoxChecked(record.prescription, 'anticoagulant', 3)"></check-box>
|
|
173
|
+ <div class="under_line" style="width: 50px;">{{isCheckBoxChecked(record.prescription, 'anticoagulant', 3)?record.prescription.anticoagulant_zongliang:''}}</div>IU
|
|
174
|
+
|
|
175
|
+ <check-box text="无肝素" :checked="isCheckBoxChecked(record.prescription, 'anticoagulant', 1)" style="margin-left: 10px;"></check-box>
|
|
176
|
+ 其他方式:<div class="under_line" style="width: 170px;">{{record.prescription&&record.prescription.anticoagulant>3?anticoagulantName(record.prescription):''}}</div>
|
|
177
|
+ </div>
|
|
178
|
+ </div>
|
|
179
|
+ <div class="row" style="padding: 2px 0;">
|
|
180
|
+ <div class="inline_block">
|
|
181
|
+ 透析液配方:
|
|
182
|
+ <check-box text="常规" :checked="isdialysateFormulatioCheck(record.prescription, '常规')"></check-box>
|
|
183
|
+ <check-box text="低钙" :checked="isdialysateFormulatioCheck(record.prescription, '低钙')"></check-box>(1.25mmol/L)
|
|
184
|
+ <check-box text="高钙" :checked="isdialysateFormulatioCheck(record.prescription, '高钙')"></check-box>(1.75mmol/L)
|
|
185
|
+ <check-box text="低钠" :checked="isdialysateFormulatioCheck(record.prescription, '低钠')"></check-box>(135mmol/L)
|
|
186
|
+ <check-box text="高钠" :checked="isdialysateFormulatioCheck(record.prescription, '高钠')"></check-box>(145mmol/L)
|
|
187
|
+ </div>
|
|
188
|
+ </div>
|
|
189
|
+ <div class="row" style="padding: 2px 0;">
|
|
190
|
+ <div class="inline_block">
|
|
191
|
+ 置换量:
|
|
192
|
+ <div class="under_line" style="width: 40px;">{{record.prescription&&record.prescription.replacement_total?record.prescription.replacement_total:''}}</div> L
|
|
193
|
+ </div>
|
|
194
|
+ <div class="inline_block" style="margin-left: 10px;">
|
|
195
|
+ 治疗方式:
|
|
196
|
+ <check-box text="HD" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 1)"></check-box>
|
|
197
|
+ <check-box text="HDF" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 2)"></check-box>
|
|
198
|
+ <check-box text="HF" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 5)"></check-box>
|
|
199
|
+ <check-box text="HP" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 4)"></check-box>
|
|
200
|
+ <check-box text="HD+HP" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 3)"></check-box>
|
|
201
|
+ 其他 <div class="under_line" style="width: 100px;">{{record.prescription&&record.prescription.mode_id>5?modeName(record.prescription.mode_id):''}}</div>
|
|
202
|
+ </div>
|
|
203
|
+ <div class="inline_block" style="margin-left: 10px;">
|
|
204
|
+ 透析器/灌流器型号:
|
|
205
|
+ <div class="under_line" style="width: 130px;">{{record.prescription?record.prescription.dialyzer_perfusion_apparatus:''}}</div>
|
|
206
|
+ </div>
|
|
207
|
+ </div>
|
|
208
|
+ <div class="row" style="padding: 2px 0;">
|
|
209
|
+ <div class="inline_block">
|
|
210
|
+ 透析机号:
|
|
211
|
+ <div class="under_line" style="width: 150px;">{{record.device_zone?record.device_zone.name:''}}{{record.device_number&&record.dialysis_order?record.device_number.number:''}}</div>
|
|
212
|
+ </div>
|
|
213
|
+ <div class="inline_block" style="float: right;">
|
|
214
|
+ 医生签名:
|
|
215
|
+ <div class="under_line" style="width: 100px;">
|
|
216
|
+
|
|
217
|
+ <span v-if="setAdminUserES(record.prescription, 'prescription_doctor') == ''">{{getAdminUser(record.prescription, 'prescription_doctor')}}</span>
|
|
218
|
+ <img class="es-img" :src="setAdminUserES(record.prescription, 'prescription_doctor')" alt="" srcset="" v-else style="height: 20px;">
|
|
219
|
+
|
|
220
|
+ <!-- <img style="height: 20px;" src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1552901663505&di=bf12bd343b552c6ccfb2ed12343a3141&imgtype=0&src=http%3A%2F%2Fd.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fe61190ef76c6a7ef7d58560df3faaf51f3de669b.jpg" /> -->
|
|
221
|
+ </div>
|
|
222
|
+ 上机护士:
|
|
223
|
+ <div class="under_line" style="width: 100px;">
|
|
224
|
+ <span v-if="setAdminUserES(record.dialysis_order, 'start_nurse') == ''">{{getAdminUser(record.dialysis_order, 'start_nurse')}}</span>
|
|
225
|
+ <img class="es-img" :src="setAdminUserES(record.dialysis_order, 'start_nurse')" alt="" srcset="" v-else style="height: 20px;">
|
|
226
|
+ </div>
|
|
227
|
+ </div>
|
|
228
|
+ </div>
|
|
229
|
+ </td>
|
|
230
|
+ </tr>
|
|
231
|
+ <tr>
|
|
232
|
+ <td width="25px">
|
|
233
|
+ 透<br/>析<br/>中<br/>记<br/>录
|
|
234
|
+ </td>
|
|
235
|
+ <td style="padding: 0;">
|
|
236
|
+ <table class="inside_table">
|
|
237
|
+ <thead>
|
|
238
|
+ <tr>
|
|
239
|
+ <td width="100">时间</td>
|
|
240
|
+ <td width="80">血压<br/>mmHg</td>
|
|
241
|
+ <td width="60">脉率<br/>次/分</td>
|
|
242
|
+ <td width="60">呼吸<br/>次/分</td>
|
|
243
|
+ <td width="60">血流量<br/>ml/min</td>
|
|
244
|
+ <td width="60">超滤量<br/>L</td>
|
|
245
|
+ <td width="60">置换量<br/>L</td>
|
|
246
|
+ <td width="60">静脉压<br/>mmHg</td>
|
|
247
|
+ <td width="60">跨膜压<br/>mmHg</td>
|
|
248
|
+ <td>备注</td>
|
|
249
|
+ </tr>
|
|
250
|
+ </thead>
|
|
251
|
+ <tbody>
|
|
252
|
+ <tr v-for="(monitor_record, index) in record.monitor_records" :key="index">
|
|
253
|
+ <td>{{getTime(monitor_record.operate_time,'{h}:{i}')}}</td>
|
|
254
|
+ <td>{{monitor_record.systolic_blood_pressure?monitor_record.systolic_blood_pressure:''}} / {{monitor_record.diastolic_blood_pressure?monitor_record.diastolic_blood_pressure:''}}</td>
|
|
255
|
+ <td>{{monitor_record.pulse_frequency?monitor_record.pulse_frequency:''}}</td>
|
|
256
|
+ <td>{{monitor_record.breathing_rate?monitor_record.breathing_rate:''}}</td>
|
|
257
|
+ <td>{{monitor_record.blood_flow_volume?monitor_record.blood_flow_volume:''}}</td>
|
|
258
|
+ <td>{{monitor_record.ultrafiltration_volume?monitor_record.ultrafiltration_volume:''}}</td>
|
|
259
|
+ <td>{{monitor_record.displacement_quantity?monitor_record.displacement_quantity:''}}</td>
|
|
260
|
+ <td>{{monitor_record.venous_pressure?monitor_record.venous_pressure:''}}</td>
|
|
261
|
+ <td>{{monitor_record.transmembrane_pressure?monitor_record.transmembrane_pressure:''}}</td>
|
|
262
|
+ <td>
|
|
263
|
+ {{monitor_record.symptom}}
|
|
264
|
+ {{monitor_record.dispose}}
|
|
265
|
+ {{monitor_record.result}}
|
|
266
|
+ </td>
|
|
267
|
+ </tr>
|
|
268
|
+ <!-- 使整个表有7行以上 -->
|
|
269
|
+ <template v-if="record.monitor_records.length < 8">
|
|
270
|
+ <tr v-for="(num) in (8 - record.monitor_records.length)" :key="'8_' + num">
|
|
271
|
+ <td></td>
|
|
272
|
+ <td>/</td>
|
|
273
|
+ <td></td>
|
|
274
|
+ <td></td>
|
|
275
|
+ <td></td>
|
|
276
|
+ <td></td>
|
|
277
|
+ <td></td>
|
|
278
|
+ <td></td>
|
|
279
|
+ <td></td>
|
|
280
|
+ <td></td>
|
|
281
|
+ </tr>
|
|
282
|
+ </template>
|
|
283
|
+ </tbody>
|
|
284
|
+ </table>
|
|
285
|
+ </td>
|
|
286
|
+ </tr>
|
|
287
|
+ <tr>
|
|
288
|
+ <td width="25px">
|
|
289
|
+ 透<br/>后<br/>评<br/>估
|
|
290
|
+ </td>
|
|
291
|
+ <td>
|
|
292
|
+ <div class="row" style="padding: 2px 0;">
|
|
293
|
+ <div class="inline_block">
|
|
294
|
+ 实际治疗时间:
|
|
295
|
+ <div class="under_line" style="width: 30px;">{{record.assessment_after_dislysis&&record.assessment_after_dislysis.actual_treatment_hour?record.assessment_after_dislysis.actual_treatment_hour:''}}</div>h
|
|
296
|
+ <div class="under_line" style="width: 30px;">{{record.assessment_after_dislysis&&record.assessment_after_dislysis.actual_treatment_minute?record.assessment_after_dislysis.actual_treatment_minute:''}}</div>min
|
|
297
|
+ </div>
|
|
298
|
+ <div class="inline_block" style="margin-left: 25px;">
|
|
299
|
+ 实际超滤量:
|
|
300
|
+ <div class="under_line" style="width: 50px;">{{record.assessment_after_dislysis&&record.assessment_after_dislysis.actual_ultrafiltration?record.assessment_after_dislysis.actual_ultrafiltration:''}}</div>ml
|
|
301
|
+ </div>
|
|
302
|
+ <div class="inline_block" style="margin-left: 25px;">
|
|
303
|
+ 透后体重:
|
|
304
|
+ <div class="under_line" style="width: 50px;">{{record.assessment_after_dislysis&&record.assessment_after_dislysis.weight_after?record.assessment_after_dislysis.weight_after:''}}</div>kg
|
|
305
|
+ </div>
|
|
306
|
+ <div class="inline_block" style="margin-left: 25px;">
|
|
307
|
+ 透析器凝血:
|
|
308
|
+ <check-box text="0级" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'cruor', '0度')"></check-box>
|
|
309
|
+ <check-box text="Ⅰ级" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'cruor', 'Ⅰ度')"></check-box>
|
|
310
|
+ <check-box text="Ⅱ级" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'cruor', 'Ⅱ度')"></check-box>
|
|
311
|
+ <check-box text="Ⅲ级" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'cruor', 'Ⅲ度')"></check-box>
|
|
312
|
+ </div>
|
|
313
|
+ </div>
|
|
314
|
+ <div class="row" style="padding: 2px 0;">
|
|
315
|
+ <div class="inline_block">
|
|
316
|
+ 拔针后穿刺点渗血:
|
|
317
|
+ <check-box text="有" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'puncture_point_oozing_blood', 1)"></check-box>
|
|
318
|
+ <check-box text="无" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'puncture_point_oozing_blood', 1)?false:true"></check-box>
|
|
319
|
+ </div>
|
|
320
|
+ <div class="inline_block" style="margin-left: 40px;">
|
|
321
|
+ 穿刺点血肿:
|
|
322
|
+ <check-box text="有" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'puncture_point_haematoma', 1)"></check-box>
|
|
323
|
+ <check-box text="无" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'puncture_point_haematoma', 1)?false:true"></check-box>
|
|
324
|
+ </div>
|
|
325
|
+ <div class="inline_block" style="margin-left: 40px;">
|
|
326
|
+ 压迫后内瘘震颤:
|
|
327
|
+ <check-box text="存在" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'internal_fistula_tremor_ac', 1)"></check-box>
|
|
328
|
+ <check-box text="减弱" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'internal_fistula_tremor_ac', 2)"></check-box>
|
|
329
|
+ <check-box text="无" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'internal_fistula_tremor_ac', 3)"></check-box>
|
|
330
|
+ </div>
|
|
331
|
+ </div>
|
|
332
|
+ <div class="row" style="padding: 2px 0;">
|
|
333
|
+ <div class="inline_block">
|
|
334
|
+ 并发症:
|
|
335
|
+ <check-box text="低血压" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '低血压')"></check-box>
|
|
336
|
+ <check-box text="高血压" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '高血压')"></check-box>
|
|
337
|
+ <check-box text="心律失常" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '心律失常')"></check-box>
|
|
338
|
+ <check-box text="头晕" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '头晕')"></check-box>
|
|
339
|
+ <check-box text="头痛" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '头痛')"></check-box>
|
|
340
|
+ <check-box text="呕吐" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '呕吐')"></check-box>
|
|
341
|
+ <check-box text="抽搐" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '抽搐')"></check-box>
|
|
342
|
+ <check-box text="出血" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '出血')"></check-box>
|
|
343
|
+ <check-box text="心衰" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '心衰')"></check-box>
|
|
344
|
+ <check-box text="腹痛" :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '腹痛')"></check-box>
|
|
345
|
+ </div>
|
|
346
|
+ </div>
|
|
347
|
+ <div class="row" style="padding: 2px 0;">
|
|
348
|
+ 其他记录:<div class="under_line" style="width: 830px;">{{complicationsOther(record.assessment_after_dislysis)}}</div>
|
|
349
|
+ </div>
|
|
350
|
+ <div class="row" style="padding: 2px 0;"><!-- 同属“其他记录” -->
|
|
351
|
+ <div class="under_line" style="width: 900px;"></div>
|
|
352
|
+ </div>
|
|
353
|
+ <div class="row" style="padding: 2px 0;">
|
|
354
|
+ 患者去向:
|
|
355
|
+ <check-box text="离院" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'patient_gose', 1)"></check-box>
|
|
356
|
+ <check-box text="留观" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'patient_gose', 2)"></check-box>
|
|
357
|
+ <check-box text="住院" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'patient_gose', 3)"></check-box>
|
|
358
|
+ (
|
|
359
|
+ 科室 <div class="under_line" style="width: 200px;"></div>
|
|
360
|
+ 交待病房护士/患者/陪人观察内容:
|
|
361
|
+ <check-box text="意识状态" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'patient_gose', 3)&&isValueIndexOfCheck(record.assessment_after_dislysis, 'observation_content', '意识状态')"></check-box>
|
|
362
|
+ <check-box text="生命体征" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'patient_gose', 3)&&isValueIndexOfCheck(record.assessment_after_dislysis, 'observation_content', '生命体征')"></check-box>
|
|
363
|
+ </div>
|
|
364
|
+ <!-- 接“交待病房护士/患者/陪人观察内容” -->
|
|
365
|
+ <div class="row" style="padding: 2px 0;">
|
|
366
|
+ <check-box text="内瘘搏动/渗血" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'patient_gose', 3)&&isValueIndexOfCheck(record.assessment_after_dislysis, 'observation_content', '内瘘搏动/渗血')"></check-box>
|
|
367
|
+ <check-box text="导管固定/穿刺口渗血" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'patient_gose', 3)&&isValueIndexOfCheck(record.assessment_after_dislysis, 'observation_content', '导管固定/穿刺口渗血')"></check-box>
|
|
368
|
+ <check-box text="动静脉直接穿刺口渗血/肢端循环情况" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'patient_gose', 3)&&isValueIndexOfCheck(record.assessment_after_dislysis, 'observation_content', '动静脉直接穿刺口渗血/肢端循环情况')"></check-box>
|
|
369
|
+ 其他:
|
|
370
|
+ <div class="under_line" style="width: 290px;">{{isCheckBoxChecked(record.assessment_after_dislysis, 'patient_gose', 3)?record.assessment_after_dislysis.observation_content_other:''}}</div>
|
|
371
|
+ )
|
|
372
|
+ </div>
|
|
373
|
+ <div class="row" style="padding: 2px 0;">
|
|
374
|
+ <div class="inline_block" style="float: left;">
|
|
375
|
+ 当班责任(核对)护士:
|
|
376
|
+ <div class="under_line" style="width: 100px;">
|
|
377
|
+ <span v-if="setAdminUserES(record.assessment_after_dislysis, 'creater') == ''">{{getAdminUser(record.assessment_after_dislysis, 'creater')}}</span>
|
|
378
|
+ <img class="es-img" :src="setAdminUserES(record.assessment_after_dislysis, 'creater')" alt="" srcset="" v-else style="height: 20px;">
|
|
379
|
+ </div>
|
|
380
|
+ </div>
|
|
381
|
+ <div class="inline_block" style="float: right;">
|
|
382
|
+ 下机护士:
|
|
383
|
+ <div class="under_line" style="width: 100px;">
|
|
384
|
+ <span v-if="setAdminUserES(record.dialysis_order, 'finish_nurse') == ''">{{getAdminUser(record.dialysis_order, 'finish_nurse')}}</span>
|
|
385
|
+ <img class="es-img" :src="setAdminUserES(record.dialysis_order, 'finish_nurse')" alt="" srcset="" v-else style="height: 20px;">
|
|
386
|
+ </div>
|
|
387
|
+ </div>
|
|
388
|
+ </div>
|
|
389
|
+ </td>
|
|
390
|
+ </tr>
|
|
391
|
+ <tr>
|
|
392
|
+ <td colspan="2" style="padding: 0;">
|
|
393
|
+ <table class="inside_table">
|
|
394
|
+ <thead>
|
|
395
|
+ <tr>
|
|
396
|
+
|
|
397
|
+ <td width="40px">时间</td>
|
|
398
|
+ <td width="120px">医嘱内容</td>
|
|
399
|
+ <td width="80px">医生签名</td>
|
|
400
|
+ <td width="80px">执行护士</td>
|
|
401
|
+ <td width="65px">执行时间</td>
|
|
402
|
+ <td width="75px">核对护士</td>
|
|
403
|
+ <td width="10px"></td>
|
|
404
|
+ <td width="40px">时间</td>
|
|
405
|
+ <td width="120px">医嘱内容</td>
|
|
406
|
+ <td width="80px">医生签名</td>
|
|
407
|
+ <td width="80px">执行护士</td>
|
|
408
|
+ <td width="65px">执行时间</td>
|
|
409
|
+ <td width="75px">核对护士</td>
|
|
410
|
+
|
|
411
|
+ <!-- <td width="100">时间</td>
|
|
412
|
+ <td>医嘱内容</td>
|
|
413
|
+ <td width="120">医生签名</td>
|
|
414
|
+ <td width="120">执行护士</td>
|
|
415
|
+ <td width="100">执行时间</td>
|
|
416
|
+ <td width="120">核对护士</td> -->
|
|
417
|
+ </tr>
|
|
418
|
+ </thead>
|
|
419
|
+ <tbody>
|
|
420
|
+ <tr v-for="(advice, index) in record.advices" :key="index">
|
|
421
|
+ <td>
|
|
422
|
+ <span v-if="advice[0].start_time">
|
|
423
|
+ {{getTime(advice[0].start_time,'{h}:{i}')}}
|
|
424
|
+ </span>
|
|
425
|
+ <span v-else> <br/> </span>
|
|
426
|
+ </td>
|
|
427
|
+ <td class="advice-name">
|
|
428
|
+ <span v-if="advice[0].parent_id>0">└</span>
|
|
429
|
+ <span>{{advice[0].advice_name }}</span>
|
|
430
|
+ <span>{{advice[0].advice_desc}}</span>
|
|
431
|
+ <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
|
|
432
|
+ <span v-if="advice[0].prescribing_number">* {{advice[0].prescribing_number}}{{advice[0].prescribing_number_unit}}</span>
|
|
433
|
+ <span v-if="advice[0].single_dose != 0">单次用量 {{advice[0].single_dose}}{{advice[0].single_dose_unit}}</span>
|
|
434
|
+ <span>{{advice[0].delivery_way}}</span>
|
|
435
|
+ <span>{{advice[0].execution_frequency}}</span>
|
|
436
|
+ <div v-for="(child, childindex) in advice[0].children" :key="childindex" class="advice-children">
|
|
437
|
+ <div>▲</div>
|
|
438
|
+ <div>
|
|
439
|
+ <span>{{child.advice_name }}</span>
|
|
440
|
+ <span>{{child.advice_desc}}</span>
|
|
441
|
+ <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
|
|
442
|
+ <span
|
|
443
|
+ v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
|
|
444
|
+ <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
|
|
445
|
+ </div>
|
|
446
|
+ </div>
|
|
447
|
+ </td>
|
|
448
|
+ <td>
|
|
449
|
+ <span v-if="setAdminUserES(advice[0], 'advice_doctor') == ''">{{getAdminUser(advice[0], 'advice_doctor')}}</span>
|
|
450
|
+ <img class="es-img" :src="setAdminUserES(advice[0], 'advice_doctor')" alt="" srcset="" v-else style="height: 20px;">
|
|
451
|
+ </td>
|
|
452
|
+ <td>
|
|
453
|
+ <span v-if="setAdminUserES(advice[0], 'execution_staff') == ''">{{getAdminUser(advice[0], 'execution_staff')}}</span>
|
|
454
|
+ <img class="es-img" :src="setAdminUserES(advice[0], 'execution_staff')" alt="" srcset="" v-else style="height: 20px;">
|
|
455
|
+ </td>
|
|
456
|
+ <td>
|
|
457
|
+ <span v-if="advice[0].execution_time">
|
|
458
|
+ {{getTime(advice[0].execution_time,'{h}:{i}')}}
|
|
459
|
+ </span>
|
|
460
|
+ </td>
|
|
461
|
+ <td>
|
|
462
|
+ <span v-if="setAdminUserES(advice[0], 'checker') == ''">{{getAdminUser(advice[0], 'checker')}}</span>
|
|
463
|
+ <img class="es-img" :src="setAdminUserES(advice[0], 'checker')" alt="" srcset="" v-else style="height: 20px;">
|
|
464
|
+ </td>
|
|
465
|
+ <td></td>
|
|
466
|
+ <td>
|
|
467
|
+ <span v-if="advice[1].start_time">
|
|
468
|
+ {{getTime(advice[1].start_time,'{h}:{i}')}}
|
|
469
|
+ </span>
|
|
470
|
+ <span v-else> <br/> </span>
|
|
471
|
+ </td>
|
|
472
|
+ <td class="advice-name">
|
|
473
|
+ <span v-if="advice[1].parent_id>0">└</span>
|
|
474
|
+ <span>{{advice[1].advice_name }}</span>
|
|
475
|
+ <span>{{advice[1].advice_desc}}</span>
|
|
476
|
+ <!-- <span v-if="advice[1].drug_spec">{{advice[1].drug_spec}}{{advice[1].drug_spec_unit}}</span> -->
|
|
477
|
+ <span v-if="advice[1].prescribing_number">* {{advice[1].prescribing_number}}{{advice[1].prescribing_number_unit}}</span>
|
|
478
|
+ <span v-if="advice[1].single_dose != 0">单次用量 {{advice[1].single_dose}}{{advice[1].single_dose_unit}}</span>
|
|
479
|
+ <span>{{advice[1].delivery_way}}</span>
|
|
480
|
+ <span>{{advice[1].execution_frequency}}</span>
|
|
481
|
+ <div v-for="(child, childindex) in advice[1].children" :key="childindex" class="advice-children">
|
|
482
|
+ <div>▲</div>
|
|
483
|
+ <div>
|
|
484
|
+ <span>{{child.advice_name }}</span>
|
|
485
|
+ <span>{{child.advice_desc}}</span>
|
|
486
|
+ <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
|
|
487
|
+ <span
|
|
488
|
+ v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
|
|
489
|
+ <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
|
|
490
|
+ </div>
|
|
491
|
+ </div>
|
|
492
|
+ </td>
|
|
493
|
+ <td>
|
|
494
|
+ <span v-if="setAdminUserES(advice[1], 'advice_doctor') == ''">{{getAdminUser(advice[1], 'advice_doctor')}}</span>
|
|
495
|
+ <img class="es-img" :src="setAdminUserES(advice[1], 'advice_doctor')" alt="" srcset="" v-else style="height: 20px;">
|
|
496
|
+ </td>
|
|
497
|
+ <td>
|
|
498
|
+ <span v-if="setAdminUserES(advice[1], 'execution_staff') == ''">{{getAdminUser(advice[1], 'execution_staff')}}</span>
|
|
499
|
+ <img class="es-img" :src="setAdminUserES(advice[1], 'execution_staff')" alt="" srcset="" v-else style="height: 20px;">
|
|
500
|
+ </td>
|
|
501
|
+ <td>
|
|
502
|
+ <span v-if="advice[1].execution_time">
|
|
503
|
+ {{getTime(advice[1].execution_time,'{h}:{i}')}}
|
|
504
|
+ </span>
|
|
505
|
+ </td>
|
|
506
|
+ <td>
|
|
507
|
+ <span v-if="setAdminUserES(advice[1], 'checker') == ''">{{getAdminUser(advice[1], 'checker')}}</span>
|
|
508
|
+ <img class="es-img" :src="setAdminUserES(advice[1], 'checker')" alt="" srcset="" v-else style="height: 20px;">
|
|
509
|
+ </td>
|
|
510
|
+ </tr>
|
|
511
|
+ <!-- 使整个表有5行以上 -->
|
|
512
|
+ <template v-if="record.advices.length < 5">
|
|
513
|
+ <tr v-for="(num) in (5 - record.advices.length)" :key="'5_' + num">
|
|
514
|
+ <td> </td>
|
|
515
|
+ <td></td>
|
|
516
|
+ <td></td>
|
|
517
|
+ <td></td>
|
|
518
|
+ <td></td>
|
|
519
|
+ <td></td>
|
|
520
|
+ <td></td>
|
|
521
|
+ <td> </td>
|
|
522
|
+ <td></td>
|
|
523
|
+ <td></td>
|
|
524
|
+ <td></td>
|
|
525
|
+ <td></td>
|
|
526
|
+ <td></td>
|
|
527
|
+ </tr>
|
|
528
|
+ </template>
|
|
529
|
+ </tbody>
|
|
530
|
+ </table>
|
|
531
|
+ </td>
|
|
532
|
+ </tr>
|
|
533
|
+ </tbody>
|
|
534
|
+ </table>
|
|
535
|
+ </div>
|
|
536
|
+ <div class="row">
|
|
537
|
+ 注:透析器凝血评价标准:“0 级” 无凝血或数条纤维束凝血,“Ⅰ 级” 少于10%纤维凝血,“Ⅱ 级” 少于50%纤维凝血,“Ⅲ 级” 大于50%纤维凝血。
|
|
538
|
+ </div>
|
|
539
|
+ </div>
|
|
540
|
+ </div>
|
|
541
|
+ </div>
|
|
542
|
+</template>
|
|
543
|
+
|
|
544
|
+<script>
|
|
545
|
+import CheckBox from "./option_check_box"
|
|
546
|
+import print from "print-js"
|
|
547
|
+import { GetBatchPrintDialysisData } from "@/api/print_data"
|
|
548
|
+import {jsGetAge, uParseTime} from "@/utils/tools";
|
|
549
|
+import {getDataConfig} from '@/utils/data';
|
|
550
|
+
|
|
551
|
+export default {
|
|
552
|
+ name: "BatchPrintOrder",
|
|
553
|
+ components: {
|
|
554
|
+ CheckBox,
|
|
555
|
+ },
|
|
556
|
+ data() {
|
|
557
|
+ return {
|
|
558
|
+ records: [ // 模拟有多条数据
|
|
559
|
+ // {
|
|
560
|
+ // monitor_records: [ {},{},{},{},{},{},{},{},{},{},{}, ],
|
|
561
|
+ // advices: [ {},{},{},{},{},{},{}, ],
|
|
562
|
+ // },
|
|
563
|
+ // {
|
|
564
|
+ // monitor_records: [],
|
|
565
|
+ // advices: [],
|
|
566
|
+ // },
|
|
567
|
+ ],
|
|
568
|
+ orgname: '',
|
|
569
|
+ bloodAccessParOpera: {},
|
|
570
|
+ anticoagulantsConfit: {},
|
|
571
|
+ dialysateFormulationOptions:{},
|
|
572
|
+ operatorMaps: {},
|
|
573
|
+ operators: [],
|
|
574
|
+ adminUser:[],
|
|
575
|
+ complications: ['低血压', '高血压', '心律失常', '头晕', '头痛', '呕吐', '抽搐', '出血', '心衰', '腹痛'],
|
|
576
|
+ }
|
|
577
|
+ },
|
|
578
|
+ created() {
|
|
579
|
+ var xtuser = this.$store.getters.xt_user;
|
|
580
|
+ // this.orgname = xtuser.org.org_name;
|
|
581
|
+ this.orgname = "遂溪方济医院";
|
|
582
|
+ this.modeOptions = this.$store.getters.treatment_mode;
|
|
583
|
+ // this.replacementWays = this.$store.getters.replacement_ways;
|
|
584
|
+ // this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
|
|
585
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
|
586
|
+
|
|
587
|
+ var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc');
|
|
588
|
+ for (var key in bloodAccessParOpera) {
|
|
589
|
+ this.bloodAccessParOpera[bloodAccessParOpera[key].id] = bloodAccessParOpera[key];
|
|
590
|
+ }
|
|
591
|
+
|
|
592
|
+ var dialysateFormulationOptions = getDataConfig("hemodialysis", "dialysate_formulation");
|
|
593
|
+ for (var key in dialysateFormulationOptions) {
|
|
594
|
+ this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] = dialysateFormulationOptions[key];
|
|
595
|
+ }
|
|
596
|
+
|
|
597
|
+ // const xtdate = this.$route.query && this.$route.query.xtdate;
|
|
598
|
+ // const xtno = this.$route.query && this.$route.query.xtno;
|
|
599
|
+ // if (typeof (xtdate) == "string" && xtdate.length > 0 && typeof (xtno) == "string" && xtno.length > 0) {
|
|
600
|
+ // this.queryParams.xtdate = xtdate;
|
|
601
|
+ // this.queryParams.xtno = xtno;
|
|
602
|
+ // this.getDialysisRecord();
|
|
603
|
+ // } else {
|
|
604
|
+ // this.$message.error("参数不齐");
|
|
605
|
+ // return false;
|
|
606
|
+ // }
|
|
607
|
+ },
|
|
608
|
+ mounted() {
|
|
609
|
+ var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
|
|
610
|
+ if (ids.length == 0) {
|
|
611
|
+ this.$router.back(-1)
|
|
612
|
+ return
|
|
613
|
+ }
|
|
614
|
+ GetBatchPrintDialysisData(ids.join(",")).then(rs => {
|
|
615
|
+ var resp = rs.data
|
|
616
|
+ if (resp.state == 1) {
|
|
617
|
+
|
|
618
|
+ this.records = this.records.concat(resp.data.schedules);
|
|
619
|
+ for (const recordIndex in this.records) {
|
|
620
|
+ var childMap = {};
|
|
621
|
+ for (const index in this.records[recordIndex].advices) {
|
|
622
|
+ if (this.records[recordIndex].advices[index].parent_id == 0) {
|
|
623
|
+ continue;
|
|
624
|
+ }
|
|
625
|
+ if (!(this.records[recordIndex].advices[index].parent_id in childMap)) {
|
|
626
|
+ childMap[this.records[recordIndex].advices[index].parent_id] = [];
|
|
627
|
+ }
|
|
628
|
+ childMap[this.records[recordIndex].advices[index].parent_id].push(this.records[recordIndex].advices[index]);
|
|
629
|
+ }
|
|
630
|
+
|
|
631
|
+ var advices = [];
|
|
632
|
+ for (const index in this.records[recordIndex].advices) {
|
|
633
|
+ if (this.records[recordIndex].advices[index].parent_id > 0) {
|
|
634
|
+ continue;
|
|
635
|
+ }
|
|
636
|
+ var item = this.records[recordIndex].advices[index]
|
|
637
|
+ if (item.id in childMap) {
|
|
638
|
+ item.children = childMap[item.id];
|
|
639
|
+ } else {
|
|
640
|
+ item.children = [];
|
|
641
|
+ }
|
|
642
|
+ advices.push(item);
|
|
643
|
+ }
|
|
644
|
+
|
|
645
|
+ var leftAdvice = [];
|
|
646
|
+ var rightAdvice = [];
|
|
647
|
+ var adlen = advices.length;
|
|
648
|
+
|
|
649
|
+ var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen+1) / 2
|
|
650
|
+ for (var i = 0; i < halfLen; i++) {
|
|
651
|
+ leftAdvice.push(advices[i]);
|
|
652
|
+ rightAdvice.push(advices[i + halfLen]);
|
|
653
|
+ }
|
|
654
|
+ if (halfLen < 5) {
|
|
655
|
+ var nl = 5 - leftAdvice.length;
|
|
656
|
+ for (let index = 0; index < nl; index++) {
|
|
657
|
+ leftAdvice.push([]);
|
|
658
|
+ }
|
|
659
|
+ var nl = 5 - rightAdvice.length;
|
|
660
|
+ for (let index = 0; index < nl; index++) {
|
|
661
|
+ rightAdvice.push([]);
|
|
662
|
+ }
|
|
663
|
+ }
|
|
664
|
+
|
|
665
|
+ this.records[recordIndex].advices = [];
|
|
666
|
+ for (var i = 0; i < halfLen; i++) {
|
|
667
|
+ var item = [];
|
|
668
|
+ item.push(leftAdvice[i]);
|
|
669
|
+ item.push(rightAdvice[i]);
|
|
670
|
+ this.records[recordIndex].advices.push(item);
|
|
671
|
+ }
|
|
672
|
+ }
|
|
673
|
+ this.operators = resp.data.medical_staffs;
|
|
674
|
+ if (this.operators.length > 0) {
|
|
675
|
+ var operatorsLen = this.operators.length;
|
|
676
|
+ for (var index = 0; index < operatorsLen; index++) {
|
|
677
|
+ this.$set(this.operatorMaps, this.operators[index].id, this.operators[index]);
|
|
678
|
+ }
|
|
679
|
+ }
|
|
680
|
+
|
|
681
|
+ this.adminUser = resp.data.users;
|
|
682
|
+ } else {
|
|
683
|
+ this.$message.error(resp.msg)
|
|
684
|
+ }
|
|
685
|
+ }).catch(err => {
|
|
686
|
+ this.$message.error(err)
|
|
687
|
+ })
|
|
688
|
+ },
|
|
689
|
+ methods: {
|
|
690
|
+ printAction: function() {
|
|
691
|
+ const style = '@media print { .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; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; 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; 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: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .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: 10px 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: 8px 5px; line-height: 25px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}';
|
|
692
|
+
|
|
693
|
+ printJS({
|
|
694
|
+ printable: "print_content",
|
|
695
|
+ type: "html",
|
|
696
|
+ documentTitle: " ",
|
|
697
|
+ style: style,
|
|
698
|
+ scanStyles: false,
|
|
699
|
+ });
|
|
700
|
+ },
|
|
701
|
+
|
|
702
|
+ complicationsOther:function(record) {
|
|
703
|
+ if(record== null || typeof(record) == 'undefined') {
|
|
704
|
+ return '';
|
|
705
|
+ }
|
|
706
|
+ if (record.complication.length==0) {
|
|
707
|
+ return '';
|
|
708
|
+ }
|
|
709
|
+ var complications = record.complication.split(',');
|
|
710
|
+ var complicationOthers = [];
|
|
711
|
+ for (const index in complications) {
|
|
712
|
+ if (this.complications.indexOf(complications[index]) < 0 && complicationOthers.indexOf(complications[index]) < 0) {
|
|
713
|
+ complicationOthers.push(complications[index]);
|
|
714
|
+ }
|
|
715
|
+ }
|
|
716
|
+ return complicationOthers.join(',');
|
|
717
|
+ },
|
|
718
|
+ modeName(mode_id) {
|
|
719
|
+ if(mode_id in this.modeOptions) {
|
|
720
|
+ return this.modeOptions[mode_id].name;
|
|
721
|
+ }
|
|
722
|
+ return '';
|
|
723
|
+ },
|
|
724
|
+ anticoagulantName:function(key){
|
|
725
|
+ if(key== null || typeof(key) == 'undefined') {
|
|
726
|
+ return '';
|
|
727
|
+ }
|
|
728
|
+ var id = key.anticoagulant;
|
|
729
|
+ if (id in this.anticoagulantsConfit) {
|
|
730
|
+ return this.anticoagulantsConfit[id].name;
|
|
731
|
+ }
|
|
732
|
+ return '';
|
|
733
|
+ },
|
|
734
|
+ isBbloodAccessParOperaCheck(key, value) {
|
|
735
|
+ if(key== null || typeof(key) == 'undefined') {
|
|
736
|
+ return false;
|
|
737
|
+ }
|
|
738
|
+ var id = key.blood_access_part_opera_id;
|
|
739
|
+ if (id in this.bloodAccessParOpera) {
|
|
740
|
+ return this.bloodAccessParOpera[id].name.indexOf(value)>-1;
|
|
741
|
+ }
|
|
742
|
+ return false;
|
|
743
|
+ },
|
|
744
|
+ isdialysateFormulatioCheck(key, value) {
|
|
745
|
+ if(key== null || typeof(key) == 'undefined') {
|
|
746
|
+ return false;
|
|
747
|
+ }
|
|
748
|
+ var id = key.dialysate_formulation;
|
|
749
|
+ if (id in this.dialysateFormulationOptions) {
|
|
750
|
+ return this.dialysateFormulationOptions[id].name.indexOf(value)>-1;
|
|
751
|
+ }
|
|
752
|
+ return false;
|
|
753
|
+ },
|
|
754
|
+ isValueIndexOfCheck:function(record, key, value){
|
|
755
|
+ if (record == null || record == undefined) {
|
|
756
|
+ return false
|
|
757
|
+ } else {
|
|
758
|
+ return record[key].indexOf(value) >-1;
|
|
759
|
+ }
|
|
760
|
+ },
|
|
761
|
+ setAdminUserES(key, id) {
|
|
762
|
+ if (key == null || typeof(key) == 'undefined' || typeof(key[id]) == 'undefined') {
|
|
763
|
+ return ''
|
|
764
|
+ }
|
|
765
|
+ if (key[id] == 0) {
|
|
766
|
+ return ''
|
|
767
|
+ }
|
|
768
|
+ if (key[id] in this.operatorMaps) {
|
|
769
|
+ return this.operatorMaps[key[id]].es_url;
|
|
770
|
+ } else {
|
|
771
|
+ return '';
|
|
772
|
+ }
|
|
773
|
+ },
|
|
774
|
+ getAdminUser(key, id) {
|
|
775
|
+ if (key == null || typeof(key) == 'undefined' || typeof(key[id]) == 'undefined') {
|
|
776
|
+ return ''
|
|
777
|
+ }
|
|
778
|
+ if (key[id] == 0) {
|
|
779
|
+ return ''
|
|
780
|
+ }
|
|
781
|
+ if (key[id] == undefined) {
|
|
782
|
+ return ''
|
|
783
|
+ }
|
|
784
|
+ for (let i = 0; i < this.adminUser.length; i++) {
|
|
785
|
+ if (this.adminUser[i].id == key[id]) {
|
|
786
|
+ return this.adminUser[i].name
|
|
787
|
+ }
|
|
788
|
+ }
|
|
789
|
+ },
|
|
790
|
+ jsGetAge:function(agetime) {
|
|
791
|
+ if(agetime==0) {
|
|
792
|
+ return '';
|
|
793
|
+ }
|
|
794
|
+ return jsGetAge(uParseTime(agetime, '{y}-{m}-{d}'), '-');
|
|
795
|
+ },
|
|
796
|
+ getTime(value, temp) {
|
|
797
|
+ if (value != undefined) {
|
|
798
|
+ return uParseTime(value, temp)
|
|
799
|
+ }
|
|
800
|
+ return ""
|
|
801
|
+ },
|
|
802
|
+ // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
|
|
803
|
+ // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
|
|
804
|
+ isCheckBoxChecked: function(record, key, target_value) {
|
|
805
|
+ if (record == null || record == undefined) {
|
|
806
|
+ return false
|
|
807
|
+ } else {
|
|
808
|
+ return record[key] == target_value
|
|
809
|
+ }
|
|
810
|
+ }
|
|
811
|
+ },
|
|
812
|
+}
|
|
813
|
+</script>
|
|
814
|
+
|
|
815
|
+<style scoped>
|
|
816
|
+.print_page_main_content {
|
|
817
|
+ background-color: white;
|
|
818
|
+ width:960px;
|
|
819
|
+ margin:0 auto 50px;
|
|
820
|
+ padding: 0 0 0 0;
|
|
821
|
+ page-break-after: always;
|
|
822
|
+}
|
|
823
|
+ .print_page_main_content .order-yy-name {
|
|
824
|
+ margin: auto;
|
|
825
|
+ text-align: center;
|
|
826
|
+ font-size: 20px;
|
|
827
|
+ letter-spacing: 5px;
|
|
828
|
+ }
|
|
829
|
+
|
|
830
|
+.print_page_main_content .order_title {
|
|
831
|
+ text-align: center;
|
|
832
|
+ font-size: 23px;
|
|
833
|
+ line-height: 50px;
|
|
834
|
+ font-weight: 500;
|
|
835
|
+}
|
|
836
|
+.row {
|
|
837
|
+ font-size: 14px;
|
|
838
|
+ line-height: 20px;
|
|
839
|
+ padding: 5px 0;
|
|
840
|
+}
|
|
841
|
+.inline_block {
|
|
842
|
+ display: inline-block;
|
|
843
|
+}
|
|
844
|
+.under_line {
|
|
845
|
+ display: inline-block;
|
|
846
|
+ border-bottom: 1px solid #999;
|
|
847
|
+ text-align: center;
|
|
848
|
+ white-space: nowrap;
|
|
849
|
+}
|
|
850
|
+.under_line::before {
|
|
851
|
+ content: "\00A0";
|
|
852
|
+}
|
|
853
|
+.under_line::after {
|
|
854
|
+ content: "\00A0";
|
|
855
|
+}
|
|
856
|
+.flex {
|
|
857
|
+ display: -webkit-box;
|
|
858
|
+ display: -moz-box;
|
|
859
|
+ display: -ms-flexbox;
|
|
860
|
+ display: -webkit-flex;
|
|
861
|
+ display: flex;
|
|
862
|
+ align-items: center;
|
|
863
|
+ -webkit-align-items: center;
|
|
864
|
+ box-align: center;
|
|
865
|
+ -moz-box-align: center;
|
|
866
|
+ -webkit-box-align: center;
|
|
867
|
+ text-align: center;
|
|
868
|
+ -webkit-justify-content: space-between;
|
|
869
|
+ justify-content: space-between;
|
|
870
|
+ -moz-box-pack: space-between;
|
|
871
|
+ -webkit--moz-box-pack: space-between;
|
|
872
|
+ box-pack: space-between;
|
|
873
|
+}
|
|
874
|
+.print_page_main_content .proj_table {
|
|
875
|
+ width: 100%;
|
|
876
|
+ border: 1px solid;
|
|
877
|
+ border-collapse: collapse;
|
|
878
|
+ padding: 2px;
|
|
879
|
+}
|
|
880
|
+.print_page_main_content .proj_table tbody tr td {
|
|
881
|
+ border: 1px solid;
|
|
882
|
+ /* text-align: center; */
|
|
883
|
+ font-size: 16px;
|
|
884
|
+ padding: 10px 8px;
|
|
885
|
+ line-height: 30px;
|
|
886
|
+}
|
|
887
|
+.print_page_main_content .proj_table .inside_table {
|
|
888
|
+ width: 100%;
|
|
889
|
+ border: hidden; /* 解决边框冲突 */
|
|
890
|
+ border-collapse: collapse;
|
|
891
|
+}
|
|
892
|
+.print_page_main_content .proj_table .inside_table tr td {
|
|
893
|
+ border: 1px solid;
|
|
894
|
+ text-align: center;
|
|
895
|
+ font-size: 14px;
|
|
896
|
+ padding: 8px 5px;
|
|
897
|
+ line-height: 25px;
|
|
898
|
+}
|
|
899
|
+
|
|
900
|
+ .es-img {
|
|
901
|
+ height: 25px;
|
|
902
|
+ }
|
|
903
|
+
|
|
904
|
+ .advice-name {
|
|
905
|
+ text-align: left !important;
|
|
906
|
+ line-height: 16px !important;
|
|
907
|
+ }
|
|
908
|
+
|
|
909
|
+ .advice-children {
|
|
910
|
+ display: flex;
|
|
911
|
+ }
|
|
912
|
+</style>
|