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
1bd9d0f8
Commit
1bd9d0f8
authored
Mar 15, 2023
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加随访计划初始值
2.处理列表数据 3.兼容样式
parent
87fd1b23
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
111 additions
and
56 deletions
+111
-56
FormItemSelf.vue
src/components/FormComponents/CustomForm/FormItemSelf.vue
+71
-40
index.vue
src/layouts/components/AppMain/index.vue
+1
-1
followaudit.vue
src/views/followupentry/followaudit.vue
+18
-11
ConfigForms.vue
src/views/screening/components/ConfigForms.vue
+13
-2
FormTab.vue
src/views/screening/components/FormTab.vue
+8
-2
No files found.
src/components/FormComponents/CustomForm/FormItemSelf.vue
View file @
1bd9d0f8
...
@@ -5,13 +5,18 @@
...
@@ -5,13 +5,18 @@
:style=
"item.styles"
:style=
"item.styles"
:class=
"
{ isDefects: defectsSet.includes(item.prop) }"
:class=
"
{ isDefects: defectsSet.includes(item.prop) }"
>
>
<el-col
:lg=
"item.width"
:style=
"
{ height: item.type === 'upload' ? '116px' : '53px' }">
<el-col
:lg=
"item.width"
:style=
"
{ height: item.type === 'upload' ? '116px' : '53px' }"
>
<div
<div
v-if=
"
v-if=
"
showIndex || (configForms && configForms.showIndex) || item.showIndex
showIndex || (configForms && configForms.showIndex) || item.showIndex
"
"
:class=
"['formIndex', item.labelSuffix == '5' ? 'computeIndex' : '']"
:class=
"['formIndex', item.labelSuffix == '5' ? 'computeIndex' : '']"
>
{{
item
.
labelSuffix
||
columnIndex
+
1
}}
</div>
>
{{
item
.
labelSuffix
||
columnIndex
+
1
}}
</div>
<!--
<el-form-item
<!--
<el-form-item
:label=
"
:label=
"
!hiddenLabel && item.label
!hiddenLabel && item.label
...
@@ -45,7 +50,11 @@
...
@@ -45,7 +50,11 @@
>
</el-upload-self>
>
</el-upload-self>
<!-- 表单改文本 -->
<!-- 表单改文本 -->
<template
v-else-if=
"getVwForm.detail"
>
<template
v-else-if=
"getVwForm.detail"
>
<form-item-text
:item=
"item"
:form=
"form"
:union-list=
"unionList"
></form-item-text>
<form-item-text
:item=
"item"
:form=
"form"
:union-list=
"unionList"
></form-item-text>
</
template
>
</
template
>
<!-- 可输入 -->
<!-- 可输入 -->
<
template
v-else
>
<
template
v-else
>
...
@@ -53,12 +62,20 @@
...
@@ -53,12 +62,20 @@
<el-input
<el-input
v-if=
"item.type === 'input'"
v-if=
"item.type === 'input'"
v-model=
"form[item.prop]"
v-model=
"form[item.prop]"
:class=
"item.prop == 'other_sickness' ? 'needlong' : item.readonly ? 'read-input' :''"
:class=
"
item.prop == 'other_sickness'
? 'needlong'
: item.readonly
? 'read-input'
: ''
"
:readonly=
"item.readonly"
:readonly=
"item.readonly"
:disabled=
"item.disabled"
:disabled=
"item.disabled"
:placeholder=
"item.disabled || item.readonly ? '':
:placeholder=
"
item.placeholder ||
item.disabled || item.readonly
` $
{item.label ? '请输入' + item.label : ''}`
? ''
: item.placeholder ||
` $
{item.label ? '请输入' + item.label : ''}`
"
"
:clearable="item.notClearable ? false : true"
:clearable="item.notClearable ? false : true"
:maxlength="
:maxlength="
...
@@ -76,16 +93,13 @@
...
@@ -76,16 +93,13 @@
slot=
"append"
slot=
"append"
class=
"toothBit"
class=
"toothBit"
@
click=
"openToothBit"
@
click=
"openToothBit"
>
{{
item
.
append
||
"
牙位
"
}}
</el-button>
>
{{
item
.
append
||
"
牙位
"
}}
</el-button
>
<template
v-else-if=
"item.append"
slot=
"append"
>
<template
v-else-if=
"item.append"
slot=
"append"
>
{{
{{
item
.
append
}}
item
.
append
}}
</
template
>
</
template
>
<
template
v-if=
"item.prepend"
slot=
"prepend"
>
<
template
v-if=
"item.prepend"
slot=
"prepend"
>
{{
{{
item
.
prepend
}}
item
.
prepend
}}
</
template
>
</
template
>
</el-input>
</el-input>
...
@@ -110,14 +124,10 @@
...
@@ -110,14 +124,10 @@
@
blur=
"handleBlur"
@
blur=
"handleBlur"
>
>
<
template
v-if=
"item.append"
slot=
"append"
>
<
template
v-if=
"item.append"
slot=
"append"
>
{{
{{
item
.
append
}}
item
.
append
}}
</
template
>
</
template
>
<
template
v-if=
"item.prepend"
slot=
"prepend"
>
<
template
v-if=
"item.prepend"
slot=
"prepend"
>
{{
{{
item
.
prepend
}}
item
.
prepend
}}
</
template
>
</
template
>
</el-input>
</el-input>
...
@@ -164,7 +174,8 @@
...
@@ -164,7 +174,8 @@
v-if=
"item.append"
v-if=
"item.append"
class=
"el-input-group__append"
class=
"el-input-group__append"
style=
"line-height: 28px"
style=
"line-height: 28px"
>
{{ item.append }}
</span>
>
{{ item.append }}
</span
>
</div>
</div>
<!-- 单选框 -->
<!-- 单选框 -->
...
@@ -178,21 +189,25 @@
...
@@ -178,21 +189,25 @@
v-for=
"(opt, optIndex) in item.dicData"
v-for=
"(opt, optIndex) in item.dicData"
:key=
"optIndex"
:key=
"optIndex"
:label=
"opt.value"
:label=
"opt.value"
>
{{ opt.label }}
</el-radio>
>
{{ opt.label }}
</el-radio
>
</el-radio-group>
</el-radio-group>
<!-- 单选框只读 -->
<!-- 单选框只读 -->
<div
<div
v-for=
"(opt, optIndex) in item.dicData"
v-for=
"(opt, optIndex) in item.dicData"
v-else-if=
"item.type === 'radio' && item.disabled"
:key=
"optIndex"
:key=
"optIndex"
v-else-if=
"item.type === 'radio' && item.disabled "
>
>
<el-radio
<el-radio
v-show=
"opt.value == form[item.prop]"
v-model=
"form[item.prop]"
v-model=
"form[item.prop]"
:class=
"item.class ? item.class : item.disabled ? 'read-radio':''"
:class=
"
item.class ? item.class : item.disabled ? 'read-radio' : ''
"
:label=
"opt.value"
:label=
"opt.value"
v-show=
"opt.value == form[item.prop]"
@
change=
"item.func ? item.func($event) : {}"
@
change=
"item.func ? item.func($event) : {}"
>
{{ opt.label}}
</el-radio>
>
{{ opt.label }}
</el-radio
>
</div>
</div>
<!-- 多选框 -->
<!-- 多选框 -->
...
@@ -206,7 +221,8 @@
...
@@ -206,7 +221,8 @@
v-for=
"(opt, optIndex) in item.dicData"
v-for=
"(opt, optIndex) in item.dicData"
:key=
"optIndex"
:key=
"optIndex"
:label=
"opt.value"
:label=
"opt.value"
>
{{
opt
.
label
}}
</el-checkbox>
>
{{
opt
.
label
}}
</el-checkbox
>
</el-checkbox-group>
</el-checkbox-group>
</
template
>
</
template
>
...
@@ -297,7 +313,13 @@
...
@@ -297,7 +313,13 @@
>
>
<el-date-picker
<el-date-picker
v-model=
"form[item.prop]"
v-model=
"form[item.prop]"
:placeholder=
"item.placeholder ? item.placeholder : item.disabled ? '':'请选择'"
:placeholder=
"
item.placeholder
? item.placeholder
: item.disabled
? ''
: '请选择'
"
:value-format=
"item.valueFormat"
:value-format=
"item.valueFormat"
:format=
"item.format"
:format=
"item.format"
:disabled=
"item.disabled"
:disabled=
"item.disabled"
...
@@ -307,7 +329,8 @@
...
@@ -307,7 +329,8 @@
<span
<span
v-if=
"item.prop == 'birthday'"
v-if=
"item.prop == 'birthday'"
style=
"margin-left: 12px"
style=
"margin-left: 12px"
>
{{ age + (age ? "岁" : "") }}
</span>
>
{{ age + (age ? "岁" : "") }}
</span
>
</div>
</div>
<!-- 年 -->
<!-- 年 -->
<el-date-picker
<el-date-picker
...
@@ -369,7 +392,13 @@
...
@@ -369,7 +392,13 @@
v-else-if=
"item.type === 'datetime'"
v-else-if=
"item.type === 'datetime'"
v-model=
"form[item.prop]"
v-model=
"form[item.prop]"
type=
"datetime"
type=
"datetime"
:placeholder=
"item.placeholder ? item.placeholder : item.disabled ? '':'请选择'"
:placeholder=
"
item.placeholder
? item.placeholder
: item.disabled
? ''
: '请选择'
"
clearable
clearable
:disabled=
"item.disabled"
:disabled=
"item.disabled"
:class=
"item.disabled ? 'read-time' : ''"
:class=
"item.disabled ? 'read-time' : ''"
...
@@ -400,7 +429,8 @@
...
@@ -400,7 +429,8 @@
<span
<span
v-if=
"item.importantField && !getVwForm.detail"
v-if=
"item.importantField && !getVwForm.detail"
class=
"important_field"
class=
"important_field"
>
{{ item.importantFieldDesc || "*" }}
</span>
>
{{ item.importantFieldDesc || "*" }}
</span
>
</div>
</div>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -734,23 +764,24 @@ export default {
...
@@ -734,23 +764,24 @@ export default {
Object
.
keys
(
dyMap
).
forEach
((
key
)
=>
{
Object
.
keys
(
dyMap
).
forEach
((
key
)
=>
{
// !获取显隐目标
// !获取显隐目标
let
targetItem
=
columns
.
find
((
_
)
=>
_
.
prop
===
key
)
let
targetItem
=
columns
.
find
((
_
)
=>
_
.
prop
===
key
)
if
(
!
targetItem
)
{
if
(
!
targetItem
)
{
// !没有在表单子组件中找到,查找大表单id
// !没有在表单子组件中找到,查找大表单id
targetItem
=
group
.
find
((
_
)
=>
_
.
prop
===
key
)
targetItem
=
group
.
find
((
_
)
=>
_
.
prop
===
key
)
}
}
//没有找到再细化查找
//没有找到再细化查找
if
(
!
targetItem
)
{
if
(
!
targetItem
)
{
group
.
forEach
((
_
)
=>
{
group
.
forEach
((
_
)
=>
{
if
(
_
.
column
)
{
if
(
_
.
column
)
{
_
.
column
.
find
((
item
)
=>
{
_
.
column
.
find
((
item
)
=>
{
if
(
item
.
prop
===
key
)
{
if
(
item
.
prop
===
key
)
{
targetItem
=
item
targetItem
=
item
return
return
}
}
else
{
else
{
if
(
item
.
children
&&
item
.
children
.
column
)
{
if
(
item
.
children
&&
item
.
children
.
column
){
targetItem
=
item
.
children
.
column
.
find
(
targetItem
=
item
.
children
.
column
.
find
((
e
)
=>
e
.
prop
===
key
)
(
e
)
=>
e
.
prop
===
key
)
}
}
}
}
})
})
...
...
src/layouts/components/AppMain/index.vue
View file @
1bd9d0f8
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</vab-keel>
-->
</vab-keel>
-->
<transition
mode=
"out-in"
name=
"fade-transform"
>
<transition
mode=
"out-in"
name=
"fade-transform"
>
<keep-alive
v-if=
"routerView"
:include=
"cachedRoutes"
:max=
"10"
>
<keep-alive
v-if=
"routerView"
:include=
"cachedRoutes"
:max=
"10"
>
<router-view
:key=
"key"
style=
"min-height: 8
8
vh"
/>
<router-view
:key=
"key"
style=
"min-height: 8
6
vh"
/>
</keep-alive>
</keep-alive>
</transition>
</transition>
</section>
</section>
...
...
src/views/followupentry/followaudit.vue
View file @
1bd9d0f8
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
</div>
</div>
<div
class=
"table-content p-24"
>
<div
class=
"table-content p-24"
>
<follow-review
<follow-review
:form
DataList=
"formEdit
"
:form
-data-list=
"followNum
"
:tab
A
ctive=
"tabActive"
:tab
-a
ctive=
"tabActive"
></follow-review>
></follow-review>
</div>
</div>
<div
class=
"choose-handle p-24"
>
<div
class=
"choose-handle p-24"
>
...
@@ -84,10 +84,10 @@
...
@@ -84,10 +84,10 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<!-- 标签 -->
<!-- 标签 -->
<div
class=
"tag-form"
v-loading=
"tagLoading
"
>
<div
v-loading=
"tagLoading"
class=
"tag-form
"
>
<el-tag
<el-tag
:key=
"index"
v-for=
"(item, index) in tagList"
v-for=
"(item, index) in tagList"
:key=
"index"
size=
"medium"
size=
"medium"
:class=
"item.isSelect ? '' : 'unselect-tag'"
:class=
"item.isSelect ? '' : 'unselect-tag'"
@
click=
"seleckTag(item, index)"
@
click=
"seleckTag(item, index)"
...
@@ -123,10 +123,10 @@
...
@@ -123,10 +123,10 @@
<div
class=
"btn"
>
<div
class=
"btn"
>
<el-button
<el-button
type=
"primary"
type=
"primary"
@
click=
"nextExample"
:loading=
"auditLoading"
:loading=
"auditLoading"
@
click=
"nextExample"
>
>
<span
v-if=
"tabActive
<
this
.
formEdit
.
length
-
1
"
<span
v-if=
"tabActive
<
formEdit
.
length
-
1
"
>
确认并进入下一列审核
</span
>
确认并进入下一列审核
</span
>
>
<span
v-else
>
确 定
</span>
<span
v-else
>
确 定
</span>
...
@@ -148,6 +148,13 @@ export default {
...
@@ -148,6 +148,13 @@ export default {
medicalCombination
:
"
无锡市人民医院医联体
"
,
medicalCombination
:
"
无锡市人民医院医联体
"
,
mcCount
:
7
,
mcCount
:
7
,
editStatus
:
false
,
//进入的状态是第一次审核还是修改审核,false为第一次,true为修改
editStatus
:
false
,
//进入的状态是第一次审核还是修改审核,false为第一次,true为修改
followNum
:
[
//随访次数数据
{
followId
:
123
,
formRecordId
:
123
},
{
followId
:
123
,
formRecordId
:
123
},
{
followId
:
123
,
formRecordId
:
123
},
{
followId
:
123
,
formRecordId
:
123
},
],
//第几次随访数据
formEdit
:
{
formEdit
:
{
name
:
"
djksh
"
,
name
:
"
djksh
"
,
contact_phone
:
"
12345678
"
,
contact_phone
:
"
12345678
"
,
...
@@ -200,6 +207,11 @@ export default {
...
@@ -200,6 +207,11 @@ export default {
showNote
:
false
,
showNote
:
false
,
}
}
},
},
computed
:
{
unionId
()
{
return
this
.
$route
.
query
.
id
},
},
watch
:
{
watch
:
{
// tagList(){
// tagList(){
// this.$nextTick(() => {
// this.$nextTick(() => {
...
@@ -210,11 +222,6 @@ export default {
...
@@ -210,11 +222,6 @@ export default {
created
()
{
created
()
{
// this.getDetail()
// this.getDetail()
},
},
computed
:
{
unionId
()
{
return
this
.
$route
.
query
.
id
},
},
methods
:
{
methods
:
{
showDialog
(
val
,
index
)
{
showDialog
(
val
,
index
)
{
console
.
log
(
"
显示框
"
,
val
)
console
.
log
(
"
显示框
"
,
val
)
...
...
src/views/screening/components/ConfigForms.vue
View file @
1bd9d0f8
...
@@ -63,6 +63,10 @@
...
@@ -63,6 +63,10 @@
</transition>
</transition>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<div
class=
"bottom_line"
:style=
"{ width: contrast ? 'calc(100% - 200px)' : '100%' }"
></div>
<el-aside
v-if=
"contrast"
:width=
"'200px'"
>
<el-aside
v-if=
"contrast"
:width=
"'200px'"
>
<div
class=
"side-content"
>
<div
class=
"side-content"
>
<ul
class=
"list"
>
<ul
class=
"list"
>
...
@@ -428,7 +432,7 @@ export default {
...
@@ -428,7 +432,7 @@ export default {
padding
:
32px
24px
32px
;
padding
:
32px
24px
32px
;
.draftButton
{
.draftButton
{
position
:
absolute
;
position
:
absolute
;
top
:
0
px
;
top
:
12
px
;
right
:
40px
;
right
:
40px
;
z-index
:
999
;
z-index
:
999
;
border-radius
:
4px
;
border-radius
:
4px
;
...
@@ -443,7 +447,7 @@ export default {
...
@@ -443,7 +447,7 @@ export default {
}
}
}
}
#publicContent
.p_padding
{
#publicContent
.p_padding
{
padding
:
10px
24px
32
px
;
padding
:
10px
24px
17
px
;
}
}
::v-deep
.el-dialog__body
{
::v-deep
.el-dialog__body
{
.title
{
.title
{
...
@@ -589,4 +593,11 @@ export default {
...
@@ -589,4 +593,11 @@ export default {
border
:
1px
solid
#4e68ff
;
border
:
1px
solid
#4e68ff
;
color
:
#4e68ff
;
color
:
#4e68ff
;
}
}
.bottom_line
{
// width: 100%;
position
:
absolute
;
bottom
:
0px
;
height
:
3px
;
box-shadow
:
0px
3px
4px
rgb
(
0
21
41
/
8%
);
}
</
style
>
</
style
>
src/views/screening/components/FormTab.vue
View file @
1bd9d0f8
...
@@ -49,7 +49,9 @@
...
@@ -49,7 +49,9 @@
height:
height:
$route.path == '/screening/index'
$route.path == '/screening/index'
? 'calc(100vh - 310px)'
? 'calc(100vh - 310px)'
: 'calc(100vh - 270px)',
: $route.path == '/screening/draft'
? 'calc(100vh - 270px)'
: 'calc(100vh - 230px)',
}"
}"
:class=
"externalScroll ? 'no-scroll' : ''"
:class=
"externalScroll ? 'no-scroll' : ''"
>
>
...
@@ -196,6 +198,9 @@ export default {
...
@@ -196,6 +198,9 @@ export default {
data
[
key
]
=
data
[
key
]
+
""
data
[
key
]
=
data
[
key
]
+
""
}
}
}
}
data
.
follow_contents
=
JSON
.
parse
(
data
.
follow_contents
.
replace
(
/"
\"
/g
,
""
)
)
this
.
formData
.
formEdit
=
data
this
.
formData
.
formEdit
=
data
}
}
this
.
initForm
()
//! 随防筛查通用的设置form
this
.
initForm
()
//! 随防筛查通用的设置form
...
@@ -478,6 +483,7 @@ export default {
...
@@ -478,6 +483,7 @@ export default {
.el-main
{
.el-main
{
position
:
relative
;
position
:
relative
;
padding
:
0
;
padding
:
0
;
// box-shadow: 0px 5px 4px red;
.arrow
{
.arrow
{
position
:
absolute
;
position
:
absolute
;
...
@@ -489,7 +495,7 @@ export default {
...
@@ -489,7 +495,7 @@ export default {
}
}
.header
{
.header
{
height
:
5px
;
height
:
5px
;
box-shadow
:
0
5
px
4px
rgb
(
0
21
41
/
8%
);
box-shadow
:
0
px
3
px
4px
rgb
(
0
21
41
/
8%
);
padding-right
:
20px
;
padding-right
:
20px
;
position
:
relative
;
position
:
relative
;
font-size
:
15px
;
font-size
:
15px
;
...
...
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