Browse Source

修复无法开项目

xiao 2 years ago
parent
commit
2f78800a9f

+ 2 - 1
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/yz-edit/YzEditor.vue

@@ -302,7 +302,8 @@ const xuanZhongFeiYong = async (row, laiyuan = 1) => {
     props.openGroupOrderTemplate(row.orderCode)
     return
   }
-  if (row.serial === '00') {
+  if (row.serial === '00' && currentPage.value === 'takeMedicine') {
+    qingKong()
     return BizException(ExceptionEnum.LOGICAL_ERROR, '出院带药不能开项目')
   }
 

+ 2 - 16
src/views/hospitalization/zhu-yuan-yi-sheng/Home.vue

@@ -54,6 +54,7 @@ import {ElMessageBox} from "element-plus";
 import {getOperationGuide, getOperationGuidePdf} from "@/api/public-api";
 import {xcMessage} from "@/utils/xiaochan-element-plus";
 import axios from "axios";
+import {isDev} from "@/utils/public";
 
 const windowSize = computed(() => {
   return store.state.app.windowSize
@@ -77,7 +78,7 @@ watch(() => router.currentRoute.value.path, () => {
 }, {immediate: true})
 
 const handleClick = (path, disable) => {
-  if (disable) {
+  if (disable && !isDev) {
     xcMessage.info('该功能在开发中。。。')
   } else {
     router.push(path);
@@ -153,8 +154,6 @@ const downloadGuide = () => {
         window.open(`http://webhis.thyy.cn:8080/download/操作指南/住院医生操作指南 ${fileName}.docx`, '_blank')
       }
     })
-  }).catch(() => {
-    fileName = 'v1.1.0'
   })
 }
 
@@ -163,20 +162,7 @@ const mainRef = ref()
 onMounted(async () => {
   getOperationGuide().then((res) => {
     fileName = res
-  }).catch(() => {
-    fileName = 'v1.1.0'
   })
-  if (localStorage.getItem('downloadZn') === null) {
-    ElMessageBox.confirm('下载住院医生操作指南', '提示', {
-      type: 'info',
-    }).then(() => {
-      window.open(`http://webhis.thyy.cn:8080/download/操作指南/住院医生${pathList[pathList.length - 1].title}.docx`, '_blank')
-      localStorage.setItem('downloadZn', 'true')
-    }).catch(() => {
-    })
-  }
-
-
   await nextTick()
   winsize.value.main = mainRef.value.clientWidth
   getJyJcZdTree().then((res) => {