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
11f35ee5
Commit
11f35ee5
authored
Dec 26, 2024
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
医生端小程序 v1.2 1、专病筛查表单 (预处理)
parent
4c64bd0d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
140 additions
and
5 deletions
+140
-5
archiveCommon.vue
src/doctor/components/archiveCommon/archiveCommon.vue
+1
-1
FormCont.vue
src/doctor/screening/second/FormCont.vue
+21
-0
Result.vue
src/doctor/screening/second/Result.vue
+54
-0
SecondForm.vue
src/doctor/screening/second/SecondForm.vue
+64
-4
No files found.
src/doctor/components/archiveCommon/archiveCommon.vue
View file @
11f35ee5
...
@@ -374,7 +374,7 @@ export default {
...
@@ -374,7 +374,7 @@ export default {
onSubmit
()
{
onSubmit
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
$refs
.
form
.
validate
().
then
(()
=>
{
this
.
$refs
.
form
.
validate
().
then
(()
=>
{
resolve
(
...
this
.
form
)
resolve
(
this
.
form
)
}).
catch
((
e
)
=>
{
}).
catch
((
e
)
=>
{
console
.
warn
(
'ArchiveCommon error'
,
e
)
console
.
warn
(
'ArchiveCommon error'
,
e
)
})
})
...
...
src/doctor/screening/second/FormCont.vue
0 → 100644
View file @
11f35ee5
<
template
>
<div
class=
"screening-first-cont"
>
form
</div>
</
template
>
<
script
>
export
default
{
props
:
{
info
:
Object
},
data
()
{
return
{}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
</
style
>
src/doctor/screening/second/Result.vue
0 → 100644
View file @
11f35ee5
<
template
>
<div
class=
"screening-first-result text-center pt-3 px-3"
>
<doc-icon
type=
"doc-check-circle"
style=
"font-size: .46rem;"
/>
<div
class=
"mt-3"
>
筛查完成
</div>
<div
class=
"text-start mt-5"
>
<span
style=
"color: #595959;"
>
通过筛查,您的慢病高危评估结果为:
</span>
<span
class=
"text-red"
>
高危人群
</span>
</div>
<div
style=
"margin-top: .48rem"
>
<van-button
type=
'primary'
block
round
plain
@
click=
'toScreen'
>
专病高危筛查
</van-button>
<div
class=
"pt-3"
></div>
<van-button
type=
'primary'
block
round
plain
@
click=
'toDetail'
>
查看居民详情
</van-button>
<div
class=
"text-16 pt-5"
style=
"color: #8c8c8c;"
@
click=
"toWorkbench"
>
返回工作台
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
residentInfoId
:
String
},
methods
:
{
toScreen
()
{
this
.
$router
.
replace
({
path
:
'/doctor/screening/secondForm'
,
query
:
{
residentInfoId
:
this
.
residentInfoId
}
})
},
toDetail
()
{
this
.
$router
.
replace
({
path
:
'/doctor/patient-detail'
,
query
:
{
residentInfoId
:
this
.
residentInfoId
}
})
},
toWorkbench
()
{
this
.
$router
.
replace
({
path
:
'/doctor/workbench'
})
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
</
style
>
src/doctor/screening/second/SecondForm.vue
View file @
11f35ee5
<
template
>
<
template
>
<div
class=
"h-full flex flex-col screening-second"
>
<div
class=
"h-full flex flex-col screening-second"
>
<DocNavBar
:title=
"`$
{id ? '修改' : '新增'}专病高危筛查`" class="shrink-0">
</DocNavBar>
<DocNavBar
:title=
"`$
{id ? '修改' : '新增'}专病高危筛查`" class="shrink-0" :backFunc="onBack">
</DocNavBar>
<div>
<div
class=
"p-4 overflow-y-auto grow"
ref=
"all"
>
<archive-common
:info=
'info'
></archive-common>
<archive-common
:info=
'info'
v-show=
'step ==1'
ref=
'baseInfo'
></archive-common>
<form-cont
:info=
'info'
v-show=
'step == 2'
ref=
'formInfo'
></form-cont>
<result
:residentInfoId=
"residentInfoId"
v-show=
'step == 3'
></result>
</div>
<div
class=
'bottom-small-line'
></div>
<div
class=
'pt-2 pb-2'
>
<div
class=
'px-5 grow flex flex-col justify-end'
v-if=
'step == 1'
>
<van-button
type=
'primary'
block
round
@
click=
'toNext(2)'
>
下一步
</van-button>
</div>
<!--
<div
class=
'px-5 flex align-center justify-around'
v-if=
'step == 2'
>
<van-button
type=
'primary'
round
plain
style=
'width: 44%'
@
click=
'toNext(1)'
>
上一步
</van-button>
<van-button
type=
'primary'
round
style=
'width: 44%'
@
click=
'toNext(3)'
>
下一步
</van-button>
</div>
-->
<div
class=
'px-5 grow flex flex-col justify-end'
v-if=
'step == 2'
>
<van-button
type=
'primary'
block
round
@
click=
'onsubmit'
>
提交
</van-button>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -11,14 +44,19 @@
...
@@ -11,14 +44,19 @@
import
DocNavBar
from
'@/doctor/components/docNavBar/DocNavBar.vue'
import
DocNavBar
from
'@/doctor/components/docNavBar/DocNavBar.vue'
import
ArchiveCommon
from
'@/doctor/components/archiveCommon/archiveCommon'
import
ArchiveCommon
from
'@/doctor/components/archiveCommon/archiveCommon'
import
{
fetchCurrencyById
,
getChronicResidentsId
,
getResidentWX
}
from
'@/api/doctor/generalFU'
import
{
fetchCurrencyById
,
getChronicResidentsId
,
getResidentWX
}
from
'@/api/doctor/generalFU'
import
FormCont
from
'@/doctor/screening/second/FormCont'
import
Result
from
'@/doctor/screening/second/Result'
export
default
{
export
default
{
components
:
{
components
:
{
Result
,
FormCont
,
ArchiveCommon
,
ArchiveCommon
,
DocNavBar
DocNavBar
},
},
data
()
{
data
()
{
return
{
return
{
step
:
1
,
info
:
{}
info
:
{}
}
}
},
},
...
@@ -47,7 +85,7 @@ export default {
...
@@ -47,7 +85,7 @@ export default {
...
result
...
result
}
}
}
else
{
}
else
{
const
res
=
await
getChronicResidentsId
(
this
.
r
outerDetail
.
r
esidentInfoId
)
const
res
=
await
getChronicResidentsId
(
this
.
residentInfoId
)
const
{
const
{
id
,
id
,
createDate
,
createDate
,
...
@@ -66,6 +104,28 @@ export default {
...
@@ -66,6 +104,28 @@ export default {
}
}
}
}
},
},
async
toNext
(
val
)
{
this
.
$refs
.
all
.
scrollTo
(
0
,
0
)
if
(
val
==
2
)
{
this
.
firstForm
=
await
this
.
$refs
.
baseInfo
.
onSubmit
()
}
// if (val == 3) {
// await this.$refs.formInfo.onSubmit()
// }
this
.
step
=
val
},
//提交所有表单
onsubmit
()
{
},
onBack
()
{
if
(
this
.
step
==
1
)
{
this
.
$router
.
back
()
}
else
{
this
.
step
--
}
}
}
}
}
}
</
script
>
</
script
>
...
...
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