Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
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
98be2753
You need to sign in or sign up before continuing.
Commit
98be2753
authored
Feb 07, 2023
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.草稿箱删除功能
2.草稿箱编辑功能,以及数据回显问题 3.医联体下拉列表接口
parent
3dfa2583
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
71 additions
and
45 deletions
+71
-45
medicalunion-management.js
src/api/medicalunion-management.js
+9
-0
FormItemSelf.vue
src/components/FormComponents/CustomForm/FormItemSelf.vue
+15
-4
DraftBox.vue
src/views/screening/DraftBox.vue
+2
-1
ConfigForms.vue
src/views/screening/components/ConfigForms.vue
+6
-0
FormTab.vue
src/views/screening/components/FormTab.vue
+39
-40
No files found.
src/api/medicalunion-management.js
View file @
98be2753
...
...
@@ -24,6 +24,15 @@ export function medicalunionList(params = {}) {
params
,
})
}
// 添加标准获取医联体
export
function
getMedicalunionList
(
params
=
{})
{
return
request
({
url
:
"
/cloud-upms/sys/union/select
"
,
method
:
"
get
"
,
params
,
})
}
export
function
deleteUnion
(
id
)
{
return
request
({
url
:
`/cloud-upms/sys/union/
${
id
}
`
,
...
...
src/components/FormComponents/CustomForm/FormItemSelf.vue
View file @
98be2753
...
...
@@ -218,8 +218,8 @@
<el-option
v-for=
"(opt, optIndex) in unionList"
:key=
"optIndex"
:label=
"opt.
label
"
:value=
"opt.
value
"
:label=
"opt.
unionName
"
:value=
"opt.
unionNo
"
></el-option>
</
template
>
<
template
v-else
>
...
...
@@ -400,7 +400,7 @@
/**
* @description 自定义单组件
*/
import
{
getMedicalunionList
}
from
"
@/api/medicalunion-management
"
import
ElUploadSelf
from
"
@/components/Upload
"
import
FormItemText
from
"
./FormItemText
"
import
DialogToothBit
from
"
./DialogToothBit
"
...
...
@@ -483,13 +483,24 @@ export default {
this
.
numberReset
()
this
.
checkboxReset
()
if
(
this
.
item
.
prop
==
"
union_id
"
)
{
this
.
unionList
=
[{
label
:
"
嗡嗡嗡
"
,
value
:
1
}]
this
.
getMedicalunionList
()
}
},
mounted
()
{
this
.
showFormItem
()
},
methods
:
{
// 获取医联体列表
getMedicalunionList
()
{
getMedicalunionList
().
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
1
)
{
this
.
unionList
=
res
.
data
}
else
{
this
.
unionList
=
[]
}
})
},
scrollToView
()
{
if
(
this
.
$refs
[
"
JY_LCYY
"
])
{
this
.
$refs
[
"
JY_LCYY
"
].
$el
.
scrollIntoView
({
behavior
:
"
smooth
"
})
...
...
src/views/screening/DraftBox.vue
View file @
98be2753
...
...
@@ -29,6 +29,7 @@
form-type=
"1"
:patient-id=
"patientId"
:disabled=
"disabled"
:operation=
"'edit'"
></ConfigForms>
</div>
</div>
...
...
@@ -56,7 +57,7 @@ export default {
{
label
:
"
医联体
"
,
minWidth
:
120
,
value
:
"
groupName
"
,
value
:
"
unionId
"
,
},
{
label
:
"
姓名
"
,
...
...
src/views/screening/components/ConfigForms.vue
View file @
98be2753
...
...
@@ -41,6 +41,7 @@
:newform-record-id=
"newformRecordId"
:form=
"form"
:disabled=
"disabled"
:operation=
"operation"
contrast
:form-initial=
"formInitial"
:survival-flag=
"survivalFlag"
...
...
@@ -116,6 +117,7 @@ export default {
formType
:
String
,
patientId
:
String
,
formClass
:
String
,
operation
:
String
,
},
data
()
{
return
{
...
...
@@ -258,6 +260,10 @@ export default {
}
// 清空红字:不符合筛查条件
this
.
$refs
.
showDialog
.
dialogVisible
=
false
//判断路径
if
(
this
.
$route
.
path
!=
"
/screening/add
"
)
{
this
.
$router
.
push
(
"
/screening/add
"
)
}
},
viewJump
()
{
// this.$router.push('/')
...
...
src/views/screening/components/FormTab.vue
View file @
98be2753
...
...
@@ -95,6 +95,7 @@ export default {
survivalFlag
:
Boolean
,
//存活的显示
formEdit
:
{},
formInitial
:
{},
operation
:
String
,
// !默认新增,传入为edit为编辑需要传formRecordId
},
provide
()
{
return
{
...
...
@@ -174,52 +175,50 @@ export default {
},
// 临时保存确定
temporaryConfirm
(
data
,
done
)
{
this
.
$emit
(
"
temporaryConfirm
"
,
{
data
,
formId
:
this
.
form
.
formId
,
// 每个大表单的id
patientId
:
this
.
patientId
||
this
.
patientStandbyId
,
// formRecordId: this.formData.formRecordId || this.newformRecordId, // 是否为编辑的表单id
statusMap
:
{
patient_from
:
this
.
$store
.
getters
[
"
table/selectedIndex
"
],
is_draft
:
1
,
//是否为草稿
check_status
:
1
,
// 审核状态
},
let
params
=
{
data
,
formId
:
this
.
form
.
formId
,
// 每个大表单的id
patientId
:
this
.
patientId
||
this
.
patientStandbyId
,
// formRecordId: this.formData.formRecordId || this.newformRecordId, // 是否为编辑的表单id
statusMap
:
{
patient_from
:
this
.
$store
.
getters
[
"
table/selectedIndex
"
],
is_draft
:
1
,
//是否为草稿
check_status
:
1
,
// 审核状态
},
done
,
(
res
)
=>
{
// 多次填写的表单新增时,获取最新数据
if
(
this
.
form
.
fillType
===
1
&&
!
this
.
formData
.
formRecordId
)
{
this
.
getRecordList
(
res
.
data
.
formRecordId
)
}
this
.
formatData
(
res
,
this
.
form
.
fillType
!==
1
)
}
if
(
this
.
operation
&&
this
.
operation
==
"
edit
"
)
{
params
.
formRecordId
=
this
.
formData
.
formRecordId
||
this
.
newformRecordId
// 是否为编辑的表单id
}
this
.
$emit
(
"
temporaryConfirm
"
,
params
,
done
,
(
res
)
=>
{
// 多次填写的表单新增时,获取最新数据
if
(
this
.
form
.
fillType
===
1
&&
!
this
.
formData
.
formRecordId
)
{
this
.
getRecordList
(
res
.
data
.
formRecordId
)
}
)
this
.
formatData
(
res
,
this
.
form
.
fillType
!==
1
)
})
},
handleConfirm
(
data
,
done
)
{
this
.
$emit
(
"
handleConfirm
"
,
{
data
,
formId
:
this
.
form
.
formId
,
// 每个大表单的id
patientId
:
this
.
patientId
||
this
.
patientStandbyId
,
// formRecordId: this.formData.formRecordId || this.newformRecordId, // 是否为编辑的表单id
statusMap
:
{
patient_from
:
this
.
$store
.
getters
[
"
table/selectedIndex
"
],
is_draft
:
0
,
//是否为草稿
check_status
:
1
,
// 审核状态
},
let
params
=
{
data
,
formId
:
this
.
form
.
formId
,
// 每个大表单的id
patientId
:
this
.
patientId
||
this
.
patientStandbyId
,
// formRecordId: this.formData.formRecordId || this.newformRecordId, // 是否为编辑的表单id
statusMap
:
{
patient_from
:
this
.
$store
.
getters
[
"
table/selectedIndex
"
],
is_draft
:
0
,
//是否为草稿
check_status
:
1
,
// 审核状态
},
done
,
(
res
)
=>
{
// 多次填写的表单新增时,获取最新数据
if
(
this
.
form
.
fillType
===
1
&&
!
this
.
formData
.
formRecordId
)
{
this
.
getRecordList
(
res
.
data
.
formRecordId
)
}
this
.
formatData
(
res
,
this
.
form
.
fillType
!==
1
)
}
if
(
this
.
operation
&&
this
.
operation
==
"
edit
"
)
{
params
.
formRecordId
=
this
.
formData
.
formRecordId
||
this
.
newformRecordId
// 是否为编辑的表单id
}
this
.
$emit
(
"
handleConfirm
"
,
params
,
done
,
(
res
)
=>
{
// 多次填写的表单新增时,获取最新数据
if
(
this
.
form
.
fillType
===
1
&&
!
this
.
formData
.
formRecordId
)
{
this
.
getRecordList
(
res
.
data
.
formRecordId
)
}
)
this
.
formatData
(
res
,
this
.
form
.
fillType
!==
1
)
})
},
onPrev
(
done
)
{
this
.
$emit
(
"
onPrev
"
,
done
)
...
...
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