Browse Source

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

28169 10 months ago
parent
commit
41cb8f9d44
1 changed files with 17 additions and 7 deletions
  1. 17 7
      src/xt_pages/user/physiqueprinting.vue

+ 17 - 7
src/xt_pages/user/physiqueprinting.vue View File

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