|
@@ -252,7 +252,7 @@
|
252
|
252
|
:max_befor_systolic_blood_pressure="max_befor_systolic_blood_pressure" :min_befor_systolic_blood_pressure="min_befor_systolic_blood_pressure" :max_befor_diastolic_blood_pressure="max_befor_diastolic_blood_pressure" :min_befor_diastolic_blood_pressure="min_befor_diastolic_blood_pressure"
|
253
|
253
|
:max_after_systolic_blood_pressure="max_after_systolic_blood_pressure" :min_after_systolic_blood_pressure="min_after_systolic_blood_pressure" :max_after_diastolic_blood_pressure="max_after_diastolic_blood_pressure" :min_after_diastolic_blood_pressure="min_after_diastolic_blood_pressure"
|
254
|
254
|
:max_monitor_systolic_blood_pressure="max_monitor_systolic_blood_pressure" :min_monitor_systolic_blood_pressure="min_monitor_systolic_blood_pressure" :max_monitor_diastolic_blood_pressure="max_monitor_diastolic_blood_pressure" :min_monitor_diastolic_blood_pressure="min_monitor_diastolic_blood_pressure"
|
255
|
|
- :lastDryWeight="lastDryWeight"></text_content>
|
|
255
|
+ :lastDryWeight="lastDryWeight" :patientVascularAccess="patientVascularAccess" :lastBefor="lastBefor"></text_content>
|
256
|
256
|
</div>
|
257
|
257
|
</div>
|
258
|
258
|
|
|
@@ -369,8 +369,9 @@
|
369
|
369
|
min_monitor_systolic_blood_pressure:"",
|
370
|
370
|
max_monitor_diastolic_blood_pressure:"",
|
371
|
371
|
min_monitor_diastolic_blood_pressure:"",
|
372
|
|
- lastDryWeight:{}
|
373
|
|
-
|
|
372
|
+ lastDryWeight:{},
|
|
373
|
+ patientVascularAccess:{},
|
|
374
|
+ lastBefor:{}
|
374
|
375
|
}
|
375
|
376
|
},
|
376
|
377
|
created() {
|
|
@@ -577,51 +578,197 @@
|
577
|
578
|
// this.auto_dialog = true
|
578
|
579
|
},
|
579
|
580
|
autotext_click(){
|
|
581
|
+
|
|
582
|
+ // 医嘱
|
|
583
|
+ if(this.longAdvice!=null && this.longAdvice.length>0){
|
|
584
|
+ for(let i=0;i<this.longAdvice.length;i++){
|
|
585
|
+ this.longAdvice[i].advice_type_name = ""
|
|
586
|
+ if(this.longAdvice[i].advice_type == 1){
|
|
587
|
+ this.longAdvice[i].advice_type_name = "长期医嘱"
|
|
588
|
+ }
|
|
589
|
+ if(this.longAdvice[i].stop_state == 1){
|
|
590
|
+ this.longAdvice[i].stop_state_name = "停用"
|
|
591
|
+ }
|
|
592
|
+ if(this.longAdvice[i].stop_state == 2){
|
|
593
|
+ this.longAdvice[i].stop_state_name = "未停用"
|
|
594
|
+ }
|
|
595
|
+ }
|
|
596
|
+ }
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+ if(this.inpectionList!=null && this.inpectionList.length>0){
|
|
600
|
+ let dataInfo = {}
|
|
601
|
+ this.inpectionList.forEach((item, index) => {
|
|
602
|
+ let { group_no } = item
|
|
603
|
+ if (!dataInfo[group_no]) {
|
|
604
|
+ dataInfo[group_no] = {
|
|
605
|
+ group_no:group_no,
|
|
606
|
+ project_id:item.project_id,
|
|
607
|
+ name:item.project_name,
|
|
608
|
+ date:this.getTime(item.inspect_date),
|
|
609
|
+ child:[],
|
|
610
|
+ left: [],
|
|
611
|
+ right:[]
|
|
612
|
+ }
|
|
613
|
+ }
|
|
614
|
+ })
|
|
615
|
+ let arr = Object.values(dataInfo)
|
|
616
|
+ console.log("arr----------------------",arr)
|
|
617
|
+
|
|
618
|
+ if(arr!=null && arr.length>0){
|
|
619
|
+ for(let i=0;i<arr.length;i++){
|
|
620
|
+ for(let j=0;j<this.inpectionList.length;j++){
|
|
621
|
+ if(arr[i].group_no == this.inpectionList[j].group_no){
|
|
622
|
+ arr[i].child.push(this.inpectionList[j])
|
|
623
|
+ }
|
|
624
|
+ }
|
|
625
|
+ }
|
|
626
|
+ }
|
|
627
|
+
|
|
628
|
+ for(let i=0;i<arr.length;i++){
|
|
629
|
+ for(let j=0;j<arr[i].child.length;j++){
|
|
630
|
+ if(j%2 ==0){
|
|
631
|
+ arr[i].left.push(arr[i].child[j])
|
|
632
|
+ }
|
|
633
|
+ if(j%2 == 1){
|
|
634
|
+ arr[i].right.push(arr[i].child[j])
|
|
635
|
+ }
|
|
636
|
+ }
|
|
637
|
+ }
|
|
638
|
+
|
|
639
|
+ this.Inspect = []
|
|
640
|
+ this.Inspect = arr
|
|
641
|
+ console.log("newarr----------------",arr)
|
|
642
|
+ }
|
580
|
643
|
|
581
|
|
- // this.$nextTick(()=>{
|
582
|
|
- // const iframeDoc = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
|
583
|
|
- // var newListArr =[]
|
584
|
|
- // for(let j in this.tab){
|
585
|
|
- // const obj={
|
586
|
|
- // id:this.tab[j].id,
|
587
|
|
- // newlist:'newList'+j
|
588
|
|
- // }
|
589
|
|
- // newListArr.push(obj)
|
590
|
|
- // }
|
591
|
|
- // for(let i in this.tab){
|
592
|
|
- // for(let j in newListArr){
|
593
|
|
- // if(this.tab[i].id==newListArr[j].id){
|
594
|
|
- // let newList = document.createElement('p');
|
595
|
|
- // newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
|
596
|
|
- // let newListItem1 = document.createElement('span');
|
597
|
|
- // newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
598
|
|
- // let newListItem2 = document.createElement('span');
|
599
|
|
- // newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
600
|
|
- // let newListItem3 = document.createElement('span');
|
601
|
|
- // newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
602
|
|
- // let newListItem4 = document.createElement('span');
|
603
|
|
- // newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
604
|
|
- // let newListItem5 = document.createElement('span');
|
605
|
|
- // newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
606
|
|
- // let newListItem6 = document.createElement('span');
|
607
|
|
- // newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
|
608
|
|
- // newListItem1.textContent = this.tab[i].name;
|
609
|
|
- // newListItem2.textContent = this.tab[i].type;
|
610
|
|
- // newListItem3.textContent = this.tab[i].start;
|
611
|
|
- // newListItem4.textContent = this.tab[i].dosage;
|
612
|
|
- // newListItem5.textContent = this.tab[i].pinlv;
|
613
|
|
- // newListItem6.textContent = this.tab[i].status;
|
614
|
|
- // newList.appendChild(newListItem1);
|
615
|
|
- // newList.appendChild(newListItem2);
|
616
|
|
- // newList.appendChild(newListItem3);
|
617
|
|
- // newList.appendChild(newListItem4);
|
618
|
|
- // newList.appendChild(newListItem5);
|
619
|
|
- // newList.appendChild(newListItem6);
|
620
|
|
- // iframeDoc.appendChild(newList)
|
621
|
|
- // }
|
622
|
|
- // }
|
623
|
|
- // }
|
624
|
|
- // })
|
|
644
|
+ this.$nextTick(()=>{
|
|
645
|
+ const iframeDoc = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
|
|
646
|
+
|
|
647
|
+ const jiancDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[8].children[1]
|
|
648
|
+
|
|
649
|
+ if(this.Inspect.length<1){
|
|
650
|
+ let newList = document.createElement('p');
|
|
651
|
+ newList.style.cssText = 'padding: 5px;'
|
|
652
|
+ newList.textContent = '无';
|
|
653
|
+ jiancDoc.appendChild(newList)
|
|
654
|
+ }else{
|
|
655
|
+ let newList = document.createElement('p');
|
|
656
|
+ newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
|
|
657
|
+ let newListItem1 = document.createElement('span');
|
|
658
|
+ newListItem1.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
659
|
+ let newListItem2 = document.createElement('span');
|
|
660
|
+ newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
661
|
+ let newListItem3 = document.createElement('span');
|
|
662
|
+ newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
663
|
+ let newListItem4 = document.createElement('span');
|
|
664
|
+ newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
665
|
+ let newListItem5 = document.createElement('span');
|
|
666
|
+ newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
667
|
+ let newListItem6 = document.createElement('span');
|
|
668
|
+ newListItem6.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;'
|
|
669
|
+ newListItem1.textContent = '检验项目';
|
|
670
|
+ newListItem2.textContent = '检验时间';
|
|
671
|
+ newListItem3.textContent = '检验内容';
|
|
672
|
+ newListItem4.textContent = '结果';
|
|
673
|
+ newListItem5.textContent = '检验内容';
|
|
674
|
+ newListItem6.textContent = '结果';
|
|
675
|
+ newList.appendChild(newListItem1);
|
|
676
|
+ newList.appendChild(newListItem2);
|
|
677
|
+ newList.appendChild(newListItem3);
|
|
678
|
+ newList.appendChild(newListItem4);
|
|
679
|
+ newList.appendChild(newListItem5);
|
|
680
|
+ newList.appendChild(newListItem6);
|
|
681
|
+ jiancDoc.appendChild(newList)
|
|
682
|
+ for(let i in this.Inspect){
|
|
683
|
+ let newList1 = document.createElement('p');
|
|
684
|
+ const child1 = document.createElement('p')
|
|
685
|
+ const child2 = document.createElement('p')
|
|
686
|
+ const child3 = document.createElement('p')
|
|
687
|
+ newList1.appendChild(child1);
|
|
688
|
+ newList1.appendChild(child2);
|
|
689
|
+ newList1.appendChild(child3);
|
|
690
|
+ newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
|
|
691
|
+ child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
|
|
692
|
+ child2.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;flex-wrap: wrap;'
|
|
693
|
+ child3.style.cssText= 'width: 40%;display: inline-block;display: flex;flex-wrap: wrap;'
|
|
694
|
+
|
|
695
|
+ let newListItem1 = document.createElement('span');
|
|
696
|
+ newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
697
|
+ let newListItem2 = document.createElement('span');
|
|
698
|
+ newListItem2.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;'
|
|
699
|
+ newListItem1.textContent = this.Inspect[i].name;
|
|
700
|
+ newListItem2.textContent = this.Inspect[i].date;
|
|
701
|
+ child1.appendChild(newListItem1);
|
|
702
|
+ child1.appendChild(newListItem2);
|
|
703
|
+ for(let j in this.Inspect[i].left){
|
|
704
|
+ let newListItem3 = document.createElement('span');
|
|
705
|
+ newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
706
|
+ let newListItem4 = document.createElement('span');
|
|
707
|
+ newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;'
|
|
708
|
+ newListItem3.textContent = this.Inspect[i].left[j].item_name;
|
|
709
|
+ newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
|
|
710
|
+ child2.appendChild(newListItem3);
|
|
711
|
+ child2.appendChild(newListItem4);
|
|
712
|
+ }
|
|
713
|
+ for(let x in this.Inspect[i].right){
|
|
714
|
+ let newListItem5 = document.createElement('span');
|
|
715
|
+ newListItem5.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
|
|
716
|
+ let newListItem6 = document.createElement('span');
|
|
717
|
+ newListItem6.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
|
|
718
|
+ newListItem5.textContent = this.Inspect[i].right[x].item_name;
|
|
719
|
+ newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
|
|
720
|
+ child3.appendChild(newListItem5);
|
|
721
|
+ child3.appendChild(newListItem6);
|
|
722
|
+ }
|
|
723
|
+ jiancDoc.appendChild(newList1)
|
|
724
|
+ }
|
|
725
|
+ }
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+ var newListArr =[]
|
|
729
|
+ for(let j in this.longAdvice){
|
|
730
|
+ const obj={
|
|
731
|
+ id:this.longAdvice[j].id,
|
|
732
|
+ newlist:'newList'+j
|
|
733
|
+ }
|
|
734
|
+ newListArr.push(obj)
|
|
735
|
+ }
|
|
736
|
+ for(let i in this.longAdvice){
|
|
737
|
+ for(let j in newListArr){
|
|
738
|
+ if(this.longAdvice[i].id==newListArr[j].id){
|
|
739
|
+ let newList = document.createElement('p');
|
|
740
|
+ newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
|
|
741
|
+ let newListItem1 = document.createElement('span');
|
|
742
|
+ newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
743
|
+ let newListItem2 = document.createElement('span');
|
|
744
|
+ newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
745
|
+ let newListItem3 = document.createElement('span');
|
|
746
|
+ newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
747
|
+ let newListItem4 = document.createElement('span');
|
|
748
|
+ newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
749
|
+ let newListItem5 = document.createElement('span');
|
|
750
|
+ newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
751
|
+ let newListItem6 = document.createElement('span');
|
|
752
|
+ newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
|
|
753
|
+ newListItem1.textContent = this.longAdvice[i].advice_name;
|
|
754
|
+ newListItem2.textContent = this.longAdvice[i].advice_type_name;
|
|
755
|
+ newListItem3.textContent = this.getTime(this.longAdvice[i].start_time)
|
|
756
|
+ newListItem4.textContent = this.longAdvice[i].single_dose +this.longAdvice[i].single_dose_unit ;
|
|
757
|
+ newListItem5.textContent = this.longAdvice[i].execution_frequency;
|
|
758
|
+ newListItem6.textContent = this.longAdvice[i].stop_state_name;
|
|
759
|
+ newList.appendChild(newListItem1);
|
|
760
|
+ newList.appendChild(newListItem2);
|
|
761
|
+ newList.appendChild(newListItem3);
|
|
762
|
+ newList.appendChild(newListItem4);
|
|
763
|
+ newList.appendChild(newListItem5);
|
|
764
|
+ newList.appendChild(newListItem6);
|
|
765
|
+ iframeDoc.appendChild(newList)
|
|
766
|
+ }
|
|
767
|
+ }
|
|
768
|
+ }
|
|
769
|
+ })
|
|
770
|
+
|
|
771
|
+
|
625
|
772
|
this.AuToShow = true
|
626
|
773
|
|
627
|
774
|
// this.getAutoPatientContent()
|
|
@@ -882,8 +1029,13 @@
|
882
|
1029
|
|
883
|
1030
|
this.min_monitor_diastolic_blood_pressure = response.data.data.min_monitor_diastolic_blood_pressure
|
884
|
1031
|
|
|
1032
|
+
|
885
|
1033
|
this.lastDryWeight = response.data.data.lastDryWeight
|
886
|
1034
|
|
|
1035
|
+ this.patientVascularAccess = response.data.data.patientVascularAccess
|
|
1036
|
+
|
|
1037
|
+ this.lastBefor = response.data.data.lastBefor
|
|
1038
|
+
|
887
|
1039
|
this.auto_dialog = true
|
888
|
1040
|
|
889
|
1041
|
|