|
|
@@ -1209,11 +1209,11 @@ export default {
|
|
|
showDialog: false, // 方剂详情
|
|
|
showDrug: false, // 药品详情
|
|
|
showAgree: false, // 协定方
|
|
|
- showTestCase: false, // 名医验案
|
|
|
+ showTestCase: false, // 名医医案
|
|
|
showRecord: false, // 就诊记录
|
|
|
showXuewei: false, // 穴位详情信息
|
|
|
|
|
|
- showTestCase: false, // 名医验案
|
|
|
+ showTestCase: false, // 名医医案
|
|
|
isTuiDaoSuit: false, //适宜技术处方是否推导过
|
|
|
isTuiDataZy: false, // 中药处方是否推导过
|
|
|
raDoseShow: false,
|
|
|
@@ -2956,7 +2956,7 @@ export default {
|
|
|
this.changeExpre(info);
|
|
|
},
|
|
|
// 适宜技术处方 专方 和方
|
|
|
- suitChnageOrJoin(type = "") {
|
|
|
+ suitChnageOrJoin(type = "", info) {
|
|
|
// type = '' 专访 type == 1 和方
|
|
|
if (this.container_i == 1) return;
|
|
|
|
|
|
@@ -2975,8 +2975,9 @@ export default {
|
|
|
this.setRecipeId('');
|
|
|
this.tjRecipeId = recipeId
|
|
|
|
|
|
+ const merge = !(info && info.operation)
|
|
|
if (type == "") {
|
|
|
- child.bottom_form.caozuo = '';
|
|
|
+ child.bottom_form.caozuo = merge || !info ? '' : info.operation;
|
|
|
// 转方
|
|
|
child.tableData4 = [];
|
|
|
drugs.forEach((item, index) => {
|
|
|
@@ -2987,7 +2988,7 @@ export default {
|
|
|
acuid: item.acuid
|
|
|
};
|
|
|
// 锚点
|
|
|
- if (item.acuoperation) child.bottom_form.caozuo += obj.acuname + ':' + item.acuoperation + ' ';
|
|
|
+ if (merge && item.acuoperation) child.bottom_form.caozuo += obj.acuname + ':' + item.acuoperation + ' ';
|
|
|
child.tableData4.push(obj);
|
|
|
});
|
|
|
child.tableData4.push({
|
|
|
@@ -3011,7 +3012,7 @@ export default {
|
|
|
acuid: item.acuid,
|
|
|
};
|
|
|
// 锚点
|
|
|
- if (item.acuoperation) child.bottom_form.caozuo += obj.acuname + ':' + item.acuoperation + ' ';
|
|
|
+ if (merge && item.acuoperation) child.bottom_form.caozuo += obj.acuname + ':' + item.acuoperation + ' ';
|
|
|
child.tableData4.push(obj);
|
|
|
}
|
|
|
child.tableData4.push({
|
|
|
@@ -3037,7 +3038,7 @@ export default {
|
|
|
if (type == 1 && type1 == 1) {
|
|
|
this.setDrugsInfo(item.items);
|
|
|
this.setRecipeId('');
|
|
|
- this.suitChnageOrJoin();
|
|
|
+ this.suitChnageOrJoin('', item);
|
|
|
return;
|
|
|
}
|
|
|
console.log(item, "item");
|
|
|
@@ -3054,7 +3055,7 @@ export default {
|
|
|
if (type == 1 && type1 == 1) {
|
|
|
this.setDrugsInfo(item.items);
|
|
|
this.setRecipeId('');
|
|
|
- this.suitChnageOrJoin(1);
|
|
|
+ this.suitChnageOrJoin(1, item);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -3069,7 +3070,7 @@ export default {
|
|
|
}
|
|
|
if (!this.preInfo.prename) {
|
|
|
this.addRecipeFrom("4", 2);
|
|
|
- this.suitChnageOrJoin(1);
|
|
|
+ this.suitChnageOrJoin(1, this.preInfo);
|
|
|
return;
|
|
|
}
|
|
|
this.addRecipeFrom("4");
|
|
|
@@ -3087,7 +3088,7 @@ export default {
|
|
|
if (!this.preInfo.prename) {
|
|
|
this.addRecipeFrom("4", 2);
|
|
|
// 适宜技术处方
|
|
|
- this.suitChnageOrJoin();
|
|
|
+ this.suitChnageOrJoin('', this.preInfo);
|
|
|
return;
|
|
|
}
|
|
|
this.addRecipeFrom("4");
|
|
|
@@ -3900,13 +3901,15 @@ export default {
|
|
|
}
|
|
|
} else if (this.container_i == 2) {
|
|
|
// && child2.tableData4.length == 1
|
|
|
+ let info
|
|
|
if (arr2.length > 0) {
|
|
|
this.setDrugsInfo(arr2[0].items);
|
|
|
this.setRecipeId(arr2[0].acupreid);
|
|
|
+ info = arr2[0]
|
|
|
}
|
|
|
|
|
|
this.addRecipeFrom("4", 2);
|
|
|
- this.suitChnageOrJoin();
|
|
|
+ this.suitChnageOrJoin('', info);
|
|
|
if (type == 3) {
|
|
|
this.isTuiDaoSuit = true;
|
|
|
}
|