|
@@ -1420,7 +1420,7 @@ export default {
|
|
|
else if (query.type === "tuidao") {
|
|
else if (query.type === "tuidao") {
|
|
|
this.isTuiDaoSuit = false;
|
|
this.isTuiDaoSuit = false;
|
|
|
this.isTuiDaoZy = false;
|
|
this.isTuiDaoZy = false;
|
|
|
- await Pthis.inferRecipe();
|
|
|
|
|
|
|
+ await this.inferRecipe();
|
|
|
}
|
|
}
|
|
|
// 处方编辑 recipeType
|
|
// 处方编辑 recipeType
|
|
|
else if (query.from !== 'his' && this.getEditPreNo()) await this.getRecipeDataByid(this.getEditPreNo());
|
|
else if (query.from !== 'his' && this.getEditPreNo()) await this.getRecipeDataByid(this.getEditPreNo());
|
|
@@ -2931,24 +2931,21 @@ export default {
|
|
|
suitChnageOrJoin(type = "") {
|
|
suitChnageOrJoin(type = "") {
|
|
|
// type = '' 专访 type == 1 和方
|
|
// type = '' 专访 type == 1 和方
|
|
|
if (this.container_i == 1) return;
|
|
if (this.container_i == 1) return;
|
|
|
|
|
+
|
|
|
|
|
+ const child = this.$children.find(child => child.name === '适宜技术处方');
|
|
|
|
|
+ if (!child) return;
|
|
|
|
|
+
|
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
lock: true,
|
|
|
text: "正在处理数据,请稍后",
|
|
text: "正在处理数据,请稍后",
|
|
|
spinner: "el-icon-loading",
|
|
spinner: "el-icon-loading",
|
|
|
background: "rgba(0, 0, 0, 0.7)"
|
|
background: "rgba(0, 0, 0, 0.7)"
|
|
|
});
|
|
});
|
|
|
- let children = this.$children.filter(item => {
|
|
|
|
|
- return (
|
|
|
|
|
- item.name == "中药处方" ||
|
|
|
|
|
- item.name == "中药制剂" ||
|
|
|
|
|
- item.name == "适宜技术处方"
|
|
|
|
|
- );
|
|
|
|
|
- });
|
|
|
|
|
- let child = children[2];
|
|
|
|
|
|
|
|
|
|
let drugs = this.getDrugInfo;
|
|
let drugs = this.getDrugInfo;
|
|
|
|
|
|
|
|
if (type == "") {
|
|
if (type == "") {
|
|
|
|
|
+ child.bottom_form.caozuo = '';
|
|
|
// 转方
|
|
// 转方
|
|
|
child.tableData4 = [];
|
|
child.tableData4 = [];
|
|
|
drugs.forEach((item, index) => {
|
|
drugs.forEach((item, index) => {
|
|
@@ -2959,8 +2956,7 @@ export default {
|
|
|
acuid: item.acuid
|
|
acuid: item.acuid
|
|
|
};
|
|
};
|
|
|
// 锚点
|
|
// 锚点
|
|
|
- child.bottom_form.caozuo +=
|
|
|
|
|
- obj.acuname + ":" + item.acuoperation + " ";
|
|
|
|
|
|
|
+ if (item.acuoperation) child.bottom_form.caozuo += obj.acuname + ':' + item.acuoperation + ' ';
|
|
|
child.tableData4.push(obj);
|
|
child.tableData4.push(obj);
|
|
|
});
|
|
});
|
|
|
child.tableData4.push({
|
|
child.tableData4.push({
|
|
@@ -2975,15 +2971,18 @@ export default {
|
|
|
});
|
|
});
|
|
|
} else if (type == 1) {
|
|
} else if (type == 1) {
|
|
|
child.tableData4.pop();
|
|
child.tableData4.pop();
|
|
|
- drugs.forEach((item, index) => {
|
|
|
|
|
|
|
+ for (const item of drugs) {
|
|
|
|
|
+ if (child.tableData4.find(({acuid}) => acuid === item.acuid)) continue;
|
|
|
let obj = {
|
|
let obj = {
|
|
|
- id: index + 1,
|
|
|
|
|
|
|
+ id: child.tableData4.length + 1,
|
|
|
name: item.acuname,
|
|
name: item.acuname,
|
|
|
acuname: item.acuname,
|
|
acuname: item.acuname,
|
|
|
- acuid: item.acuid
|
|
|
|
|
|
|
+ acuid: item.acuid,
|
|
|
};
|
|
};
|
|
|
|
|
+ // 锚点
|
|
|
|
|
+ if (item.acuoperation) child.bottom_form.caozuo += obj.acuname + ':' + item.acuoperation + ' ';
|
|
|
child.tableData4.push(obj);
|
|
child.tableData4.push(obj);
|
|
|
- });
|
|
|
|
|
|
|
+ }
|
|
|
child.tableData4.push({
|
|
child.tableData4.push({
|
|
|
id: "",
|
|
id: "",
|
|
|
name: "",
|
|
name: "",
|