Browse Source

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

XMLWAN 3 years ago
parent
commit
c607651f47

+ 3 - 2
src/xt_pages/hospitalStation/template/printFive.vue View File

@@ -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 View File

@@ -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