|
|
@@ -2466,7 +2466,7 @@ export default {
|
|
|
}, 1000);
|
|
|
},
|
|
|
// 协定方数据转方 赋值给中药处方
|
|
|
- agreeAssignToTCM(data, loading) {
|
|
|
+ agreeAssignToTCM(data, loading, request = true) {
|
|
|
let children = this.$children.filter(item => {
|
|
|
return (
|
|
|
item.name == "中药处方" ||
|
|
|
@@ -2514,6 +2514,8 @@ export default {
|
|
|
|
|
|
data1.recipe_tabs[data1.recipe_tabs_c].totalTableD = [];
|
|
|
|
|
|
+ if (!request) return;
|
|
|
+
|
|
|
// 赋值给表格
|
|
|
data.preStiDetails.forEach((item, index) => {
|
|
|
let obj1 = {
|
|
|
@@ -2788,7 +2790,34 @@ export default {
|
|
|
this.showRecord = false;
|
|
|
this.showAgree = false;
|
|
|
},
|
|
|
- // 协定方转方
|
|
|
+ transposition(recipe) {
|
|
|
+ const is = recipe.medicine.every(m => m.matid);
|
|
|
+ if (is) {
|
|
|
+ // 调用 方剂 换方
|
|
|
+ const medicine = recipe.medicine.map((m, i) => {
|
|
|
+ return {
|
|
|
+ matid: m.matid,
|
|
|
+ matname: m.ypmc,
|
|
|
+ dose: m.dose,
|
|
|
+ unit: m.dw || m.zxdw || m.bzdw,
|
|
|
+ useage: m.usagestr,
|
|
|
+ seqn: i + 1,
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (recipe.__RecipeFrom__ === '2') this.agreeAssignToTCM(recipe, void 0, true);
|
|
|
+ this.setDrugsInfo(medicine);
|
|
|
+ this.changeAndJoin(1);
|
|
|
+ } else if (recipe.__RecipeFrom__ === '2') {
|
|
|
+ this.agreeInfo = recipe;
|
|
|
+ this.changeBasisPre(this.agreeInfo.pid);
|
|
|
+ }
|
|
|
+ if (recipe.__RecipeFrom__) this.addRecipeFrom(recipe.__RecipeFrom__ /* 2 协定方*/);
|
|
|
+ },
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 协定方转方
|
|
|
+ * @deprecated
|
|
|
+ */
|
|
|
turnRecipe2() {
|
|
|
this.addRecipeFrom("2");
|
|
|
this.changeBasisPre(this.agreeInfo.pid);
|
|
|
@@ -3387,7 +3416,7 @@ export default {
|
|
|
this.rDoctorCase.page += 1;
|
|
|
}
|
|
|
} else {
|
|
|
- this.rPrescriprDoctorCasetion.loadMore = false;
|
|
|
+ this.rPrescriprDoctorCasetion = { ...this.rPrescriprDoctorCasetion, loadMore: false, };
|
|
|
}
|
|
|
}
|
|
|
},
|