|
@@ -1414,6 +1414,13 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ // 处理路由参数
|
|
|
|
|
+ async _processRouteQuery() {
|
|
|
|
|
+ const query = this.$route.query;
|
|
|
|
|
+ if (!query) return;
|
|
|
|
|
+ if (query.recipeID && query.kjType === "kj-fj") await this.getPreDetal(query.recipeID);
|
|
|
|
|
+ else if (query.doctorCase) await this.changeAndJoin();
|
|
|
|
|
+ },
|
|
|
// 参考医案
|
|
// 参考医案
|
|
|
// 中医诊断推导点击
|
|
// 中医诊断推导点击
|
|
|
tcmClick(isauto = true) {
|
|
tcmClick(isauto = true) {
|
|
@@ -3038,19 +3045,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const recipeID = this.getEditPreNo();
|
|
const recipeID = this.getEditPreNo();
|
|
|
-
|
|
|
|
|
- if (!!recipeID) {
|
|
|
|
|
- if (this.$route.query.kjType) {
|
|
|
|
|
- if (this.$route.query.kjType == "kj-fj") {
|
|
|
|
|
- this.getPreDetal(recipeID);
|
|
|
|
|
- }
|
|
|
|
|
- } else {
|
|
|
|
|
- this.getRecipeDataByid(recipeID);
|
|
|
|
|
- }
|
|
|
|
|
- } else if (this.$route.query.doctorCase) {
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.changeAndJoin();
|
|
|
|
|
- }, 1000);
|
|
|
|
|
|
|
+ debugger
|
|
|
|
|
+ if (!!recipeID && !this.$route.query.kjType) {
|
|
|
|
|
+ await this.getRecipeDataByid(recipeID);
|
|
|
} else if (this.$route.query.type == "tuidao") {
|
|
} else if (this.$route.query.type == "tuidao") {
|
|
|
this.isTuiDaoZy = true;
|
|
this.isTuiDaoZy = true;
|
|
|
// setTimeout(() => {
|
|
// setTimeout(() => {
|
|
@@ -3059,9 +3056,10 @@ export default {
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
// 有处方号
|
|
// 有处方号
|
|
|
- this.getRecipeShowData();
|
|
|
|
|
|
|
+ await this.getRecipeShowData();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ await this._processRouteQuery();
|
|
|
},
|
|
},
|
|
|
// 药方是否支付
|
|
// 药方是否支付
|
|
|
async _recipeIsPay(id, type, index) {
|
|
async _recipeIsPay(id, type, index) {
|
|
@@ -3233,7 +3231,7 @@ export default {
|
|
|
if (!res.Data.flag) {
|
|
if (!res.Data.flag) {
|
|
|
loading.close();
|
|
loading.close();
|
|
|
if (this.getPatiensInfo.pid) {
|
|
if (this.getPatiensInfo.pid) {
|
|
|
- this.getPatiensBasisM();
|
|
|
|
|
|
|
+ await this.getPatiensBasisM();
|
|
|
}
|
|
}
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -3273,12 +3271,6 @@ export default {
|
|
|
if (this.getPatiensInfo.pid) {
|
|
if (this.getPatiensInfo.pid) {
|
|
|
this.getPatiensBasisM();
|
|
this.getPatiensBasisM();
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- if (this.$route.query.doctorCase) {
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.changeAndJoin();
|
|
|
|
|
- }, 1000);
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|