소스 검색

修复 his 进入智能开方 因根据就诊记录id 获取所有处方
830a9fba7ec6beb344fc5148a09ebd0831157296

cc12458 1 년 전
부모
커밋
72b0fc3e05
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 1
      src/views/diagnosis/Prescribing.vue
  2. 2 2
      src/views/hisEnter.vue

+ 2 - 1
src/views/diagnosis/Prescribing.vue

@@ -1416,7 +1416,7 @@ export default {
         this.isTuiDaoZy = true;
       }
       // 处方编辑 recipeType
-      else if (this.getEditPreNo()) await this.getRecipeDataByid(this.getEditPreNo());
+      else if (query.from !== 'his' && this.getEditPreNo()) await this.getRecipeDataByid(this.getEditPreNo());
       // 暂存处方
       else if (sessionStorage.getItem("prescr" + this.getPatiensInfo.pid)) await this._showDataFromStorage();
       // 历史处方
@@ -1425,6 +1425,7 @@ export default {
         let res = await getPreNumber({pid: this.getPatiensInfo.pid}).catch(() => void 0);
         const has = res && res.ResultCode == 0 && res.Data.length > 0;
         if (has) await this.getRecipeShowData();
+        else if (this.getEditPreNo()) await this.getRecipeDataByid(this.getEditPreNo());
       }
    },
     // 参考医案

+ 2 - 2
src/views/hisEnter.vue

@@ -56,8 +56,8 @@ export default {
         loading.close();
         let preNo = this.$route.query.preNo;
         let path = preNo
-          ? `/index/prescribing?recipeID=${preNo}&recipeType=edit`
-          : "/index/prescribing";
+          ? `/index/prescribing?recipeID=${preNo}&recipeType=edit&from=his`
+          : "/index/prescribing?from=his";
         this.setIsSee(true);
         this.setPreNo(preNo || '');
         await this.$router.push({