소스 검색

12月6 检验检查

yq1 4 달 전
부모
커밋
efaa2c2c1f
2개의 변경된 파일1305개의 추가작업 그리고 193개의 파일을 삭제
  1. 751 27
      src/xt_pages/user/courseOfDisease_new.vue
  2. 554 166
      src/xt_pages/user/text_content.vue

+ 751 - 27
src/xt_pages/user/courseOfDisease_new.vue 파일 보기

@@ -201,13 +201,15 @@
201 201
               <el-button type="primary" size="small" @click="autotext_click">
202 202
                 生成
203 203
               </el-button>
204
-              <el-button type="primary" size="small" @click="auto_click">
204
+              <el-button type="primary" size="small" @click="auto_dialog=false">
205 205
                 取消
206 206
               </el-button>
207 207
             </div>
208 208
           </div>
209 209
           <div v-show="AuToShow">
210
-            <text_content @new_content="newcontent" :patient="patient" :prescriptionList="prescriptionList" :berforList="berforList" :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList" :start_date="start_date" :end_date="end_date" :patient_id="patient_id"></text_content>
210
+            <text_content @new_content="newcontent" :patient="patient" :prescriptionList="prescriptionList" :berforList="berforList" 
211
+            :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList" 
212
+            :start_date="start_date" :end_date="end_date" :patient_id="patient_id" :num="num"></text_content>
211 213
           </div>
212 214
         </div>
213 215
 
@@ -251,7 +253,7 @@
251 253
       Editor,
252 254
       PatientSidebar_new,
253 255
       ueditor,
254
-      text_content
256
+      text_content,
255 257
     },
256 258
     data() {
257 259
       return {
@@ -309,7 +311,21 @@
309 311
         inpectionList:[],
310 312
         dialysisOrderList:[],
311 313
         patient:{},
312
-        AuToShow:false
314
+        AuToShow:false,
315
+
316
+        num:22222222
317
+      //   name:"",
318
+      //  gander:"",
319
+      //  age:0,
320
+      //  dialysis_no:"",
321
+      //  patient_new:{},
322
+      //  prescriptionList:[],
323
+      //  berforList:[],
324
+      //  monitorList:[],
325
+      //  dryweightList:[],
326
+      //  inpectionList:[],
327
+      //  dialysisOrderList:[],
328
+      //  patient:{},
313 329
       }
314 330
     },
315 331
     created() {
@@ -512,10 +528,11 @@
512 528
       auto_click(){
513 529
         this.start_date = this.getFirstDayOfWeek(new Date())
514 530
         this.end_date = this.getTime(new Date())
531
+        // this.getAutoPatientContent()
515 532
         this.auto_dialog = true
516
-       
517 533
       },
518 534
       autotext_click(){
535
+        
519 536
         // this.$nextTick(()=>{
520 537
         //   const iframeDoc = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
521 538
         //   var newListArr =[]
@@ -561,6 +578,7 @@
561 578
         //   }
562 579
         // })
563 580
          this.AuToShow = true
581
+
564 582
       //  this.getAutoPatientContent()
565 583
       },
566 584
       // 本周
@@ -723,32 +741,737 @@
723 741
 
724 742
       },
725 743
 
726
-      createAction() {
727
-        console.log("haaaaaaaaaaaaaaa",this.$refs)
728
-        this.new_content = this.$refs.editor.contents
729
-
730
-        if (this.new_content.length == 0) {
731
-          this.$message.error('请填写病程内容')
732
-          return
744
+      getAutoPatientContent(){
745
+        if(this.start_date == ""){
746
+          this.$message.error("请选择开始时间")
747
+        }
748
+        if(this.end_date == ""){
749
+          this.$message.error("请选择结束时间")
733 750
         }
734 751
         var params = {
735
-          id:this.id,
752
+          start_time:this.start_date,
753
+          end_time:this.end_date,
736 754
           patient_id:this.patient_id,
737
-          record_date:this.record_date,
738
-          content:this.new_content,
739
-          admin_user_id:this.admin_user_id,
740 755
         }
741
-        console.log("params",params)
742
-        createNewCourseOfDiseaseRecord(params).then(response => {
743
-         if(response.data.state == 1){
744
-           var msg = response.data.data.msg
745
-           this.$message.success("保存成功!")
746
-         }
756
+        console.log("start_time==============",params)
757
+       getAutoPatientContent(params).then(response=>{
758
+          if(response.data.state == 1){
759
+          
760
+            var prescription =  response.data.data.prescription
761
+            var hd_total =0
762
+            var hdArr =[]
763
+            var hdf_total =0
764
+            var hdfArr=[]
765
+            var hdhp_total = 0
766
+            var hdhpArr = []
767
+            var hp_total = 0
768
+            var hpArr= []
769
+            var hf_total = 0
770
+            var hfArr = []
771
+            var scuf_total =0
772
+            var scufArr = []
773
+            var iuf_total =0
774
+            var iufArr = []
775
+            var hfhd_total =0
776
+            var hfhdArr = []
777
+
778
+            var hfhdhp_total =0
779
+            var hfhdhpArr = []
780
+
781
+            var phf_total =0
782
+            var phfArr = []
783
+
784
+         
785
+            var hdfhp_total =0
786
+            var hdfhpArr = []
787
+            var crrt_total =0
788
+            var crrtArr = []
789
+            var iufhd_total =0
790
+            var iufhdArr = []
791
+            var uf_total =0
792
+            var ufArr = []
793
+            var hdjia_total =0
794
+            var hdjiaArr = []
795
+            var ihdf_total =0
796
+            var ihdfArr = [] 
797
+            var hdgaotong_total =0
798
+            var hdgaotongArr = [] 
799
+            var cvvh_total =0
800
+            var cvvhArr = [] 
801
+
802
+            var cvvhd_total =0
803
+            var cvvhdArr = [] 
804
+
805
+            var cvvhdf_total =0
806
+            var cvvhdfArr = [] 
807
+            var petotal =0
808
+            var peArr=[]
809
+            var hpdtotal =0
810
+            var hpdArr=[]
811
+        
812
+            var hdptotal=0
813
+            var hdpArr =[]
814
+          
815
+            var hfdtotal=0
816
+            var hfdArr =[]
817
+
818
+            var hdf100total=0
819
+            var hdf100Arr =[]
820
+
821
+            var hdf600total=0
822
+            var hdf600Arr =[]
823
+
824
+            var hdf100total=0
825
+            var hdf100Arr =[]
826
+
827
+            var hdf800total=0
828
+            var hdf800Arr =[]
829
+
830
+            var hdf1000total=0
831
+            var hdf1000Arr =[]
832
+
833
+            
834
+            var hdf80total=0
835
+            var hdf80Arr =[]
836
+
837
+            var hf16total=0
838
+            var hf16Arr =[]
839
+
840
+            var hdwugantotal=0
841
+            var hdwuganArr =[]
842
+
843
+            var hdf17total=0
844
+            var hdf17Arr =[]
845
+
846
+            var hddiantotal=0
847
+            var hddianArr =[]
848
+
849
+            
850
+            var hd2total=0
851
+            var hd2Arr =[]
852
+
853
+            var total_count = 0
854
+          
855
+            var total_min = 0
856
+            var total_hour = 0
857
+            var total_hour_str =""
858
+
859
+            var dialyzerPerfusionApparatus = []
860
+            var dialyzerArr = []
861
+            var dialysisStrainerArr = []
862
+            var dialysisIrrigationArr = []
863
+
864
+            var kaliumArr= []
865
+            var sodiumArr= []
866
+            var calciumArr= []
867
+            var bicarbonateArr = []
868
+            var prescriptionSodiumArr = []
869
+
870
+            
871
+            if(prescription!=null && prescription.length>0){
872
+               total_count = prescription.length
873
+            }
747 874
 
748
-        }).catch(error => {
749 875
 
750
-        })
751
-      },
876
+            if(prescription!=null && prescription.length>0){
877
+               for(let i=0;i<prescription.length;i++){
878
+                if(prescription[i].dialyzer_perfusion_apparatus!=""){
879
+                  dialyzerPerfusionApparatus.push(prescription[i].dialyzer_perfusion_apparatus)
880
+                }
881
+                 if(prescription[i].dialysis_dialyszers!=""){
882
+                  dialyzerArr.push(prescription[i].dialysis_dialyszers)
883
+                 }
884
+                 if(prescription[i].dialysis_strainer!=""){
885
+                  dialysisStrainerArr.push(prescription[i].dialysis_strainer)
886
+                 }
887
+                 if(prescription[i].dialysis_irrigation!=""){
888
+                  dialysisIrrigationArr.push(prescription[i].dialysis_irrigation)
889
+                 }
890
+                 if(prescription[i].kalium!=""){
891
+                   kaliumArr.push(prescription[i].kalium)
892
+                 }
893
+                 if(prescription[i].sodium!=""){
894
+                   sodiumArr.push(prescription[i].kalium)
895
+                 }
896
+                 if(prescription[i].calcium!=""){
897
+                  calciumArr.push(prescription[i].calcium)
898
+                 }
899
+                 if(prescription[i].bicarbonate!=""){
900
+                   bicarbonateArr.push(prescription[i].bicarbonate)
901
+                 }
902
+                 if(prescription[i].prescription_sodium!=""){
903
+                  prescriptionSodiumArr.push(prescription[i].prescription_sodium)
904
+                 }
905
+                 
906
+                  total_min +=  parseInt(prescription[i].dialysis_duration_hour *60)+ parseInt(prescription[i].dialysis_duration_minute) 
907
+                  
908
+                  if(prescription[i].mode_id == 1){
909
+                     hdArr.push(prescription[i])
910
+                  }
911
+                  if(prescription[i].mode_id == 2){
912
+                    hdfArr.push(prescription[i])
913
+                  }
914
+                  if(prescription[i].mode_id == 3){
915
+                    hdhpArr.push(prescription[i])
916
+                  }
917
+                  if(prescription[i].mode_id == 4){
918
+                     hpArr.push(prescription[i])
919
+                  }
920
+                  if(prescription[i].mode_id == 5){
921
+                     hfArr.push(prescription[i])
922
+                  }
923
+                  if(prescription[i].mode_id == 6){
924
+                     scufArr.push(prescription[i])
925
+                  }
926
+                  if(prescription[i].mode_id == 7){
927
+                     iufArr.push(prescription[i])
928
+                  }
929
+                  if(prescription[i].mode_id == 8){
930
+                     hfhdArr.push(prescription[i])
931
+                  }
932
+                  if(prescription[i].mode_id == 9){
933
+                     hfhdhpArr.push(prescription[i])
934
+                  }
935
+                  if(prescription[i].mode_id == 10){
936
+                     phfArr.push(prescription[i])
937
+                  }
938
+                  if(prescription[i].mode_id == 11){
939
+                     hfArr.push(prescription[i])
940
+                  }
941
+                  if(prescription[i].mode_id == 12){
942
+                    hdfhpArr.push(prescription[i])
943
+                  }
944
+                  if(prescription[i].mode_id == 13){
945
+                    crrtArr.push(prescription[i])
946
+                  }
947
+                  if(prescription[i].mode_id == 19){
948
+                    iufhdArr.push(prescription[i])
949
+                  }
950
+                  if(prescription[i].mode_id == 20){
951
+                    ufArr.push(prescription[i])
952
+                  }
953
+                  if(prescription[i].mode_id == 21){
954
+                    hdjiaArr.push(prescription[i])
955
+                  }
956
+                  if(prescription[i].mode_id == 24){
957
+                    ihdfArr.push(prescription[i])
958
+                  }
959
+                  if(prescription[i].mode_id == 25){
960
+                    hdgaotongArr.push(prescription[i])
961
+                  }
962
+                  if(prescription[i].mode_id == 26){
963
+                    cvvhArr.push(prescription[i])
964
+                  }
965
+                  if(prescription[i].mode_id == 27){
966
+                    cvvhdArr.push(prescription[i])
967
+                  }
968
+                  if(prescription[i].mode_id == 28){
969
+                    cvvhdfArr.push(prescription[i])
970
+                  }
971
+                  if(prescription[i].mode_id == 29){
972
+                    peArr.push(prescription[i])
973
+                  }
974
+                  if(prescription[i].mode_id == 31){
975
+                    hpdArr.push(prescription[i])
976
+                  }
977
+                  if(prescription[i].mode_id == 32){
978
+                    hdpArr.push(prescription[i])
979
+                  }
980
+                  if(prescription[i].mode_id == 33){
981
+                    hfdArr.push(prescription[i])
982
+                  }
983
+                  if(prescription[i].mode_id == 34){
984
+                    hdf100Arr.push(prescription[i])
985
+                  }
986
+                  if(prescription[i].mode_id == 35){
987
+                    hdf600Arr.push(prescription[i])
988
+                  }
989
+                  if(prescription[i].mode_id == 36){
990
+                    hdf800Arr.push(prescription[i])
991
+                  }
992
+                  if(prescription[i].mode_id == 37){
993
+                    hdf1000Arr.push(prescription[i])
994
+                  }
995
+                  if(prescription[i].mode_id == 38){
996
+                    hdf80Arr.push(prescription[i])
997
+                  }
998
+                  if(prescription[i].mode_id == 39){
999
+                    hf16Arr.push(prescription[i])
1000
+                  }
1001
+                  if(prescription[i].mode_id == 40){
1002
+                    hdwuganArr.push(prescription[i])
1003
+                  }
1004
+                  if(prescription[i].mode_id == 41){
1005
+                    hdf17Arr.push(prescription[i])
1006
+                  }
1007
+                  if(prescription[i].mode_id == 42){
1008
+                    hddianArr.push(prescription[i])
1009
+                  }
1010
+                  if(prescription[i].mode_id == 43){
1011
+                    hd2Arr.push(prescription[i])
1012
+                  }
1013
+
1014
+               }
1015
+            }
1016
+           
1017
+            total_hour = ((total_min/60)/total_count).toFixed(2)
1018
+            total_hour_str = total_hour +"小时/次"
1019
+
1020
+            hd_total = hdArr.length
1021
+
1022
+            var hd_str = ""
1023
+            if(hd_total>0){
1024
+                hd_str = "HD"+hd_total +"次"
1025
+            }
1026
+
1027
+            hdf_total = hdfArr.length
1028
+
1029
+            var hdf_str =""
1030
+            if(hdf_total>0){
1031
+              hdf_str = "HDF"+hd_total +"次"
1032
+            }
1033
+
1034
+            hdhp_total = hdhpArr.length
1035
+            var hdhp_str =""
1036
+            if(hdhp_total>0){
1037
+              hdhp_str = "HD+HP"+hdhp_total+"次"
1038
+            }
1039
+            hp_total = hpArr.length
1040
+            var  hp_str= ""
1041
+            if(hp_total>0){
1042
+              hp_str = "HP"+hdptotal+"次"
1043
+            }
1044
+
1045
+            hf_total = hfArr.length
1046
+            var hf_str = ""
1047
+            if(hf_total>0){
1048
+              hf_str = "HF "+hf_total+"次"
1049
+            }
1050
+            var scuf_str = ""
1051
+            scuf_total = scufArr.length
1052
+            if(scuf_total>0){
1053
+              scuf_str = "SCUF"+scuf_total+"次"
1054
+            }
1055
+            iuf_total = iufArr
1056
+            var iuf_str= ""
1057
+            if(iuf_total>0){
1058
+              iuf_str = "IUF"+iuf_total+"次"
1059
+            }
1060
+            hfhd_total = hfhd_total
1061
+            var hfhd_str= ""
1062
+            if(hfhd_total>0){
1063
+              hfhd_str = "HFHD"+hfhd_total+"次"
1064
+            }
1065
+
1066
+            hfhdhp_total = hfhdhpArr
1067
+            var hfhdhp_str ="" 
1068
+            if(hfhdhp_total>0){
1069
+              hfhdhp_str = "HFHD+HP"+hfhdhp_total+"次"
1070
+            }
1071
+            phf_total = phfArr
1072
+            var phf_str= ""
1073
+            if(phf_total>0){
1074
+              phf_str = "PHF"+phf_total + "次"
1075
+            }
1076
+            hdfhp_total = hdfhpArr
1077
+            var hdfhp_str =""
1078
+            if(hdfhp_total>0){
1079
+              hdfhp_str = "HDFHP"+hdfhp_total+"次"
1080
+            }
1081
+            crrt_total = crrtArr
1082
+            var crrt_str =""
1083
+            if(crrt_total>0){
1084
+              crrt_str = "CRRT"+crrt_total+"次"
1085
+            }
1086
+            iuf_total = iufhdArr
1087
+            var iuf_str = ""
1088
+            if(iuf_total>0){
1089
+               iuf_str = "IUF"+iuf_total+"次"
1090
+            }
1091
+            uf_total = ufArr
1092
+            var uf_str= ""
1093
+            if(uf_total>0){
1094
+               uf_str = "UF"+uf_total +"次"
1095
+            }
1096
+           
1097
+            hdjia_total = hdjiaArr
1098
+            var hdjia_str =""
1099
+            if(hdjia_total>0){
1100
+               hdjia_str = "HD+"+hdjia_total+"次"
1101
+            }
1102
+
1103
+            ihdf_total = ihdfArr
1104
+            var ihdf_str = ""
1105
+            if(ihdf_total>0){
1106
+              ihdf_str = "IHDF"+ihdf_total +"次"
1107
+            }
1108
+            hdgaotong_total = hdgaotongArr
1109
+            var hdgaotong_str = ""
1110
+            if(hdgaotong_total>0){
1111
+              hdgaotong_str = "HD高通"+hdgaotong_total+"次"
1112
+            }
1113
+            cvvh_total = cvvhArr
1114
+            var cvvh_str =""
1115
+            if(cvvh_total>0){
1116
+              cvvh_str = "CVVH"+cvvh_total + "次"
1117
+            }
1118
+            cvvhd_total = cvvhdArr
1119
+            var cvvhd_str = ""
1120
+            if(cvvhd_total>0){
1121
+              cvvhd_str = "CVVHD"+cvvhd_total+"次"
1122
+            }
1123
+            cvvhdf_total =cvvhdfArr
1124
+            var cvvhdf_str = ""
1125
+            if(cvvhdf_total>0){
1126
+              cvvhdf_str="CVVHDF"+cvvhdf_total+"次"
1127
+            }
1128
+            petotal = peArr
1129
+            var pe_str =""
1130
+            if(petotal>0){
1131
+              pe_str = "PE"+petotal+"次"
1132
+            }
1133
+            hpdtotal = hpdArr
1134
+            var hpd_str =""
1135
+            if(hpdtotal>0){
1136
+               hpd_str = "HDP"+hpdtotal+"次"
1137
+            }
1138
+            hfdtotal = hfdArr
1139
+            var hfd_str =""
1140
+            if(hfdtotal>0){
1141
+               hfd_str ="HFD"+hfdtotal +"次"
1142
+            }
1143
+            hdf100total = hdf1000Arr
1144
+            var hdf100str = ""
1145
+            if(hdf100total>0){
1146
+              hdf100str = "HDF100"+hdf100total+"次"
1147
+            }
1148
+            hdf600total = hdf600Arr
1149
+            var hdf600str = ""
1150
+            if(hdf600total>0){
1151
+               hdf600str = "HDF600"+hdf600total+"次"
1152
+            }
1153
+            hdf100total = hdf1000Arr
1154
+            var hdf1000str = ""
1155
+            if(hdf100total>0){
1156
+              hdf1000str = "HDF1000"+hdf100total+"次"
1157
+            }
1158
+            hdf80total = hdf80Arr 
1159
+            var hdf80str = ""
1160
+            if(hdf80total>0){
1161
+              hdf80str ="HDF80"+hdf80str +"次"
1162
+            }
1163
+            hf16total = hf16Arr
1164
+            var hf16str = ""
1165
+            if(hf16total>0){
1166
+              hf16str = "HF16"+ hf16Arr +"次"
1167
+            }
1168
+            hdwugantotal = hdwuganArr
1169
+            var hdwuganstr = ""
1170
+            if(hdwugantotal>0){
1171
+              hdwuganstr = "HD无肝素"+hdwugantotal+"次"
1172
+            }
1173
+            hdf17total = hdf17Arr
1174
+            var hdf17str = ""
1175
+            if(hdf17total>0){
1176
+              hdf17str = "HDF17"+hdf17total + "次"
1177
+            }
1178
+            hddiantotal = hddianArr
1179
+            var hddianstr = ""
1180
+            if(hddiantotal>0){
1181
+              hddianstr = "HD."+hddiantotal + "次"
1182
+            }
1183
+            var hd2str = ""
1184
+            hd2total = hd2Arr
1185
+            if(hd2total>0){
1186
+              hd2str = "HD2"+hd2total+"次"
1187
+            }
1188
+
1189
+            var berfor = response.data.data.berfor
1190
+            this.berforList = []
1191
+            this.berforList = berfor
1192
+
1193
+            var monitorList  = response.data.data.monitorList
1194
+            this.monitorList = []
1195
+            this.monitorList = monitorList
1196
+
1197
+            var dryweightList = response.data.data.dryweightList
1198
+
1199
+            this.dryweightList = []
1200
+            this.dryweightList = dryweightList
1201
+
1202
+            var inpectionList = response.data.data.inpectionList
1203
+
1204
+            this.inpectionList = []
1205
+
1206
+            this.inpectionList = inpectionList
1207
+            
1208
+            this.patient = {}
1209
+            var patient = response.data.data.patient
1210
+            console.log("patinet-=================",patient)
1211
+            if(patient.gender == 1){
1212
+               patient.gender_name = "男"
1213
+            }
1214
+            if(patient.gender == 2){
1215
+               patient.gender_name = "女"
1216
+            }
1217
+
1218
+           this.patient2 = patient
1219
+           console.log('this.patient2',this.patient2);
1220
+            var dialysisOrderList =response.data.data.dialysisOrder
1221
+            
1222
+            var total_count = 0
1223
+            if(dialysisOrderList!=null&&dialysisOrderList.length>0){
1224
+                total_count = dialysisOrderList.length
1225
+            }
1226
+            total_count = this.dialysisOrderList.length
1227
+
1228
+      
1229
+            let dialyzerPerfusionApparatusObj={}
1230
+            let dialyzerPerfusionApparatusStr = ""
1231
+
1232
+            let dialyzerArrObj = {}
1233
+            let dialyzer_str = ""
1234
+
1235
+            let dialysisStrainerObj = {}
1236
+            let dialysisStrainerStr = ""
1237
+
1238
+            let dialysisIrrigationObj = {}
1239
+            let dialysisIrrigationStr = ""
1240
+
1241
+            let kaliumObj = {}
1242
+            let kaliumStr =""
1243
+            let kalium =""
1244
+
1245
+            if(kaliumArr!=null && kaliumArr.length>0){
1246
+               kaliumArr.forEach(item => {
1247
+                kaliumObj[item] = (kaliumObj[item] + 1) || 1
1248
+              })
1249
+            }
1250
+
1251
+            if(kaliumObj!=""){
1252
+              kaliumStr = JSON.stringify(kaliumObj).replace(/^{|}$/g, '')
1253
+            }
1254
+
1255
+            if(kaliumStr!=""){
1256
+              var str = kaliumStr.split(":")[0]
1257
+              kalium = "钾:" + str.replace(/^"(.*)"$/, '$1')+"."+"0"+"mmol/L" + "(" +kaliumStr.split(":")[1]+")"
1258
+            }
1259
+
1260
+           
1261
+
1262
+
1263
+            let sodiumObj = {}
1264
+            let sodiumStr =""
1265
+
1266
+            let sodium = ""
1267
+
1268
+
1269
+            if(sodiumArr!=null && sodiumArr.length>0){
1270
+              sodiumArr.forEach(item => {
1271
+                sodiumObj[item] = (sodiumObj[item] + 1) || 1
1272
+              })
1273
+            }
1274
+
1275
+            if(sodiumObj!=""){
1276
+              sodiumStr = JSON.stringify(sodiumObj).replace(/^{|}$/g, '')
1277
+            }
1278
+
1279
+            if(sodiumStr!=""){
1280
+              var str = sodiumStr.split(":")[0]
1281
+              sodium = "钠:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +sodiumStr.split(":")[1]+")"
1282
+            }
1283
+
1284
+            let calciumObj = {}
1285
+            let calciumStr =""
1286
+            let calcium  =""
1287
+
1288
+            if(calciumArr!=null && calciumArr.length>0){
1289
+              calciumArr.forEach(item => {
1290
+                calciumObj[item] = (calciumObj[item] + 1) || 1
1291
+              })
1292
+            }
1293
+
1294
+            if(calciumObj!=""){
1295
+              calciumStr = JSON.stringify(calciumObj).replace(/^{|}$/g, '')
1296
+            }
1297
+
1298
+            if(calciumStr!=""){
1299
+               var str = calciumStr.split(":")[0]
1300
+               calcium = "钙:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +calciumStr.split(":")[1]+")"
1301
+            }
1302
+
1303
+            let bicarbonateObj = {}
1304
+            let bicarbonateStr =""
1305
+            let bicarbonate = ""
1306
+
1307
+            if(bicarbonateArr!=null && bicarbonateArr.length>0){
1308
+              bicarbonateArr.forEach(item => {
1309
+                bicarbonateObj[item] = (bicarbonateObj[item] + 1) || 1
1310
+              })
1311
+            }
1312
+
1313
+            if(bicarbonateObj!=""){
1314
+
1315
+              bicarbonateStr = JSON.stringify(bicarbonateObj).replace(/^{|}$/g, '')
1316
+            }
1317
+
1318
+            if(bicarbonateStr!=""){
1319
+               var str = bicarbonateStr.split(":")[0]
1320
+               bicarbonate = "碳酸氢根:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +bicarbonateStr.split(":")[1]+")"
1321
+             
1322
+            }
1323
+            
1324
+            if(dialyzerPerfusionApparatus!=null && dialyzerPerfusionApparatus.length>0){
1325
+              dialyzerPerfusionApparatus.forEach(item => {
1326
+                dialyzerPerfusionApparatusObj[item] = (dialyzerPerfusionApparatusObj[item] + 1) || 1
1327
+              })
1328
+            }
1329
+
1330
+            if(dialyzerPerfusionApparatus!=null && dialyzerPerfusionApparatus.length>0){
1331
+              dialyzerPerfusionApparatus.forEach(item => {
1332
+                dialyzerPerfusionApparatusObj[item] = (dialyzerPerfusionApparatusObj[item] + 1) || 1
1333
+              })
1334
+            }
1335
+           
1336
+            if(dialyzerPerfusionApparatusObj!=""){
1337
+              dialyzerPerfusionApparatusStr = JSON.stringify(dialyzerPerfusionApparatusObj).replace(/^{|}$/g, '')
1338
+            }
1339
+
1340
+            if(dialyzerArr!=null && dialyzerArr.length>0){
1341
+              dialyzerArr.forEach(item => {
1342
+                dialyzerArrObj[item] = (dialyzerArrObj[item] + 1) || 1
1343
+              })
1344
+            }
1345
+    
1346
+            dialyzer_str = JSON.stringify(dialyzerArrObj).replace(/^{|}$/g, '')
1347
+
1348
+          
1349
+            if(dialysisStrainerArr!=null && dialysisStrainerArr.length>0){
1350
+               dialysisStrainerArr.forEach(item => {
1351
+                dialysisStrainerObj[item] = (dialysisStrainerObj[item] + 1) || 1
1352
+              })
1353
+            }
1354
+
1355
+            dialysisStrainerStr =  JSON.stringify(dialysisStrainerObj).replace(/^{|}$/g, '')
1356
+
1357
+
1358
+            if(dialysisIrrigationArr!=null && dialysisIrrigationArr.length>0){
1359
+              dialysisIrrigationArr.forEach(item => {
1360
+                dialysisIrrigationObj[item] = (dialysisIrrigationObj[item] + 1) || 1
1361
+              })
1362
+            }
1363
+
1364
+            dialysisIrrigationStr =  JSON.stringify(dialysisIrrigationObj).replace(/^{|}$/g, '')
1365
+            
1366
+           
1367
+           var longAdvice = response.data.data.longAdvice
1368
+
1369
+
1370
+            // const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
1371
+            //   <tr>
1372
+            //     <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date } ~${this.end_date })</th>
1373
+            //   </tr>
1374
+            //   <tr>
1375
+            //     <td width="130" style="padding: 5px;">基本信息</td>
1376
+            //     <td style="padding: 5px;">
1377
+            //       <span>姓名:${patient.name } </span>  <span>性别:${ patient.gender_name  }</span>  <span>年龄:${ patient.age }</span>  <span>透析号:${ patient.dialysis_no }</span>
1378
+            //     </td>
1379
+            //   </tr>
1380
+            //   <tr>
1381
+            //     <td style="align-items: center;padding: 5px;">透析处方</td>
1382
+            //     <td style='padding:5px'>
1383
+            //       <p style='font-weight: bold;'>总次数:${ total_count } ;</p>
1384
+            //       <p style='margin-bottom: 10px;' >其中${hd_str}${hdf_str}${hdhp_str}${hp_str}${hf_str}${scuf_str}${iuf_str}${hfhd_str}${hfhdhp_str}${phf_str}${hdfhp_str}${crrt_str}${iuf_str}${uf_str}${hdjia_str}${ihdf_str}${hdgaotong_str}${cvvh_str}${cvvhdf_str}${pe_str}${hpd_str}${hfd_str}${hdf100str}${hdf600str}${hdf1000str}${hdf80str}${hf16str}${hdwuganstr}${hdf17str}${hddianstr}${hd2str},平均${total_hour_str},使用${dialyzerPerfusionApparatusStr}${dialyzer_str}${dialysisIrrigationStr}${dialysisStrainerStr};</p>
1385
+            //       <p style='margin-bottom: 10px;'>${kalium};${sodium};${bicarbonate}</p>
1386
+            //       <p style='font-weight: bold;'>抗凝方式:</p>
1387
+            //       <p >低分子肝素,剂量:3500.00~3500.00IU;</p>
1388
+            //     </td>
1389
+            //   </tr>
1390
+            //   <tr>
1391
+            //     <td style="align-items: center;padding: 5px;">透析情况</td>
1392
+            //     <td style='padding:5px'>
1393
+            //       <p>透析间期平均体重增加:2.90kg;</p>
1394
+            //       <p>凝血:透析器-0度(1次);</p>
1395
+            //       <p>平均血流量:250.00mL/min;最大血流量:250mL/min;</p>
1396
+            //       <p>平均超滤量:2900.00ml/次;平均超滤率:9.84mL/kg/h;</p>
1397
+            //       <p><span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:174~174mmHg;舒张压:69~69mmHg;</span></p>
1398
+            //       <p><span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:155~155mmHg;舒张压:87~87mmHg;</span></p>
1399
+            //       <p><span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:148~148mmHg;舒张压:56~56mmHg;</span></p>
1400
+            //       <p><span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">收缩压:175~175mmHg;舒张压:87~87mmHg;</span></p>
1401
+            //     </td>
1402
+            //   </tr>
1403
+            //   <tr>
1404
+            //     <td style="align-items: center;padding: 5px;">干体重</td>
1405
+            //     <td style='padding: 5px;'>
1406
+            //       <p>
1407
+            //         <span style='font-weight: bold;'>当前干体重:</span>&nbsp;<span class="">73.7kg;</span>
1408
+            //       </p>
1409
+            //       <p>
1410
+            //         <span style='font-weight: bold;'>调整记录:</span>&nbsp;<span class="">无</span>
1411
+            //       </p>
1412
+            //     </td>
1413
+            //   </tr>
1414
+            //   <tr>
1415
+            //     <td style="align-items: center;padding: 5px;">血管通路</td>
1416
+            //     <td style='padding: 5px;'>
1417
+            //       <p>
1418
+            //         <span style='font-weight: bold;'>使用的血管通路:</span>&nbsp;<span class="">${ this.ceshi } &nbsp;&nbsp;建立时间:${ this.ceshi }</span>
1419
+            //       </p>   
1420
+            //     </td>
1421
+            //   </tr>
1422
+            //   <tr>
1423
+            //     <td style="align-items: center;padding: 5px;">合并症/并发症</td>
1424
+            //     <td style='padding: 5px;'>
1425
+            //       <p>
1426
+            //         <span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span>
1427
+            //       </p>
1428
+            //       <p>
1429
+            //         <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class="">无</span>
1430
+            //       </p>
1431
+            //     </td>
1432
+            //   </tr>
1433
+            //   <tr>
1434
+            //     <td style="align-items: center;padding: 5px;">检验结果</td>
1435
+            //     <td style='padding: 5px;'>
1436
+            //       <span class="">无</span>
1437
+            //     </td>
1438
+            //   </tr>
1439
+            //   <tr>
1440
+            //     <td style="align-items: center;padding: 5px;">检查结果</td>
1441
+            //     <td style='padding: 5px;'>
1442
+            //       <span class="">无</span>
1443
+            //     </td>
1444
+            //   </tr>
1445
+            //   <tr>
1446
+            //     <td style="align-items: center;padding: 5px;">医嘱用药</td>
1447
+            //     <td  class='' style="padding: 0;">
1448
+            //       <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
1449
+            //         <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
1450
+            //     </td>
1451
+            //   </tr>
1452
+              
1453
+              
1454
+            //   <tr>
1455
+            //     <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
1456
+            //     <td style='padding: 5px;'>
1457
+            //       <p class="">1、血压控制不良,随时监测血压,并加用口服降压药,将血压控制在正常范围;</p>
1458
+            //       <p class="">2、透析间期体重增加稳定,继续保持;</p>
1459
+            //       <p class="">3、血液透析时血流量达标,注意保护内瘘避免狭窄;</p>
1460
+            //     </td>
1461
+            //   </tr>
1462
+            //   <tr>
1463
+            //     <td style="align-items: center;padding: 5px;">医师签名</td>
1464
+            //     <td style='padding: 5px;'>
1465
+            //       <p class=""></p>
1466
+            //     </td>
1467
+            //   </tr>
1468
+            // </table>`
1469
+            // this.content = contents
1470
+            
1471
+          }
1472
+       })
1473
+
1474
+    },
752 1475
       didSelectTemplate: function(templateContent) {
753 1476
         this.new_content = this.new_content.length > 0 ? (this.new_content + templateContent) : templateContent
754 1477
 
@@ -961,10 +1684,11 @@
961 1684
       newcontent(val){
962 1685
         this.new_content =''
963 1686
         this.new_content = val
964
-        console.log('1111112323',this.new_content);
1687
+        // console.log('1111112323',this.new_content);
965 1688
         this.$refs.editor.contents = this.new_content
966 1689
       }
967
-    }
1690
+    },
1691
+    
968 1692
   }
969 1693
 </script>
970 1694
 

+ 554 - 166
src/xt_pages/user/text_content.vue 파일 보기

@@ -175,6 +175,9 @@ export default{
175 175
     },
176 176
     patient_id:{
177 177
       type:Number
178
+    },
179
+    num:{
180
+      type:Number
178 181
     }
179 182
    },
180 183
   data(){
@@ -197,15 +200,118 @@ export default{
197 200
        inpectionList:[],
198 201
        dialysisOrderList:[],
199 202
        patient:{},
203
+       patient2:{},
204
+       text:'',
200 205
     }
201 206
   },
202 207
   created(){
203
-   
204
-
205
-    this.getAutoPatientContent()
206
-  
207
- 
208
+    console.log('this11111111',this.num);
209
+    
210
+    // this.$nextTick(()=>{
211
+      this.getAutoPatientContent()
212
+    // })
208 213
     
214
+    
215
+    // const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
216
+    //           <tr>
217
+    //             <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date}~${this.end_date})</th>
218
+    //           </tr>
219
+    //           <tr>
220
+    //             <td width="130" style="padding: 5px;">基本信息</td>
221
+    //             <td style="padding: 5px;">
222
+    //               <span>姓名:${this.patient2.name} </span>  <span>性别:</span>  <span>年龄:</span>  <span>透析号:</span>
223
+    //             </td>
224
+    //           </tr>
225
+    //           <tr>
226
+    //             <td style="align-items: center;padding: 5px;">透析处方</td>
227
+    //             <td style='padding:5px'>
228
+    //               <p style='font-weight: bold;'>总次数: ;</p>
229
+    //               <p style='margin-bottom: 10px;' >其中;</p>
230
+    //               <p style='margin-bottom: 10px;'></p>
231
+    //               <p style='font-weight: bold;'>抗凝方式:</p>
232
+    //               <p >低分子肝素,剂量:3500.00~3500.00IU;</p>
233
+    //             </td>
234
+    //           </tr>
235
+    //           <tr>
236
+    //             <td style="align-items: center;padding: 5px;">透析情况</td>
237
+    //             <td style='padding:5px'>
238
+    //               <p>透析间期平均体重增加:2.90kg;</p>
239
+    //               <p>凝血:透析器-0度(1次);</p>
240
+    //               <p>平均血流量:250.00mL/min;最大血流量:250mL/min;</p>
241
+    //               <p>平均超滤量:2900.00ml/次;平均超滤率:9.84mL/kg/h;</p>
242
+    //               <p><span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:174~174mmHg;舒张压:69~69mmHg;</span></p>
243
+    //               <p><span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:155~155mmHg;舒张压:87~87mmHg;</span></p>
244
+    //               <p><span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:148~148mmHg;舒张压:56~56mmHg;</span></p>
245
+    //               <p><span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">收缩压:175~175mmHg;舒张压:87~87mmHg;</span></p>
246
+    //             </td>
247
+    //           </tr>
248
+    //           <tr>
249
+    //             <td style="align-items: center;padding: 5px;">干体重</td>
250
+    //             <td style='padding: 5px;'>
251
+    //               <p>
252
+    //                 <span style='font-weight: bold;'>当前干体重:</span>&nbsp;<span class="">73.7kg;</span>
253
+    //               </p>
254
+    //               <p>
255
+    //                 <span style='font-weight: bold;'>调整记录:</span>&nbsp;<span class="">无</span>
256
+    //               </p>
257
+    //             </td>
258
+    //           </tr>
259
+    //           <tr>
260
+    //             <td style="align-items: center;padding: 5px;">血管通路</td>
261
+    //             <td style='padding: 5px;'>
262
+    //               <p>
263
+    //                 <span style='font-weight: bold;'>使用的血管通路:</span>&nbsp;<span class="">${ this.ceshi } &nbsp;&nbsp;建立时间:${ this.ceshi }</span>
264
+    //               </p>   
265
+    //             </td>
266
+    //           </tr>
267
+    //           <tr>
268
+    //             <td style="align-items: center;padding: 5px;">合并症/并发症</td>
269
+    //             <td style='padding: 5px;'>
270
+    //               <p>
271
+    //                 <span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span>
272
+    //               </p>
273
+    //               <p>
274
+    //                 <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class="">无</span>
275
+    //               </p>
276
+    //             </td>
277
+    //           </tr>
278
+    //           <tr>
279
+    //             <td style="align-items: center;padding: 5px;">检验结果</td>
280
+    //             <td style='padding: 5px;'>
281
+    //               <span class="">无</span>
282
+    //             </td>
283
+    //           </tr>
284
+    //           <tr>
285
+    //             <td style="align-items: center;padding: 5px;">检查结果</td>
286
+    //             <td style='padding: 5px;'>
287
+    //               <span class="">无</span>
288
+    //             </td>
289
+    //           </tr>
290
+    //           <tr>
291
+    //             <td style="align-items: center;padding: 5px;">医嘱用药</td>
292
+    //             <td  class='' style="padding: 0;">
293
+    //               <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
294
+    //                 <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
295
+    //             </td>
296
+    //           </tr>
297
+              
298
+              
299
+    //           <tr>
300
+    //             <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
301
+    //             <td style='padding: 5px;'>
302
+    //               <p class="">1、血压控制不良,随时监测血压,并加用口服降压药,将血压控制在正常范围;</p>
303
+    //               <p class="">2、透析间期体重增加稳定,继续保持;</p>
304
+    //               <p class="">3、血液透析时血流量达标,注意保护内瘘避免狭窄;</p>
305
+    //             </td>
306
+    //           </tr>
307
+    //           <tr>
308
+    //             <td style="align-items: center;padding: 5px;">医师签名</td>
309
+    //             <td style='padding: 5px;'>
310
+    //               <p class=""></p>
311
+    //             </td>
312
+    //           </tr>
313
+    //         </table>`
314
+    //         this.content = contents
209 315
   },
210 316
   watch:{
211 317
    
@@ -219,57 +325,308 @@ export default{
219 325
      }
220 326
    
221 327
   },
328
+  beforeMount(){
329
+    console.log('vvvvvvvvvvvv',this.num);
330
+    
331
+     const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
332
+              <tr>
333
+                <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date}~${this.end_date})</th>
334
+              </tr>
335
+              <tr>
336
+                <td width="130" style="padding: 5px;">基本信息</td>
337
+                <td style="padding: 5px;">
338
+                  <span>姓名:${this.num}</span>  <span>性别:</span>  <span>年龄:</span>  <span>透析号:</span>
339
+                </td>
340
+              </tr>
341
+              <tr>
342
+                <td style="align-items: center;padding: 5px;">透析处方</td>
343
+                <td style='padding:5px'>
344
+                  <p style='font-weight: bold;'>总次数: ;</p>
345
+                  <p style='margin-bottom: 10px;' >其中;</p>
346
+                  <p style='margin-bottom: 10px;'></p>
347
+                  <p style='font-weight: bold;'>抗凝方式:</p>
348
+                  <p >低分子肝素,剂量:3500.00~3500.00IU;</p>
349
+                </td>
350
+              </tr>
351
+              <tr>
352
+                <td style="align-items: center;padding: 5px;">透析情况</td>
353
+                <td style='padding:5px'>
354
+                  <p>透析间期平均体重增加:2.90kg;</p>
355
+                  <p>凝血:透析器-0度(1次);</p>
356
+                  <p>平均血流量:250.00mL/min;最大血流量:250mL/min;</p>
357
+                  <p>平均超滤量:2900.00ml/次;平均超滤率:9.84mL/kg/h;</p>
358
+                  <p><span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:174~174mmHg;舒张压:69~69mmHg;</span></p>
359
+                  <p><span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:155~155mmHg;舒张压:87~87mmHg;</span></p>
360
+                  <p><span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:148~148mmHg;舒张压:56~56mmHg;</span></p>
361
+                  <p><span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">收缩压:175~175mmHg;舒张压:87~87mmHg;</span></p>
362
+                </td>
363
+              </tr>
364
+              <tr>
365
+                <td style="align-items: center;padding: 5px;">干体重</td>
366
+                <td style='padding: 5px;'>
367
+                  <p>
368
+                    <span style='font-weight: bold;'>当前干体重:</span>&nbsp;<span class="">73.7kg;</span>
369
+                  </p>
370
+                  <p>
371
+                    <span style='font-weight: bold;'>调整记录:</span>&nbsp;<span class="">无</span>
372
+                  </p>
373
+                </td>
374
+              </tr>
375
+              <tr>
376
+                <td style="align-items: center;padding: 5px;">血管通路</td>
377
+                <td style='padding: 5px;'>
378
+                  <p>
379
+                    <span style='font-weight: bold;'>使用的血管通路:</span>&nbsp;<span class="">${ this.ceshi } &nbsp;&nbsp;建立时间:${ this.ceshi }</span>
380
+                  </p>   
381
+                </td>
382
+              </tr>
383
+              <tr>
384
+                <td style="align-items: center;padding: 5px;">合并症/并发症</td>
385
+                <td style='padding: 5px;'>
386
+                  <p>
387
+                    <span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span>
388
+                  </p>
389
+                  <p>
390
+                    <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class="">无</span>
391
+                  </p>
392
+                </td>
393
+              </tr>
394
+              <tr>
395
+                <td style="align-items: center;padding: 5px;">检验结果</td>
396
+                <td style='padding: 5px;'>
397
+                  <span class="">无</span>
398
+                </td>
399
+              </tr>
400
+              <tr>
401
+                <td style="align-items: center;padding: 5px;">检查结果</td>
402
+                <td style='padding: 5px;'>
403
+                  <span class="">无</span>
404
+                </td>
405
+              </tr>
406
+              <tr>
407
+                <td style="align-items: center;padding: 5px;">医嘱用药</td>
408
+                <td  class='' style="padding: 0;">
409
+                  <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
410
+                    <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
411
+                </td>
412
+              </tr>
413
+              
414
+              
415
+              <tr>
416
+                <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
417
+                <td style='padding: 5px;'>
418
+                  <p class="">1、血压控制不良,随时监测血压,并加用口服降压药,将血压控制在正常范围;</p>
419
+                  <p class="">2、透析间期体重增加稳定,继续保持;</p>
420
+                  <p class="">3、血液透析时血流量达标,注意保护内瘘避免狭窄;</p>
421
+                </td>
422
+              </tr>
423
+              <tr>
424
+                <td style="align-items: center;padding: 5px;">医师签名</td>
425
+                <td style='padding: 5px;'>
426
+                  <p class=""></p>
427
+                </td>
428
+              </tr>
429
+            </table>`
430
+            // this.text = contents
431
+            this.content = contents
432
+  },
222 433
   mounted(){
223
-   
224
-
434
+    this.$nextTick(() =>{
435
+    // const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
436
+    //           <tr>
437
+    //             <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date}~${this.end_date})</th>
438
+    //           </tr>
439
+    //           <tr>
440
+    //             <td width="130" style="padding: 5px;">基本信息</td>
441
+    //             <td style="padding: 5px;">
442
+    //               <span>姓名:${this.patient2.name}</span>  <span>性别:</span>  <span>年龄:</span>  <span>透析号:</span>
443
+    //             </td>
444
+    //           </tr>
445
+    //           <tr>
446
+    //             <td style="align-items: center;padding: 5px;">透析处方</td>
447
+    //             <td style='padding:5px'>
448
+    //               <p style='font-weight: bold;'>总次数: ;</p>
449
+    //               <p style='margin-bottom: 10px;' >其中;</p>
450
+    //               <p style='margin-bottom: 10px;'></p>
451
+    //               <p style='font-weight: bold;'>抗凝方式:</p>
452
+    //               <p >低分子肝素,剂量:3500.00~3500.00IU;</p>
453
+    //             </td>
454
+    //           </tr>
455
+    //           <tr>
456
+    //             <td style="align-items: center;padding: 5px;">透析情况</td>
457
+    //             <td style='padding:5px'>
458
+    //               <p>透析间期平均体重增加:2.90kg;</p>
459
+    //               <p>凝血:透析器-0度(1次);</p>
460
+    //               <p>平均血流量:250.00mL/min;最大血流量:250mL/min;</p>
461
+    //               <p>平均超滤量:2900.00ml/次;平均超滤率:9.84mL/kg/h;</p>
462
+    //               <p><span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:174~174mmHg;舒张压:69~69mmHg;</span></p>
463
+    //               <p><span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:155~155mmHg;舒张压:87~87mmHg;</span></p>
464
+    //               <p><span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:148~148mmHg;舒张压:56~56mmHg;</span></p>
465
+    //               <p><span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">收缩压:175~175mmHg;舒张压:87~87mmHg;</span></p>
466
+    //             </td>
467
+    //           </tr>
468
+    //           <tr>
469
+    //             <td style="align-items: center;padding: 5px;">干体重</td>
470
+    //             <td style='padding: 5px;'>
471
+    //               <p>
472
+    //                 <span style='font-weight: bold;'>当前干体重:</span>&nbsp;<span class="">73.7kg;</span>
473
+    //               </p>
474
+    //               <p>
475
+    //                 <span style='font-weight: bold;'>调整记录:</span>&nbsp;<span class="">无</span>
476
+    //               </p>
477
+    //             </td>
478
+    //           </tr>
479
+    //           <tr>
480
+    //             <td style="align-items: center;padding: 5px;">血管通路</td>
481
+    //             <td style='padding: 5px;'>
482
+    //               <p>
483
+    //                 <span style='font-weight: bold;'>使用的血管通路:</span>&nbsp;<span class="">${ this.ceshi } &nbsp;&nbsp;建立时间:${ this.ceshi }</span>
484
+    //               </p>   
485
+    //             </td>
486
+    //           </tr>
487
+    //           <tr>
488
+    //             <td style="align-items: center;padding: 5px;">合并症/并发症</td>
489
+    //             <td style='padding: 5px;'>
490
+    //               <p>
491
+    //                 <span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span>
492
+    //               </p>
493
+    //               <p>
494
+    //                 <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class="">无</span>
495
+    //               </p>
496
+    //             </td>
497
+    //           </tr>
498
+    //           <tr>
499
+    //             <td style="align-items: center;padding: 5px;">检验结果</td>
500
+    //             <td style='padding: 5px;'>
501
+    //               <span class="">无</span>
502
+    //             </td>
503
+    //           </tr>
504
+    //           <tr>
505
+    //             <td style="align-items: center;padding: 5px;">检查结果</td>
506
+    //             <td style='padding: 5px;'>
507
+    //               <span class="">无</span>
508
+    //             </td>
509
+    //           </tr>
510
+    //           <tr>
511
+    //             <td style="align-items: center;padding: 5px;">医嘱用药</td>
512
+    //             <td  class='' style="padding: 0;">
513
+    //               <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
514
+    //                 <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
515
+    //             </td>
516
+    //           </tr>
517
+              
518
+              
519
+    //           <tr>
520
+    //             <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
521
+    //             <td style='padding: 5px;'>
522
+    //               <p class="">1、血压控制不良,随时监测血压,并加用口服降压药,将血压控制在正常范围;</p>
523
+    //               <p class="">2、透析间期体重增加稳定,继续保持;</p>
524
+    //               <p class="">3、血液透析时血流量达标,注意保护内瘘避免狭窄;</p>
525
+    //             </td>
526
+    //           </tr>
527
+    //           <tr>
528
+    //             <td style="align-items: center;padding: 5px;">医师签名</td>
529
+    //             <td style='padding: 5px;'>
530
+    //               <p class=""></p>
531
+    //             </td>
532
+    //           </tr>
533
+    //         </table>`
534
+    //         this.text = contents
535
+    // this.content = this.text
536
+      console.log('document.getElementById(editer)',document.getElementById('editer').getElementsByTagName('tbody')[0].children[9]);
537
+      
538
+      const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
539
+      var newListArr =[]
540
+      for(let j in this.tab){
541
+        const obj={
542
+          id:this.tab[j].id,
543
+          newlist:'newList'+j
544
+        }
545
+        newListArr.push(obj) 
546
+      }
547
+      for(let i in this.tab){
548
+        for(let j in newListArr){
549
+          if(this.tab[i].id==newListArr[j].id){
550
+            let newList = document.createElement('p');
551
+            newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
552
+            let newListItem1 = document.createElement('span');
553
+            newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
554
+            let newListItem2 = document.createElement('span');
555
+            newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
556
+            let newListItem3 = document.createElement('span');
557
+            newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
558
+            let newListItem4 = document.createElement('span');
559
+            newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
560
+            let newListItem5 = document.createElement('span');
561
+            newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
562
+            let newListItem6 = document.createElement('span');
563
+            newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
564
+            newListItem1.textContent = this.tab[i].name;
565
+            newListItem2.textContent = this.tab[i].type;
566
+            newListItem3.textContent = this.tab[i].start;
567
+            newListItem4.textContent = this.tab[i].dosage;
568
+            newListItem5.textContent = this.tab[i].pinlv;
569
+            newListItem6.textContent = this.tab[i].status;
570
+            newList.appendChild(newListItem1);
571
+            newList.appendChild(newListItem2);
572
+            newList.appendChild(newListItem3);
573
+            newList.appendChild(newListItem4);
574
+            newList.appendChild(newListItem5);
575
+            newList.appendChild(newListItem6);
576
+            iframeDoc.appendChild(newList)
577
+          }
578
+        }
579
+      }
580
+      this.$emit('new_content',this.content)
581
+    })
225 582
     console.log("name:",this.name)
226 583
     console.log("gander:",this.gander)
227 584
     console.log("age:",this.age)
228 585
     console.log("dialysis_no:",this.dialysis_no)
229
-    console.log('document.getElementById3334',document.getElementById('editer'))
230
-    const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
231
-    var newListArr =[]
232
-    for(let j in this.tab){
233
-      const obj={
234
-        id:this.tab[j].id,
235
-        newlist:'newList'+j
236
-      }
237
-      newListArr.push(obj) 
238
-    }
239
-    for(let i in this.tab){
240
-      for(let j in newListArr){
241
-        if(this.tab[i].id==newListArr[j].id){
242
-          let newList = document.createElement('p');
243
-          newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
244
-          let newListItem1 = document.createElement('span');
245
-          newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
246
-          let newListItem2 = document.createElement('span');
247
-          newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
248
-          let newListItem3 = document.createElement('span');
249
-          newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
250
-          let newListItem4 = document.createElement('span');
251
-          newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
252
-          let newListItem5 = document.createElement('span');
253
-          newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
254
-          let newListItem6 = document.createElement('span');
255
-          newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
256
-          newListItem1.textContent = this.tab[i].name;
257
-          newListItem2.textContent = this.tab[i].type;
258
-          newListItem3.textContent = this.tab[i].start;
259
-          newListItem4.textContent = this.tab[i].dosage;
260
-          newListItem5.textContent = this.tab[i].pinlv;
261
-          newListItem6.textContent = this.tab[i].status;
262
-          newList.appendChild(newListItem1);
263
-          newList.appendChild(newListItem2);
264
-          newList.appendChild(newListItem3);
265
-          newList.appendChild(newListItem4);
266
-          newList.appendChild(newListItem5);
267
-          newList.appendChild(newListItem6);
268
-          iframeDoc.appendChild(newList)
269
-        }
270
-      }
271
-    }
272
-    this.$emit('new_content',this.content) 
586
+    // console.log('document.getElementById3334',document.getElementById('editer'))
587
+    // const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
588
+    // var newListArr =[]
589
+    // for(let j in this.tab){
590
+    //   const obj={
591
+    //     id:this.tab[j].id,
592
+    //     newlist:'newList'+j
593
+    //   }
594
+    //   newListArr.push(obj) 
595
+    // }
596
+    // for(let i in this.tab){
597
+    //   for(let j in newListArr){
598
+    //     if(this.tab[i].id==newListArr[j].id){
599
+    //       let newList = document.createElement('p');
600
+    //       newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
601
+    //       let newListItem1 = document.createElement('span');
602
+    //       newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
603
+    //       let newListItem2 = document.createElement('span');
604
+    //       newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
605
+    //       let newListItem3 = document.createElement('span');
606
+    //       newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
607
+    //       let newListItem4 = document.createElement('span');
608
+    //       newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
609
+    //       let newListItem5 = document.createElement('span');
610
+    //       newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
611
+    //       let newListItem6 = document.createElement('span');
612
+    //       newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
613
+    //       newListItem1.textContent = this.tab[i].name;
614
+    //       newListItem2.textContent = this.tab[i].type;
615
+    //       newListItem3.textContent = this.tab[i].start;
616
+    //       newListItem4.textContent = this.tab[i].dosage;
617
+    //       newListItem5.textContent = this.tab[i].pinlv;
618
+    //       newListItem6.textContent = this.tab[i].status;
619
+    //       newList.appendChild(newListItem1);
620
+    //       newList.appendChild(newListItem2);
621
+    //       newList.appendChild(newListItem3);
622
+    //       newList.appendChild(newListItem4);
623
+    //       newList.appendChild(newListItem5);
624
+    //       newList.appendChild(newListItem6);
625
+    //       iframeDoc.appendChild(newList)
626
+    //     }
627
+    //   }
628
+    // }
629
+    // this.$emit('new_content',this.content) 
273 630
   },
274 631
   methods: {
275 632
     getAutoPatientContent(){
@@ -746,7 +1103,8 @@ export default{
746 1103
                patient.gender_name = "女"
747 1104
             }
748 1105
 
749
-           
1106
+           this.patient2 = patient
1107
+           console.log('this.patient2111111111',this.patient2);
750 1108
             var dialysisOrderList =response.data.data.dialysisOrder
751 1109
             
752 1110
             var total_count = 0
@@ -924,122 +1282,152 @@ export default{
924 1282
            
925 1283
            var longAdvice = response.data.data.longAdvice
926 1284
 
927
-
928
-
929
-
930
-          
931
-
932
-
933
-            const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
934
-              <tr>
935
-                <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date } ~${this.end_date })</th>
936
-              </tr>
937
-              <tr>
938
-                <td width="130" style="padding: 5px;">基本信息</td>
939
-                <td style="padding: 5px;">
940
-                  <span>姓名:${patient.name } </span>  <span>性别:${ patient.gender_name  }</span>  <span>年龄:${ patient.age }</span>  <span>透析号:${ patient.dialysis_no }</span>
941
-                </td>
942
-              </tr>
943
-              <tr>
944
-                <td style="align-items: center;padding: 5px;">透析处方</td>
945
-                <td style='padding:5px'>
946
-                  <p style='font-weight: bold;'>总次数:${ total_count } ;</p>
947
-                  <p style='margin-bottom: 10px;' >其中${hd_str}${hdf_str}${hdhp_str}${hp_str}${hf_str}${scuf_str}${iuf_str}${hfhd_str}${hfhdhp_str}${phf_str}${hdfhp_str}${crrt_str}${iuf_str}${uf_str}${hdjia_str}${ihdf_str}${hdgaotong_str}${cvvh_str}${cvvhdf_str}${pe_str}${hpd_str}${hfd_str}${hdf100str}${hdf600str}${hdf1000str}${hdf80str}${hf16str}${hdwuganstr}${hdf17str}${hddianstr}${hd2str},平均${total_hour_str},使用${dialyzerPerfusionApparatusStr}${dialyzer_str}${dialysisIrrigationStr}${dialysisStrainerStr};</p>
948
-                  <p style='margin-bottom: 10px;'>${kalium};${sodium};${bicarbonate}</p>
949
-                  <p style='font-weight: bold;'>抗凝方式:</p>
950
-                  <p >低分子肝素,剂量:3500.00~3500.00IU;</p>
951
-                </td>
952
-              </tr>
953
-              <tr>
954
-                <td style="align-items: center;padding: 5px;">透析情况</td>
955
-                <td style='padding:5px'>
956
-                  <p>透析间期平均体重增加:2.90kg;</p>
957
-                  <p>凝血:透析器-0度(1次);</p>
958
-                  <p>平均血流量:250.00mL/min;最大血流量:250mL/min;</p>
959
-                  <p>平均超滤量:2900.00ml/次;平均超滤率:9.84mL/kg/h;</p>
960
-                  <p><span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:174~174mmHg;舒张压:69~69mmHg;</span></p>
961
-                  <p><span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:155~155mmHg;舒张压:87~87mmHg;</span></p>
962
-                  <p><span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:148~148mmHg;舒张压:56~56mmHg;</span></p>
963
-                  <p><span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">收缩压:175~175mmHg;舒张压:87~87mmHg;</span></p>
964
-                </td>
965
-              </tr>
966
-              <tr>
967
-                <td style="align-items: center;padding: 5px;">干体重</td>
968
-                <td style='padding: 5px;'>
969
-                  <p>
970
-                    <span style='font-weight: bold;'>当前干体重:</span>&nbsp;<span class="">73.7kg;</span>
971
-                  </p>
972
-                  <p>
973
-                    <span style='font-weight: bold;'>调整记录:</span>&nbsp;<span class="">无</span>
974
-                  </p>
975
-                </td>
976
-              </tr>
977
-              <tr>
978
-                <td style="align-items: center;padding: 5px;">血管通路</td>
979
-                <td style='padding: 5px;'>
980
-                  <p>
981
-                    <span style='font-weight: bold;'>使用的血管通路:</span>&nbsp;<span class="">${ this.ceshi } &nbsp;&nbsp;建立时间:${ this.ceshi }</span>
982
-                  </p>   
983
-                </td>
984
-              </tr>
985
-              <tr>
986
-                <td style="align-items: center;padding: 5px;">合并症/并发症</td>
987
-                <td style='padding: 5px;'>
988
-                  <p>
989
-                    <span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span>
990
-                  </p>
991
-                  <p>
992
-                    <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class="">无</span>
993
-                  </p>
994
-                </td>
995
-              </tr>
996
-              <tr>
997
-                <td style="align-items: center;padding: 5px;">检验结果</td>
998
-                <td style='padding: 5px;'>
999
-                  <span class="">无</span>
1000
-                </td>
1001
-              </tr>
1002
-              <tr>
1003
-                <td style="align-items: center;padding: 5px;">检查结果</td>
1004
-                <td style='padding: 5px;'>
1005
-                  <span class="">无</span>
1006
-                </td>
1007
-              </tr>
1008
-              <tr>
1009
-                <td style="align-items: center;padding: 5px;">医嘱用药</td>
1010
-                <td  class='' style="padding: 0;">
1011
-                  <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
1012
-                    <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
1013
-                </td>
1014
-              </tr>
1015
-
1016
-               <tr>
1017
-                <td style="align-items: center;padding: 5px;">医嘱用药</td>
1018
-                <td  class='' style="padding: 0;">
1019
-                  <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
1020
-                    <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
1021
-                </td>
1022
-              </tr>
1285
+            // const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
1286
+            //   <tr>
1287
+            //     <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date } ~${this.end_date })</th>
1288
+            //   </tr>
1289
+            //   <tr>
1290
+            //     <td width="130" style="padding: 5px;">基本信息</td>
1291
+            //     <td style="padding: 5px;">
1292
+            //       <span>姓名:${patient.name } </span>  <span>性别:${ patient.gender_name  }</span>  <span>年龄:${ patient.age }</span>  <span>透析号:${ patient.dialysis_no }</span>
1293
+            //     </td>
1294
+            //   </tr>
1295
+            //   <tr>
1296
+            //     <td style="align-items: center;padding: 5px;">透析处方</td>
1297
+            //     <td style='padding:5px'>
1298
+            //       <p style='font-weight: bold;'>总次数:${ total_count } ;</p>
1299
+            //       <p style='margin-bottom: 10px;' >其中${hd_str}${hdf_str}${hdhp_str}${hp_str}${hf_str}${scuf_str}${iuf_str}${hfhd_str}${hfhdhp_str}${phf_str}${hdfhp_str}${crrt_str}${iuf_str}${uf_str}${hdjia_str}${ihdf_str}${hdgaotong_str}${cvvh_str}${cvvhdf_str}${pe_str}${hpd_str}${hfd_str}${hdf100str}${hdf600str}${hdf1000str}${hdf80str}${hf16str}${hdwuganstr}${hdf17str}${hddianstr}${hd2str},平均${total_hour_str},使用${dialyzerPerfusionApparatusStr}${dialyzer_str}${dialysisIrrigationStr}${dialysisStrainerStr};</p>
1300
+            //       <p style='margin-bottom: 10px;'>${kalium};${sodium};${bicarbonate}</p>
1301
+            //       <p style='font-weight: bold;'>抗凝方式:</p>
1302
+            //       <p >低分子肝素,剂量:3500.00~3500.00IU;</p>
1303
+            //     </td>
1304
+            //   </tr>
1305
+            //   <tr>
1306
+            //     <td style="align-items: center;padding: 5px;">透析情况</td>
1307
+            //     <td style='padding:5px'>
1308
+            //       <p>透析间期平均体重增加:2.90kg;</p>
1309
+            //       <p>凝血:透析器-0度(1次);</p>
1310
+            //       <p>平均血流量:250.00mL/min;最大血流量:250mL/min;</p>
1311
+            //       <p>平均超滤量:2900.00ml/次;平均超滤率:9.84mL/kg/h;</p>
1312
+            //       <p><span style='font-weight: bold;'>透前血压:</span>&nbsp;<span class="">收缩压:174~174mmHg;舒张压:69~69mmHg;</span></p>
1313
+            //       <p><span style='font-weight: bold;'>透后血压:</span>&nbsp;<span class="">收缩压:155~155mmHg;舒张压:87~87mmHg;</span></p>
1314
+            //       <p><span style='font-weight: bold;'>透中最低血压:</span>&nbsp;<span class="">收缩压:148~148mmHg;舒张压:56~56mmHg;</span></p>
1315
+            //       <p><span style='font-weight: bold;'>透中最高血压:</span>&nbsp;<span class="">收缩压:175~175mmHg;舒张压:87~87mmHg;</span></p>
1316
+            //     </td>
1317
+            //   </tr>
1318
+            //   <tr>
1319
+            //     <td style="align-items: center;padding: 5px;">干体重</td>
1320
+            //     <td style='padding: 5px;'>
1321
+            //       <p>
1322
+            //         <span style='font-weight: bold;'>当前干体重:</span>&nbsp;<span class="">73.7kg;</span>
1323
+            //       </p>
1324
+            //       <p>
1325
+            //         <span style='font-weight: bold;'>调整记录:</span>&nbsp;<span class="">无</span>
1326
+            //       </p>
1327
+            //     </td>
1328
+            //   </tr>
1329
+            //   <tr>
1330
+            //     <td style="align-items: center;padding: 5px;">血管通路</td>
1331
+            //     <td style='padding: 5px;'>
1332
+            //       <p>
1333
+            //         <span style='font-weight: bold;'>使用的血管通路:</span>&nbsp;<span class="">${ this.ceshi } &nbsp;&nbsp;建立时间:${ this.ceshi }</span>
1334
+            //       </p>   
1335
+            //     </td>
1336
+            //   </tr>
1337
+            //   <tr>
1338
+            //     <td style="align-items: center;padding: 5px;">合并症/并发症</td>
1339
+            //     <td style='padding: 5px;'>
1340
+            //       <p>
1341
+            //         <span style='font-weight: bold;'>合并症:</span>&nbsp;<span class="">无</span>
1342
+            //       </p>
1343
+            //       <p>
1344
+            //         <span style='font-weight: bold;'>透析并发症:</span>&nbsp;<span class="">无</span>
1345
+            //       </p>
1346
+            //     </td>
1347
+            //   </tr>
1348
+            //   <tr>
1349
+            //     <td style="align-items: center;padding: 5px;">检验结果</td>
1350
+            //     <td style='padding: 5px;'>
1351
+            //       <span class="">无</span>
1352
+            //     </td>
1353
+            //   </tr>
1354
+            //   <tr>
1355
+            //     <td style="align-items: center;padding: 5px;">检查结果</td>
1356
+            //     <td style='padding: 5px;'>
1357
+            //       <span class="">无</span>
1358
+            //     </td>
1359
+            //   </tr>
1360
+            //   <tr>
1361
+            //     <td style="align-items: center;padding: 5px;">医嘱用药</td>
1362
+            //     <td  class='' style="padding: 0;">
1363
+            //       <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
1364
+            //         <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
1365
+            //     </td>
1366
+            //   </tr>
1023 1367
               
1024 1368
               
1025
-              <tr>
1026
-                <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
1027
-                <td style='padding: 5px;'>
1028
-                  <p class="">1、血压控制不良,随时监测血压,并加用口服降压药,将血压控制在正常范围;</p>
1029
-                  <p class="">2、透析间期体重增加稳定,继续保持;</p>
1030
-                  <p class="">3、血液透析时血流量达标,注意保护内瘘避免狭窄;</p>
1031
-                </td>
1032
-              </tr>
1033
-              <tr>
1034
-                <td style="align-items: center;padding: 5px;">医师签名</td>
1035
-                <td style='padding: 5px;'>
1036
-                  <p class=""></p>
1037
-                </td>
1038
-              </tr>
1039
-            </table>`
1040
-    
1041
-            this.content = contents
1042
-           
1369
+            //   <tr>
1370
+            //     <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
1371
+            //     <td style='padding: 5px;'>
1372
+            //       <p class="">1、血压控制不良,随时监测血压,并加用口服降压药,将血压控制在正常范围;</p>
1373
+            //       <p class="">2、透析间期体重增加稳定,继续保持;</p>
1374
+            //       <p class="">3、血液透析时血流量达标,注意保护内瘘避免狭窄;</p>
1375
+            //     </td>
1376
+            //   </tr>
1377
+            //   <tr>
1378
+            //     <td style="align-items: center;padding: 5px;">医师签名</td>
1379
+            //     <td style='padding: 5px;'>
1380
+            //       <p class=""></p>
1381
+            //     </td>
1382
+            //   </tr>
1383
+            // </table>`
1384
+            // this.content = contents
1385
+            // console.log('document.getElementById(editer)',document.getElementById('editer').getElementsByTagName('tbody')[0].children[9]);
1386
+            // this.$nextTick(()=>{
1387
+            //   const iframeDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[9].children[1]
1388
+            //   var newListArr =[]
1389
+            //   for(let j in this.tab){
1390
+            //     const obj={
1391
+            //       id:this.tab[j].id,
1392
+            //       newlist:'newList'+j
1393
+            //     }
1394
+            //     newListArr.push(obj) 
1395
+            //   }
1396
+            //   for(let i in this.tab){
1397
+            //     for(let j in newListArr){
1398
+            //       if(this.tab[i].id==newListArr[j].id){
1399
+            //         let newList = document.createElement('p');
1400
+            //         newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
1401
+            //         let newListItem1 = document.createElement('span');
1402
+            //         newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
1403
+            //         let newListItem2 = document.createElement('span');
1404
+            //         newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
1405
+            //         let newListItem3 = document.createElement('span');
1406
+            //         newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
1407
+            //         let newListItem4 = document.createElement('span');
1408
+            //         newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
1409
+            //         let newListItem5 = document.createElement('span');
1410
+            //         newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
1411
+            //         let newListItem6 = document.createElement('span');
1412
+            //         newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
1413
+            //         newListItem1.textContent = this.tab[i].name;
1414
+            //         newListItem2.textContent = this.tab[i].type;
1415
+            //         newListItem3.textContent = this.tab[i].start;
1416
+            //         newListItem4.textContent = this.tab[i].dosage;
1417
+            //         newListItem5.textContent = this.tab[i].pinlv;
1418
+            //         newListItem6.textContent = this.tab[i].status;
1419
+            //         newList.appendChild(newListItem1);
1420
+            //         newList.appendChild(newListItem2);
1421
+            //         newList.appendChild(newListItem3);
1422
+            //         newList.appendChild(newListItem4);
1423
+            //         newList.appendChild(newListItem5);
1424
+            //         newList.appendChild(newListItem6);
1425
+            //         iframeDoc.appendChild(newList)
1426
+            //       }
1427
+            //     }
1428
+            //   }
1429
+            //   this.$emit('new_content',this.content) 
1430
+            // })
1043 1431
           }
1044 1432
        })
1045 1433