审核流程回显修改
This commit is contained in:
@@ -163,8 +163,7 @@ const getAllFormData = () => {
|
|||||||
return {
|
return {
|
||||||
title: title.value,
|
title: title.value,
|
||||||
precheck:{...changePreForm},
|
precheck:{...changePreForm},
|
||||||
apply_form:{...changeApplyData,level_score:newQuestions},
|
apply_form:{...changeApplyData,level_score:newQuestions,approval_flow: {steps:flowList}},
|
||||||
approval_flow: {steps:flowList},
|
|
||||||
risk_records:changeRiskForm,
|
risk_records:changeRiskForm,
|
||||||
train:{...changeTrainingForm},
|
train:{...changeTrainingForm},
|
||||||
pssr:{items:allItems},
|
pssr:{items:allItems},
|
||||||
|
|||||||
@@ -203,11 +203,16 @@ const filterMembersBySpecialties = (data: any, specialties: string[]) => {
|
|||||||
|
|
||||||
// 当前模板
|
// 当前模板
|
||||||
const currentTemplate = computed(() => {
|
const currentTemplate = computed(() => {
|
||||||
let template = props.templateList.find((item: any) =>
|
let template = null;
|
||||||
|
if(props.currentForm?.approval_flow?.steps && props.currentForm?.approval_flow?.steps.length){
|
||||||
|
template = props.currentForm?.approval_flow;
|
||||||
|
}else{
|
||||||
|
template = props.templateList.find((item: any) =>
|
||||||
item.level === form.value?.change_level &&
|
item.level === form.value?.change_level &&
|
||||||
item.category === form.value?.change_type &&
|
item.category === form.value?.change_type &&
|
||||||
item.duration === form.value?.duration_type
|
item.duration === form.value?.duration_type
|
||||||
) || null;
|
) || null;
|
||||||
|
}
|
||||||
footerRef.value?.clearApprovers();
|
footerRef.value?.clearApprovers();
|
||||||
changeStore.setStepsInfo(template?template.steps:[]);
|
changeStore.setStepsInfo(template?template.steps:[]);
|
||||||
return template?template:null;
|
return template?template:null;
|
||||||
|
|||||||
Reference in New Issue
Block a user