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
6fe83cdb
Commit
6fe83cdb
authored
Apr 10, 2023
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改医联体
parent
c5fb4936
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
FormItemText.vue
src/components/FormComponents/CustomForm/FormItemText.vue
+19
-2
ConfigForms.vue
src/views/screening/components/ConfigForms.vue
+13
-0
No files found.
src/components/FormComponents/CustomForm/FormItemText.vue
View file @
6fe83cdb
...
...
@@ -25,7 +25,7 @@
{{
screeningAdvise
[
form
[
item
.
prop
]]
}}
</span>
<span
v-else-if=
"item.prop == 'union_id'"
>
{{
unionName
}}
{{
handleUnionName
(
form
[
item
.
prop
])
}}
</span>
<span
v-else
style=
"margin: 0 5px"
>
{{
form
[
item
.
prop
]
|
getItemText
(
item
.
dicData
,
item
.
type
)
...
...
@@ -63,6 +63,22 @@ export default {
},
}
},
computed
:
{
unionLists
()
{
let
arr
if
(
sessionStorage
.
getItem
(
"
unionList
"
))
{
arr
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"
unionList
"
))
}
else
{
arr
=
[]
}
return
arr
},
},
methods
:
{
handleUnionName
(
v
)
{
return
this
.
unionLists
.
filter
((
e
)
=>
e
.
id
==
v
)[
0
].
unionName
},
},
filters
:
{
getItemText
(
val
,
list
,
type
)
{
// 单选改为字符串
...
...
@@ -86,8 +102,9 @@ export default {
},
watch
:
{
unionList
(
v
)
{
console
.
log
(
"
获取到了医联体列表
"
,
this
.
form
[
this
.
item
.
prop
])
if
(
v
.
length
>
0
&&
this
.
form
[
this
.
item
.
prop
])
{
//
console.log("获取到了医联体列表", this.form[this.item.prop])
console
.
log
(
"
获取到了医联体列表
"
,
this
.
form
[
this
.
item
.
prop
])
this
.
unionName
=
v
.
filter
(
(
e
)
=>
e
.
id
==
this
.
form
[
this
.
item
.
prop
]
)[
0
].
unionName
...
...
src/views/screening/components/ConfigForms.vue
View file @
6fe83cdb
...
...
@@ -161,6 +161,7 @@ import mixin from "./mixin"
import
CustomForm
from
"
@/components/FormComponents/CustomForm/index
"
import
publicDialog
from
"
../../audit-detail/components/publicDialog.vue
"
import
{
getPatientDetail
,
getFollowDetail
}
from
"
@/api/patient.js
"
import
{
getMedicalunionList
}
from
"
@/api/medicalunion-management
"
export
default
{
name
:
"
ConfigForms
"
,
...
...
@@ -289,11 +290,23 @@ export default {
created
()
{
// 字典formType 1 筛查表单 2随访表单
// console.log('回显2',this.formEdit)
this
.
getMedicalunionList
()
this
.
getCurrentFormByType
(
this
.
formType
)
console
.
log
(
this
.
$route
.
path
)
this
.
infoCompelete
=
this
.
$route
.
path
==
"
/followupentry
"
?
true
:
false
},
methods
:
{
// 获取医联体列表
getMedicalunionList
()
{
getMedicalunionList
().
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
let
unionList
=
[...
res
.
data
]
sessionStorage
.
setItem
(
"
unionList
"
,
JSON
.
stringify
(
unionList
))
}
else
{
sessionStorage
.
removeItem
(
"
unionList
"
)
}
})
},
handleConfirm
(
data
,
done
,
cb
)
{
console
.
log
(
"
提交
"
,
this
.
formType
)
if
(
this
.
formType
==
"
2
"
)
{
...
...
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