|
@@ -17,7 +17,7 @@
|
17
|
17
|
<h2 style="text-align: center;margin-bottom: 20px;">门诊血液透析治疗病历首页</h2>
|
18
|
18
|
<div style="display: flex;padding: 10px 5px">
|
19
|
19
|
<div style="flex: 1;">门诊号<span class="unile">{{ patient.admission_number }}</span></div>
|
20
|
|
- <div style="flex: 1;">住院号 <span class="unile">{{ patient.admission_number }}</span></div>
|
|
20
|
+ <div style="flex: 1;">透析号 <span class="unile">{{ patient.dialysis_no }}</span></div>
|
21
|
21
|
<div style="flex: 1.5;">首次治疗日期 <span class="unile">{{getTime(patient.first_dialysis_date) }}</span></div>
|
22
|
22
|
</div>
|
23
|
23
|
<div style="display: flex;padding: 10px 5px">
|
|
@@ -35,40 +35,39 @@
|
35
|
35
|
</div>
|
36
|
36
|
<div style='padding: 10px 5px'>
|
37
|
37
|
<div>
|
38
|
|
- 现住址(详填) <span class="unile2">{{ sheng ? sheng:' ' }}</span> 省 <span class="unile2">{{ shi? shi:' ' }}</span>市
|
39
|
|
- <span class="unile2">{{ xian ?xian:'' }}</span>县(区)<span class="unile2">{{ jie?jie:'' }}</span>乡(镇、街道)<span class="unile2">{{ hao?hao:'' }}</span>村(门牌号)
|
|
38
|
+ 现住址(详填) <span class="unile2">{{ patient.home_address }}</span>
|
40
|
39
|
</div>
|
41
|
|
- <div style="flex: 1;">邮编<span class="unile2"></span></div>
|
|
40
|
+ <!-- <div style="flex: 1;">邮编<span class="unile2"></span></div> -->
|
42
|
41
|
</div>
|
43
|
42
|
<div style='padding: 10px 5px'>
|
44
|
43
|
<div>
|
45
|
|
- 户口住址(详填) <span class="unile2"></span>省<span class="unile2"></span>市<span class="unile2"></span>县(区)<span class="unile2"></span>乡(镇、街道)<span class="unile2"></span>村(门牌号)
|
|
44
|
+ 家庭住址<span class="unile2">{{ patient.home_address }}</span>
|
46
|
45
|
</div>
|
47
|
|
- <div style="flex: 1;">邮编<span class="unile2"></span></div>
|
|
46
|
+ <!-- <div style="flex: 1;">邮编<span class="unile2"></span></div> -->
|
48
|
47
|
</div>
|
49
|
48
|
<div style="display: flex;padding: 10px 5px">
|
50
|
49
|
<div style="flex: 1;">
|
51
|
|
- 电话<span class="unile">{{ patient.home_telephone }}</span>
|
|
50
|
+ 本人电话<span class="unile">{{ patient.home_telephone }}</span>
|
52
|
51
|
</div>
|
53
|
|
- <div style="flex: 1;">
|
|
52
|
+ <!-- <div style="flex: 1;">
|
54
|
53
|
手机<span class="unile">{{ patient.phone }}</span>
|
55
|
|
- </div>
|
|
54
|
+ </div> -->
|
56
|
55
|
<div style="flex: 1.5;">
|
57
|
|
- 亲属联系方式<span class="unile"></span>
|
|
56
|
+ 亲属联系方式<span class="unile">{{ patient.relative_phone }}</span>
|
58
|
57
|
</div>
|
59
|
58
|
</div>
|
60
|
59
|
<div style="padding: 10px 5px">
|
61
|
|
- 工作单位<span class="unile"></span>
|
|
60
|
+ 工作单位<span class="unile">{{ patient.work_unit }}</span>
|
62
|
61
|
</div>
|
63
|
|
- <div style="padding: 10px 5px">
|
|
62
|
+ <!-- <div style="padding: 10px 5px">
|
64
|
63
|
地址<span class="unile2"></span> 省(市)<span class="unile2"></span>路<span class="unile2"></span>号
|
65
|
|
- </div>
|
|
64
|
+ </div> -->
|
66
|
65
|
<div style="padding: 10px 5px">
|
67
|
66
|
诊断:<span class="unile">{{ patient.diagnose }}</span>
|
68
|
67
|
</div>
|
69
|
|
- <div style="padding: 10px 5px">
|
|
68
|
+ <!-- <div style="padding: 10px 5px">
|
70
|
69
|
合并症或并发症 <span class="unile"></span>
|
71
|
|
- </div>
|
|
70
|
+ </div> -->
|
72
|
71
|
<div V-html="content"></div>
|
73
|
72
|
<div v-html="content"></div>
|
74
|
73
|
<!-- <div>
|
|
@@ -141,7 +140,7 @@
|
141
|
140
|
</div>
|
142
|
141
|
<!-- 编辑 -->
|
143
|
142
|
<el-dialog
|
144
|
|
- title="提示"
|
|
143
|
+ title="新增"
|
145
|
144
|
:visible.sync="dialogVisible"
|
146
|
145
|
width="60%">
|
147
|
146
|
<div>
|
|
@@ -150,7 +149,7 @@
|
150
|
149
|
<div style="flex: 1;">门诊号
|
151
|
150
|
<span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.admission_number }}</span>
|
152
|
151
|
</div>
|
153
|
|
- <div style="flex: 1;">住院号
|
|
152
|
+ <div style="flex: 1;">透析号
|
154
|
153
|
<span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.admission_number }}</span>
|
155
|
154
|
</div>
|
156
|
155
|
<div style="flex: 1;">姓名:
|
|
@@ -172,12 +171,47 @@
|
172
|
171
|
<span v-if="sex==2">女</span>
|
173
|
172
|
</div>
|
174
|
173
|
</div> -->
|
|
174
|
+ <div style="display: flex;padding: 10px 5px">
|
|
175
|
+ <div style="flex: 1;">
|
|
176
|
+ 身份证号
|
|
177
|
+ <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.id_card_no }} </span>
|
|
178
|
+ </div>
|
|
179
|
+ </div>
|
|
180
|
+ <div style='padding: 10px 5px'>
|
|
181
|
+ <div>
|
|
182
|
+ 现住址(详填)<span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
|
|
183
|
+
|
|
184
|
+ </div>
|
|
185
|
+
|
|
186
|
+ </div>
|
|
187
|
+ <div style='padding: 10px 5px'>
|
|
188
|
+ <div>
|
|
189
|
+ 家庭住址<span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
|
|
190
|
+
|
|
191
|
+ </div>
|
|
192
|
+
|
|
193
|
+ </div>
|
|
194
|
+ <div style="display: flex;padding: 10px 5px">
|
|
195
|
+ <div style="flex: 1;">
|
|
196
|
+ 本人电话
|
|
197
|
+ <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
|
|
198
|
+ </div>
|
|
199
|
+
|
|
200
|
+ <div style="flex: 1.5;">
|
|
201
|
+ 亲属联系方式
|
|
202
|
+ <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
|
|
203
|
+ </div>
|
|
204
|
+ </div>
|
|
205
|
+ <div style="padding: 10px 5px">
|
|
206
|
+ 工作单位
|
|
207
|
+ <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
|
|
208
|
+ </div>
|
175
|
209
|
<div style="padding: 10px 5px">诊断:
|
176
|
210
|
<span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.diagnose }}</span>
|
177
|
211
|
</div>
|
178
|
|
- <div style="padding: 10px 5px">合并症或并发症
|
|
212
|
+ <!-- <div style="padding: 10px 5px">合并症或并发症
|
179
|
213
|
<span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"></span>
|
180
|
|
- </div>
|
|
214
|
+ </div> -->
|
181
|
215
|
<keep-alive>
|
182
|
216
|
<editor ref="editor"
|
183
|
217
|
id="editor"
|
|
@@ -188,17 +222,18 @@
|
188
|
222
|
</div>
|
189
|
223
|
<span slot="footer" class="dialog-footer">
|
190
|
224
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
191
|
|
- <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
|
|
225
|
+ <el-button type="primary" @click="saveMedicalHistory">保 存</el-button>
|
192
|
226
|
</span>
|
193
|
227
|
</el-dialog>
|
194
|
228
|
</div>
|
195
|
229
|
</template>
|
196
|
230
|
<script>
|
197
|
231
|
|
198
|
|
-import { getPatientDetailInformedconsent } from '@/api/patient'
|
|
232
|
+import { getPatientDetailInformedconsent,saveMedicalHistory } from '@/api/patient'
|
199
|
233
|
import print from "print-js";
|
200
|
234
|
import Editor from '@/components/Editor'
|
201
|
235
|
import { uParseTime } from '@/utils/tools'
|
|
236
|
+
|
202
|
237
|
const content=`<div>
|
203
|
238
|
<table border="1" style="border-collapse: collapse;width: 100%;text-align: center;">
|
204
|
239
|
<tr>
|
|
@@ -267,7 +302,10 @@ export default{
|
267
|
302
|
props: {
|
268
|
303
|
patient_id: {
|
269
|
304
|
type: Number,
|
270
|
|
- }
|
|
305
|
+ },
|
|
306
|
+ medicalList:{
|
|
307
|
+ type:Object,
|
|
308
|
+ }
|
271
|
309
|
},
|
272
|
310
|
components:{
|
273
|
311
|
Editor
|
|
@@ -288,11 +326,25 @@ export default{
|
288
|
326
|
}
|
289
|
327
|
},
|
290
|
328
|
created(){
|
|
329
|
+ if(this.medicalList!=null && this.medicalList.id >0){
|
|
330
|
+ this.content = ""
|
|
331
|
+ this.content = this.medicalList.content
|
|
332
|
+ }
|
291
|
333
|
this.getlist()
|
292
|
334
|
// this.number = 1233444
|
293
|
335
|
// }
|
294
|
336
|
},
|
295
|
337
|
methods:{
|
|
338
|
+ show(val){
|
|
339
|
+ if(val!=null){
|
|
340
|
+ console.log("valw233223",val)
|
|
341
|
+ if(val.content!=""){
|
|
342
|
+ this.content = ""
|
|
343
|
+ this.content = val.content
|
|
344
|
+ }
|
|
345
|
+
|
|
346
|
+ }
|
|
347
|
+ },
|
296
|
348
|
getlist(){
|
297
|
349
|
// console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
|
298
|
350
|
getPatientDetailInformedconsent(this.patient_id).then(response=>{
|
|
@@ -351,6 +403,23 @@ export default{
|
351
|
403
|
// 编辑
|
352
|
404
|
bianji(){
|
353
|
405
|
this.dialogVisible = true
|
|
406
|
+ },
|
|
407
|
+ saveMedicalHistory(){
|
|
408
|
+ console.log("adfadfaf")
|
|
409
|
+ var params = {
|
|
410
|
+ content:this.$refs.editor.content,
|
|
411
|
+ patient_id:this.patient_id,
|
|
412
|
+ }
|
|
413
|
+ console.log("paramsm2222",params)
|
|
414
|
+ saveMedicalHistory(params).then(response=>{
|
|
415
|
+ if(response.data.state ==1){
|
|
416
|
+ var medicalHistory = response.data.data.medicalHistory
|
|
417
|
+ this.$message.success("保存成功!")
|
|
418
|
+ this.dialogVisible =false
|
|
419
|
+ this.$emit("getPatientMeDicalList","");
|
|
420
|
+
|
|
421
|
+ }
|
|
422
|
+ })
|
354
|
423
|
}
|
355
|
424
|
},
|
356
|
425
|
computed:{
|