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
eb6af79b
Commit
eb6af79b
authored
Feb 17, 2025
by
songrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
医生端 表单校验修改
parent
3735a1aa
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
DiagnoseForm.vue
src/doctor/diagnose/form/DiagnoseForm.vue
+9
-0
FormCont.vue
src/doctor/diagnose/form/FormCont.vue
+1
-1
FirstForm.vue
src/doctor/screening/first/FirstForm.vue
+0
-1
No files found.
src/doctor/diagnose/form/DiagnoseForm.vue
View file @
eb6af79b
...
@@ -81,6 +81,14 @@ export default {
...
@@ -81,6 +81,14 @@ export default {
return
excludeType
&&
excludeType
.
split
(
','
).
map
(
e
=>
Number
(
e
))
return
excludeType
&&
excludeType
.
split
(
','
).
map
(
e
=>
Number
(
e
))
}
}
},
},
// 路由守卫
beforeRouteLeave
(
to
,
from
)
{
if
([
2
,
3
].
includes
(
this
.
step
))
{
this
.
onBack
()
return
false
}
return
true
},
created
()
{
created
()
{
this
.
init
()
this
.
init
()
},
},
...
@@ -128,6 +136,7 @@ export default {
...
@@ -128,6 +136,7 @@ export default {
this
.
store
.
onRefreshMark
()
this
.
store
.
onRefreshMark
()
showSuccessToast
(
'提交成功'
)
showSuccessToast
(
'提交成功'
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
step
++
this
.
$router
.
replace
({
this
.
$router
.
replace
({
path
:
'/doctor/workbench'
path
:
'/doctor/workbench'
})
})
...
...
src/doctor/diagnose/form/FormCont.vue
View file @
eb6af79b
...
@@ -368,7 +368,7 @@ export default {
...
@@ -368,7 +368,7 @@ export default {
},
},
async
submit
()
{
async
submit
()
{
try
{
try
{
this
.
$refs
.
form
.
validate
()
await
this
.
$refs
.
form
.
validate
()
if
(
this
.
form
.
diseaseType
===
4
)
{
if
(
this
.
form
.
diseaseType
===
4
)
{
const
diagnoseResult
=
this
.
form
.
diagnoseResult
||
[]
const
diagnoseResult
=
this
.
form
.
diagnoseResult
||
[]
if
(
!
diagnoseResult
.
length
&&
!
this
.
form
.
diagnoseLevel
)
{
if
(
!
diagnoseResult
.
length
&&
!
this
.
form
.
diagnoseLevel
)
{
...
...
src/doctor/screening/first/FirstForm.vue
View file @
eb6af79b
...
@@ -32,7 +32,6 @@ import { getChronicResidentsId } from '@/api/doctor/generalFU'
...
@@ -32,7 +32,6 @@ import { getChronicResidentsId } from '@/api/doctor/generalFU'
import
{
firstScreenDetail
,
saveFirstScreening
,
updateFirstScreening
}
from
'@/api/doctor/screening.js'
import
{
firstScreenDetail
,
saveFirstScreening
,
updateFirstScreening
}
from
'@/api/doctor/screening.js'
import
{
fetchDataHandle
}
from
'@/utils/common.js'
import
{
fetchDataHandle
}
from
'@/utils/common.js'
import
{
useStore
}
from
'@/doctor/store'
import
{
useStore
}
from
'@/doctor/store'
import
{
showConfirmDialog
}
from
'vant'
export
default
{
export
default
{
components
:
{
components
:
{
...
...
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