see999 3 years ago
parent
commit
64e7f69f8e
1 changed files with 17 additions and 7 deletions
  1. 17 7
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue

+ 17 - 7
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

518
             console.log('project_config',)
518
             console.log('project_config',)
519
             if(project_config.is_open == 1){
519
             if(project_config.is_open == 1){
520
               this.project = resp.data.project
520
               this.project = resp.data.project
521
+              let projectArr = []
522
+              this.project.map(item => {
523
+                resp.data.hisAdvices.map(it => {
524
+                  if(item.patient_id == it.patient_id){
525
+                    projectArr.push(item)
526
+                  }
527
+                })
528
+                
529
+              })
530
+              
521
               resp.data.hisAdvices.map((item,index) => {
531
               resp.data.hisAdvices.map((item,index) => {
522
-                if(this.project[index].project.length > 0){
523
-                  this.project[index].project.map(it => {
532
+                if(projectArr[index].project.length > 0){
533
+                  projectArr[index].project.map(it => {
524
                     let obj = {
534
                     let obj = {
525
                       advice_doctor: it.doctor,
535
                       advice_doctor: it.doctor,
526
                       start_time:it.start_time,
536
                       start_time:it.start_time,
930
 
940
 
931
         if (isChild == 1) {
941
         if (isChild == 1) {
932
           // 不是子药 
942
           // 不是子药 
933
-          console.log(tempDrugSpecDesc)
934
-          console.log(tempPrescribingNumberDesc)
935
-          console.log(tempSingleDoseDesc)
936
-          console.log(11,row.delivery_way)
937
-          console.log(22,row.execution_frequency)
943
+          // console.log(tempDrugSpecDesc)
944
+          // console.log(tempPrescribingNumberDesc)
945
+          // console.log(tempSingleDoseDesc)
946
+          // console.log(11,row.delivery_way)
947
+          // console.log(22,row.execution_frequency)
938
 
948
 
939
           return (
949
           return (
940
             row.advice_name +
950
             row.advice_name +