Browse Source

自备药

XMLWAN 4 years ago
parent
commit
376b42dba7
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/xt_pages/user/components/EditGroupAdvice.vue

+ 4 - 1
src/xt_pages/user/components/EditGroupAdvice.vue View File

2408
     //
2408
     //
2409
     getSelfMedicalList(){
2409
     getSelfMedicalList(){
2410
         const params = {
2410
         const params = {
2411
-          patient_id:this.$route.query.patient_id
2411
+          patient_id:this.patientID
2412
         }
2412
         }
2413
       getSelfMedicalList(params).then(response=>{
2413
       getSelfMedicalList(params).then(response=>{
2414
          if (response.data.state == 1) {
2414
          if (response.data.state == 1) {
2453
                 obj.custom_id = this.rand(10000000, 99999999)
2453
                 obj.custom_id = this.rand(10000000, 99999999)
2454
                 obj.drug_specs = medicalList[i].drug_specs
2454
                 obj.drug_specs = medicalList[i].drug_specs
2455
                 this.all_drug.push(obj)
2455
                 this.all_drug.push(obj)
2456
+
2456
               }
2457
               }
2457
             }
2458
             }
2458
 
2459
 
2488
                 obj.custom_id = this.rand(10000000, 99999999)
2489
                 obj.custom_id = this.rand(10000000, 99999999)
2489
                 obj.drug_specs = base_drug_list[i].drug_specs
2490
                 obj.drug_specs = base_drug_list[i].drug_specs
2490
                 this.all_drug.push(obj)
2491
                 this.all_drug.push(obj)
2492
+                console.log("中2222222222222222222",this.all_drug)
2491
               }
2493
               }
2492
             }   
2494
             }   
2493
         })
2495
         })
2529
     }
2531
     }
2530
   },
2532
   },
2531
   created(){
2533
   created(){
2534
+
2532
     //获取自备药
2535
     //获取自备药
2533
      this.getSelfMedicalList()
2536
      this.getSelfMedicalList()
2534
   }
2537
   }