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
038c39b7
Commit
038c39b7
authored
Sep 18, 2024
by
songrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
筛查提交接口修改
parent
482f662c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
10 deletions
+15
-10
index.html
public/index.html
+1
-1
Detail.vue
src/resident/screening/first/detail/Detail.vue
+3
-1
Index.vue
src/resident/screening/first/form/Index.vue
+7
-6
ScreenInfo.vue
src/resident/screening/first/form/ScreenInfo.vue
+4
-2
No files found.
public/index.html
View file @
038c39b7
...
@@ -79,6 +79,6 @@
...
@@ -79,6 +79,6 @@
</body>
</body>
<script>
<script>
var
vConsole
=
new
VConsole
();
var
vConsole
=
new
VConsole
();
console
.
log
(
'Hello world'
);
console
.
log
(
'Hello world'
);
</script>
</script>
</html>
</html>
src/resident/screening/first/detail/Detail.vue
View file @
038c39b7
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
<div
v-for=
"item in columnsBase"
:key=
"item.key"
<div
v-for=
"item in columnsBase"
:key=
"item.key"
class=
"flex justify-between py-4 border-bottom item"
>
class=
"flex justify-between py-4 border-bottom item"
>
<span
class=
"shrink-0 mr-2 label"
>
{{
item
.
title
}}
</span>
<span
class=
"shrink-0 mr-2 label"
>
{{
item
.
title
}}
</span>
<span
class=
"text-end"
>
{{
residentInfo
[
item
.
key
]
||
'-'
}}
</span>
<span
v-if=
"item.key === 'idCard'"
>
{{
$idCardHide
(
residentInfo
.
idCard
)
||
'-'
}}
</span>
<span
class=
"text-end"
v-else
>
{{
residentInfo
[
item
.
key
]
||
'-'
}}
</span>
</div>
</div>
</div>
</div>
...
@@ -82,6 +83,7 @@ export default {
...
@@ -82,6 +83,7 @@ export default {
info
:
{},
info
:
{},
columnsBase
:
[
columnsBase
:
[
{
title
:
'姓名'
,
key
:
'residentName'
},
{
title
:
'姓名'
,
key
:
'residentName'
},
{
title
:
'证件号码'
,
key
:
'idCard'
},
{
title
:
'性别'
,
key
:
'genderName'
},
{
title
:
'性别'
,
key
:
'genderName'
},
{
title
:
'出生日期'
,
key
:
'dataBirth'
},
{
title
:
'出生日期'
,
key
:
'dataBirth'
},
{
title
:
'年龄'
,
key
:
'currentAge'
},
{
title
:
'年龄'
,
key
:
'currentAge'
},
...
...
src/resident/screening/first/form/Index.vue
View file @
038c39b7
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
computed
}
from
'vue'
import
{
showNotify
}
from
'vant'
import
{
showNotify
}
from
'vant'
import
{
backHome
}
from
'@/utils/common.js'
import
{
backHome
}
from
'@/utils/common.js'
import
IdCheck
from
'./IdCheck.vue'
import
IdCheck
from
'./IdCheck.vue'
...
@@ -55,8 +56,8 @@ export default {
...
@@ -55,8 +56,8 @@ export default {
},
},
provide
()
{
provide
()
{
return
{
return
{
checkInfo
:
this
.
checkInfo
,
checkInfo
:
computed
(()
=>
this
.
checkInfo
)
,
recordForm
:
this
.
recordForm
recordForm
:
computed
(()
=>
this
.
recordForm
)
}
}
},
},
computed
:
{
computed
:
{
...
@@ -76,10 +77,6 @@ export default {
...
@@ -76,10 +77,6 @@ export default {
},
},
methods
:
{
methods
:
{
onNext
(
step
)
{
onNext
(
step
)
{
if
(
this
.
step
===
1
)
{
this
.
recordForm
=
{}
this
.
checkInfo
=
{}
}
this
.
step
=
step
?
step
:
this
.
step
+
1
this
.
step
=
step
?
step
:
this
.
step
+
1
this
.
setpHistory
.
push
(
this
.
step
)
this
.
setpHistory
.
push
(
this
.
step
)
const
dom
=
this
.
$refs
.
top
const
dom
=
this
.
$refs
.
top
...
@@ -90,6 +87,10 @@ export default {
...
@@ -90,6 +87,10 @@ export default {
if
(
this
.
step
===
1
)
return
if
(
this
.
step
===
1
)
return
this
.
setpHistory
.
pop
()
this
.
setpHistory
.
pop
()
this
.
step
=
this
.
setpHistory
[
this
.
setpHistory
.
length
-
1
]
this
.
step
=
this
.
setpHistory
[
this
.
setpHistory
.
length
-
1
]
if
(
this
.
step
===
1
)
{
this
.
recordForm
=
{}
this
.
checkInfo
=
{}
}
},
},
onClose
()
{
onClose
()
{
backHome
()
backHome
()
...
...
src/resident/screening/first/form/ScreenInfo.vue
View file @
038c39b7
...
@@ -468,8 +468,10 @@ export default {
...
@@ -468,8 +468,10 @@ export default {
const
query
=
{
const
query
=
{
...
this
.
form
,
...
this
.
form
,
screenDoctorId
:
this
.
recordForm
.
doctorId
,
screenDoctorId
:
this
.
recordForm
.
doctorId
,
residentsRecord
:
this
.
recordForm
.
base
,
residentsRecord
:
{
idCard
:
this
.
checkInfo
.
idCard
...
this
.
recordForm
.
base
,
idCard
:
this
.
checkInfo
.
idCard
}
}
}
// 提交表单
// 提交表单
savefirstScreen
(
fetchDataHandle
(
query
,
{
savefirstScreen
(
fetchDataHandle
(
query
,
{
...
...
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