Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
agcs2.0-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
liang
agcs2.0-web
Commits
c55d38fb
Commit
c55d38fb
authored
May 30, 2023
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
年龄回显问题
parent
e17b52c3
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
69 additions
and
0 deletions
+69
-0
FormItemSelf.vue
src/components/FormComponents/CustomForm/FormItemSelf.vue
+1
-0
FormItemText.vue
src/components/FormComponents/CustomForm/FormItemText.vue
+16
-0
index.vue
src/views/audit-detail/index.vue
+1
-0
DialogConfigForms.vue
src/views/followupentry/components/DialogConfigForms.vue
+12
-0
DraftBox.vue
src/views/screening/DraftBox.vue
+12
-0
ConfigForms.vue
src/views/screening/components/ConfigForms.vue
+2
-0
FormTab.vue
src/views/screening/components/FormTab.vue
+13
-0
index.vue
src/views/screening/index.vue
+12
-0
No files found.
src/components/FormComponents/CustomForm/FormItemSelf.vue
View file @
c55d38fb
...
...
@@ -725,6 +725,7 @@ export default {
}
else
{
this
.
age
=
""
}
this
.
form
.
age
=
this
.
age
},
// 获取prop prop 以{}包裹
getProp
(
value
)
{
...
...
src/components/FormComponents/CustomForm/FormItemText.vue
View file @
c55d38fb
...
...
@@ -27,6 +27,9 @@
<span
v-else-if=
"item.prop == 'union_id'"
>
{{
handleUnionName
(
form
[
item
.
prop
])
}}
</span>
<span
v-else-if=
"item.prop == 'age'"
>
{{
handleAge
()
}}
</span>
<span
v-else
style=
"margin: 0 5px"
>
{{
form
[
item
.
prop
]
|
getItemText
(
item
.
dicData
,
item
.
type
)
}}
</span>
...
...
@@ -79,6 +82,19 @@ export default {
const
union
=
this
.
unionList
.
find
((
e
)
=>
e
.
id
==
v
)
||
{}
return
union
.
unionName
||
""
},
handleAge
()
{
var
birthday
=
new
Date
(
this
.
form
.
birthday
.
replace
(
/-/g
,
"
/
"
))
var
d
=
new
Date
()
var
age
=
d
.
getFullYear
()
-
birthday
.
getFullYear
()
-
(
d
.
getMonth
()
<
birthday
.
getMonth
()
||
(
d
.
getMonth
()
==
birthday
.
getMonth
()
&&
d
.
getDate
()
<
birthday
.
getDate
())
?
1
:
0
)
return
age
},
},
filters
:
{
getItemText
(
val
,
list
,
type
)
{
...
...
src/views/audit-detail/index.vue
View file @
c55d38fb
...
...
@@ -328,6 +328,7 @@ export default {
this
.
$refs
[
"
screen
"
].
getPatientDetail
()
},
handleEdit
()
{
sessionStorage
.
removeItem
(
"
index1Data
"
)
this
.
$refs
.
follow
.
open
()
},
// 获取标签
...
...
src/views/followupentry/components/DialogConfigForms.vue
View file @
c55d38fb
...
...
@@ -21,6 +21,7 @@
:isDraft=
"isDraft"
:operation=
"operation"
@
changeShow=
"changeShow"
@
addMethods=
"addMethods"
></ConfigForms>
</div>
</el-dialog>
...
...
@@ -74,6 +75,17 @@ export default {
}
},
methods
:
{
// 处理部分逻辑
addMethods
(
v
)
{
console
.
log
(
v
)
if
(
v
.
activeName
==
"
index0
"
)
{
let
data
=
{
birthday
:
v
.
form
.
birthday
,
sex
:
v
.
form
.
sex
,
}
sessionStorage
.
setItem
(
"
index1Data
"
,
JSON
.
stringify
(
data
))
}
},
open
()
{
this
.
visible
=
true
},
...
...
src/views/screening/DraftBox.vue
View file @
c55d38fb
...
...
@@ -29,6 +29,7 @@
:patient-id=
"patientId"
:disabled=
"disabled"
:operation=
"'edit'"
@
addMethods=
"addMethods"
></ConfigForms>
</div>
</div>
...
...
@@ -194,6 +195,17 @@ export default {
watch
:
{},
mounted
()
{},
methods
:
{
// 处理部分逻辑
addMethods
(
v
)
{
console
.
log
(
v
)
if
(
v
.
activeName
==
"
index0
"
)
{
let
data
=
{
birthday
:
v
.
form
.
birthday
,
sex
:
v
.
form
.
sex
,
}
sessionStorage
.
setItem
(
"
index1Data
"
,
JSON
.
stringify
(
data
))
}
},
handleAdd
({
patientId
,
name
},
index
,
disabled
=
false
)
{
sessionStorage
.
removeItem
(
"
index1Data
"
)
this
.
disabled
=
disabled
...
...
src/views/screening/components/ConfigForms.vue
View file @
c55d38fb
...
...
@@ -209,6 +209,8 @@ export default {
getTabFollowId
()
{
if
(
this
.
tabFollowId
)
{
return
this
.
tabFollowId
()
}
else
{
return
""
}
},
survivalFlag
()
{
...
...
src/views/screening/components/FormTab.vue
View file @
c55d38fb
...
...
@@ -434,6 +434,19 @@ export default {
form
[
"
YZZKJC
"
]
=
JSON
.
parse
(
form
[
"
YZZKJC
"
])
}
console
.
log
(
"
form形成
"
,
form
,
this
.
formData
)
if
(
form
.
birthday
)
{
let
birthday
=
new
Date
(
form
.
birthday
.
replace
(
/-/g
,
"
/
"
))
let
date
=
new
Date
()
let
age
=
date
.
getFullYear
()
-
birthday
.
getFullYear
()
-
(
date
.
getMonth
()
<
birthday
.
getMonth
()
||
(
date
.
getMonth
()
==
birthday
.
getMonth
()
&&
date
.
getDate
()
<
birthday
.
getDate
())
?
1
:
0
)
form
.
age
=
age
}
if
(
!
cache
)
{
this
.
formData
.
formEdit
=
form
}
...
...
src/views/screening/index.vue
View file @
c55d38fb
...
...
@@ -36,6 +36,7 @@
:tab-disabled=
"tabDisabled"
:is-draft=
"'0'"
:operation=
"'edit'"
@
addMethods=
"addMethods"
></ConfigForms>
</div>
</div>
...
...
@@ -290,6 +291,17 @@ export default {
}
},
methods
:
{
// 处理部分逻辑
addMethods
(
v
)
{
console
.
log
(
v
)
if
(
v
.
activeName
==
"
index0
"
)
{
let
data
=
{
birthday
:
v
.
form
.
birthday
,
sex
:
v
.
form
.
sex
,
}
sessionStorage
.
setItem
(
"
index1Data
"
,
JSON
.
stringify
(
data
))
}
},
backInfoce
()
{
this
.
$router
.
push
({
query
:
{}
})
this
.
isDetail
=
false
...
...
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