|
@@ -2898,6 +2898,24 @@
|
2898
|
2898
|
this.drugSpec = this.all_drug[i].drug_specs
|
2899
|
2899
|
}
|
2900
|
2900
|
}
|
|
2901
|
+ this.changeDrugDesc(name)
|
|
2902
|
+ // for (let i = 0; i < this.drugSpec.length; i++) {
|
|
2903
|
+ // if (this.drugSpec[i].drug_spec == name) {
|
|
2904
|
+ // this.templateForm.advice_desc = this.drugSpec[i].drug_spec
|
|
2905
|
+ // this.templateForm.prescribing_number = this.drugSpec[i].prescribing_number.toString()
|
|
2906
|
+ // this.templateForm.single_dose = this.drugSpec[i].single_dose.toString()
|
|
2907
|
+ // this.templateForm.delivery_way = this.drugSpec[i].delivery_way.toString()
|
|
2908
|
+ // this.templateForm.execution_frequency = this.drugSpec[i].execution_frequency.toString()
|
|
2909
|
+ // this.drug_id = this.drugSpec[i].id
|
|
2910
|
+ // this.src_type = this.drugSpec[i].type
|
|
2911
|
+ // this.templateForm.drug_id = this.drugSpec[i].id
|
|
2912
|
+ // this.templateForm.single_dose_unit = this.drugSpec[i].min_unit
|
|
2913
|
+ // this.templateForm.prescribing_number_unit = this.drugSpec[i].min_unit
|
|
2914
|
+ // this.templateForm.drug_spec_unit = this.drugSpec[i].min_unit
|
|
2915
|
+ // this.templateForm.way = this.drugSpec[i].type
|
|
2916
|
+ // }
|
|
2917
|
+ // }
|
|
2918
|
+ // console.log('bbbbbbbbb121',this.templateForm);
|
2901
|
2919
|
},
|
2902
|
2920
|
changeDrugDesc(name) {
|
2903
|
2921
|
this.current_drug_spec = name
|
|
@@ -2917,6 +2935,7 @@
|
2917
|
2935
|
this.templateForm.way = this.drugSpec[i].type
|
2918
|
2936
|
}
|
2919
|
2937
|
}
|
|
2938
|
+ console.log('bbbbbbbbb121',this.templateForm);
|
2920
|
2939
|
},
|
2921
|
2940
|
|
2922
|
2941
|
changeDrugNameTwo(name){
|