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
19955157
Commit
19955157
authored
Feb 17, 2025
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
医生端 v1.2 1、表单在 物理返回按键下 正常返回上一步
parent
bccac849
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
8 deletions
+37
-8
Index.vue
src/doctor/followUp/generalFU/form/Index.vue
+37
-8
No files found.
src/doctor/followUp/generalFU/form/Index.vue
View file @
19955157
...
@@ -59,6 +59,7 @@ import {
...
@@ -59,6 +59,7 @@ import {
import
GeneralFUForm
from
'@/doctor/followUp/generalFU/form/GeneralFUForm'
import
GeneralFUForm
from
'@/doctor/followUp/generalFU/form/GeneralFUForm'
import
CommonBottom
from
'@/doctor/followUp/generalFU/form/CommonBottom'
import
CommonBottom
from
'@/doctor/followUp/generalFU/form/CommonBottom'
import
{
useStore
}
from
'@/doctor/store'
import
{
useStore
}
from
'@/doctor/store'
const
getModeEnum
=
(
patientInfo
=
{})
=>
{
const
getModeEnum
=
(
patientInfo
=
{})
=>
{
return
{
return
{
mode1
:
[
mode1
:
[
...
@@ -151,6 +152,17 @@ export default {
...
@@ -151,6 +152,17 @@ export default {
return
this
.
$route
.
query
return
this
.
$route
.
query
}
}
},
},
watch
:
{
'routerDetail'
:
{
handler
()
{
if
(
this
.
routerDetail
.
step
)
{
this
.
step
=
this
.
routerDetail
.
step
}
else
{
this
.
step
=
1
}
}
}
},
methods
:
{
methods
:
{
async
init
()
{
async
init
()
{
this
.
info
=
{}
this
.
info
=
{}
...
@@ -166,7 +178,7 @@ export default {
...
@@ -166,7 +178,7 @@ export default {
}
}
}
else
{
}
else
{
const
res
=
await
getChronicResidentsId
(
this
.
routerDetail
.
residentInfoId
)
const
res
=
await
getChronicResidentsId
(
this
.
routerDetail
.
residentInfoId
)
const
weixinInfo
=
await
getResidentWX
({
residentInfoId
:
this
.
routerDetail
.
residentInfoId
})
const
weixinInfo
=
await
getResidentWX
({
residentInfoId
:
this
.
routerDetail
.
residentInfoId
})
const
{
const
{
id
,
id
,
createDate
,
createDate
,
...
@@ -190,13 +202,18 @@ export default {
...
@@ -190,13 +202,18 @@ export default {
},
},
async
toNext
(
val
)
{
async
toNext
(
val
)
{
this
.
$refs
.
all
.
scrollTo
(
0
,
0
)
this
.
$refs
.
all
.
scrollTo
(
0
,
0
)
try
{
if
(
val
==
2
)
{
if
(
val
==
2
)
{
this
.
firstForm
=
await
this
.
$refs
.
baseInfo
.
onSubmit
()
this
.
firstForm
=
await
this
.
$refs
.
baseInfo
.
onSubmit
()
}
}
else
if
(
val
==
3
)
{
if
(
val
==
3
)
{
await
this
.
$refs
.
generalFUForm
.
onSubmit
()
await
this
.
$refs
.
generalFUForm
.
onSubmit
()
}
else
{
//返回上一步
this
.
$router
.
back
()
return
}
}
this
.
step
=
val
this
.
step
=
val
this
.
toRouter
(
this
.
step
)
}
catch
(
e
)
{}
},
},
//图片上传
//图片上传
async
upload
(
imgList
=
[])
{
async
upload
(
imgList
=
[])
{
...
@@ -241,15 +258,27 @@ export default {
...
@@ -241,15 +258,27 @@ export default {
fun
(
params
,
true
).
then
(({
code
})
=>
{
fun
(
params
,
true
).
then
(({
code
})
=>
{
if
(
code
==
'SUCCESS'
)
{
if
(
code
==
'SUCCESS'
)
{
this
.
store
.
onRefreshMark
()
this
.
store
.
onRefreshMark
()
this
.
$router
.
back
()
this
.
$router
.
push
({
path
:
`/doctor/patient-detail`
,
query
:
{
residentInfoId
:
this
.
routerDetail
.
residentInfoId
}
})
}
}
})
})
},
},
toRouter
(
val
)
{
this
.
$router
.
push
({
path
:
'/doctor/followUp/generalFU/add'
,
query
:
{
...
this
.
routerDetail
,
step
:
val
}
})
},
toBack
()
{
toBack
()
{
if
(
this
.
step
!=
1
)
{
// if (this.step != 1) {
this
.
step
--
// this.step--
return
// this.toRouter(this.step)
}
// return
// }
this
.
$router
.
back
()
this
.
$router
.
back
()
}
}
}
}
...
...
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