Parcourir la source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 il y a 10 mois
Parent
révision
41cb8f9d44
1 fichiers modifiés avec 17 ajouts et 7 suppressions
  1. 17 7
      src/xt_pages/user/physiqueprinting.vue

+ 17 - 7
src/xt_pages/user/physiqueprinting.vue Voir le fichier

@@ -6,7 +6,7 @@
6 6
       </el-button>
7 7
     </div>
8 8
     <div class="app-container">
9
-      <div id="print_content" v-for="item in this.list">
9
+      <div id="print_content" v-for="item in this.list" style="font-family: Microsoft YaHei;font-size: 16px;">
10 10
         <div class="print_page_main_content">
11 11
           <h1 style="text-align: center; padding-top:12px;">{{ orgname }}血液净化治疗病历</h1>
12 12
           <div style="border-bottom: 1px solid black;display: flex;padding-bottom: 10px;padding-top: 10px;">
@@ -69,7 +69,7 @@
69 69
           </div>
70 70
           <h3 style="text-align: center; margin: 20px 0px;">病史内容</h3>
71 71
           <div style="word-break: break-all; word-wrap: break-word;">
72
-            <div v-html="item.content"></div>
72
+            <div v-html="item.content" style="font-family: Microsoft YaHei;"></div>
73 73
           </div>
74 74
           <h3 v-if="item.XtPatientPhysiqueCheck.id > 0" style="text-align: center; margin: 30px 0px 10px 0px;">体格检查</h3>
75 75
           <div v-if="item.XtPatientPhysiqueCheck.id > 0">
@@ -120,10 +120,16 @@
120 120
 
121 121
           <div style="margin-top: 30px;">
122 122
             <span style="font-weight: bold; display: block;">初步诊断:</span>
123
-            {{ patient.diagnose }}
124
-            <span style="font-weight: bold;">病历书写者:</span>
125
-            {{getDoctorName(item.doctor_id)}}
126
-          
123
+            <div v-for="(item,index) in diagnosis" :key="index" style="line-height: 20px;" v-if="org_id==10612">
124
+              {{index+1}}.<span>{{ item }}</span><br/>
125
+            </div>
126
+            <span v-if="org_id!=10612">{{ patient.diagnose }}</span>
127
+            <div style="text-align: right;margin-bottom: 10px;">
128
+              <span style="font-weight: bold;">病历书写者:</span>
129
+              {{getDoctorName(item.doctor_id)}}
130
+            </div>
131
+            
132
+
127 133
           </div>
128 134
           <div style="float: right;">
129 135
             <span style="font-weight: bold;">日期:</span>
@@ -201,7 +207,8 @@ export default {
201 207
         abdomen: '',
202 208
         other: ''
203 209
       },
204
-      diagnosis: ''
210
+      diagnosis: [],
211
+      org_id:0
205 212
     }
206 213
   },
207 214
   components: {
@@ -671,6 +678,8 @@ export default {
671 678
       getSickhistoryCheckRecordsPrint(params).then(response => {
672 679
         if (response.data.state == 1) {
673 680
           this.patient = response.data.data.patient
681
+          this.diagnosis = this.patient.diagnose.split(',')
682
+          console.log('ttttttt',this.diagnosis);
674 683
           this.list = response.data.data.sickhistorys
675 684
         }
676 685
       })
@@ -687,6 +696,7 @@ export default {
687 696
     }
688 697
   },
689 698
   created() {
699
+    this.org_id = this.$store.getters.xt_user.org.id
690 700
     this.getPhysiquePrintList()
691 701
     this.fetchAllDoctorAndNurse()
692 702
   }