see999 3 years ago
parent
commit
ab2d63574b

+ 8 - 4
src/xt_pages/outpatientDoctorStation/template/printThree.vue View File

@@ -23,7 +23,7 @@
23 23
           <div class="infoMain">
24 24
               <div style="margin-bottom: 10px;display:flex;">门诊号码:<span class="under_line">{{hisPatient.number?hisPatient.number:""}}</span></div>
25 25
               <div style="margin-bottom: 10px;display:flex;">科别:<span class="under_line">{{item.info?getDepart(item.info.departments):''}}</span></div>
26
-              <div style="margin-bottom: 10px;display:flex;">临床诊断:{{item.info.diagnosis}}</div>
26
+              <div style="margin-bottom: 10px;display:flex;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
27 27
               <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
28 28
               <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
29 29
               <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
@@ -256,11 +256,15 @@ export default {
256 256
         return project_name
257 257
      },
258 258
 
259
-     getDiagnosis(id){
259
+     getDiagnosis(ids){
260
+        let id = ids.split(',')
260 261
         var name = ""
261 262
         for(let i=0;i<this.diagnoses.length;i++){
262
-          if(id == this.diagnoses[i].id){
263
-             name = this.diagnoses[i].class_name
263
+          // if(id == this.diagnoses[i].id){
264
+          //    name = this.diagnoses[i].class_name
265
+          // }
266
+          if(id.indexOf(this.diagnoses[i].id.toString()) > -1){
267
+            name += this.diagnoses[i].class_name + ' '
264 268
           }
265 269
         }
266 270
         return name

+ 8 - 4
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue View File

@@ -22,7 +22,7 @@
22 22
         <div class="infoMain">
23 23
             <div style="margin-bottom: 10px;display:flex;">门诊号码:<span class="under_line">{{hisPatient.number?hisPatient.number:""}}</span></div>
24 24
             <div style="margin-bottom: 10px;display:flex;">科别:<span class="under_line">{{item.info?getDepart(item.info.departments):''}}</span></div>
25
-            <div style="margin-bottom: 10px;display:flex;">临床诊断:{{item.info.diagnosis}}</div>
25
+            <div style="margin-bottom: 10px;display:flex;">临床诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
26 26
             <div style="margin-bottom: 10px;display:flex;">自费药品签名:<span class="under_line"></span></div>
27 27
             <!-- <div style="margin-bottom: 10px;display:flex;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div> -->
28 28
             <div style="margin-bottom: 10px;display:flex;">联系方式:<span class="under_line">{{item.patient.phone}}</span></div>
@@ -376,11 +376,15 @@ export default {
376 376
           }
377 377
        })
378 378
      },
379
-     getDiagnosis(id){
379
+     getDiagnosis(ids){
380
+        let id = ids.split(',')
380 381
         var name = ""
381 382
         for(let i=0;i<this.diagnoses.length;i++){
382
-          if(id == this.diagnoses[i].id){
383
-             name = this.diagnoses[i].class_name
383
+          // if(id == this.diagnoses[i].id){
384
+          //    name = this.diagnoses[i].class_name
385
+          // }
386
+          if(id.indexOf(this.diagnoses[i].id.toString()) > -1){
387
+            name += this.diagnoses[i].class_name + ' '
384 388
           }
385 389
         }
386 390
         return name