Prechádzať zdrojové kódy

修复从病历页面转方 请和患者确认信息弹窗出现

张田田 1 týždeň pred
rodič
commit
30aaca54ba

+ 2 - 0
src/utils/minix/prescribing.js

@@ -181,6 +181,8 @@ export default {
         setUpdateDp(){/* 将模态框的值同步到处方数据 bottom_form */},
         openAddress() {
             clearTimeout(hack_openAddress_true);
+            //避免页面返回地址弹窗
+            if (!this._prescribingInited) return;
             // 只在中药处方 tab 高亮时才弹出地址弹窗
             if (this.container_i !== 0) return;
 

+ 7 - 3
src/views/diagnosis/Prescribing.vue

@@ -1281,6 +1281,7 @@ export default {
       suitDetailData: {},
       suitDetailLoading: false,
       suitDetailPid: "",
+      _prescribingInited: false,
 
       isMyMade: true, // 是否是自拟处方
 
@@ -1460,7 +1461,10 @@ export default {
     }
   },
   mounted() {
-    this._processRouteQuery();
+    this._processRouteQuery().finally(() => {
+      this._prescribingInited = true;
+      if (this.container_i === 0) this.openAddress();
+    });
   },
   beforeRouteLeave(to, from, next) {
     // console.log('query===处方页面跳转', to.path);
@@ -2646,7 +2650,7 @@ export default {
     },
     // 获取数据 赋值给 适宜技术处方
     assignRecipe3(data, loading, append = false) {
-      console.log('适宜技术数据', data);
+      // console.log('适宜技术数据', data);
       setTimeout(() => {
         const acupointTable = this.$refs.suitScience;
         if (!acupointTable) {
@@ -3532,7 +3536,7 @@ export default {
         preId: id,
         visitId: JSON.parse(sessionStorage.getItem("patiensInfo")).pid
       });
-      console.log(res, "支付状态");
+      // console.log(res, "支付状态");
       if (res.ResultCode == 0) {
         // 跟据id 回显
         let children = this.$children.filter(item => {