You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

87 lines
1.4 KiB

export function getTabs(flowKey) {
if (flowKey === 'first_sign') {
return [
{
name: '信件信息',
template: 'MainContactInfo'
},
{
name: '信件类型',
template: 'MailTypeForm'
},
]
}
if (flowKey === 'first_distribute' || flowKey === 'second_distribute') {
return [
{
name: '信件信息',
template: 'MainContactInfo'
},
{
name: '办理单位',
template: 'DeptSelectForm'
},
{
name: '流转记录',
template: 'Flows'
},
]
}
if (flowKey === 'second_approval' || flowKey === 'countersign' || flowKey === 'first_approval') {
return [
{
name: '办理情况',
template: 'MainContactInfo'
},
{
name: '审批意见',
template: 'ApprovalOpinions'
},
{
name: '流转记录',
template: 'Flows'
}
]
}
if (flowKey === 'contact_writer') {
return [
{
name: '信件信息',
template: 'MainContactInfo'
},
{
name: '联系群众',
template: 'ContactWriter'
},
{
name: '流转记录',
template: 'Flows'
}
]
}
// if (flowKey === 'second_sign' || flowKey === 'three_sign') {
// return [
// {
// name: '信件信息',
// template: 'MainContactInfo'
// },
// {
// name: '流转记录',
// template: 'Flows'
// }
// ]
// }
return [
{
name: '信件信息',
template: 'MainContactInfo'
},
{
name: '流转记录',
template: 'Flows'
}
]
}