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
e734b407
Commit
e734b407
authored
Dec 06, 2022
by
刘予佳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
只读表单,存活部分
parent
24bb0b28
Changes
12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
2086 additions
and
36 deletions
+2086
-36
FormContent.vue
src/components/FormComponents/CustomForm/FormContent.vue
+0
-5
FormItemSelf.vue
src/components/FormComponents/CustomForm/FormItemSelf.vue
+4
-13
FormContent2.vue
src/components/FormComponents/ReadForm/FormContent2.vue
+172
-0
FormItemSelf2.vue
src/components/FormComponents/ReadForm/FormItemSelf2.vue
+794
-0
index.vue
src/components/FormComponents/ReadForm/index.vue
+399
-0
index.js
src/router/index.js
+12
-0
hospital.vue
src/views/audit-qualitycontrol/hospital.vue
+1
-1
followaduit.vue
src/views/followupentry/followaduit.vue
+237
-0
index.vue
src/views/followupentry/index.vue
+217
-2
ConfigForms.vue
src/views/screening/components/ConfigForms.vue
+30
-7
FormTab.vue
src/views/screening/components/FormTab.vue
+219
-8
mixin.js
src/views/screening/components/mixin.js
+1
-0
No files found.
src/components/FormComponents/CustomForm/FormContent.vue
View file @
e734b407
...
@@ -191,11 +191,6 @@ export default {
...
@@ -191,11 +191,6 @@ export default {
}
}
},
},
},
},
watch
:
{
showIndex
(
val
){
console
.
log
(
"
组件内部
"
,
val
)
}
},
}
}
</
script
>
</
script
>
...
...
src/components/FormComponents/CustomForm/FormItemSelf.vue
View file @
e734b407
...
@@ -6,7 +6,10 @@
...
@@ -6,7 +6,10 @@
:class=
"
{ isDefects: defectsSet.includes(item.prop) }"
:class=
"
{ isDefects: defectsSet.includes(item.prop) }"
>
>
<el-col
:lg=
"item.width"
>
<el-col
:lg=
"item.width"
>
<div
v-if=
"showIndex || configForms.showIndex"
class=
"formIndex"
>
{{
columnIndex
+
1
}}
</div>
<div
v-if=
"showIndex || configForms && configForms.showIndex"
class=
"formIndex"
>
{{
columnIndex
+
1
}}
</div>
<el-form-item
<el-form-item
:label=
"
:label=
"
!hiddenLabel && item.label
!hiddenLabel && item.label
...
@@ -27,10 +30,6 @@
...
@@ -27,10 +30,6 @@
:upload-query=
"
{ formId, patientId, prefix: item.prop }"
:upload-query=
"
{ formId, patientId, prefix: item.prop }"
:disabled="item.disabled"
:disabled="item.disabled"
>
</el-upload-self>
>
</el-upload-self>
<!-- 只显示 -->
<!--
<template>
</
template
>
-->
<!-- 表单改文本 -->
<!-- 表单改文本 -->
<template
v-else-if=
"vwForm.detail"
>
<template
v-else-if=
"vwForm.detail"
>
<form-item-text
:item=
"item"
:form=
"form"
></form-item-text>
<form-item-text
:item=
"item"
:form=
"form"
></form-item-text>
...
@@ -347,9 +346,6 @@
...
@@ -347,9 +346,6 @@
align=
"right"
align=
"right"
@
change=
"handleChange"
@
change=
"handleChange"
></el-date-picker>
></el-date-picker>
<!-- 文本显示 -->
<span>
{{form[item.prop]}}
</span>
</template>
</template>
</div>
</div>
<span
<span
...
@@ -454,11 +450,6 @@ export default {
...
@@ -454,11 +450,6 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
showFormItem
()
this
.
showFormItem
()
console
.
log
(
"
组件内部2
"
,
this
.
configForms
.
showIndex
)
// this.configForms.showIndex=this.showIndex
this
.
$nextTick
(()
=>
{
console
.
log
(
"
组件内部3
"
,
this
.
configForms
.
showIndex
)
})
},
},
methods
:
{
methods
:
{
scrollToView
()
{
scrollToView
()
{
...
...
src/components/FormComponents/ReadForm/FormContent2.vue
0 → 100644
View file @
e734b407
<
template
>
<!-- 删除display isShowIm item.importantField item.style-->
<el-row
:gutter=
"options.gutter"
class=
"form-content"
>
<template
v-for=
"(item, columnIndex) in columns.column || columns.children.column"
>
<el-col
v-if=
"item.type === 'title'"
:key=
"columnIndex"
class=
"row12"
:xs=
"item.xs || 24"
:sm=
"item.sm || 24"
:md=
"item.md || 24"
:lg=
"item.span || 12"
>
<div
class=
"form_title"
>
<span>
{{
item
.
value
}}
</span>
</div>
</el-col>
<el-col
v-else
:key=
"columnIndex"
class=
"row24"
:xs=
"item.xs || 24"
:sm=
"item.sm || 24"
:md=
"item.md || 24"
:lg=
"item.lg || item.span || 12"
:xl=
"item.span || 12"
>
<form-item-self
:form=
"form"
:column-index=
"columnIndex"
:item=
"item"
:columns=
"columns.column || columns.children.column"
:group=
"options.group"
@
formChange=
"formChange"
></form-item-self>
</el-col>
</
template
>
</el-row>
</template>
<
script
>
/**
* @description 自定义表单
*/
import
FormItemSelf
from
"
./FormItemSelf2.vue
"
export
default
{
name
:
"
FormContent
"
,
components
:
{
FormItemSelf
},
props
:
{
form
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
},
},
options
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
},
},
//配置 数据
columns
:
Object
,
//表单数据
size
:
{
type
:
String
,
default
:
"
small
"
},
formStyle
:
Object
,
formEdit
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
},
},
isShowImportant
:
{
type
:
Boolean
,
default
:
false
,
},
},
data
()
{
return
{}
},
computed
:
{
isShowIm
()
{
return
function
(
val
)
{
return
!
this
.
isShowImportant
?
true
:
val
}
},
paddingLeft
()
{
const
columns
=
this
.
columns
return
columns
.
labelWidth
?
`
${
columns
.
labelWidth
}
px`
:
""
},
},
methods
:
{
handleChange
(
key
,
val
)
{
if
(
this
.
form
.
hasOwnProperty
(
key
))
this
.
form
[
key
]
=
val
},
// 切换不符合筛查条件的显示
formChange
()
{
console
.
log
(
this
.
form
)
let
arr
=
[
"
is_one_year
"
,
"
is_subtotal_history
"
,
"
is_ppi
"
,
"
is_symptom
"
,
"
is_subtotal_history
"
,
"
is_disease
"
,
"
is_tumour
"
,
]
let
flag
=
0
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
this
.
form
[
arr
[
i
]]
&&
this
.
form
[
arr
[
i
]]
==
0
)
{
flag
++
}
}
if
(
flag
==
0
)
{
this
.
$emit
(
"
showError
"
,
false
)
}
else
{
this
.
$emit
(
"
showError
"
,
true
)
}
},
},
watch
:
{
},
mounted
(){
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
::v-deep
{
.row24.el-col-lg-12
{
&
:nth-child
(
2n
)
{
border-left
:
1px
solid
#ccc
;
}
}
}
.
form-content
:
:
v-deep
{
display
:
flex
;
flex-wrap
:
wrap
;
.el-form-item
{
display
:
flex
;
align-items
:
center
;
.el-form-item__label
{
line-height
:
1
.2
;
}
.el-form-item__content
{
margin-left
:
0
!
important
;
flex
:
1
;
display
:
flex
;
align-items
:
center
;
}
}
}
.form_title
{
background-color
:
#fff
;
padding
:
10px
0px
;
margin
:
3px
;
span
{
height
:
33px
;
line-height
:
33px
;
}
}
.dynamic-form-container
{
&
_lable
{
font-weight
:
bold
;
font-size
:
16px
;
line-height
:
40px
;
}
}
</
style
>
src/components/FormComponents/ReadForm/FormItemSelf2.vue
0 → 100644
View file @
e734b407
This diff is collapsed.
Click to expand it.
src/components/FormComponents/ReadForm/index.vue
0 → 100644
View file @
e734b407
This diff is collapsed.
Click to expand it.
src/router/index.js
View file @
e734b407
...
@@ -52,6 +52,18 @@ export const constantRoutes = [
...
@@ -52,6 +52,18 @@ export const constantRoutes = [
},
},
],
],
},
},
{
path
:
"
/followaduit
"
,
component
:
Layout
,
children
:
[
{
path
:
"
/followaduit
"
,
component
:
()
=>
import
(
"
@/views/followupentry/followaduit
"
),
hidden
:
true
,
name
:
"
followaduit
"
,
},
],
},
{
{
path
:
"
/401
"
,
path
:
"
/401
"
,
name
:
"
401
"
,
name
:
"
401
"
,
...
...
src/views/audit-qualitycontrol/hospital.vue
View file @
e734b407
...
@@ -106,7 +106,7 @@ export default {
...
@@ -106,7 +106,7 @@ export default {
auditHandle
(
data
,
i
)
{
auditHandle
(
data
,
i
)
{
console
.
log
(
data
,
i
)
console
.
log
(
data
,
i
)
if
(
this
.
type
==
"
1
"
){
if
(
this
.
type
==
"
1
"
){
this
.
$router
.
push
(
"
/follow
upentry
"
)
this
.
$router
.
push
(
"
/follow
aduit
"
)
}
}
},
},
},
},
...
...
src/views/followupentry/followaduit.vue
0 → 100644
View file @
e734b407
<
template
>
<!-- 随访调查录入 -->
<div>
<ConfigForms
form-type=
"2"
formClass=
"follow-form"
></ConfigForms>
</div>
</
template
>
<
script
>
import
ConfigForms
from
"
@/views/screening/components/ConfigForms.vue
"
export
default
{
name
:
"
FollowupEntry
"
,
components
:
{
ConfigForms
,
},
data
()
{
return
{
form
:{
column
:
[],
labelPosition
:
'
right
'
,
labelSuffix
:
'
:
'
,
labelWidth
:
100
,
gutter
:
0
,
menuBtn
:
true
,
submitBtn
:
true
,
submitText
:
'
提交
'
,
emptyBtn
:
true
,
emptyText
:
'
清空
'
,
nextTabBtn
:
true
,
nextTabText
:
'
下一页
'
,
menuPosition
:
'
center
'
,
group
:
[
{
label
:
'
个人信息
'
,
prop
:
'
1669858228269_22763
'
,
arrow
:
true
,
collapse
:
true
,
display
:
true
,
labelWidth
:
8
,
column
:
[{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
name
'
,
label
:
'
姓名
'
,
fieldType
:
'
varchar
'
,
fieldLength
:
'
50
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
contact_phone
'
,
label
:
'
手机号
'
,
fieldType
:
'
varchar
'
,
fieldLength
:
'
20
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
telephone
'
,
label
:
'
联系电话
'
,
fieldType
:
'
varchar
'
,
fieldLength
:
'
20
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
sex
'
,
label
:
'
性别
'
,
fieldType
:
'
tinyint
'
,
fieldLength
:
'
2
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
birthday
'
,
label
:
'
出生日期
'
,
fieldType
:
'
date
'
,
fieldLength
:
''
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
age
'
,
label
:
'
年龄
'
,
fieldType
:
'
int
'
,
fieldLength
:
'
4
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
}]
},
{
label
:
'
第一次随访计划
'
,
prop
:
'
1669858313508_15760
'
,
arrow
:
true
,
collapse
:
true
,
display
:
true
,
labelWidth
:
8
,
column
:
[{
type
:
'
radio
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
prop
:
'
is_continue_follow
'
,
label
:
'
是否随访
'
,
dicData
:
[{
label
:
'
是
'
,
value
:
'
1
'
,
id
:
'
1595347527757000705
'
,
parentId
:
''
},
{
label
:
'
否
'
,
value
:
'
0
'
,
id
:
'
1595347502595371010
'
,
parentId
:
''
}],
dynamicshSet
:
[],
dicType
:
'
d-sf
'
,
props
:
{
label
:
'
label
'
,
value
:
'
value
'
},
fieldType
:
'
tinyint
'
,
fieldLength
:
'
2
'
,
tableName
:
'
随访计划
'
,
tableCode
:
'
gas_follow
'
,
tableId
:
'
1597491580053323777
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
,
value
:
'
1
'
,
span
:
24
,
autoRequired
:
0
,
personalRequired
:
0
},
{
type
:
'
date
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
prop
:
'
first_follow_time
'
,
label
:
'
随访时间
'
,
format
:
'
yyyy-MM-dd
'
,
valueFormat
:
'
yyyy-MM-dd
'
,
dicType
:
''
,
fieldType
:
'
date
'
,
tableName
:
'
随访计划
'
,
tableCode
:
'
gas_follow
'
,
tableId
:
'
1597491580053323777
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
,
span
:
12
,
autoRequired
:
0
,
personalRequired
:
0
,
width
:
12
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
prop
:
'
follow_contents
'
,
label
:
'
随访内容
'
,
fieldType
:
'
text
'
,
tableName
:
'
随访计划
'
,
tableCode
:
'
gas_follow
'
,
tableId
:
'
1597491580053323777
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
,
autoRequired
:
0
,
personalRequired
:
0
,
span
:
12
,
width
:
12
}]
},
]
}
}
},
created
()
{},
methods
:
{},
}
</
script
>
<
style
lang=
"scss"
>
</
style
>
src/views/followupentry/index.vue
View file @
e734b407
<
template
>
<
template
>
<!-- 随访调查录入 -->
<!-- 随访调查录入 -->
<div>
<ConfigForms
form-type=
"2"
formClass=
"follow-form"
></ConfigForms>
<ConfigForms
form-type=
"2"
formClass=
"follow-form"
></ConfigForms>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -11,7 +13,220 @@ export default {
...
@@ -11,7 +13,220 @@ export default {
ConfigForms
,
ConfigForms
,
},
},
data
()
{
data
()
{
return
{}
return
{
form
:{
column
:
[],
labelPosition
:
'
right
'
,
labelSuffix
:
'
:
'
,
labelWidth
:
100
,
gutter
:
0
,
menuBtn
:
true
,
submitBtn
:
true
,
submitText
:
'
提交
'
,
emptyBtn
:
true
,
emptyText
:
'
清空
'
,
nextTabBtn
:
true
,
nextTabText
:
'
下一页
'
,
menuPosition
:
'
center
'
,
group
:
[
{
label
:
'
个人信息
'
,
prop
:
'
1669858228269_22763
'
,
arrow
:
true
,
collapse
:
true
,
display
:
true
,
labelWidth
:
8
,
column
:
[{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
name
'
,
label
:
'
姓名
'
,
fieldType
:
'
varchar
'
,
fieldLength
:
'
50
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
contact_phone
'
,
label
:
'
手机号
'
,
fieldType
:
'
varchar
'
,
fieldLength
:
'
20
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
telephone
'
,
label
:
'
联系电话
'
,
fieldType
:
'
varchar
'
,
fieldLength
:
'
20
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
sex
'
,
label
:
'
性别
'
,
fieldType
:
'
tinyint
'
,
fieldLength
:
'
2
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
birthday
'
,
label
:
'
出生日期
'
,
fieldType
:
'
date
'
,
fieldLength
:
''
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
age
'
,
label
:
'
年龄
'
,
fieldType
:
'
int
'
,
fieldLength
:
'
4
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
}]
},
{
label
:
'
第一次随访计划
'
,
prop
:
'
1669858313508_15760
'
,
arrow
:
true
,
collapse
:
true
,
display
:
true
,
labelWidth
:
8
,
column
:
[{
type
:
'
radio
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
prop
:
'
is_continue_follow
'
,
label
:
'
是否随访
'
,
dicData
:
[{
label
:
'
是
'
,
value
:
'
1
'
,
id
:
'
1595347527757000705
'
,
parentId
:
''
},
{
label
:
'
否
'
,
value
:
'
0
'
,
id
:
'
1595347502595371010
'
,
parentId
:
''
}],
dynamicshSet
:
[],
dicType
:
'
d-sf
'
,
props
:
{
label
:
'
label
'
,
value
:
'
value
'
},
fieldType
:
'
tinyint
'
,
fieldLength
:
'
2
'
,
tableName
:
'
随访计划
'
,
tableCode
:
'
gas_follow
'
,
tableId
:
'
1597491580053323777
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
,
value
:
'
1
'
,
span
:
24
,
autoRequired
:
0
,
personalRequired
:
0
},
{
type
:
'
date
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
prop
:
'
first_follow_time
'
,
label
:
'
随访时间
'
,
format
:
'
yyyy-MM-dd
'
,
valueFormat
:
'
yyyy-MM-dd
'
,
dicType
:
''
,
fieldType
:
'
date
'
,
tableName
:
'
随访计划
'
,
tableCode
:
'
gas_follow
'
,
tableId
:
'
1597491580053323777
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
,
span
:
12
,
autoRequired
:
0
,
personalRequired
:
0
,
width
:
12
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
prop
:
'
follow_contents
'
,
label
:
'
随访内容
'
,
fieldType
:
'
text
'
,
tableName
:
'
随访计划
'
,
tableCode
:
'
gas_follow
'
,
tableId
:
'
1597491580053323777
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
,
autoRequired
:
0
,
personalRequired
:
0
,
span
:
12
,
width
:
12
}]
},
]
}
}
},
},
created
()
{},
created
()
{},
methods
:
{},
methods
:
{},
...
...
src/views/screening/components/ConfigForms.vue
View file @
e734b407
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
contrast
contrast
@
setFormJson=
"setFormJson"
@
setFormJson=
"setFormJson"
@
handleConfirm=
"handleConfirm"
@
handleConfirm=
"handleConfirm"
:survivalFlag=
"survivalFlag"
></form-tab>
></form-tab>
</
template
>
</
template
>
</div>
</div>
...
@@ -40,6 +41,7 @@
...
@@ -40,6 +41,7 @@
<
script
>
<
script
>
import
mixin
from
"
./mixin
"
import
mixin
from
"
./mixin
"
import
CustomForm
from
"
@/components/FormComponents/CustomForm/index
"
export
default
{
export
default
{
name
:
"
ConfigForms
"
,
name
:
"
ConfigForms
"
,
...
@@ -52,7 +54,8 @@ export default {
...
@@ -52,7 +54,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
showIndex
:
false
// showIndex:false,
// survivalFlag:false
}
}
},
},
methods
:
{
methods
:
{
...
@@ -65,14 +68,34 @@ export default {
...
@@ -65,14 +68,34 @@ export default {
this
.
getCurrentFormByType
(
this
.
formType
)
this
.
getCurrentFormByType
(
this
.
formType
)
},
},
watch
:
{
watch
:
{
activeName
(
val
){
// activeName(val){
if
(
val
==
"
index0
"
&&
this
.
formClass
){
// if(val=="index0" && this.formClass){
this
.
showIndex
=
false
// this.showIndex = false
console
.
log
(
1
)
// // this.survivalFlag = true
// console.log(1)
// }
// else{
// this.showIndex = true
// // this.survivalFlag = false
// console.log(2)
// }
// }
},
computed
:{
survivalFlag
(){
if
(
this
.
activeName
==
"
index0
"
&&
this
.
formClass
){
return
true
}
else
{
return
false
}
},
showIndex
(){
if
(
this
.
activeName
==
"
index0
"
&&
this
.
formClass
){
return
false
}
}
else
{
else
{
this
.
showIndex
=
true
return
true
console
.
log
(
2
)
}
}
}
}
},
},
...
...
src/views/screening/components/FormTab.vue
View file @
e734b407
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
:title=
"asideShow ? '收起' : '展开'"
:title=
"asideShow ? '收起' : '展开'"
class=
"arrow"
class=
"arrow"
@
click=
"asideShow = !asideShow"
@
click=
"asideShow = !asideShow"
></i>
-->
></i>
-->
<el-empty
v-if=
"isEmpty"
description=
"暂无数据"
></el-empty>
<el-empty
v-if=
"isEmpty"
description=
"暂无数据"
></el-empty>
<template
v-if=
"!isEmpty"
>
<template
v-if=
"!isEmpty"
>
<!-- 多次记录 -->
<!-- 多次记录 -->
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<span
class=
"value"
<span
class=
"value"
>
{{
formData
.
percent
.
personalPercent
}}
%
</span
>
{{
formData
.
percent
.
personalPercent
}}
%
</span
></
template
></
template
>
-->
>
-->
<div
class=
"label"
>
<div
class=
"label"
>
<!-- 仅显示重要字段 : -->
<!-- 仅显示重要字段 : -->
...
@@ -42,11 +42,8 @@
...
@@ -42,11 +42,8 @@
</el-switch>-->
</el-switch>-->
</div>
</div>
</el-row>
</el-row>
<div
<div
class=
"my-form"
ref=
"my-form"
:class=
"externalScroll ? 'no-scroll' : ''"
>
class=
"my-form"
<read-form
ref=
"form"
:options=
"survivalForm"
v-if=
"survivalFlag"
></read-form>
ref=
"my-form"
:class=
"externalScroll ? 'no-scroll' : ''"
>
<custom-form
<custom-form
ref=
"form"
ref=
"form"
@
scrollTop=
"scrollTop"
@
scrollTop=
"scrollTop"
...
@@ -71,6 +68,7 @@
...
@@ -71,6 +68,7 @@
import
{
getPatientDetail
,
getRecordList
}
from
"
@/api/patient.js
"
import
{
getPatientDetail
,
getRecordList
}
from
"
@/api/patient.js
"
import
{
getFormDetail
}
from
"
@/api/field
"
import
{
getFormDetail
}
from
"
@/api/field
"
import
CustomForm
from
"
@/components/FormComponents/CustomForm/index
"
import
CustomForm
from
"
@/components/FormComponents/CustomForm/index
"
import
ReadForm
from
"
@/components/FormComponents/ReadForm/index
"
import
TagsScrollBar
from
"
@/components/TagsScrollBar/index
"
import
TagsScrollBar
from
"
@/components/TagsScrollBar/index
"
export
default
{
export
default
{
name
:
"
FormTab
"
,
name
:
"
FormTab
"
,
...
@@ -82,8 +80,9 @@ export default {
...
@@ -82,8 +80,9 @@ export default {
patientId
:
String
,
patientId
:
String
,
patientStandbyId
:
String
,
patientStandbyId
:
String
,
getAll
:
Boolean
,
// 获取页面所有数据
getAll
:
Boolean
,
// 获取页面所有数据
survivalFlag
:
Boolean
,
//存活的显示
},
},
components
:
{
CustomForm
,
TagsScrollBar
},
components
:
{
CustomForm
,
TagsScrollBar
,
ReadForm
},
provide
()
{
provide
()
{
return
{
return
{
formId
:
this
.
form
.
formId
,
formId
:
this
.
form
.
formId
,
...
@@ -107,6 +106,218 @@ export default {
...
@@ -107,6 +106,218 @@ export default {
formloading
:
false
,
formloading
:
false
,
repeatedlyList
:
[],
repeatedlyList
:
[],
formCacheList
:
[],
formCacheList
:
[],
survivalForm
:{
column
:
[],
labelPosition
:
'
right
'
,
labelSuffix
:
'
:
'
,
labelWidth
:
100
,
gutter
:
0
,
menuBtn
:
true
,
submitBtn
:
true
,
submitText
:
'
提交
'
,
emptyBtn
:
true
,
emptyText
:
'
清空
'
,
nextTabBtn
:
true
,
nextTabText
:
'
下一页
'
,
menuPosition
:
'
center
'
,
group
:
[
{
label
:
'
个人信息
'
,
prop
:
'
1669858228269_22763
'
,
arrow
:
true
,
collapse
:
true
,
display
:
true
,
labelWidth
:
8
,
column
:
[{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
name
'
,
label
:
'
姓名
'
,
fieldType
:
'
varchar
'
,
fieldLength
:
'
50
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
contact_phone
'
,
label
:
'
手机号
'
,
fieldType
:
'
varchar
'
,
fieldLength
:
'
20
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
telephone
'
,
label
:
'
联系电话
'
,
fieldType
:
'
varchar
'
,
fieldLength
:
'
20
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
sex
'
,
label
:
'
性别
'
,
fieldType
:
'
tinyint
'
,
fieldLength
:
'
2
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
birthday
'
,
label
:
'
出生日期
'
,
fieldType
:
'
date
'
,
fieldLength
:
''
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
autoRequired
:
0
,
personalRequired
:
0
,
prop
:
'
age
'
,
label
:
'
年龄
'
,
fieldType
:
'
int
'
,
fieldLength
:
'
4
'
,
tableName
:
'
存活情况
'
,
tableCode
:
'
gas_survival_situation
'
,
tableId
:
'
1598137567272861697
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
}]
},
{
label
:
'
第一次随访计划
'
,
prop
:
'
1669858313508_15760
'
,
arrow
:
true
,
collapse
:
true
,
display
:
true
,
labelWidth
:
8
,
column
:
[{
type
:
'
radio
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
prop
:
'
is_continue_follow
'
,
label
:
'
是否随访
'
,
dicData
:
[{
label
:
'
是
'
,
value
:
'
1
'
,
id
:
'
1595347527757000705
'
,
parentId
:
''
},
{
label
:
'
否
'
,
value
:
'
0
'
,
id
:
'
1595347502595371010
'
,
parentId
:
''
}],
dynamicshSet
:
[],
dicType
:
'
d-sf
'
,
props
:
{
label
:
'
label
'
,
value
:
'
value
'
},
fieldType
:
'
tinyint
'
,
fieldLength
:
'
2
'
,
tableName
:
'
随访计划
'
,
tableCode
:
'
gas_follow
'
,
tableId
:
'
1597491580053323777
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
,
value
:
'
1
'
,
span
:
24
,
autoRequired
:
0
,
personalRequired
:
0
},
{
type
:
'
date
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
prop
:
'
first_follow_time
'
,
label
:
'
随访时间
'
,
format
:
'
yyyy-MM-dd
'
,
valueFormat
:
'
yyyy-MM-dd
'
,
dicType
:
''
,
fieldType
:
'
date
'
,
tableName
:
'
随访计划
'
,
tableCode
:
'
gas_follow
'
,
tableId
:
'
1597491580053323777
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
,
span
:
12
,
autoRequired
:
0
,
personalRequired
:
0
,
width
:
12
},
{
type
:
'
input
'
,
display
:
true
,
importantField
:
true
,
styles
:
{},
prop
:
'
follow_contents
'
,
label
:
'
随访内容
'
,
fieldType
:
'
text
'
,
tableName
:
'
随访计划
'
,
tableCode
:
'
gas_follow
'
,
tableId
:
'
1597491580053323777
'
,
notFilter
:
false
,
cType
:
''
,
subfield
:
false
,
autoRequired
:
0
,
personalRequired
:
0
,
span
:
12
,
width
:
12
}]
},
]
}
}
}
},
},
// mixins: [resizeMixin],
// mixins: [resizeMixin],
...
...
src/views/screening/components/mixin.js
View file @
e734b407
...
@@ -24,6 +24,7 @@ export default {
...
@@ -24,6 +24,7 @@ export default {
methods
:
{
methods
:
{
handleTabClick
({
index
,
name
})
{
handleTabClick
({
index
,
name
})
{
const
{
formId
,
id
,
silent
}
=
this
.
formTabs
[
index
]
const
{
formId
,
id
,
silent
}
=
this
.
formTabs
[
index
]
console
.
log
(
'
表单项
'
,
this
.
formTabs
)
if
(
formId
&&
silent
)
{
if
(
formId
&&
silent
)
{
this
.
formTabs
[
index
][
"
silent
"
]
=
false
//控制是否获取接口数据
this
.
formTabs
[
index
][
"
silent
"
]
=
false
//控制是否获取接口数据
return
return
...
...
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