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
cf7c775d
Commit
cf7c775d
authored
8 months ago
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
慢综 医生端 随访表单接口对接, 详情接口对接,修改基本信息接口对接
parent
ea51ea50
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
62 additions
and
20 deletions
+62
-20
resident.js
src/api/doctor/resident.js
+6
-0
Detail.vue
src/doctor/followUp/generalFU/detail/Detail.vue
+0
-0
BaseInfo.vue
src/doctor/followUp/generalFU/form/BaseInfo.vue
+0
-0
Index.vue
src/doctor/followUp/generalFU/form/Index.vue
+18
-13
Base.vue
src/doctor/resident/Base.vue
+4
-1
Visit.vue
src/doctor/resident/Visit.vue
+27
-5
BaseInfo.vue
src/doctor/resident/form/BaseInfo.vue
+0
-0
index.js
src/router/index.js
+7
-1
No files found.
src/api/doctor/resident.js
View file @
cf7c775d
...
@@ -8,3 +8,8 @@ export function queryResidentInfo(params) {
...
@@ -8,3 +8,8 @@ export function queryResidentInfo(params) {
export
function
queryVisitByPage
(
params
,
loading
)
{
export
function
queryVisitByPage
(
params
,
loading
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-record/page`
,
body
:
params
,
loading
})
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-visit-record/page`
,
body
:
params
,
loading
})
}
}
//更新居民基本信息
export
function
updateResident
(
params
)
{
return
fetchBase
({
url
:
`/chronic-admin/v1/chronic-residents-record/update`
,
body
:
params
,
loading
:
true
})
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/doctor/followUp/generalFU/detail/Detail.vue
View file @
cf7c775d
This diff is collapsed.
Click to expand it.
src/doctor/followUp/generalFU/form/BaseInfo.vue
View file @
cf7c775d
This diff is collapsed.
Click to expand it.
src/doctor/followUp/generalFU/form/Index.vue
View file @
cf7c775d
<
template
>
<
template
>
<div>
<div>
<van-nav-bar
title=
'新增通用随访'
left-text=
''
left-arrow
@
click-left=
'toBack'
></van-nav-bar>
<van-nav-bar
:title=
"routerDetail.id ? '修改通用随访': '新增通用随访'"
left-text=
''
left-arrow
@
click-left=
'toBack'
></van-nav-bar>
<div
class=
'p-4 h-overflow'
>
<div
class=
'p-4 h-overflow'
>
<base-info
:info=
'info'
v-show=
'step == 1'
ref=
'baseInfo'
<base-info
:info=
'info'
v-show=
'step == 1'
ref=
'baseInfo'
@
changeVisitSituation=
'changeVisitSituation'
></base-info>
@
changeVisitSituation=
'changeVisitSituation'
></base-info>
...
@@ -10,10 +10,10 @@
...
@@ -10,10 +10,10 @@
</div>
</div>
<div
class=
'pt-2 pb-2'
>
<div
class=
'pt-2 pb-2'
>
<div
class=
'px-5 grow flex flex-col justify-end'
v-if=
'step == 1'
>
<div
class=
'px-5 grow flex flex-col justify-end'
v-if=
'step == 1'
>
<van-button
type=
'primary'
block
round
v-if=
'visitSituation ==1'
<van-button
type=
'primary'
block
round
v-if=
'visitSituation ==
1'
@
click=
'toNext(2)'
>
下一步
@
click=
'toNext(2)'
>
下一步
</van-button>
</van-button>
<van-button
type=
'primary'
block
round
v-if=
'visitSituation ==2'
<van-button
type=
'primary'
block
round
v-if=
'visitSituation ==
2'
@
click=
'toNext(3)'
>
下一步
@
click=
'toNext(3)'
>
下一步
</van-button>
</van-button>
</div>
</div>
...
@@ -72,6 +72,17 @@ export default {
...
@@ -72,6 +72,17 @@ export default {
methods
:
{
methods
:
{
async
init
()
{
async
init
()
{
this
.
info
=
{}
this
.
info
=
{}
if
(
this
.
routerDetail
.
id
)
{
const
res
=
await
fetchCurrencyById
({
id
:
this
.
routerDetail
.
id
})
let
result
=
res
.
data
||
{}
const
{
residentsRecord
=
{}}
=
result
const
{
id
,
...
others
}
=
residentsRecord
this
.
info
=
{
...
others
,
personId
:
id
,
...
result
}
}
else
{
const
res
=
await
getChronicResidentsId
(
this
.
routerDetail
.
residentInfoId
)
const
res
=
await
getChronicResidentsId
(
this
.
routerDetail
.
residentInfoId
)
const
{
const
{
id
,
id
,
...
@@ -90,13 +101,8 @@ export default {
...
@@ -90,13 +101,8 @@ export default {
...
others
...
others
}
}
this
.
info
.
diseaseType
=
this
.
routerDetail
.
diseaseType
this
.
info
.
diseaseType
=
this
.
routerDetail
.
diseaseType
if
(
this
.
routerDetail
.
id
)
{
const
res
=
await
fetchCurrencyById
({
id
:
this
.
routerDetail
.
id
})
let
result
=
res
.
data
||
{}
this
.
info
=
{
...
result
}
}
}
},
},
async
toNext
(
val
)
{
async
toNext
(
val
)
{
if
(
val
==
2
)
{
if
(
val
==
2
)
{
...
@@ -127,7 +133,6 @@ export default {
...
@@ -127,7 +133,6 @@ export default {
return
list
.
join
()
return
list
.
join
()
},
},
async
onsubmit
()
{
async
onsubmit
()
{
debugger
let
baseInfo
=
await
this
.
$refs
.
baseInfo
.
onSubmit
()
let
baseInfo
=
await
this
.
$refs
.
baseInfo
.
onSubmit
()
let
generalFUForm
=
await
this
.
$refs
.
generalFUForm
.
onSubmit
()
let
generalFUForm
=
await
this
.
$refs
.
generalFUForm
.
onSubmit
()
let
commonBottom
=
await
this
.
$refs
.
commonBottom
.
onSubmit
()
let
commonBottom
=
await
this
.
$refs
.
commonBottom
.
onSubmit
()
...
@@ -146,7 +151,7 @@ export default {
...
@@ -146,7 +151,7 @@ export default {
...
generalFUForm
,
...
generalFUForm
,
...
commonBottom
,
...
commonBottom
,
uploadVisitRecord
,
uploadVisitRecord
,
sceneVisitImage
sceneVisitImage
,
}
}
if
(
this
.
info
.
id
)
{
if
(
this
.
info
.
id
)
{
params
.
visitRecordId
=
this
.
info
.
visitRecordId
params
.
visitRecordId
=
this
.
info
.
visitRecordId
...
@@ -165,15 +170,15 @@ export default {
...
@@ -165,15 +170,15 @@ export default {
if
(
this
.
visitSituation
==
1
)
{
if
(
this
.
visitSituation
==
1
)
{
if
(
this
.
step
!=
1
)
{
if
(
this
.
step
!=
1
)
{
this
.
step
--
this
.
step
--
}
return
return
}
}
}
if
(
this
.
visitSituation
==
2
)
{
if
(
this
.
visitSituation
==
2
)
{
if
(
this
.
step
!=
1
)
{
if
(
this
.
step
!=
1
)
{
this
.
step
=
1
this
.
step
=
1
}
return
return
}
}
}
this
.
$router
.
back
()
this
.
$router
.
back
()
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/doctor/resident/Base.vue
View file @
cf7c775d
...
@@ -84,7 +84,10 @@ export default {
...
@@ -84,7 +84,10 @@ export default {
},
},
methods
:
{
methods
:
{
toEdit
()
{
toEdit
()
{
let
par
=
{
residentInfoId
:
this
.
info
.
residentInfoId
}
this
.
$router
.
push
({
path
:
`/doctor/resident/base/update`
,
query
:
par
})
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/doctor/resident/Visit.vue
View file @
cf7c775d
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
finished-text=
"没有更多了"
finished-text=
"没有更多了"
@
load=
"onMore"
@
load=
"onMore"
>
>
<div
v-for=
'item in list'
:key=
"item.id"
class=
"p-4 mt-3 card"
>
<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'
>
随访日期
随访日期
...
@@ -59,8 +59,8 @@
...
@@ -59,8 +59,8 @@
<div
class=
"flex justify-end"
>
<div
class=
"flex justify-end"
>
<van-button
round
type=
"primary"
class=
"card-bt"
style=
"margin-right: .12rem"
<van-button
round
type=
"primary"
class=
"card-bt"
style=
"margin-right: .12rem"
@
click=
"editBtn(item)"
>
修改
</van-button>
@
click
.
stop
=
"editBtn(item)"
>
修改
</van-button>
<van-button
round
type=
"primary"
class=
"card-bt"
@
click=
"delBtn(item)"
>
删除
</van-button>
<van-button
round
type=
"primary"
class=
"card-bt"
@
click
.
stop
=
"delBtn(item)"
>
删除
</van-button>
</div>
</div>
<span
class=
"px-3 float-bt"
>
<span
class=
"px-3 float-bt"
>
...
@@ -164,10 +164,32 @@ export default {
...
@@ -164,10 +164,32 @@ export default {
this
.
load
()
this
.
load
()
},
},
addBtn
()
{
addBtn
()
{
let
par
=
{
residentInfoId
:
this
.
baseInfo
.
residentInfoId
}
this
.
$router
.
push
({
path
:
`/doctor/followUp/generalFU/add`
,
query
:
par
})
},
toDetail
(
item
)
{
let
par
=
{
relationId
:
item
.
relationId
}
this
.
$router
.
push
({
path
:
`/doctor/followUp/generalFU/detail`
,
query
:
par
})
},
},
editBtn
(
item
)
{
editBtn
(
item
)
{
let
par
=
{
id
:
item
.
relationId
,
residentInfoId
:
this
.
baseInfo
.
residentInfoId
}
this
.
$router
.
push
({
path
:
`/doctor/followUp/generalFU/add`
,
query
:
par
})
},
},
delBtn
(
item
)
{
delBtn
(
item
)
{
showConfirmDialog
({
showConfirmDialog
({
...
...
This diff is collapsed.
Click to expand it.
src/doctor/resident/form/BaseInfo.vue
0 → 100644
View file @
cf7c775d
This diff is collapsed.
Click to expand it.
src/router/index.js
View file @
cf7c775d
...
@@ -67,7 +67,13 @@ const routes = [
...
@@ -67,7 +67,13 @@ const routes = [
component
:
()
=>
import
(
/* webpackChunkName: "page-doctor" */
'@/doctor/resident/Visit.vue'
)
component
:
()
=>
import
(
/* webpackChunkName: "page-doctor" */
'@/doctor/resident/Visit.vue'
)
},
},
]
]
}
},
//修改基本信息
{
path
:
'resident/base/update'
,
name
:
'doctor-resident-base-update'
,
component
:
()
=>
import
(
/* webpackChunkName: "page-doctor" */
'@/doctor/resident/form/BaseInfo.vue'
)
},
]
]
}
}
]
]
...
...
This diff is collapsed.
Click to expand it.
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