Explorar el Código

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

XMLWAN hace 3 años
padre
commit
c607651f47

+ 3 - 2
src/xt_pages/hospitalStation/template/printFive.vue Ver fichero

269
      },
269
      },
270
 
270
 
271
      getDiagnosis(id){
271
      getDiagnosis(id){
272
+        let arr = id.split(',')
272
         var name = ""
273
         var name = ""
273
         for(let i=0;i<this.diagnoses.length;i++){
274
         for(let i=0;i<this.diagnoses.length;i++){
274
-          if(id == this.diagnoses[i].id){
275
-             name = this.diagnoses[i].class_name
275
+          if(arr.indexOf(String(this.diagnoses[i].id)) > -1){
276
+             name += this.diagnoses[i].class_name + ' '
276
           }
277
           }
277
         }
278
         }
278
         return name
279
         return name

+ 3 - 2
src/xt_pages/outpatientDoctorStation/template/printFive.vue Ver fichero

269
      },
269
      },
270
 
270
 
271
      getDiagnosis(id){
271
      getDiagnosis(id){
272
+        let arr = id.split(',')
272
         var name = ""
273
         var name = ""
273
         for(let i=0;i<this.diagnoses.length;i++){
274
         for(let i=0;i<this.diagnoses.length;i++){
274
-          if(id == this.diagnoses[i].id){
275
-             name = this.diagnoses[i].class_name
275
+          if(arr.indexOf(String(this.diagnoses[i].id)) > -1){
276
+             name += this.diagnoses[i].class_name + ' '
276
           }
277
           }
277
         }
278
         }
278
         return name
279
         return name