|
@@ -703,7 +703,6 @@ export default {
|
703
|
703
|
id:this.groupForm.id,
|
704
|
704
|
|
705
|
705
|
};
|
706
|
|
- console.log("hhhhh",this.drug_id,this.nameForm.way)
|
707
|
706
|
var adviceNames = [];
|
708
|
707
|
for (const index in this.groupForm.adviceNames) {
|
709
|
708
|
adviceNames.unshift(this.groupForm.adviceNames[index]);
|
|
@@ -714,8 +713,6 @@ export default {
|
714
|
713
|
submitForm.adviceNames = adviceNames;
|
715
|
714
|
let mode = "1";
|
716
|
715
|
|
717
|
|
- console.log("88888888",submitForm)
|
718
|
|
- console.log("99999",this.medicals)
|
719
|
716
|
if(this.private_drug_config != null&& this.private_drug_config.drug_start == 1){
|
720
|
717
|
|
721
|
718
|
for(let index=0;index<submitForm.adviceNames.length;index++){
|
|
@@ -730,7 +727,6 @@ export default {
|
730
|
727
|
}
|
731
|
728
|
if(submitForm.adviceNames[index].children.length == 0){
|
732
|
729
|
if(submitForm.adviceNames[index].drug_id == this.medicals[i].drug_name_id){
|
733
|
|
- console.log("进来了没有")
|
734
|
730
|
submitForm.adviceNames[index].way = 2
|
735
|
731
|
submitForm.adviceNames[index].drug_name_id = this.medicals[i].drug_name_id
|
736
|
732
|
}
|
|
@@ -739,7 +735,6 @@ export default {
|
739
|
735
|
}
|
740
|
736
|
}
|
741
|
737
|
}
|
742
|
|
- console.log("2222",submitForm)
|
743
|
738
|
|
744
|
739
|
CreateGroupAdvice(this.patientID, 0, submitForm, mode).then(
|
745
|
740
|
response => {
|
|
@@ -995,6 +990,7 @@ export default {
|
995
|
990
|
this.nameFormTitle = "添加子药内容";
|
996
|
991
|
},
|
997
|
992
|
openGroupAdvice(isEdit) {
|
|
993
|
+ console.log("hhhahhdhahdhahddhhdhdhh",this.groupSelectRow)
|
998
|
994
|
this.isChild = false;
|
999
|
995
|
if (isEdit) {
|
1000
|
996
|
if (this.groupSelectRow === null) {
|
|
@@ -1069,11 +1065,7 @@ export default {
|
1069
|
1065
|
},
|
1070
|
1066
|
selectAdvice(selection, row) {
|
1071
|
1067
|
|
1072
|
|
- console.log("row",row)
|
1073
|
|
-
|
1074
|
|
- var adviceArray = this.adviceTemplateMaps[this.selectedTemp.id]
|
1075
|
|
- .DoctorAdviceTemplate;
|
1076
|
|
- console.log(adviceArray);
|
|
1068
|
+ var adviceArray = this.adviceTemplateMaps[this.selectedTemp.id].DoctorAdviceTemplate;
|
1077
|
1069
|
for (let y = 0; y < adviceArray.length; y++) {
|
1078
|
1070
|
adviceArray[y].selection = false;
|
1079
|
1071
|
}
|
|
@@ -1157,7 +1149,7 @@ export default {
|
1157
|
1149
|
}
|
1158
|
1150
|
},
|
1159
|
1151
|
templateTableChange(currentRow, oldCurrentRow) {
|
1160
|
|
- console.log("params -----",currentRow)
|
|
1152
|
+
|
1161
|
1153
|
this.selectedTemp = { id: 0, name: "", org_id: 0, list: [], rows: [] };
|
1162
|
1154
|
if (currentRow == null) {
|
1163
|
1155
|
return false;
|
|
@@ -1577,6 +1569,7 @@ export default {
|
1577
|
1569
|
var medicalList = response.data.data.private_drug_list
|
1578
|
1570
|
console.log("medicallist",medicalList)
|
1579
|
1571
|
var base_drug_list = response.data.data.base_drug_list
|
|
1572
|
+ console.log("base_drug_list23233232322323",base_drug_list)
|
1580
|
1573
|
var base_drug_cofig = response.data.data.base_drug_config
|
1581
|
1574
|
var private_drug_cofig = response.data.data.private_drug_config
|
1582
|
1575
|
|
|
@@ -1674,7 +1667,7 @@ export default {
|
1674
|
1667
|
|
1675
|
1668
|
},
|
1676
|
1669
|
changeDrugDesc(name) {
|
1677
|
|
- console.log("hhhhhhhhhh",this.drugSpec)
|
|
1670
|
+
|
1678
|
1671
|
this.current_drug_spec = name
|
1679
|
1672
|
for (let i = 0; i < this.drugSpec.length; i++) {
|
1680
|
1673
|
if (this.drugSpec[i].drug_spec == name) {
|
|
@@ -1702,7 +1695,7 @@ export default {
|
1702
|
1695
|
},
|
1703
|
1696
|
|
1704
|
1697
|
querySearch(queryString, cb) {
|
1705
|
|
- console.log('queryString',queryString)
|
|
1698
|
+
|
1706
|
1699
|
var restaurants = this.all_drug;
|
1707
|
1700
|
restaurants.map(item => {
|
1708
|
1701
|
item.value = item.drug_name
|