Commit 4f7920c8 authored by gengchunlei's avatar gengchunlei

居民端小程序 随访列表

parent 20bf11a4
...@@ -2,6 +2,7 @@ import {fetchBase} from '@/api/doctor/doctorFetch' ...@@ -2,6 +2,7 @@ import {fetchBase} from '@/api/doctor/doctorFetch'
// 居民档案ID查询居民信息 // 居民档案ID查询居民信息
export function queryResidentInfo(params) { export function queryResidentInfo(params) {
debugger
return fetchBase({ url: `/chronic-admin/v1/chronic-residents-record/detailed`, body: params, loading: true }) return fetchBase({ url: `/chronic-admin/v1/chronic-residents-record/detailed`, body: params, loading: true })
} }
......
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
<script> <script>
import { getDict } from '@/api/base.js' import { getDict } from '@/api/base.js'
import { useStore } from './store/index.js' import { useStore } from './store/index.js'
import { ref } from 'vue'
import { queryResidentInfo } from '@/api/doctor/resident'
export default { export default {
data() { data() {
...@@ -41,7 +43,13 @@ export default { ...@@ -41,7 +43,13 @@ export default {
}, },
setup() { setup() {
const store = useStore() const store = useStore()
return { store } const baseInfo = ref(null)
return { store, baseInfo }
},
provide() {
return {
getBaseInfo: () => this.baseInfo
}
}, },
created() { created() {
this.init() this.init()
...@@ -52,7 +60,17 @@ export default { ...@@ -52,7 +60,17 @@ export default {
const res = await getDict() const res = await getDict()
this.store.$patch({ dict: res.data || {} }) this.store.$patch({ dict: res.data || {} })
this.visible = true this.visible = true
} await this.load()
},
load() {
const query = {
residentInfoId: '2020761970'
}
queryResidentInfo(query).then(res => {
debugger
this.baseInfo = res.data || {}
})
},
} }
} }
</script> </script>
......
...@@ -78,6 +78,7 @@ export default { ...@@ -78,6 +78,7 @@ export default {
}, },
onMore() { onMore() {
debugger
this.pagination.pageIndex++ this.pagination.pageIndex++
this.load() this.load()
}, },
......
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
<div v-for='item in list' :key='item.id' class='p-4 mt-3 card' @click.stop='toDetail(item)'> <div v-for='item in list' :key='item.id' class='p-4 mt-3 card' @click.stop='toDetail(item)'>
<div class='flex items-center'> <div class='flex items-center'>
<div class='detail-left'> <div class='detail-left'>
随访情况 慢病类型
</div> </div>
<div class='detail-right'> <div class='detail-right'>
{{ item.visitSituationName }} {{ item.diseaseTypeName }}
</div> </div>
</div> </div>
<div class='mt-3 flex items-center'> <div class='mt-3 flex items-center'>
...@@ -35,56 +35,39 @@ ...@@ -35,56 +35,39 @@
</div> </div>
<div class='mt-3 flex items-center'> <div class='mt-3 flex items-center'>
<div class='detail-left'> <div class='detail-left'>
随访医生 下次随访日期
</div>
<div class='detail-right'>
{{ item.serveDoctorName }}
</div>
</div>
<div class='mt-3 flex items-center'>
<div class='detail-left'>
服务类型
</div> </div>
<div class='detail-right'> <div class='detail-right'>
{{ item.serveTypeName }} {{ item.nextVisitDate || '-' }}
</div> </div>
</div> </div>
<div class='mt-3 flex items-center'> <div class='mt-3 flex items-center'>
<div class='detail-left'> <div class='detail-left'>
随访机构 随访医生
</div> </div>
<div class='detail-right'> <div class='detail-right'>
{{ item.serveUnitName }} {{ item.serveDoctorName }}
</div> </div>
</div> </div>
<div class='mt-3 flex items-center'> <div class='mt-3 flex items-center'>
<div class='detail-left'> <div class='detail-left'>
下次随访日期 随访方式
</div> </div>
<div class='detail-right'> <div class='detail-right'>
{{ item.nextVisitDate || '-' }} {{ item.serveTypeName }}
</div> </div>
</div> </div>
<div class='mt-3 flex items-center'> <div class='mt-3 flex items-center'>
<div class='detail-left'> <div class='detail-left'>
数据来源 随访机构
</div> </div>
<div class='detail-right'> <div class='detail-right'>
{{ item.sourceName || '-' }} {{ item.serveUnitName }}
</div> </div>
</div> </div>
<van-divider class='mt-3' /> <van-divider class='mt-3' />
<div class='flex justify-end'>
<van-button round type='primary' class='card-bt' style='margin-right: .12rem'
@click.stop='editBtn(item)' v-show='item.allowUpdate ==1'>修改
</van-button>
<van-button round type='primary' class='card-bt' @click.stop='delBtn(item)'
v-show='item.allowUpdate ==1'>删除
</van-button>
</div>
<span class='px-3 float-bt'> <span class='px-3 float-bt'>
通用随访 通用随访
</span> </span>
...@@ -134,6 +117,7 @@ export default { ...@@ -134,6 +117,7 @@ export default {
}, },
tabList() { tabList() {
const list = [ const list = [
{ title: '全部', name: -1, code: '' },
{ title: '高血压', name: 1, code: '1' }, { title: '高血压', name: 1, code: '1' },
{ title: '糖尿病', name: 2, code: '2' }, { title: '糖尿病', name: 2, code: '2' },
{ title: '冠心病', name: 3, code: '4' }, { title: '冠心病', name: 3, code: '4' },
...@@ -146,6 +130,7 @@ export default { ...@@ -146,6 +130,7 @@ export default {
} }
}, },
mounted() { mounted() {
debugger
const list = this.$refs.list const list = this.$refs.list
list.addEventListener('scroll', () => { list.addEventListener('scroll', () => {
if (list.scrollTop > 0) { if (list.scrollTop > 0) {
......
<!--通用随访详情-->
<template>
<div>
<van-nav-bar title='随访详情' left-text='' left-arrow @click-left='toBack'></van-nav-bar>
<van-collapse v-model='activeNames'>
<van-collapse-item title='居民信息' name='1'>
代码是写出来给人看的,附带能在机器上运行。
</van-collapse-item>
<van-collapse-item title='标题2' name='2'>
技术无非就是那些开发它的人的共同灵魂。
</van-collapse-item>
<van-collapse-item title='标题3' name='3'>
在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。
</van-collapse-item>
</van-collapse>
</div>
</template>
<script>
import { showToast } from 'vant'
import { fetchCurrencyById } from '@/api/doctor/generalFU'
export default {
name: 'CurrencyFUDetail.vue',
data() {
return {
activeNames: [],
detailInfo: {}
}
},
computed: {
routerDetail() {
return this.$route.query
}
},
created() {
this.load()
},
methods: {
async load() {
if (!this.routerDetail.relationId) {
showToast('未获取到信息')
return
}
let par = {
id: this.routerDetail.relationId
}
fetchCurrencyById(par).then(res => {
let result = res.data || {}
this.info = result
this.residentInfo = result.residentsRecord || {}
}).finally(() => {
})
},
toBack() {
this.$router.back()
}
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
...@@ -108,13 +108,16 @@ const routes = [ ...@@ -108,13 +108,16 @@ const routes = [
name: 'resident-screening-secondDetail', name: 'resident-screening-secondDetail',
component: () => import(/* webpackChunkName: "residentWX-screening" */ '@/residentWX/screening/detail/SecondDetail.vue') component: () => import(/* webpackChunkName: "residentWX-screening" */ '@/residentWX/screening/detail/SecondDetail.vue')
}, },
},
{ {
path: 'visit/list', path: 'visit/list',
name: 'residentWX-visitList', name: 'residentWX-visit-List',
component: () => import(/* webpackChunkName: "residentWX-screening" */ '@/residentWX/visit/List.vue') component: () => import(/* webpackChunkName: "residentWX-visit" */ '@/residentWX/visit/List.vue')
},
{
path: 'visit/currencyFUDetail/:id',
name: 'resident-visit-currencyFUDetail',
component: () => import(/* webpackChunkName: "residentWX-screening" */ '@/residentWX/visit/detail/CurrencyFUDetail.vue')
}, },
// 健康指导宣教 // 健康指导宣教
{ {
path: 'guide/list', path: 'guide/list',
......
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