|
|
@@ -20,7 +20,7 @@
|
|
|
<div class="tag">
|
|
|
<div v-for="(item,index) in pathList"
|
|
|
:style="currentPagePosition(item.path)"
|
|
|
- @click="item.func? item.func(index) : handleClick(item.path)">
|
|
|
+ @click="item.func? item.func(index) : handleClick(item.path,item.disable)">
|
|
|
<span> {{ item.title }}</span>
|
|
|
</div>
|
|
|
<div @click="downloadGuide" style="background-color: red;color: white">
|
|
|
@@ -51,7 +51,9 @@ import PatientList from "@/components/zhu-yuan-yi-sheng/public/PatientList";
|
|
|
import {getDrgIntelligentGrouping} from "@/api/zhu-yuan-yi-sheng/emr-patient";
|
|
|
import {getJyJcZdTree} from "@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing";
|
|
|
import {ElMessageBox} from "element-plus";
|
|
|
-import {getOperationGuide} from "@/api/public-api";
|
|
|
+import {getOperationGuide, getOperationGuidePdf} from "@/api/public-api";
|
|
|
+import {xcMessage} from "@/utils/xiaochan-element-plus";
|
|
|
+import axios from "axios";
|
|
|
|
|
|
const windowSize = computed(() => {
|
|
|
return store.state.app.windowSize
|
|
|
@@ -65,11 +67,7 @@ const basicPatientInformation = ref(true)
|
|
|
let fileName = $ref('v1.1.0')
|
|
|
|
|
|
watch(() => router.currentRoute.value.path, () => {
|
|
|
- getOperationGuide().then((res) => {
|
|
|
- fileName = res
|
|
|
- }).catch(() => {
|
|
|
- fileName = 'v1.1.0'
|
|
|
- })
|
|
|
+
|
|
|
let path = router.currentRoute.value.path
|
|
|
if (path === '/inpatient/zhuYuanYiSheng/dianZiBingLi') {
|
|
|
xianShiLieBiao.value = false
|
|
|
@@ -78,13 +76,17 @@ watch(() => router.currentRoute.value.path, () => {
|
|
|
}
|
|
|
}, {immediate: true})
|
|
|
|
|
|
-const handleClick = (path) => {
|
|
|
- router.push(path);
|
|
|
+const handleClick = (path, disable) => {
|
|
|
+ if (disable) {
|
|
|
+ xcMessage.info('该功能在开发中。。。')
|
|
|
+ } else {
|
|
|
+ router.push(path);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
let pathList = $ref([
|
|
|
{path: '/inpatient/zhuYuanYiSheng/yiZhuLuRu', title: '医嘱录入'},
|
|
|
- {path: '/inpatient/zhuYuanYiSheng/yiZhuLuRu?pattern=takeMedicine', title: '出院带药'},
|
|
|
+ {path: '/inpatient/zhuYuanYiSheng/yiZhuLuRu?pattern=takeMedicine', title: '出院带药', disable: true},
|
|
|
{path: '/inpatient/zhuYuanYiSheng/huiZhenShenQing', title: '会诊申请'},
|
|
|
{path: '/inpatient/zhuYuanYiSheng/jianChaShenQing', title: '检查申请'},
|
|
|
{path: '/inpatient/zhuYuanYiSheng/jianYanShenQing', title: '检验申请'},
|
|
|
@@ -136,13 +138,34 @@ const currentPagePosition = (val) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// 点击下载操作指南,先查询一遍最新的。
|
|
|
const downloadGuide = () => {
|
|
|
- window.open(`http://webhis.thyy.cn:8080/download/操作指南/住院医生操作指南 ${fileName}.docx`, '_blank')
|
|
|
+ getOperationGuide().then((res) => {
|
|
|
+ fileName = res
|
|
|
+ ElMessageBox.confirm('请选择线上预览版本还是下载操作指南', '提示', {
|
|
|
+ cancelButtonText: '下载',
|
|
|
+ confirmButtonText: '线上预览',
|
|
|
+ distinguishCancelAndClose: true
|
|
|
+ }).then(() => {
|
|
|
+ window.open(`http://webhis.thyy.cn:8080/download/操作指南/住院医生操作指南 ${fileName}.pdf`, '_blank')
|
|
|
+ }).catch((e) => {
|
|
|
+ if (e === 'cancel') {
|
|
|
+ window.open(`http://webhis.thyy.cn:8080/download/操作指南/住院医生操作指南 ${fileName}.docx`, '_blank')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ fileName = 'v1.1.0'
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
|
|
|
const mainRef = ref()
|
|
|
onMounted(async () => {
|
|
|
+ getOperationGuide().then((res) => {
|
|
|
+ fileName = res
|
|
|
+ }).catch(() => {
|
|
|
+ fileName = 'v1.1.0'
|
|
|
+ })
|
|
|
if (localStorage.getItem('downloadZn') === null) {
|
|
|
ElMessageBox.confirm('下载住院医生操作指南', '提示', {
|
|
|
type: 'info',
|