|
@@ -136,8 +136,6 @@
|
136
|
136
|
</div>
|
137
|
137
|
|
138
|
138
|
|
139
|
|
-
|
140
|
|
-
|
141
|
139
|
<el-dialog
|
142
|
140
|
title="设置模板"
|
143
|
141
|
:visible.sync="template_dialog"
|
|
@@ -196,20 +194,11 @@
|
196
|
194
|
<el-button @click="library_dialog = false">取消</el-button>
|
197
|
195
|
</span>
|
198
|
196
|
</el-dialog>
|
199
|
|
-
|
200
|
|
-
|
201
|
|
-
|
202
|
|
-
|
203
|
|
-
|
204
|
|
-
|
205
|
|
-
|
206
|
|
-
|
207
|
|
-
|
208
|
|
-
|
209
|
|
-
|
210
|
197
|
</div>
|
|
198
|
+
|
|
199
|
+ <p></p>
|
211
|
200
|
</div>
|
212
|
|
-
|
|
201
|
+
|
213
|
202
|
</template>
|
214
|
203
|
|
215
|
204
|
<script>
|
|
@@ -227,11 +216,13 @@ import {
|
227
|
216
|
saveSickHistoryTemplate,
|
228
|
217
|
getSickHistoryTempalate,
|
229
|
218
|
modifySickHistoryTemplate,
|
230
|
|
- deleteSickHistoryTempalte
|
|
219
|
+ deleteSickHistoryTempalte,
|
|
220
|
+ fetchPatient,
|
231
|
221
|
} from '@/api/patient'
|
232
|
222
|
import { parseTime } from '@/utils'
|
233
|
|
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
223
|
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
234
|
224
|
import { uParseTime } from '@/utils/tools'
|
|
225
|
+import { getDataConfig } from "@/utils/data";
|
235
|
226
|
export default {
|
236
|
227
|
name: 'CourseOfDisease',
|
237
|
228
|
components: {
|
|
@@ -300,13 +291,18 @@ export default {
|
300
|
291
|
templateList:[],
|
301
|
292
|
template_content:"",
|
302
|
293
|
template_id:0,
|
|
294
|
+ form:{},
|
|
295
|
+ wayOptions: null,
|
|
296
|
+ patientVascularAccessOne:{},
|
303
|
297
|
}
|
304
|
298
|
},
|
305
|
299
|
created() {
|
306
|
|
- this.admin_user_id = this.$store.getters.xt_user.user.id
|
|
300
|
+ this.wayOptions = getDataConfig("patient", "reimbursement_ways");
|
|
301
|
+ console.log('this.wayOptions',this.wayOptions);
|
307
|
302
|
|
|
303
|
+ this.admin_user_id = this.$store.getters.xt_user.user.id
|
308
|
304
|
this.patient_id = parseInt(this.$route.query.id)
|
309
|
|
-
|
|
305
|
+
|
310
|
306
|
if (isNaN(this.patient_id) || this.patient_id <= 0) {
|
311
|
307
|
this.$notify.error({
|
312
|
308
|
title: '错误',
|
|
@@ -341,7 +337,7 @@ export default {
|
341
|
337
|
|
342
|
338
|
this.getlist()
|
343
|
339
|
this.fetchAllDoctorAndNurse()
|
344
|
|
-
|
|
340
|
+ this.fetchPatient(this.patient_id)
|
345
|
341
|
},
|
346
|
342
|
methods: {
|
347
|
343
|
template_dele(){
|
|
@@ -387,26 +383,197 @@ export default {
|
387
|
383
|
this.edit_index = row.index
|
388
|
384
|
},
|
389
|
385
|
template_click(){
|
390
|
|
- console.log('this.add_index',this.add_index);
|
391
|
|
-
|
|
386
|
+
|
|
387
|
+ console.log('this.add_index',this.getwayoption(this.form.reimbursement_way_id));
|
392
|
388
|
if(this.add_index ==0){
|
393
|
389
|
this.template_dialog = true
|
394
|
390
|
}else{
|
|
391
|
+ const mode=`<p style="font-size: 18px;font-weight: 600;width:100%;margin-bottom: 10px;text-align: center;">血液净化治疗患者首次门诊病历</p>
|
|
392
|
+ <table border="1" style="border-collapse: collapse;text-align: center;">
|
|
393
|
+ <tbody>
|
|
394
|
+ <tr>
|
|
395
|
+ <td style="width:8%;padding: 5px 0px;font-size: 16px;">
|
|
396
|
+ 姓名
|
|
397
|
+ </td>
|
|
398
|
+ <td style="padding: 5px 0px;font-size: 16px;width:15%;">
|
|
399
|
+ ${this.form.name}
|
|
400
|
+ </td>
|
|
401
|
+ <td style="padding: 5px 0px;font-size: 16px;width:7%;">
|
|
402
|
+ 性别
|
|
403
|
+ </td>
|
|
404
|
+ <td style="padding: 5px 0px;font-size: 16px;width:5%;">
|
|
405
|
+ ${this.form.gender==1 ? '男':'女'}
|
|
406
|
+ </td>
|
|
407
|
+ <td style="padding: 5px 0px;font-size: 16px;width:8%;">
|
|
408
|
+ 年龄
|
|
409
|
+ </td>
|
|
410
|
+ <td style="padding: 5px 0px;font-size: 16px;width:10%;">
|
|
411
|
+ ${this.form.age}岁
|
|
412
|
+ </td>
|
|
413
|
+ <td style="padding: 5px 0px;font-size: 16px;width:12%;">
|
|
414
|
+ 医保类型
|
|
415
|
+ </td>
|
|
416
|
+ <td style="padding: 5px 0px;font-size: 16px;width: 15%;">
|
|
417
|
+ ${this.getwayoption(this.form.reimbursement_way_id)}
|
|
418
|
+ </td>
|
|
419
|
+ <td style="padding: 5px 0px;font-size: 16px;width:10%;">
|
|
420
|
+ 透析号
|
|
421
|
+ </td>
|
|
422
|
+ <td style="padding: 5px 0px;font-size: 16px;width:10%;">
|
|
423
|
+ ${this.form.dialysis_no}
|
|
424
|
+ </td>
|
|
425
|
+ </tr>
|
|
426
|
+ <tr>
|
|
427
|
+ <td style="padding: 5px 0px;font-size: 16px;">
|
|
428
|
+ 电话
|
|
429
|
+ </td>
|
|
430
|
+ <td style="padding: 5px 0px;font-size: 16px;">
|
|
431
|
+ ${this.form.phone}
|
|
432
|
+ </td>
|
|
433
|
+ <td style="padding: 5px 0px;font-size: 16px;">
|
|
434
|
+ 民族
|
|
435
|
+ </td>
|
|
436
|
+ <td colspan="3" style="padding: 5px 0px;font-size: 16px;">
|
|
437
|
+ ${this.form.nation}
|
|
438
|
+ </td>
|
|
439
|
+ <td style="padding: 5px 0px;font-size: 16px;">
|
|
440
|
+ 身份证号
|
|
441
|
+ </td>
|
|
442
|
+ <td colspan="3" style="padding: 5px 0px;font-size: 16px;">
|
|
443
|
+ ${this.form.id_card_no}
|
|
444
|
+ </td>
|
|
445
|
+ </tr>
|
|
446
|
+ <tr>
|
|
447
|
+ <td style="padding: 5px 0px;font-size: 16px;">
|
|
448
|
+ 联系人
|
|
449
|
+ </td>
|
|
450
|
+ <td style="padding: 5px 0px;font-size: 16px;">
|
|
451
|
+ ${this.form.contact_name}
|
|
452
|
+ </td>
|
|
453
|
+ <td style="padding: 5px 0px;font-size: 16px;">
|
|
454
|
+ 电话
|
|
455
|
+ </td>
|
|
456
|
+ <td colspan="3" style="padding: 5px 0px;font-size: 16px;">
|
|
457
|
+ ${this.form.home_telephone}
|
|
458
|
+ </td>
|
|
459
|
+ <td style="padding: 5px 0px;font-size: 16px;">
|
|
460
|
+ 联系地址
|
|
461
|
+ </td>
|
|
462
|
+ <td colspan="3" style="padding: 5px 0px;font-size: 16px;">
|
|
463
|
+ ${this.form.home_address}
|
|
464
|
+ </td>
|
|
465
|
+ </tr>
|
|
466
|
+ <tr>
|
|
467
|
+ <td colspan="2" style="padding: 5px 0px;font-size: 16px;">
|
|
468
|
+ 首次透析时间
|
|
469
|
+ </td>
|
|
470
|
+ <td colspan="4" style="padding: 5px 0px;font-size: 16px;">
|
|
471
|
+ ${this.getTime(this.form.first_dialysis_date)}
|
|
472
|
+ </td>
|
|
473
|
+ <td style="padding: 5px 0px;font-size: 16px;">
|
|
474
|
+ 血管通路
|
|
475
|
+ </td>
|
|
476
|
+ <td colspan="3" style="padding: 5px 0px;font-size: 16px;">
|
|
477
|
+ ${this.patientVascularAccessOne.blood_access_part_id } ${ this.patientVascularAccessOne.blood_access_part_opera_id }
|
|
478
|
+ </td>
|
|
479
|
+ </tr>
|
|
480
|
+
|
|
481
|
+ <tr>
|
|
482
|
+ <td style="padding: 5px 0px;font-size: 16px; ">
|
|
483
|
+ 主诉
|
|
484
|
+ </td>
|
|
485
|
+ <td colspan="9" style="text-align: left; padding:0px 5px ;font-size: 16px;">
|
|
486
|
+ ${this.form.patient_complains}
|
|
487
|
+ </td>
|
|
488
|
+ </tr>
|
|
489
|
+ <tr>
|
|
490
|
+ <td>
|
|
491
|
+ <div class="td_proj_title">现<br />病<br />史</div>
|
|
492
|
+ </td>
|
|
493
|
+ <td colspan="9">${this.form.present_history}</td>
|
|
494
|
+ </tr>
|
|
495
|
+ <tr>
|
|
496
|
+ <td>
|
|
497
|
+ <div class="td_proj_title">既<br />往<br />史</div>
|
|
498
|
+ </td>
|
|
499
|
+ <td colspan="9">${this.form.past_history}</td>
|
|
500
|
+ </tr>
|
|
501
|
+ <tr>
|
|
502
|
+ <td>
|
|
503
|
+ <div class="td_proj_title">过敏史</div>
|
|
504
|
+ </td>
|
|
505
|
+ <td colspan="5">${this.form.allergic_history}</td>
|
|
506
|
+ <td>
|
|
507
|
+ <div class="td_proj_title">家族史</div>
|
|
508
|
+ </td>
|
|
509
|
+ <td colspan="3">${this.form.famality_record}</td>
|
|
510
|
+ </tr>
|
|
511
|
+
|
|
512
|
+ <tr>
|
|
513
|
+ <td colspan="10"><div class="td_proj_title">体格检查</div></td>
|
|
514
|
+ </tr>
|
|
515
|
+ <tr>
|
|
516
|
+ <td colspan="10">
|
|
517
|
+ T:${this.form.temperature}℃ P:${this.form.pulse}次/分 R:${this.form.respiratory}次/分 BP:${this.form.sbp}/${this.form.dbp}mmHg
|
|
518
|
+ </td>
|
|
519
|
+ </tr>
|
|
520
|
+ <tr>
|
|
521
|
+ <td colspan="10">${this.form.remark}</td>
|
|
522
|
+ </tr>
|
|
523
|
+ <tr>
|
|
524
|
+ <td style="width: 15%;">
|
|
525
|
+ <div class="td_proj_title">辅助检查</div>
|
|
526
|
+ </td>
|
|
527
|
+ <td colspan="9">
|
|
528
|
+ <p style='min-height:30px'></p>
|
|
529
|
+ </td>
|
|
530
|
+ </tr>
|
|
531
|
+ <tr>
|
|
532
|
+ <td>
|
|
533
|
+ <div class="td_proj_title">诊<br />断</div>
|
|
534
|
+ </td>
|
|
535
|
+ <td colspan="9">${this.form.diagnose}</td>
|
|
536
|
+ </tr>
|
|
537
|
+ <tr>
|
|
538
|
+ <td>
|
|
539
|
+ <div class="td_proj_title">诊<br />疗<br />计<br />划</div>
|
|
540
|
+ </td>
|
|
541
|
+ <td colspan="9"><p>${this.form.treatment_plan}</p></td>
|
|
542
|
+ </tr>
|
|
543
|
+ </tbody>
|
|
544
|
+ </table>`
|
|
545
|
+ const obj={
|
|
546
|
+ id:0,
|
|
547
|
+ title:'病史模板',
|
|
548
|
+ status:1,
|
|
549
|
+ content:mode,
|
|
550
|
+ ctime:parseFloat((new Date()).getTime()/1000).toFixed(0),
|
|
551
|
+ mtime: parseFloat((new Date()).getTime()/1000).toFixed(0),
|
|
552
|
+ }
|
|
553
|
+ const arr = []
|
|
554
|
+ arr.push(obj)
|
|
555
|
+ console.log('1111',arr);
|
395
|
556
|
getSickHistoryTempalate().then(response=>{
|
396
|
557
|
if(response.data.state == 1){
|
397
|
558
|
this.library_dialog = true
|
398
|
559
|
this.templateList = response.data.data.templateList
|
|
560
|
+ this.templateList = this.templateList.concat(arr)
|
|
561
|
+ // this.templateList.unshift(obj)
|
399
|
562
|
console.log("hahhahahaha",this.$refs)
|
400
|
563
|
if(this.templateList!=null && this.templateList.length>0){
|
401
|
|
- this.$refs.record_table_one.setCurrentRow(this.templateList[0])
|
|
564
|
+ this.$nextTick(()=>{
|
|
565
|
+ this.$refs.record_table_one.setCurrentRow(this.templateList[0])
|
|
566
|
+ })
|
402
|
567
|
}
|
403
|
568
|
console.log("haaaaaaaaaaaaa",this.templateList)
|
404
|
|
-
|
405
|
569
|
}
|
406
|
570
|
})
|
407
|
|
-
|
408
|
|
- }
|
|
571
|
+
|
|
572
|
+ // this.templateList.push(obj)
|
|
573
|
+
|
|
574
|
+ console.log('11111111',obj);
|
409
|
575
|
|
|
576
|
+ }
|
410
|
577
|
},
|
411
|
578
|
template_save(){
|
412
|
579
|
var params = {
|
|
@@ -420,8 +587,8 @@ export default {
|
420
|
587
|
this.template_dialog = false
|
421
|
588
|
}
|
422
|
589
|
})
|
423
|
|
-
|
424
|
|
-
|
|
590
|
+
|
|
591
|
+
|
425
|
592
|
},
|
426
|
593
|
prints(){
|
427
|
594
|
const style ='@media print{.content{width:960px;margin:0 auto;font-size: 23px;}}'
|
|
@@ -441,7 +608,7 @@ export default {
|
441
|
608
|
}
|
442
|
609
|
});
|
443
|
610
|
},
|
444
|
|
-
|
|
611
|
+
|
445
|
612
|
didChangeCurrentRecord: function(record) {
|
446
|
613
|
this.current_select_record = record
|
447
|
614
|
},
|
|
@@ -499,7 +666,7 @@ export default {
|
499
|
666
|
},
|
500
|
667
|
|
501
|
668
|
createAction: function() {
|
502
|
|
-
|
|
669
|
+
|
503
|
670
|
console.log("hhhhhhhhhhhhhhhhhh",this.$refs)
|
504
|
671
|
this.new_content = this.$refs.editor.contents
|
505
|
672
|
if (this.new_content.length == 0) {
|
|
@@ -518,14 +685,15 @@ export default {
|
518
|
685
|
guominyaowu_desc:this.guominyaowu_desc,
|
519
|
686
|
doctor_id: this.admin_user_id
|
520
|
687
|
}
|
521
|
|
-
|
|
688
|
+
|
522
|
689
|
createNewSickHistoryRecord(params).then(response => {
|
523
|
690
|
if(response.data.state == 1){
|
524
|
691
|
var patientSickHistory = response.data.data.patientSickHistory
|
525
|
692
|
this.$message.success("保存成功!")
|
526
|
693
|
this.getlist()
|
|
694
|
+ this.add_index = 0
|
|
695
|
+ this.disabled = true
|
527
|
696
|
}
|
528
|
|
-
|
529
|
697
|
}).catch(error => {
|
530
|
698
|
this.uploading_new_record = false
|
531
|
699
|
this.$message.error(error)
|
|
@@ -572,11 +740,11 @@ export default {
|
572
|
740
|
|
573
|
741
|
|
574
|
742
|
},
|
575
|
|
-
|
|
743
|
+
|
576
|
744
|
showEdit() {
|
577
|
745
|
this.add_index =1
|
578
|
746
|
this.disabled = false
|
579
|
|
-
|
|
747
|
+
|
580
|
748
|
}, tableRow({ row, rowIndex }) {
|
581
|
749
|
// 把每一行的索引放进row
|
582
|
750
|
row.index = rowIndex
|
|
@@ -599,7 +767,7 @@ export default {
|
599
|
767
|
var list = response.data.data.list
|
600
|
768
|
this.tableData = list
|
601
|
769
|
this.$refs.record_table.setCurrentRow(this.tableData[0])
|
602
|
|
- }
|
|
770
|
+ }
|
603
|
771
|
})
|
604
|
772
|
},
|
605
|
773
|
getDocName(admin_user_id){
|
|
@@ -628,20 +796,20 @@ export default {
|
628
|
796
|
if(val.is_hypersusceptibility>0){
|
629
|
797
|
this.shen_guomi = val.is_hypersusceptibility
|
630
|
798
|
}
|
631
|
|
-
|
|
799
|
+
|
632
|
800
|
this.patient_id = val.patient_id
|
633
|
801
|
this.admin_user_id = val.admin_user_id
|
634
|
|
-
|
|
802
|
+
|
635
|
803
|
},
|
636
|
804
|
getCurrentChangeOne(val){
|
637
|
|
-
|
|
805
|
+
|
638
|
806
|
this.$refs.editorOne.contents = val.content
|
639
|
807
|
this.template_content = ""
|
640
|
808
|
this.template_content = val.content
|
641
|
809
|
this.template_id = val.id
|
642
|
810
|
},
|
643
|
811
|
saveTemplate(){
|
644
|
|
-
|
|
812
|
+
|
645
|
813
|
var params = {
|
646
|
814
|
title:this.template_name,
|
647
|
815
|
content: this.$refs.editor.contents,
|
|
@@ -657,7 +825,37 @@ export default {
|
657
|
825
|
toContentPint(){
|
658
|
826
|
this.$refs.editor.contents = this.template_content
|
659
|
827
|
this.library_dialog = false
|
660
|
|
- }
|
|
828
|
+ },
|
|
829
|
+ fetchPatient(id) {
|
|
830
|
+ fetchPatient(id).then((response) => {
|
|
831
|
+ console.log('fetchPatient11111',response.data.data);
|
|
832
|
+ if(response.data.state ==1){
|
|
833
|
+ this.form = response.data.data.patient;
|
|
834
|
+ this.patientVascularAccessOne = response.data.data.patientVascularAccessOne
|
|
835
|
+ }
|
|
836
|
+ })
|
|
837
|
+ .catch((err) => {
|
|
838
|
+ console.log("patient get err", err);
|
|
839
|
+ this.$notify.error({
|
|
840
|
+ title: "错误",
|
|
841
|
+ message: "网络异常",
|
|
842
|
+ });
|
|
843
|
+ this.$router.push("/patients/patients");
|
|
844
|
+ });
|
|
845
|
+ },
|
|
846
|
+ getwayoption(id){
|
|
847
|
+ if(id != 0){
|
|
848
|
+ for(let i in this.wayOptions){
|
|
849
|
+ if(id == this.wayOptions[i].id){
|
|
850
|
+ console.log('22222',this.wayOptions[i].name);
|
|
851
|
+ return this.wayOptions[i].name
|
|
852
|
+ }
|
|
853
|
+ }
|
|
854
|
+ }else{
|
|
855
|
+ return ''
|
|
856
|
+ }
|
|
857
|
+
|
|
858
|
+ }
|
661
|
859
|
}
|
662
|
860
|
}
|
663
|
861
|
</script>
|