Commit 307ee370 authored by gengchunlei's avatar gengchunlei

医生端 v1.2 1、公卫详情 移动端调整

parent f641f3e3
<template> <template>
<div class="h-full iframe-page"> <div class='h-full iframe-page'>
<iframe :src="iframeSrc" style="border: 0;width: 100%;height: 99%" :key="iframeSrc" v-if="iframeSrc" allowFullscreen> <div class='p-3 text-black text-center shrink-0 doc-nav-bar'>
</iframe> <span @click='onBack' class='text-12 back-bt'>
<div v-else/> <doc-icon type='doc-left2' />
</div> </span>
<span>{{ pageTitle }}</span>
</div>
<iframe :src='iframeSrc' style='border: 0;width: 100%;height: calc(99% - 50px)' :key='iframeSrc' v-if='iframeSrc'
allowFullscreen>
</iframe>
<div v-else />
</div>
</template> </template>
<script> <script>
// import {getCateInfoByMenuId} from "@/views/statScreen/config"; // import {getCateInfoByMenuId} from "@/views/statScreen/config";
export default { export default {
props: { props: {
src: String src: String
}, },
data() { data() {
return { return {
iframeSrc: '' iframeSrc: ''
} }
}, },
// computed:{ computed: {
// stat(){ pageTitle() {
// return this.$route.params.stat return this.$route.query.pageTitle || ''
// } }
// }, },
beforeUnmount() { beforeUnmount() {
this.iframeSrc = '' this.iframeSrc = ''
},
watch: {
src: {
handler() {
this.load()
},
immediate: true
}
},
methods: {
load() {
// let menuList = this.$store.state.menu || []
// let rou = this.$route.fullPath
// let result = menuList.filter(item => item.frontActionUrl == rou)[0]
// let menuId = result.id
// let lobId = result.lobId
// if (lobId && lobId!='0'){
// getCateInfoByMenuId(menuId).then(res => {
// this.openIframe(res.data.treeCode, menuId);
// });
// }else {
this.iframeSrc = `${this.src}`
// }
}, },
openIframe(treeCode, menuId) { watch: {
let res = '' src: {
res = `${this.src}${this.src?.includes('?') ? '&': '?'}source=MB&menuId=${menuId}` handler() {
if (treeCode) { debugger
res = `${this.src}${this.src?.includes('?') ? '&': '?'}treeCode=${treeCode}&unitTreeCode=${treeCode}&source=MB&menuId=${menuId}` this.load()
} },
this.iframeSrc = res immediate: true
}
},
methods: {
load() {
// let menuList = this.$store.state.menu || []
// let rou = this.$route.fullPath
// let result = menuList.filter(item => item.frontActionUrl == rou)[0]
// let menuId = result.id
// let lobId = result.lobId
// if (lobId && lobId!='0'){
// getCateInfoByMenuId(menuId).then(res => {
// this.openIframe(res.data.treeCode, menuId);
// });
// }else {
this.iframeSrc = `${this.src}`
// }
},
openIframe(treeCode, menuId) {
let res = ''
res = `${this.src}${this.src?.includes('?') ? '&' : '?'}source=MB&menuId=${menuId}`
if (treeCode) {
res = `${this.src}${this.src?.includes('?') ? '&' : '?'}treeCode=${treeCode}&unitTreeCode=${treeCode}&source=MB&menuId=${menuId}`
}
this.iframeSrc = res
},
onBack() {
this.$router.back()
}
} }
}
} }
</script> </script>
<style lang="less" scoped> <style lang='less' scoped>
// 顶部导航栏
.doc-nav-bar {
position: relative;
border-bottom: 1px solid #3C3C435C;
font-size: 18px;
font-weight: 600;
.back-bt {
position: absolute;
left: .16rem;
top: 50%;
transform: translateY(-50%);
}
}
</style> </style>
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
getVisitManageVByUuId(par).then(res => { getVisitManageVByUuId(par).then(res => {
let record = res.data let record = res.data
this.detailInfo = record this.detailInfo = record
this.PhlIsShow(record) // this.PhlIsShow(record)
this.showFU = this.FUIsShow(record) this.showFU = this.FUIsShow(record)
this.showCommon = this.GAUIsShow(record) this.showCommon = this.GAUIsShow(record)
this.showHis = this.HisIsShow(record) this.showHis = this.HisIsShow(record)
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
} }
return res return res
}, },
//判断是否显示报卡随访 //判断是否显示公卫随访
PhlIsShow(record) { PhlIsShow(record) {
// let res = false // let res = false
if (record.source == 4) { if (record.source == 4) {
...@@ -111,7 +111,8 @@ export default { ...@@ -111,7 +111,8 @@ export default {
this.$router.push({ this.$router.push({
path: `/systemIframe/doctorGWDetail`, path: `/systemIframe/doctorGWDetail`,
query: { query: {
src: `https://www.baidu.com/` src: `https://www.baidu.com/`,
pageTitle: `公卫详情`
} }
}) })
} }
......
<template> <template>
<div class="h-full disease-visit" ref="list"> <div class='h-full disease-visit' ref='list'>
<van-pull-refresh v-model='loadingRefresh' @refresh='onRefresh' <van-pull-refresh v-model='loadingRefresh' @refresh='onRefresh'
:disabled='isRefreshDisable' style="min-height: 100%"> :disabled='isRefreshDisable' style='min-height: 100%'>
<van-list <van-list
v-model:loading='loading' v-model:loading='loading'
:finished='finished' :finished='finished'
...@@ -9,53 +9,56 @@ ...@@ -9,53 +9,56 @@
:immediate-check='false' :immediate-check='false'
@load='onMore' @load='onMore'
> >
<div class="flex flex-col"> <div class='flex flex-col'>
<div class="flex flex-col gap-y-2.5 py-3 px-4 mb-3 doc-list-card" <div class='flex flex-col gap-y-2.5 py-3 px-4 mb-3 doc-list-card'
v-for='item in list' :key="item.id" @click="toDetail(item)"> v-for='item in list' :key='item.id' @click='toDetail(item)'>
<div> <div>
<span class="label">服务类型</span> <span class='label'>服务类型</span>
<span>{{ item.serveTypeName || '-' }}</span> <span>{{ item.serveTypeName || '-' }}</span>
</div> </div>
<div> <div>
<span class="label">随访日期</span> <span class='label'>随访日期</span>
<span>{{ item.serveDate }}</span> <span>{{ item.serveDate }}</span>
</div> </div>
<div> <div>
<span class="label">随访分类</span> <span class='label'>随访分类</span>
<span>{{ item.visitTypeName || '-' }}</span> <span>{{ item.visitTypeName || '-' }}</span>
</div> </div>
<div v-if="item.patientNo"> <div v-if='item.patientNo'>
<span class="label">就诊号</span> <span class='label'>就诊号</span>
<span>{{ item.patientNo || '-' }}</span> <span>{{ item.patientNo || '-' }}</span>
</div> </div>
<div class="text-ellipsis" v-if="item.diagnose"> <div class='text-ellipsis' v-if='item.diagnose'>
<span class="label">诊断</span> <span class='label'>诊断</span>
<span>{{ item.diagnose || '-' }}</span> <span>{{ item.diagnose || '-' }}</span>
</div> </div>
<div v-if="item.bloodPressure"> <div v-if='item.bloodPressure'>
<span class="label">血压</span> <span class='label'>血压</span>
<span>{{ item.bloodPressure || '-' }}</span> <span>{{ item.bloodPressure || '-' }}</span>
</div> </div>
<div> <div>
<span class="label">数据来源</span> <span class='label'>数据来源</span>
<span>{{ item.sourceName || '-' }}</span> <span>{{ item.sourceName || '-' }}</span>
</div> </div>
<div> <div>
<span class="label">随访医生</span> <span class='label'>随访医生</span>
<span>{{ item.serveDoctorName || '-' }}</span> <span>{{ item.serveDoctorName || '-' }}</span>
</div> </div>
<div class="text-ellipsis"> <div class='text-ellipsis'>
<span class="label">随访机构</span> <span class='label'>随访机构</span>
<span>{{ item.serveUnitName || '-' }}</span> <span>{{ item.serveUnitName || '-' }}</span>
</div> </div>
<div class="divider"></div> <div class='divider'></div>
<div class="bt-group"> <div class='bt-group'>
<van-button round size="small" class="doc-btn-primary" @click="toDetail(item)">详情</van-button> <van-button round size='small' class='doc-btn-primary' @click='toDetail(item)'>详情
<!-- <van-button round size="small" class="doc-btn-primary" v-if="item.allowUpdate == 1">转诊</van-button>--> </van-button>
<van-button round size="small" class="doc-btn-primary" @click='editBtn(item)' <!-- <van-button round size="small" class="doc-btn-primary" v-if="item.allowUpdate == 1">转诊</van-button>-->
v-if="!(item.allowUpdate !==1 || item.serveType == 5)">修改</van-button> <van-button round size='small' class='doc-btn-primary' @click='editBtn(item)'
<van-button round size="small" class="doc-btn-red" @click="delBtn(item)" v-if='!(item.allowUpdate !==1 || item.serveType == 5)'>修改
v-if="!(item.allowUpdate !==1 || item.serveType == 5)">删除</van-button> </van-button>
<van-button round size='small' class='doc-btn-red' @click='delBtn(item)'
v-if='!(item.allowUpdate !==1 || item.serveType == 5)'>删除
</van-button>
</div> </div>
</div> </div>
</div> </div>
...@@ -117,12 +120,12 @@ export default { ...@@ -117,12 +120,12 @@ export default {
// pageIndex: this.pagination.pageIndex, // pageIndex: this.pagination.pageIndex,
// pageSize: this.pagination.pageSize, // pageSize: this.pagination.pageSize,
residentInfoId: this.residentInfoId, residentInfoId: this.residentInfoId,
diseaseType: this.diseaseType, diseaseType: this.diseaseType
} }
getVisitManageList(query, loading).then(res => { getVisitManageList(query, loading).then(res => {
if (this.pagination.pageIndex === 1) { if (this.pagination.pageIndex === 1) {
this.list = [] this.list = []
} }
this.list = this.list.concat(res.data || []) this.list = this.list.concat(res.data || [])
this.pagination.total = res.data.total || 0 this.pagination.total = res.data.total || 0
this.finished = this.list.length >= this.pagination.total this.finished = this.list.length >= this.pagination.total
...@@ -148,8 +151,19 @@ export default { ...@@ -148,8 +151,19 @@ export default {
//数据来源为his时展示 `请在医生PC端查看详情` //数据来源为his时展示 `请在医生PC端查看详情`
showConfirmDialog({ showConfirmDialog({
message: '请在医生PC端查看详情' message: '请在医生PC端查看详情'
}).then(() => {}).catch((err) => {}) }).then(() => {
}).catch((err) => {
})
} else if (record.source == 4) {
// 判断是否显示公卫随访
this.$router.push({
path: `/systemIframe/doctorGWDetail`,
query: {
src: `https://www.baidu.com/`,
pageTitle: `公卫详情`
}
})
} else { } else {
//随访详情 //随访详情
this.$router.push({ this.$router.push({
...@@ -157,7 +171,7 @@ export default { ...@@ -157,7 +171,7 @@ export default {
query: { query: {
relationUuid: record.relationUuid, relationUuid: record.relationUuid,
residentInfoId: this.residentInfoId, residentInfoId: this.residentInfoId,
diseaseType: this.diseaseType, diseaseType: this.diseaseType
} }
}) })
} }
...@@ -181,6 +195,6 @@ export default { ...@@ -181,6 +195,6 @@ export default {
} }
</script> </script>
<style lang="less" scoped> <style lang='less' scoped>
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment