|
@@ -2863,6 +2863,7 @@
|
2863
|
2863
|
obj.delivery_way = medicalList[i].delivery_way
|
2864
|
2864
|
obj.execution_frequency = medicalList[i].execution_frequency
|
2865
|
2865
|
obj.single_dose = medicalList[i].single_dose
|
|
2866
|
+ obj.single_dose_unit = medicalList[i].dose_unit
|
2866
|
2867
|
obj.prescribing_number = medicalList[i].prescribing_number
|
2867
|
2868
|
obj.type_id = medicalList[i].id
|
2868
|
2869
|
obj.type = 2
|
|
@@ -2900,6 +2901,7 @@
|
2900
|
2901
|
obj.delivery_way = base_drug_list[i].delivery_way
|
2901
|
2902
|
obj.execution_frequency = base_drug_list[i].execution_frequency
|
2902
|
2903
|
obj.single_dose = base_drug_list[i].single_dose
|
|
2904
|
+ obj.single_dose_unit = base_drug_list[i].dose_unit
|
2903
|
2905
|
obj.prescribing_number = base_drug_list[i].prescribing_number
|
2904
|
2906
|
obj.type_id = base_drug_list[i].id
|
2905
|
2907
|
obj.type = 1
|
|
@@ -2917,6 +2919,7 @@
|
2917
|
2919
|
changeDrugName(name){
|
2918
|
2920
|
this.current_drug_name = name
|
2919
|
2921
|
this.templateForm.advice_desc = ''
|
|
2922
|
+ console.log("all_drug=============",this.all_drug)
|
2920
|
2923
|
this.drugSpec = []
|
2921
|
2924
|
for (let i = 0; i < this.all_drug.length; i++) {
|
2922
|
2925
|
if (this.all_drug[i].drug_name == name) {
|
|
@@ -3031,15 +3034,15 @@
|
3031
|
3034
|
return a.sort - b.sort
|
3032
|
3035
|
},
|
3033
|
3036
|
hangleSelectChange(val){
|
3034
|
|
- console.log("==val==",val)
|
|
3037
|
+ console.log("==val==",val)
|
3035
|
3038
|
var tmp = val.drug_specs[0]
|
3036
|
3039
|
console.log("tmp",tmp)
|
3037
|
3040
|
this.templateForm.advice_desc=this.drugSpec[0].drug_spec
|
3038
|
|
- this.templateForm.drug_spec_unit=this.drugSpec[0].min_unit
|
|
3041
|
+ this.templateForm.drug_spec_unit= this.drugSpec[0].min_unit
|
3039
|
3042
|
this.templateForm.prescribing_number=this.drugSpec[0].prescribing_number
|
3040
|
3043
|
this.templateForm.prescribing_number_unit=this.drugSpec[0].prescribing_number_unit
|
3041
|
|
- this.templateForm.single_dose=this.drugSpec[0].single_dose
|
3042
|
|
- this.templateForm.single_dose_unit=this.drugSpec[0].min_unit
|
|
3044
|
+ this.templateForm.single_dose= this.drugSpec[0].single_dose
|
|
3045
|
+ this.templateForm.single_dose_unit= val.single_dose_unit
|
3043
|
3046
|
this.templateForm.delivery_way=this.drugSpec[0].delivery_way
|
3044
|
3047
|
this.templateForm.execution_frequency=this.drugSpec[0].execution_frequency
|
3045
|
3048
|
this.templateForm.advice_desc=tmp.dose+tmp.dose_unit+"*"+tmp.min_number+tmp.min_unit+"/"//药品规格
|