see999 преди 3 години
родител
ревизия
a2670fec99
променени са 2 файла, в които са добавени 6 реда и са изтрити 4 реда
  1. 3 2
      src/xt_pages/hospitalStation/template/printFive.vue
  2. 3 2
      src/xt_pages/outpatientDoctorStation/template/printFive.vue

+ 3 - 2
src/xt_pages/hospitalStation/template/printFive.vue Целия файл

@@ -269,10 +269,11 @@ export default {
269 269
      },
270 270
 
271 271
      getDiagnosis(id){
272
+        let arr = id.split(',')
272 273
         var name = ""
273 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 279
         return name

+ 3 - 2
src/xt_pages/outpatientDoctorStation/template/printFive.vue Целия файл

@@ -269,10 +269,11 @@ export default {
269 269
      },
270 270
 
271 271
      getDiagnosis(id){
272
+        let arr = id.split(',')
272 273
         var name = ""
273 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 279
         return name