|
|
@@ -390,6 +390,7 @@
|
|
|
ref="chineseM"
|
|
|
:totalAllMoney.sync="chineseM.allMoney"
|
|
|
@submit="submitRecipe1()"
|
|
|
+ @clear="clearContainer('0')"
|
|
|
:showSubmit="showSubmit"
|
|
|
:isShrink="isShrink"
|
|
|
:isDaiJian="Number(isDaiJian)"
|
|
|
@@ -403,6 +404,7 @@
|
|
|
ref="medicineC"
|
|
|
id="medicineC"
|
|
|
@submit="submitRecipe1()"
|
|
|
+ @clear="clearContainer('1')"
|
|
|
:totalAllMoney.sync="medicineC.allMoney"
|
|
|
:showSubmit="showSubmit"
|
|
|
:isPs="isPs"
|
|
|
@@ -413,6 +415,7 @@
|
|
|
ref="suitScience"
|
|
|
id="suitScience"
|
|
|
@submit="submitRecipe1()"
|
|
|
+ @clear="clearContainer('2')"
|
|
|
:totalAllMoney.sync="suitScience.allMoney"
|
|
|
:showSubmit="showSubmit"
|
|
|
></suitScience>
|
|
|
@@ -1421,6 +1424,10 @@ export default {
|
|
|
this.isTuiDaoSuit = false;
|
|
|
this.isTuiDaoZy = false;
|
|
|
await this.inferRecipe();
|
|
|
+ const current = this.contentTabs[this.container_i];
|
|
|
+ if (!current) return;
|
|
|
+ if (current.id === '0') this.isTuiDaoZy = true
|
|
|
+ else if (current.id === '2') this.isTuiDaoSuit = true
|
|
|
}
|
|
|
// 处方编辑 recipeType
|
|
|
else if (query.from !== 'his' && this.getEditPreNo()) await this.getRecipeDataByid(this.getEditPreNo());
|
|
|
@@ -1460,15 +1467,23 @@ export default {
|
|
|
this.rDoctorCase.loadMore = true;
|
|
|
this.getDoctorCaseL();
|
|
|
// --end
|
|
|
+ const current = this.contentTabs[this.container_i];
|
|
|
+ if (!current) return;
|
|
|
|
|
|
- if (isauto) {
|
|
|
- this.inferRecipe(2);
|
|
|
+ if (isauto && current.id !== '1') {
|
|
|
+ this.inferRecipe(2, current.businesstype);
|
|
|
}
|
|
|
- let id = '';
|
|
|
- try { id = this.contentTabs[this.container_i].id; } catch (e) {}
|
|
|
+
|
|
|
setTimeout(() => {
|
|
|
- this.inferRecipe(4, "1").then(() => { if (id === '0') this.isTuiDaoZy = true });
|
|
|
- this.inferRecipe(4, "3").then(() => { if (id === '1') this.isTuiDaoSuit = true });
|
|
|
+ for (const tab of this.contentTabs) {
|
|
|
+ if (tab.id === '1' || tab.hide) continue;
|
|
|
+ this.inferRecipe(4, tab.businesstype).then(() => {
|
|
|
+ if (tab.id === current.id ) {
|
|
|
+ if (current.id === '0') this.isTuiDaoZy = true
|
|
|
+ else if (current.id === '2') this.isTuiDaoSuit = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
if (this.getPatiensInfo.pid) {
|
|
|
this.getPatiensBasisM();
|
|
|
}
|
|
|
@@ -2710,7 +2725,9 @@ export default {
|
|
|
find(scope) {
|
|
|
this.getAcupointD(scope.row.acuid);
|
|
|
},
|
|
|
-
|
|
|
+ clearContainer(id) {
|
|
|
+ try { this.contentTabs.find(tab => tab.id === id).color = ''; } catch (e) {}
|
|
|
+ },
|
|
|
// 顶部tab 改变
|
|
|
async changeContainer(item, type) {
|
|
|
this.container_i = type;
|
|
|
@@ -3806,6 +3823,8 @@ export default {
|
|
|
if (type == 4) {
|
|
|
try { this.contentTabs.find(tab => tab.businesstype === businesstype).color = arr2.length > 0 ? "red" : ""; } catch (e) {}
|
|
|
return;
|
|
|
+ } else if (+type === 1) {
|
|
|
+ for (const tab of this.contentTabs) { if (!tab.hide) tab.color = "" }
|
|
|
}
|
|
|
if (arr2.length > 0) {
|
|
|
this.tjRecipeId = arr2[0].preid || arr2[0].pid || arr2[0].acupreid;
|