|
@@ -889,13 +889,15 @@
|
889
|
889
|
v-for="item in unitsOption"
|
890
|
890
|
:key="item.id"
|
891
|
891
|
:label="item.name "
|
892
|
|
- :value="item.name"
|
|
892
|
+ :value="item.id"
|
893
|
893
|
></el-option>
|
894
|
894
|
</el-select>
|
895
|
895
|
</el-col>
|
896
|
896
|
</el-form-item>
|
897
|
897
|
</el-col>
|
898
|
898
|
<el-col :span="12">
|
|
899
|
+ <!--bug619-->
|
|
900
|
+<!-- <el-button @click="lili">调试</el-button>-->
|
899
|
901
|
<el-form-item label="给药途径 :" prop="delivery_way">
|
900
|
902
|
<el-select
|
901
|
903
|
v-model="templateForm.delivery_way"
|
|
@@ -1477,6 +1479,9 @@
|
1477
|
1479
|
this.getSelfMedicalList()
|
1478
|
1480
|
},
|
1479
|
1481
|
methods: {
|
|
1482
|
+ lili(){
|
|
1483
|
+ console.log()
|
|
1484
|
+ },
|
1480
|
1485
|
initAdvice(){
|
1481
|
1486
|
this.$confirm('是否进行医嘱初始化操作?', '提示', {
|
1482
|
1487
|
confirmButtonText: '确定',
|
|
@@ -1789,9 +1794,21 @@
|
1789
|
1794
|
this.templateForm.way = 1
|
1790
|
1795
|
},
|
1791
|
1796
|
handleSelect(val){
|
1792
|
|
- console.log("val23232",val)
|
|
1797
|
+ console.log("val23232li",val)
|
1793
|
1798
|
this.templateForm.drug_id = val.id
|
1794
|
1799
|
this.templateForm.way = 1
|
|
1800
|
+ var tmp = val.drug_specs[0]
|
|
1801
|
+ console.log("tmp",tmp)
|
|
1802
|
+ console.log("unitsOption",this.unitsOption)
|
|
1803
|
+ this.templateForm.advice_desc = tmp.dose+tmp.dose_unit+"*"+tmp.min_number+tmp.min_unit+"/"//药品规格
|
|
1804
|
+ this.templateForm.drug_spec_unit = tmp.max_unit
|
|
1805
|
+ this.templateForm.prescribing_number = tmp.prescribing_number//开药数量
|
|
1806
|
+ this.templateForm.prescribing_number_unit = tmp.prescribing_number_unit
|
|
1807
|
+ this.templateForm.single_dose = tmp.single_dose//单次用量
|
|
1808
|
+ this.templateForm.single_dose_unit = tmp.drug_dose_unit
|
|
1809
|
+ this.templateForm.delivery_way = tmp.delivery_way//给药途径
|
|
1810
|
+ this.templateForm.execution_frequency = tmp.execution_frequency//执行频率
|
|
1811
|
+ this.templateForm.drug_id = tmp.id
|
1795
|
1812
|
},
|
1796
|
1813
|
submitTemplate(formName) {
|
1797
|
1814
|
|
|
@@ -2917,6 +2934,9 @@
|
2917
|
2934
|
return a.sort - b.sort
|
2918
|
2935
|
},
|
2919
|
2936
|
hangleSelectChange(val){
|
|
2937
|
+ console.log("==val==",val)
|
|
2938
|
+ var tmp = val.drug_specs[0]
|
|
2939
|
+ console.log("tmp",tmp)
|
2920
|
2940
|
this.templateForm.advice_desc=this.drugSpec[0].drug_spec
|
2921
|
2941
|
this.templateForm.drug_spec_unit=this.drugSpec[0].min_unit
|
2922
|
2942
|
this.templateForm.prescribing_number=this.drugSpec[0].prescribing_number
|
|
@@ -2925,6 +2945,7 @@
|
2925
|
2945
|
this.templateForm.single_dose_unit=this.drugSpec[0].min_unit
|
2926
|
2946
|
this.templateForm.delivery_way=this.drugSpec[0].delivery_way
|
2927
|
2947
|
this.templateForm.execution_frequency=this.drugSpec[0].execution_frequency
|
|
2948
|
+ this.templateForm.advice_desc=tmp.dose+tmp.dose_unit+"*"+tmp.min_number+tmp.min_unit+"/"//药品规格
|
2928
|
2949
|
// console.log("templateForm2222222222",this.templateForm)
|
2929
|
2950
|
// console.log("all_drug",this.all_drug)
|
2930
|
2951
|
// console.log("drugSpec2222222",this.drugSpec)
|