See999 vor 3 Jahren
Ursprung
Commit
52d541c122
1 geänderte Dateien mit 34 neuen und 4 gelöschten Zeilen
  1. 34 4
      src/xt_pages/upload/fast/dialysisParams.vue

+ 34 - 4
src/xt_pages/upload/fast/dialysisParams.vue Datei anzeigen

354
             this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
354
             this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
355
                             '2.结束' + this.modeId + '治疗' + '\n' +
355
                             '2.结束' + this.modeId + '治疗' + '\n' +
356
                             '3.患者离开血透室'
356
                             '3.患者离开血透室'
357
+            let str = this.textarea
358
+            this.doctor = []
359
+            this.doctor.push(this.textarea)
357
         }
360
         }
358
     },
361
     },
359
     methods:{
362
     methods:{
458
                         item.single_dose + item.single_dose_unit + '  ' + item.delivery_way + item.execution_frequency + item.remark
461
                         item.single_dose + item.single_dose_unit + '  ' + item.delivery_way + item.execution_frequency + item.remark
459
                         arr.push(str)
462
                         arr.push(str)
460
                     })
463
                     })
461
-                    this.textarea = ''
462
-                    arr.map(item => {
463
-                        this.textarea += item + "\n"
464
-                    })
464
+                    this.doctor = arr
465
+                    // this.textarea = ''
466
+                    // arr.map(item => {
467
+                    //     this.textarea += item + "\n"
468
+                    // })
465
                 }else if(this.doctor_advices.length == 0){
469
                 }else if(this.doctor_advices.length == 0){
466
                     this.textarea = ''
470
                     this.textarea = ''
467
                     this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
471
                     this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
468
                                     '2.结束' + this.modeId + '治疗' + '\n' +
472
                                     '2.结束' + this.modeId + '治疗' + '\n' +
469
                                     '3.患者离开血透室'
473
                                     '3.患者离开血透室'
474
+                    let str = this.textarea
475
+                    this.doctor = []
476
+                    this.doctor.push(this.textarea)
470
                 }
477
                 }
471
             }
478
             }
472
         },
479
         },
475
                 if(this.prescription.mode_id){
482
                 if(this.prescription.mode_id){
476
                     this.modeId = this.getMode(this.prescription.mode_id)
483
                     this.modeId = this.getMode(this.prescription.mode_id)
477
                 }
484
                 }
485
+                if(this.doctor_advices.length > 0){
486
+                    let str = ''
487
+                    let arr = []
488
+                    this.advices = this.doctor_advices
489
+                    this.advices.map(item => {
490
+                        str = item.advice_name + (item.advice_desc ? ('(' +  item.advice_desc + item.drug_spec_unit + ')') : '' )  + '  ' + item.prescribing_number + item.prescribing_number_unit + '  ' + 
491
+                        item.single_dose + item.single_dose_unit + '  ' + item.delivery_way + item.execution_frequency + item.remark
492
+                        arr.push(str)
493
+                    })
494
+                    this.doctor = arr
495
+                    // this.textarea = ''
496
+                    // arr.map(item => {
497
+                    //     this.textarea += item + "\n"
498
+                    // })
499
+                }else if(this.doctor_advices.length == 0){
500
+                    this.textarea = ''
501
+                    this.textarea = '1.开始' + this.modeId + '治疗' + '\n' +
502
+                                    '2.结束' + this.modeId + '治疗' + '\n' +
503
+                                    '3.患者离开血透室'
504
+                    let str = this.textarea
505
+                    this.doctor = []
506
+                    this.doctor.push(this.textarea)
507
+                }
478
             }  
508
             }  
479
         },
509
         },
480
         deep:true,
510
         deep:true,