Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songrui
frontend-h5
Commits
2f21280b
Commit
2f21280b
authored
Mar 04, 2025
by
芮自成
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'chronic-dev' of
http://gitlab.yiboshi.com/nightkis1995/frontend-h5
into chronic-dev
parents
50af8eff
914206ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
3 deletions
+31
-3
resident.js
src/api/doctor/resident.js
+5
-0
PatientDetail.vue
src/doctor/patientDetail/PatientDetail.vue
+26
-3
No files found.
src/api/doctor/resident.js
View file @
2f21280b
...
@@ -5,6 +5,11 @@ export function queryResidentInfo(params) {
...
@@ -5,6 +5,11 @@ export function queryResidentInfo(params) {
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
})
}
}
// 居民档案ID查询居民死亡信息
export
function
getResidentsDeath
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-residents-death/info-record`
,
body
:
params
,
loading
:
true
})
}
//更新居民基本信息
//更新居民基本信息
export
function
updateResident
(
params
)
{
export
function
updateResident
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-residents-record/update`
,
body
:
params
,
loading
:
true
})
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-residents-record/update`
,
body
:
params
,
loading
:
true
})
...
...
src/doctor/patientDetail/PatientDetail.vue
View file @
2f21280b
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<div
class=
'h-full flex flex-col patient-detail'
>
<div
class=
'h-full flex flex-col patient-detail'
>
<DocNavBar
title=
'居民详情'
class=
'shrink-0'
>
<DocNavBar
title=
'居民详情'
class=
'shrink-0'
>
<template
#
right
>
<template
#
right
>
<span
class=
'text-primary'
@
click=
'() => addVisible = true'
v-if=
'deathStatus
!=9
'
>
新增
</span>
<span
class=
'text-primary'
@
click=
'() => addVisible = true'
v-if=
'deathStatus
== 1
'
>
新增
</span>
<span
class=
'text-primary'
@
click=
'toCancelDeath'
v-if=
'
deathStatus == 9
'
>
撤销死亡
</span>
<span
class=
'text-primary'
@
click=
'toCancelDeath'
v-if=
'
showDeath
'
>
撤销死亡
</span>
</
template
>
</
template
>
</DocNavBar>
</DocNavBar>
<div
class=
'grow flex flex-col'
style=
'background: #f5f5f5;min-height: 0px;'
>
<div
class=
'grow flex flex-col'
style=
'background: #f5f5f5;min-height: 0px;'
>
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
<
script
>
<
script
>
import
{
useStore
}
from
'@/doctor/store'
import
{
useStore
}
from
'@/doctor/store'
import
{
queryResidentInfo
}
from
'@/api/doctor/resident.js'
import
{
getResidentsDeath
,
queryResidentInfo
}
from
'@/api/doctor/resident.js'
import
{
showConfirmDialog
,
showNotify
}
from
'vant'
import
{
showConfirmDialog
,
showNotify
}
from
'vant'
import
DocNavBar
from
'@/doctor/components/docNavBar/DocNavBar.vue'
import
DocNavBar
from
'@/doctor/components/docNavBar/DocNavBar.vue'
import
ChronicTag
from
'@/doctor/components/chronicTag/ChronicTag.vue'
import
ChronicTag
from
'@/doctor/components/chronicTag/ChronicTag.vue'
...
@@ -128,6 +128,7 @@ export default {
...
@@ -128,6 +128,7 @@ export default {
store
:
useStore
(),
store
:
useStore
(),
residentInfoId
:
null
,
residentInfoId
:
null
,
residentInfo
:
{},
residentInfo
:
{},
showDeath
:
false
,
// 折叠
// 折叠
collapsed
:
true
,
collapsed
:
true
,
// 标签页index
// 标签页index
...
@@ -165,6 +166,9 @@ export default {
...
@@ -165,6 +166,9 @@ export default {
deathStatus
()
{
deathStatus
()
{
return
this
.
residentInfo
.
chronicStatus
return
this
.
residentInfo
.
chronicStatus
},
},
authInfo
()
{
return
this
.
store
.
authInfo
},
tabList
()
{
tabList
()
{
const
result
=
[
const
result
=
[
{
name
:
'筛查管理'
,
id
:
'SCREENING'
},
{
name
:
'筛查管理'
,
id
:
'SCREENING'
},
...
@@ -205,6 +209,25 @@ export default {
...
@@ -205,6 +209,25 @@ export default {
if
(
!
this
.
activeTabItem
.
value
)
{
if
(
!
this
.
activeTabItem
.
value
)
{
this
.
activeTab
=
0
this
.
activeTab
=
0
}
}
if
(
this
.
deathStatus
==
9
)
{
this
.
queryResidentsDeath
()
}
else
{
this
.
showDeath
=
false
}
})
},
//获取死亡信息
queryResidentsDeath
()
{
let
par
=
{
residentInfoId
:
this
.
residentInfoId
}
getResidentsDeath
(
par
).
then
(
res
=>
{
let
CdofficeId
=
res
.
data
.
createOfficeId
if
(
this
.
authInfo
.
officeId
==
CdofficeId
)
{
this
.
showDeath
=
true
}
else
{
this
.
showDeath
=
true
}
})
})
},
},
onAddChange
(
val
,
option
)
{
onAddChange
(
val
,
option
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment