Commit 922eac2d authored by gengchunlei's avatar gengchunlei

医生端小程序 v1.2 1、居民详情随访列表接口替换

                 2、随访列表详情调整(his、通用、专病、公卫)
parent e31dba42
...@@ -7,7 +7,7 @@ export function fetchDiseaseTypeList(params, loading) { ...@@ -7,7 +7,7 @@ export function fetchDiseaseTypeList(params, loading) {
// 查询随访列表 // 查询随访列表
export function getVisitManageList(params, loading) { export function getVisitManageList(params, loading) {
return fetchBase({ url: `/chronic-admin/v1/chronic-visit-record/page`, body: params, loading }) return fetchBase({ url: `/chronic-admin/v1/chronic-visit-record/record-list`, body: params, loading })
} }
// 获取检验项目对码表 // 获取检验项目对码表
......
...@@ -34,7 +34,6 @@ export function fetchBase({ ...@@ -34,7 +34,6 @@ export function fetchBase({
backHome() backHome()
return return
} }
let bodys = {...body, source: 2}
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (loading) { if (loading) {
loadingList++ loadingList++
...@@ -44,7 +43,7 @@ export function fetchBase({ ...@@ -44,7 +43,7 @@ export function fetchBase({
method: method, method: method,
url: `${url}`, url: `${url}`,
params: params, params: params,
data: bodys, data: body,
headers: { headers: {
'Authorization': `${token}`, 'Authorization': `${token}`,
'Content-Type': contentType 'Content-Type': contentType
......
...@@ -78,4 +78,9 @@ export function upLoadMultifile(params) { ...@@ -78,4 +78,9 @@ export function upLoadMultifile(params) {
//短信重发 //短信重发
export function messageResend(params) { export function messageResend(params) {
return fetchBase({ url: `/chronic-admin/v1/chronic-visit-currency/resend-sms`, body: params, loading: true }) return fetchBase({ url: `/chronic-admin/v1/chronic-visit-currency/resend-sms`, body: params, loading: true })
}
//慢病管理列表主键查询
export function getVisitManageVByUuId(params) {
return fetchBase({ url: `/chronic-admin/v1/chronic-visit-record/record-uuid`, body: params, loading: true })
} }
\ No newline at end of file
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
if (!token) { if (!token) {
token = sessionStorage.getItem('token') token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
token = 'f1f98c99-ac8d-47db-8066-fe24a548c784' token = '095c2992-4a95-4f5b-bdbf-9415d0f69f85'
} }
} }
if (token) { if (token) {
......
<template>
<div class='h-full'>
<!-- 公卫数据详情 -->
<GwDetail :info="detailInfo" v-if="showGw"/>
<!-- 通用随访详情 -->
<CurrencyFUDetail :id="detailInfo.relationId" :resident-id="residentId" v-else-if="showCommon"></CurrencyFUDetail>
<!-- 专病随访详情 -->
<!-- <VisitDetail :id="detailInfo.relationId" :resident-id="residentId" :disease-type="diseaseType" v-else-if="showFU"></VisitDetail>-->
<!-- his -->
<!-- <HisDetail :info="detailInfo" v-else-if="showHis"></HisDetail>-->
<!-- 报卡随访详情 -->
<CrsVisitDetail :relationUuid="detailInfo.relationUuid" v-else-if="showCrs"></CrsVisitDetail>
</div>
</template>
<script>
import { getVisitManageVByUuId } from '@/api/doctor/generalFU'
import GwDetail from '@/doctor/followUp/detail/components/GwDetail'
import CrsVisitDetail from '@/doctor/followUp/detail/components/CrsVisitDetail'
import CurrencyFUDetail from '@/doctor/followUp/generalFU/detail/Detail'
export default {
name: 'FollowUpDetail',
components: { CurrencyFUDetail, CrsVisitDetail, GwDetail },
props: {
// id: [String, Number],
// residentId: [String, Number],
// diseaseType: [String, Number]
},
data() {
return {
detailInfo: {},
showCommon: false,
showFU: false,
showHis: false,
showCrs: false,
showGw: false
}
},
watch: {
id: {
handler() {
this.load()
},
immediate: true
}
},
computed: {
relationUuid() {
return this.$route.query.relationUuid
},
diseaseType() {
return this.$route.query.diseaseType
},
residentId() {
return this.$route.query.residentInfoId
}
},
methods: {
load() {
let par = {
relationUuid: this.relationUuid
}
getVisitManageVByUuId(par).then(res => {
let record = res.data
this.detailInfo = record
this.showGw = this.PhlIsShow(record)
this.showFU = this.FUIsShow(record)
this.showCommon = this.GAUIsShow(record)
this.showHis = this.HisIsShow(record)
this.showCrs = this.CrsIsShow(record)
})
},
//判断是否是专病随访
FUIsShow(record) {
let res = false
if ((record.serveType == 3 || (record.serveType == 4) && record.source != 4)) {
res = true
}
return res
},
//判断是否是 通用随访
GAUIsShow(record) {
let res = false
if (record.serveType == 5) {
res = true
}
return res
},
//判断是否是his
HisIsShow(record) {
let res = false
if (record.serveType == 1 || record.serveType == 2) {
res = true
}
return res
},
//判断是否显示报卡随访
CrsIsShow(record) {
let res = false
if (record.serveType == 6) {
res = true
}
return res
},
//判断是否显示报卡随访
PhlIsShow(record) {
let res = false
if (record.source == 4) {
res = true
}
return res
}
}
}
</script>
<style scoped lang='less'>
</style>
\ No newline at end of file
<template>
</template>
<script>
export default {
name: 'CrsVisitDetail',
data() {
return {
}
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
<template>
</template>
<script>
export default {
name: 'GwDetail',
data() {
return {
}
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
...@@ -255,8 +255,11 @@ import { fetchCurrencyById, messageResend } from '@/api/doctor/generalFU' ...@@ -255,8 +255,11 @@ import { fetchCurrencyById, messageResend } from '@/api/doctor/generalFU'
import { getTemplateDetail } from '@/api/doctor/workbench' import { getTemplateDetail } from '@/api/doctor/workbench'
export default { export default {
name: 'CurrencyFUDetail.vue', name: 'CurrencyFUDetail',
components: { ImagePreview, Mp4, Mp3 }, components: { ImagePreview, Mp4, Mp3 },
props: {
id: String,
},
data() { data() {
return { return {
activeCollapse: [], activeCollapse: [],
...@@ -307,9 +310,6 @@ export default { ...@@ -307,9 +310,6 @@ export default {
} }
}, },
computed: { computed: {
routerDetail() {
return this.$route.query
},
residentInfo() { residentInfo() {
return this.info.residentsRecord || {} return this.info.residentsRecord || {}
}, },
...@@ -374,12 +374,12 @@ export default { ...@@ -374,12 +374,12 @@ export default {
}, },
methods: { methods: {
async load() { async load() {
if (!this.routerDetail.relationId) { if (!this.id) {
this.$message.info('未获取到信息') this.$message.info('未获取到信息')
return return
} }
let par = { let par = {
id: this.routerDetail.relationId id: this.id
} }
fetchCurrencyById(par).then(res => { fetchCurrencyById(par).then(res => {
let result = res.data || {} let result = res.data || {}
...@@ -401,7 +401,7 @@ export default { ...@@ -401,7 +401,7 @@ export default {
//重新发送 //重新发送
toReSend() { toReSend() {
let par = { let par = {
id: this.routerDetail.relationId id: this.id
} }
messageResend(par).then(() => { messageResend(par).then(() => {
this.load() this.load()
......
...@@ -245,6 +245,7 @@ export default { ...@@ -245,6 +245,7 @@ export default {
residentInfoId: this.residentInfoId, residentInfoId: this.residentInfoId,
// operateType=1 新增死亡 3-撤销删除 // operateType=1 新增死亡 3-撤销删除
operateType: 3, operateType: 3,
source: 2
} }
saveResidentsDeath(query).then(res => { saveResidentsDeath(query).then(res => {
if (res.code == 'SUCCESS') { if (res.code == 'SUCCESS') {
......
...@@ -48,14 +48,14 @@ ...@@ -48,14 +48,14 @@
<span class="label">随访机构</span> <span class="label">随访机构</span>
<span>{{ item.serveUnitName || '-' }}</span> <span>{{ item.serveUnitName || '-' }}</span>
</div> </div>
<div class="divider" v-if="item.serveType == 5"></div> <div class="divider"></div>
<div class="bt-group" v-if="item.serveType == 5"> <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>
<!-- <van-button round size="small" class="doc-btn-primary" v-if="item.allowUpdate == 1">转诊</van-button> <!-- <van-button round size="small" class="doc-btn-primary" v-if="item.allowUpdate == 1">转诊</van-button>-->
<van-button round size="small" class="doc-btn-primary" @click='editBtn(item)' <van-button round size="small" class="doc-btn-primary" @click='editBtn(item)'
v-if="!(item.allowUpdate !==1 || item.serveType == 5)">修改</van-button> v-if="!(item.allowUpdate !==1 || item.serveType == 5)">修改</van-button>
<van-button round size="small" class="doc-btn-red" @click="delBtn(item)" <van-button round size="small" class="doc-btn-red" @click="delBtn(item)"
v-if="!(item.allowUpdate !==1 || item.serveType == 5)">删除</van-button> --> v-if="!(item.allowUpdate !==1 || item.serveType == 5)">删除</van-button>
</div> </div>
</div> </div>
</div> </div>
...@@ -113,8 +113,8 @@ export default { ...@@ -113,8 +113,8 @@ export default {
methods: { methods: {
load(loading = true) { load(loading = true) {
const query = { const query = {
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,
} }
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
if (this.pagination.pageIndex === 1) { if (this.pagination.pageIndex === 1) {
this.list = [] this.list = []
} }
this.list = this.list.concat(res.data.dataList || []) 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
}).finally(() => { }).finally(() => {
...@@ -144,15 +144,15 @@ export default { ...@@ -144,15 +144,15 @@ export default {
this.$message.info('暂时无法查看 详情信息') this.$message.info('暂时无法查看 详情信息')
return return
} }
if (record.serveType === 5) {
// 通用随访 // 通用随访
this.$router.push({ this.$router.push({
path: '/doctor/followUp/generalFU/detail', path: '/doctor/followUp/detail',
query: { query: {
relationId: record.relationId relationUuid: record.relationUuid,
residentInfoId: this.residentInfoId,
diseaseType: this.diseaseType,
} }
}) })
}
}, },
editBtn() { editBtn() {
......
...@@ -81,9 +81,9 @@ const routes = [ ...@@ -81,9 +81,9 @@ const routes = [
component: () => import(/* webpackChunkName: "doctor" */ '@/doctor/screening/detail/SecondDetail.vue') component: () => import(/* webpackChunkName: "doctor" */ '@/doctor/screening/detail/SecondDetail.vue')
}, },
{ {
path: 'followUp/generalFU/detail', path: 'followUp/detail',
name: 'followUp-generalFU-detail', name: 'followUp-detail',
component: () => import(/* webpackChunkName: "doctor" */ '@/doctor/followUp/generalFU/detail/Detail') component: () => import(/* webpackChunkName: "doctor" */ '@/doctor/followUp/detail/FollowUpDetail')
}, },
{ {
path: 'followUp/generalFU/add', path: 'followUp/generalFU/add',
......
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