|
@@ -717,15 +717,19 @@ export default {
|
717
|
717
|
}
|
718
|
718
|
}
|
719
|
719
|
}
|
720
|
|
- if(submitForm.adviceNames[index].drug_id == this.medicals[i].drug_name_id){
|
721
|
|
- submitForm.adviceNames[index].way = 2
|
722
|
|
- submitForm.adviceNames[index].drug_name_id = this.medicals[i].drug_name_id
|
|
720
|
+ if(submitForm.adviceNames[index].children.length == 0){
|
|
721
|
+ if(submitForm.adviceNames[index].drug_id == this.medicals[i].drug_name_id){
|
|
722
|
+ console.log("进来了没有")
|
|
723
|
+ submitForm.adviceNames[index].way = 2
|
|
724
|
+ submitForm.adviceNames[index].drug_name_id = this.medicals[i].drug_name_id
|
|
725
|
+ }
|
723
|
726
|
}
|
|
727
|
+
|
724
|
728
|
}
|
725
|
729
|
}
|
726
|
730
|
}
|
727
|
731
|
console.log("2222",submitForm)
|
728
|
|
-
|
|
732
|
+
|
729
|
733
|
CreateGroupAdvice(this.patientID, 0, submitForm, mode).then(
|
730
|
734
|
response => {
|
731
|
735
|
if (response.data.state == 0) {
|
|
@@ -1512,6 +1516,7 @@ export default {
|
1512
|
1516
|
if (response.data.state == 1) {
|
1513
|
1517
|
this.arr_drug = []
|
1514
|
1518
|
var medicalList = response.data.data.private_drug_list
|
|
1519
|
+ console.log("medicallist",medicalList)
|
1515
|
1520
|
var base_drug_list = response.data.data.base_drug_list
|
1516
|
1521
|
var base_drug_cofig = response.data.data.base_drug_config
|
1517
|
1522
|
var private_drug_cofig = response.data.data.private_drug_config
|