Browse Source

12月12 自动生成

yq1 4 weeks ago
parent
commit
fa52a013e0
2 changed files with 45 additions and 44 deletions
  1. 43 37
      src/xt_pages/user/courseOfDisease_new.vue
  2. 2 7
      src/xt_pages/user/text_content.vue

+ 43 - 37
src/xt_pages/user/courseOfDisease_new.vue View File

246
             </div>
246
             </div>
247
           <!-- </div> -->
247
           <!-- </div> -->
248
           <div v-show="AuToShow">
248
           <div v-show="AuToShow">
249
-            <text_content @new_content="newcontent" :patient="patient" :prescription="prescription" :berforList="berforList" 
250
-            :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList" 
251
-            :start_date="start_date" :end_date="end_date" :patient_id="patient_id" :num="num" :longAdvice="longAdvice" :groupPrescriptionList="groupPrescriptionList" :afterList="afterList" :max_blood_flow_volume="max_blood_flow_volume" 
249
+            <text_content @new_content="newcontent" :patient="patient" :prescription="prescription" :berforList="berforList"
250
+            :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList"
251
+            :start_date="start_date" :end_date="end_date" :patient_id="patient_id" :num="num" :longAdvice="longAdvice" :groupPrescriptionList="groupPrescriptionList" :afterList="afterList" :max_blood_flow_volume="max_blood_flow_volume"
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"
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
             :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"
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
             :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"
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"
371
         min_monitor_diastolic_blood_pressure:"",
371
         min_monitor_diastolic_blood_pressure:"",
372
         lastDryWeight:{},
372
         lastDryWeight:{},
373
         patientVascularAccess:{},
373
         patientVascularAccess:{},
374
-        lastBefor:{}
374
+        lastBefor:{},
375
+        Inspect:[{id:1,name:'血常规',date:'2024-12-09',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
376
+            right:[{c_id:1,c_name:'白细胞1',c_value:110},{c_id:2,c_name:'白细胞3',c_value:110}]},
377
+            {id:2,name:'血常规',date:'2024-12-19',left:[{c_id:1,c_name:'血红蛋白',c_value:110},{c_id:2,c_name:'血红蛋白2',c_value:110}],
378
+            right:[{c_id:1,c_name:'白细胞1',c_value:110},{c_id:2,c_name:'白细胞3',c_value:110}]}
379
+        ],
375
       }
380
       }
376
     },
381
     },
377
     created() {
382
     created() {
631
             }
636
             }
632
           }
637
           }
633
         }
638
         }
634
-          
639
+
635
         for(let i=0;i<arr.length;i++){
640
         for(let i=0;i<arr.length;i++){
636
           for(let j=0;j<arr[i].child.length;j++){
641
           for(let j=0;j<arr[i].child.length;j++){
637
              if(j%2 ==0){
642
              if(j%2 ==0){
647
         this.Inspect = arr
652
         this.Inspect = arr
648
         console.log("newarr----------------",arr)
653
         console.log("newarr----------------",arr)
649
        }
654
        }
650
-        
651
-        this.$nextTick(()=>{
655
+
656
+        // this.$nextTick(()=>{
652
           const iframeDoc = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
657
           const iframeDoc = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
653
-        
654
-          const jiancDoc = document.getElementById('editer').getElementsByTagName('tbody')[0].children[8].children[1]
655
 
658
 
659
+          const jiancDoc = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[8].children[1]
660
+          jiancDoc.getElementsByTagName('br')[0].remove()
661
+          jiancDoc.style.cssText='padding: 0'
656
             if(this.Inspect.length<1){
662
             if(this.Inspect.length<1){
657
-              let newList = document.createElement('p');
658
-              newList.style.cssText = 'padding: 5px;'
659
-              newList.textContent = '无';
660
-              jiancDoc.appendChild(newList)
663
+              let newList2 = document.createElement('p');
664
+              newList2.style.cssText = 'padding: 5px;'
665
+              newList2.textContent = '无';
666
+              jiancDoc.appendChild(newList2)
661
             }else{
667
             }else{
662
               let newList = document.createElement('p');
668
               let newList = document.createElement('p');
663
                   newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
669
                   newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
709
                 child1.appendChild(newListItem2);
715
                 child1.appendChild(newListItem2);
710
                 for(let j in this.Inspect[i].left){
716
                 for(let j in this.Inspect[i].left){
711
                   let newListItem3 = document.createElement('span');
717
                   let newListItem3 = document.createElement('span');
712
-                  newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
718
+                  newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
713
                   let newListItem4 = document.createElement('span');
719
                   let newListItem4 = document.createElement('span');
714
-                  newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;'
720
+                  newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;box-sizing: border-box;display: inline-block;padding: 5px 0;'
715
                   newListItem3.textContent = this.Inspect[i].left[j].item_name;
721
                   newListItem3.textContent = this.Inspect[i].left[j].item_name;
716
                   newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
722
                   newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
717
                   child2.appendChild(newListItem3);
723
                   child2.appendChild(newListItem3);
719
                 }
725
                 }
720
                 for(let x in this.Inspect[i].right){
726
                 for(let x in this.Inspect[i].right){
721
                   let newListItem5 = document.createElement('span');
727
                   let newListItem5 = document.createElement('span');
722
-                  newListItem5.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
728
+                  newListItem5.style.cssText= 'width: 50%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
723
                   let newListItem6 = document.createElement('span');
729
                   let newListItem6 = document.createElement('span');
724
-                  newListItem6.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
730
+                  newListItem6.style.cssText= 'width: 50%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
725
                   newListItem5.textContent = this.Inspect[i].right[x].item_name;
731
                   newListItem5.textContent = this.Inspect[i].right[x].item_name;
726
                   newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
732
                   newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
727
                   child3.appendChild(newListItem5);
733
                   child3.appendChild(newListItem5);
731
               }
737
               }
732
             }
738
             }
733
 
739
 
734
-          
740
+
735
           var newListArr =[]
741
           var newListArr =[]
736
           for(let j in this.longAdvice){
742
           for(let j in this.longAdvice){
737
             const obj={
743
             const obj={
738
               id:this.longAdvice[j].id,
744
               id:this.longAdvice[j].id,
739
               newlist:'newList'+j
745
               newlist:'newList'+j
740
             }
746
             }
741
-            newListArr.push(obj) 
747
+            newListArr.push(obj)
742
           }
748
           }
743
           for(let i in this.longAdvice){
749
           for(let i in this.longAdvice){
744
             for(let j in newListArr){
750
             for(let j in newListArr){
773
               }
779
               }
774
             }
780
             }
775
           }
781
           }
776
-        })
782
+        // })
777
 
783
 
778
 
784
 
779
          this.AuToShow = true
785
          this.AuToShow = true
955
         console.log("start_time==============",params)
961
         console.log("start_time==============",params)
956
        getAutoPatientContent(params).then(response=>{
962
        getAutoPatientContent(params).then(response=>{
957
           if(response.data.state == 1){
963
           if(response.data.state == 1){
958
-          
964
+
959
             var prescription =  response.data.data.prescription
965
             var prescription =  response.data.data.prescription
960
             this.prescription=[]
966
             this.prescription=[]
961
             this.prescription = prescription
967
             this.prescription = prescription
962
-           
968
+
963
             var berfor = response.data.data.berfor
969
             var berfor = response.data.data.berfor
964
             this.berforList = []
970
             this.berforList = []
965
             this.berforList = berfor
971
             this.berforList = berfor
978
             this.inpectionList = []
984
             this.inpectionList = []
979
 
985
 
980
             this.inpectionList = inpectionList
986
             this.inpectionList = inpectionList
981
-            
982
-           
987
+
988
+
983
             var patient = response.data.data.patient
989
             var patient = response.data.data.patient
984
-           
990
+
985
             if(patient.gender == 1){
991
             if(patient.gender == 1){
986
                patient.gender_name = "男"
992
                patient.gender_name = "男"
987
             }
993
             }
994
 
1000
 
995
            this.dialysisOrderList = []
1001
            this.dialysisOrderList = []
996
            this.dialysisOrderList = dialysisOrderList
1002
            this.dialysisOrderList = dialysisOrderList
997
-            
1003
+
998
            var longAdvice = response.data.data.longAdvice
1004
            var longAdvice = response.data.data.longAdvice
999
-        
1005
+
1000
            this.longAdvice = []
1006
            this.longAdvice = []
1001
            this.longAdvice = longAdvice
1007
            this.longAdvice = longAdvice
1002
 
1008
 
1003
            this.groupPrescriptionList = []
1009
            this.groupPrescriptionList = []
1004
            this.groupPrescriptionList = response.data.data.groupPrescriptionList
1010
            this.groupPrescriptionList = response.data.data.groupPrescriptionList
1005
-        
1011
+
1006
            this.afterList = response.data.data.after
1012
            this.afterList = response.data.data.after
1007
 
1013
 
1008
            this.max_blood_flow_volume = response.data.data.max_blood_flow_volume
1014
            this.max_blood_flow_volume = response.data.data.max_blood_flow_volume
1009
-           
1015
+
1010
            this.max_befor_systolic_blood_pressure = response.data.data.max_befor_systolic_blood_pressure
1016
            this.max_befor_systolic_blood_pressure = response.data.data.max_befor_systolic_blood_pressure
1011
 
1017
 
1012
          this.min_befor_systolic_blood_pressure = response.data.data.min_befor_systolic_blood_pressure
1018
          this.min_befor_systolic_blood_pressure = response.data.data.min_befor_systolic_blood_pressure
1017
 
1023
 
1018
 
1024
 
1019
          this.max_after_systolic_blood_pressure = response.data.data.max_after_systolic_blood_pressure
1025
          this.max_after_systolic_blood_pressure = response.data.data.max_after_systolic_blood_pressure
1020
-   
1026
+
1021
          this.min_after_systolic_blood_pressure = response.data.data.min_after_systolic_blood_pressure
1027
          this.min_after_systolic_blood_pressure = response.data.data.min_after_systolic_blood_pressure
1022
 
1028
 
1023
          this.max_after_diastolic_blood_pressure = response.data.data.max_after_diastolic_blood_pressure
1029
          this.max_after_diastolic_blood_pressure = response.data.data.max_after_diastolic_blood_pressure
1036
 
1042
 
1037
          this.min_monitor_diastolic_blood_pressure = response.data.data.min_monitor_diastolic_blood_pressure
1043
          this.min_monitor_diastolic_blood_pressure = response.data.data.min_monitor_diastolic_blood_pressure
1038
 
1044
 
1039
-         
1040
-         this.lastDryWeight = response.data.data.lastDryWeight 
1045
+
1046
+         this.lastDryWeight = response.data.data.lastDryWeight
1041
 
1047
 
1042
          this.patientVascularAccess = response.data.data.patientVascularAccess
1048
          this.patientVascularAccess = response.data.data.patientVascularAccess
1043
 
1049
 
1045
 
1051
 
1046
          this.auto_dialog  =  true
1052
          this.auto_dialog  =  true
1047
 
1053
 
1048
-            
1049
-            
1054
+
1055
+
1050
           }
1056
           }
1051
        })
1057
        })
1052
 
1058
 
1259
       getTimeOne (time) {
1265
       getTimeOne (time) {
1260
       return uParseTime(time, '{y}-{m}-{d}')
1266
       return uParseTime(time, '{y}-{m}-{d}')
1261
       },
1267
       },
1262
-    
1268
+
1263
       newcontent(val){
1269
       newcontent(val){
1264
         this.new_content =''
1270
         this.new_content =''
1265
         this.new_content = val
1271
         this.new_content = val
1266
-        // console.log('1111112323',this.new_content);
1272
+        console.log('1111112323',val);
1267
         this.$refs.editor.contents = this.new_content
1273
         this.$refs.editor.contents = this.new_content
1268
       }
1274
       }
1269
     },
1275
     },
1270
-    
1276
+
1271
   }
1277
   }
1272
 </script>
1278
 </script>
1273
 
1279
 

+ 2 - 7
src/xt_pages/user/text_content.vue View File

122
   },
122
   },
123
   watch:{
123
   watch:{
124
    
124
    
125
-    
126
-   
127
   },
125
   },
128
   beforeMount(){
126
   beforeMount(){
129
 
127
 
874
                   <p style='margin-bottom: 10px;'>
872
                   <p style='margin-bottom: 10px;'>
875
                      ${kalium}${sodium}${calcium}${bicarbonate}
873
                      ${kalium}${sodium}${calcium}${bicarbonate}
876
                   </p>
874
                   </p>
877
-                  
878
                   <p style='font-weight: bold;'>抗凝方式:</p>
875
                   <p style='font-weight: bold;'>抗凝方式:</p>
879
                   <p >${anticoagulant_str}</p>
876
                   <p >${anticoagulant_str}</p>
880
                 </td>
877
                 </td>
930
               </tr>
927
               </tr>
931
               <tr>
928
               <tr>
932
                 <td style="align-items: center;padding: 5px;">检验结果</td>
929
                 <td style="align-items: center;padding: 5px;">检验结果</td>
933
-                <td>
934
-                  
935
-                </td>
930
+                <td></td>
936
               </tr>
931
               </tr>
937
               <tr>
932
               <tr>
938
                 <td style="align-items: center;padding: 5px;">医嘱用药</td>
933
                 <td style="align-items: center;padding: 5px;">医嘱用药</td>
1227
 </script>
1222
 </script>
1228
 <style lang="scss" scoped>
1223
 <style lang="scss" scoped>
1229
   .table tr td,th{
1224
   .table tr td,th{
1230
-    padding: 5px;
1225
+    // padding: 5px;
1231
   }
1226
   }
1232
   .text{
1227
   .text{
1233
     font-weight: bold;
1228
     font-weight: bold;