Commit 1aa21d32 authored by 芮自成's avatar 芮自成

代码合并

parents 9fb236ce 04d038f8
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<link rel='icon' href='<%= BASE_URL %>favicon.ico'> <link rel='icon' href='<%= BASE_URL %>favicon.ico'>
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
<!-- 3.3.4/vconsole.min.js --> <!-- 3.3.4/vconsole.min.js -->
<script src='https://beta-copd-img.yiboshi.com/20241106/1730860078278931285.js'></script> <!-- <script src='https://beta-copd-img.yiboshi.com/20241106/1730860078278931285.js'></script>-->
</head> </head>
<body> <body>
<noscript> <noscript>
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
</body> </body>
<script> <script>
var vConsole =new VConsole(); // var vConsole =new VConsole();
// console.log('Hello world'); // console.log('Hello world');
</script> </script>
</html> </html>
...@@ -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 })
} }
// 获取检验项目对码表 // 获取检验项目对码表
...@@ -43,4 +43,9 @@ export function updateDiagnose(params) { ...@@ -43,4 +43,9 @@ export function updateDiagnose(params) {
//删除诊断 //删除诊断
export function delDiagnose(params) { export function delDiagnose(params) {
return fetchBase({ url: `/chronic-admin/v1/chronic-diagnose-record/delete`, body: params, loading: true }) return fetchBase({ url: `/chronic-admin/v1/chronic-diagnose-record/delete`, body: params, loading: true })
}
// 报卡信息主键查询
export function fetchCurrencyByUuid(params) {
return fetchBase({ url: `/chronic-admin/v1/chronic-visit-record-crs/record-uuid`, body: params, loading: true })
} }
\ No newline at end of file
...@@ -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,13 @@ export function upLoadMultifile(params) { ...@@ -78,4 +78,13 @@ 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 })
} }
\ No newline at end of file
//慢病管理列表主键查询
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
<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>
<div class='h-full flex flex-col' >
<div class='p-3 text-black text-center shrink-0 doc-nav-bar'>
<span @click='onBack' class='text-12 back-bt'>
<doc-icon type='doc-left2' />
</span>
<span>报卡随访详情</span>
</div>
<div class='p-3 grow cont-box'>
<div class='p-3 h-full cont-inner'>
<van-collapse :model-value='activeCollapse' ref='collapse' class='doc-collapse'>
<van-collapse-item key='1' title='报卡随访详情' name='1'>
<template #right-icon>
<doc-icon type='doc-down' />
</template>
<div class='list'>
<div class='flex justify-between py-1 border-bottom item'>
<span class='shrink-0 mr-2 label'>随访时间</span>
<span class='text-end'><span>{{ detailInfo.visitDate || '-'}}</span></span>
</div>
<div class='flex justify-between py-1 border-bottom item'>
<span class='shrink-0 mr-2 label'>随访方式</span>
<span class='text-end'><span>{{ detailInfo.visitModeName || '-'}}</span></span>
</div>
<div class='flex justify-between py-1 border-bottom item'>
<span class='shrink-0 mr-2 label'>随访状态</span>
<span class='text-end'><span>{{ detailInfo.visitStatusName || '-'}}</span></span>
</div>
<div class='flex justify-between py-1 border-bottom item' v-if="detailInfo.visitStatus===4">
<span class='shrink-0 mr-2 label'>死亡日期</span>
<span class='text-end'><span>{{ detailInfo.deathDate || '-'}}</span></span>
</div>
<div class='flex justify-between py-1 border-bottom item' v-if="detailInfo.visitStatus===4">
<span class='shrink-0 mr-2 label'>死因</span>
<span class='text-end'><span>{{ detailInfo.deathReason || '-'}}</span></span>
</div>
<div class='flex justify-between py-1 border-bottom item' v-if="detailInfo.visitStatus===5">
<span class='shrink-0 mr-2 label'>失访原因</span>
<span class='text-end'><span>{{ detailInfo.lossVisitReasonName || '-'}}</span></span>
</div>
<div class='flex justify-between py-1 border-bottom item' v-if="detailInfo.visitStatus===1">
<span class='shrink-0 mr-2 label'>治疗状态</span>
<span class='text-end'><span>{{ detailInfo.treatmentStatusName || '-'}}</span></span>
</div>
<div class='flex justify-between py-1 border-bottom item'>
<span class='shrink-0 mr-2 label'>随访单位</span>
<span class='text-end'><span>{{ detailInfo.visitUnitName || '-'}}</span></span>
</div>
<div class='flex justify-between py-1 border-bottom item'>
<span class='shrink-0 mr-2 label'>随访科室</span>
<span class='text-end'><span>{{ detailInfo.visitOfficeName || '-'}}</span></span>
</div>
<div class='flex justify-between py-1 border-bottom item'>
<span class='shrink-0 mr-2 label'>随访医生</span>
<span class='text-end'><span>{{ detailInfo.visitDoctorName || '-'}}</span></span>
</div>
</div>
</van-collapse-item>
</van-collapse>
</div>
</div>
</div>
</template>
<script>
import { fetchCurrencyByUuid } from '@/api/doctor/disease'
export default {
name: 'CrsVisitDetail',
props: {
relationUuid: [String, String]
},
data() {
return {
activeCollapse: ['1'],
detailInfo: {}
}
},
created() {
this.load()
},
methods: {
load() {
if (!this.relationUuid) {
this.$message.info('未获取到信息')
return
}
let par = {
relationUuid: this.relationUuid
}
fetchCurrencyByUuid(par).then(res => {
let result = res.data || {}
this.detailInfo = result
}).finally(() => {
})
},
onBack() {
this.$router.back()
}
}
}
</script>
<style scoped lang='less'>
@import url('../../../utils/common.less');
</style>
\ No newline at end of file
<template>
<div class='h-full gw-detail'>
</div>
</template>
<script>
export default {
name: 'GwDetail',
props: {
info: { default: () => ({}) }
},
data() {
return {
src: undefined
}
},
created() {
this.load()
},
methods: {
load() {
}
},
}
</script>
<style lang='less' scoped>
</style>
...@@ -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()
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<span class='tag mr-2'>{{ residentInfo.genderName || '-' }}</span> <span class='tag mr-2'>{{ residentInfo.genderName || '-' }}</span>
<span :class="[deathStatus == 9 ? 'tag-red' : 'tag' ,'mr-2']" <span :class="[deathStatus == 9 ? 'tag-red' : 'tag' ,'mr-2']"
@click='toDeath'>{{ deathStatus == 9 ? '死亡' : '存活' }}</span> @click='toDeath'>{{ deathStatus == 9 ? '死亡' : '存活' }}</span>
<doc-icon type='doc-edit' class='text-primary' @click='toArchivesEdit' v-if='deathStatus !=9' /> <doc-icon type='doc-edit' class='text-primary' @click='toArchivesEdit' />
<!-- <van-icon class="text-red" name="share" v-if='deathStatus ==9' @click='toCancelDeath'/>--> <!-- <van-icon class="text-red" name="share" v-if='deathStatus ==9' @click='toCancelDeath'/>-->
</div> </div>
<div class='flex flex-col' style='row-gap: .04rem;line-height: 1.5;'> <div class='flex flex-col' style='row-gap: .04rem;line-height: 1.5;'>
...@@ -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