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
4f7920c8
Commit
4f7920c8
authored
Oct 15, 2024
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
居民端小程序 随访列表
parent
20bf11a4
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
106 additions
and
32 deletions
+106
-32
resident.js
src/api/doctor/resident.js
+1
-0
ResidentWX.vue
src/residentWX/ResidentWX.vue
+19
-1
List.vue
src/residentWX/guide/List.vue
+1
-0
List.vue
src/residentWX/visit/List.vue
+12
-27
CurrencyFUDetail.vue
src/residentWX/visit/detail/CurrencyFUDetail.vue
+66
-0
index.js
src/router/index.js
+7
-4
No files found.
src/api/doctor/resident.js
View file @
4f7920c8
...
...
@@ -2,6 +2,7 @@ import {fetchBase} from '@/api/doctor/doctorFetch'
// 居民档案ID查询居民信息
export
function
queryResidentInfo
(
params
)
{
debugger
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-residents-record/detailed`
,
body
:
params
,
loading
:
true
})
}
...
...
src/residentWX/ResidentWX.vue
View file @
4f7920c8
...
...
@@ -13,6 +13,8 @@
<
script
>
import
{
getDict
}
from
'@/api/base.js'
import
{
useStore
}
from
'./store/index.js'
import
{
ref
}
from
'vue'
import
{
queryResidentInfo
}
from
'@/api/doctor/resident'
export
default
{
data
()
{
...
...
@@ -41,7 +43,13 @@ export default {
},
setup
()
{
const
store
=
useStore
()
return
{
store
}
const
baseInfo
=
ref
(
null
)
return
{
store
,
baseInfo
}
},
provide
()
{
return
{
getBaseInfo
:
()
=>
this
.
baseInfo
}
},
created
()
{
this
.
init
()
...
...
@@ -52,7 +60,17 @@ export default {
const
res
=
await
getDict
()
this
.
store
.
$patch
({
dict
:
res
.
data
||
{}
})
this
.
visible
=
true
await
this
.
load
()
},
load
()
{
const
query
=
{
residentInfoId
:
'2020761970'
}
queryResidentInfo
(
query
).
then
(
res
=>
{
debugger
this
.
baseInfo
=
res
.
data
||
{}
})
},
}
}
</
script
>
...
...
src/residentWX/guide/List.vue
View file @
4f7920c8
...
...
@@ -78,6 +78,7 @@ export default {
},
onMore
()
{
debugger
this
.
pagination
.
pageIndex
++
this
.
load
()
},
...
...
src/residentWX/visit/List.vue
View file @
4f7920c8
...
...
@@ -19,10 +19,10 @@
<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=
'detail-left'
>
随访情况
慢病类型
</div>
<div
class=
'detail-right'
>
{{
item
.
visitSituation
Name
}}
{{
item
.
diseaseType
Name
}}
</div>
</div>
<div
class=
'mt-3 flex items-center'
>
...
...
@@ -35,56 +35,39 @@
</div>
<div
class=
'mt-3 flex items-center'
>
<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
class=
'detail-right'
>
{{
item
.
serveTypeName
}}
{{
item
.
nextVisitDate
||
'-'
}}
</div>
</div>
<div
class=
'mt-3 flex items-center'
>
<div
class=
'detail-left'
>
随访
机构
随访
医生
</div>
<div
class=
'detail-right'
>
{{
item
.
serve
Unit
Name
}}
{{
item
.
serve
Doctor
Name
}}
</div>
</div>
<div
class=
'mt-3 flex items-center'
>
<div
class=
'detail-left'
>
下次随访日期
随访方式
</div>
<div
class=
'detail-right'
>
{{
item
.
nextVisitDate
||
'-'
}}
{{
item
.
serveTypeName
}}
</div>
</div>
<div
class=
'mt-3 flex items-center'
>
<div
class=
'detail-left'
>
数据来源
随访机构
</div>
<div
class=
'detail-right'
>
{{
item
.
s
ourceName
||
'-'
}}
{{
item
.
s
erveUnitName
}}
</div>
</div>
<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>
...
...
@@ -134,6 +117,7 @@ export default {
},
tabList
()
{
const
list
=
[
{
title
:
'全部'
,
name
:
-
1
,
code
:
''
},
{
title
:
'高血压'
,
name
:
1
,
code
:
'1'
},
{
title
:
'糖尿病'
,
name
:
2
,
code
:
'2'
},
{
title
:
'冠心病'
,
name
:
3
,
code
:
'4'
},
...
...
@@ -146,6 +130,7 @@ export default {
}
},
mounted
()
{
debugger
const
list
=
this
.
$refs
.
list
list
.
addEventListener
(
'scroll'
,
()
=>
{
if
(
list
.
scrollTop
>
0
)
{
...
...
src/residentWX/visit/detail/CurrencyFUDetail.vue
0 → 100644
View file @
4f7920c8
<!--通用随访详情-->
<
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
src/router/index.js
View file @
4f7920c8
...
...
@@ -108,13 +108,16 @@ const routes = [
name
:
'resident-screening-secondDetail'
,
component
:
()
=>
import
(
/* webpackChunkName: "residentWX-screening" */
'@/residentWX/screening/detail/SecondDetail.vue'
)
},
},
{
path
:
'visit/list'
,
name
:
'residentWX-visitList'
,
component
:
()
=>
import
(
/* webpackChunkName: "residentWX-screening" */
'@/residentWX/visit/List.vue'
)
name
:
'residentWX-visit-List'
,
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'
,
...
...
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