|
|
@ -128,7 +128,7 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
<a-button type="primary" |
|
|
|
<a-button type="primary" |
|
|
|
style="width: 48px" |
|
|
|
style="width: 48px" |
|
|
|
@click="handleCCUserPicker" |
|
|
|
@click="handleAssignUserPicker" |
|
|
|
> |
|
|
|
> |
|
|
|
<Icon icon="fa6-solid:clipboard-user"/> |
|
|
|
<Icon icon="fa6-solid:clipboard-user"/> |
|
|
|
</a-button> |
|
|
|
</a-button> |
|
|
@ -142,7 +142,12 @@ |
|
|
|
<a-button size="large" type="primary" @click="test">审批</a-button> |
|
|
|
<a-button size="large" type="primary" @click="test">审批</a-button> |
|
|
|
<a-button size="large" type="primary" danger>驳回</a-button> |
|
|
|
<a-button size="large" type="primary" danger>驳回</a-button> |
|
|
|
</footer> |
|
|
|
</footer> |
|
|
|
<UserPicker @register="registerModal" @success="handleTransferTask"/> |
|
|
|
<UserPicker :title="state.userPickerProps.title" |
|
|
|
|
|
|
|
:limit="state.userPickerProps.limit" |
|
|
|
|
|
|
|
@register="registerModal" |
|
|
|
|
|
|
|
@ccEmit="handleCCEmit" |
|
|
|
|
|
|
|
@assignEmit="handleAssignEmit" |
|
|
|
|
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script lang="ts" setup> |
|
|
|
<script lang="ts" setup> |
|
|
@ -189,47 +194,51 @@ |
|
|
|
// 外置表单路径 |
|
|
|
// 外置表单路径 |
|
|
|
formPath: string; |
|
|
|
formPath: string; |
|
|
|
// 外置表单是否只读 |
|
|
|
// 外置表单是否只读 |
|
|
|
formReadOnly: boolean, |
|
|
|
formReadOnly: boolean; |
|
|
|
// 外置表单业务数据绑定ID |
|
|
|
// 外置表单业务数据绑定ID |
|
|
|
businessId: string, |
|
|
|
businessId: string; |
|
|
|
// 动态表单字段配置数据 |
|
|
|
// 动态表单字段配置数据 |
|
|
|
taskFormData: FormProperty[], |
|
|
|
taskFormData: FormProperty[]; |
|
|
|
|
|
|
|
|
|
|
|
// 设置选择任务选项卡 |
|
|
|
// 设置选择任务选项卡 |
|
|
|
taskSelectedTab: string, |
|
|
|
taskSelectedTab: string; |
|
|
|
// 流程任务ID |
|
|
|
// 流程任务ID |
|
|
|
taskId: string, |
|
|
|
taskId: string; |
|
|
|
// 流程任务定义key |
|
|
|
// 流程任务定义key |
|
|
|
taskDefKey: string, |
|
|
|
taskDefKey: string; |
|
|
|
|
|
|
|
|
|
|
|
// 流程定义ID |
|
|
|
// 流程定义ID |
|
|
|
processDefId: string, |
|
|
|
processDefId: string; |
|
|
|
// 流程实例ID |
|
|
|
// 流程实例ID |
|
|
|
processInsId: string, |
|
|
|
processInsId: string; |
|
|
|
// 流程定义Key |
|
|
|
// 流程定义Key |
|
|
|
processDefKey: string, |
|
|
|
processDefKey: string; |
|
|
|
|
|
|
|
|
|
|
|
// 当前任务表单操作状态 |
|
|
|
// 当前任务表单操作状态 |
|
|
|
status: string, |
|
|
|
status: string; |
|
|
|
// 历史流转信息 |
|
|
|
// 历史流转信息 |
|
|
|
historyFlowChangeList: Workflow[], |
|
|
|
historyFlowChangeList: Workflow[]; |
|
|
|
// 当前操作按钮配置信息 |
|
|
|
// 当前操作按钮配置信息 |
|
|
|
buttons: Partial<WorkflowButton>[], |
|
|
|
buttons: Partial<WorkflowButton>[]; |
|
|
|
// 是否抄送 |
|
|
|
// 是否抄送 |
|
|
|
isCC: boolean, |
|
|
|
isCC: boolean; |
|
|
|
// 是否指定代理人 |
|
|
|
// 是否指定代理人 |
|
|
|
isAssign: boolean, |
|
|
|
isAssign: boolean; |
|
|
|
// 审批表单信息 |
|
|
|
// 审批表单信息 |
|
|
|
auditForm: { |
|
|
|
auditForm: { |
|
|
|
message: string, |
|
|
|
message: string; |
|
|
|
mesCode: string, |
|
|
|
mesCode: string; |
|
|
|
mesName: string, |
|
|
|
mesName: string; |
|
|
|
// 抄送用户ID |
|
|
|
// 抄送用户ID |
|
|
|
userIds: string[], |
|
|
|
userIds: string[]; |
|
|
|
// 任务代理人ID |
|
|
|
// 任务代理人ID |
|
|
|
assignee: string, |
|
|
|
assignee: string; |
|
|
|
}, |
|
|
|
}, |
|
|
|
rulesRef: Recordable; |
|
|
|
rulesRef: Recordable; |
|
|
|
|
|
|
|
userPickerProps: { |
|
|
|
|
|
|
|
title: string; |
|
|
|
|
|
|
|
limit: number; |
|
|
|
|
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 通用变量统一声明区域 */ |
|
|
|
/** 通用变量统一声明区域 */ |
|
|
@ -276,8 +285,12 @@ |
|
|
|
assignee: '' |
|
|
|
assignee: '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
rulesRef: { |
|
|
|
rulesRef: { |
|
|
|
assignee: [{ required: true, whitespace: true, message: '用户不能为空', validateTrigger: 'blur' }], |
|
|
|
userIds: [{ required: true, type: 'array', message: '抄送用户不能为空', validateTrigger: 'blur' }], |
|
|
|
userIds: [{ required: true, type: 'array', message: '用户不能为空', validateTrigger: 'blur' }] |
|
|
|
assignee: [{ required: true, whitespace: true, message: '处理用户不能为空', validateTrigger: 'blur' }] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
userPickerProps: { |
|
|
|
|
|
|
|
title: '任务表单用户选择器', |
|
|
|
|
|
|
|
limit: 0, |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
const { currentRoute, push } = useRouter(); |
|
|
|
const { currentRoute, push } = useRouter(); |
|
|
@ -345,9 +358,11 @@ |
|
|
|
state.formReadOnly = query.formReadOnly === 'true'; |
|
|
|
state.formReadOnly = query.formReadOnly === 'true'; |
|
|
|
state.isCC = false; |
|
|
|
state.isCC = false; |
|
|
|
state.isAssign = false; |
|
|
|
state.isAssign = false; |
|
|
|
state.auditForm.assignee = '1510539584287346688'; |
|
|
|
state.auditForm.assignee = ''; |
|
|
|
state.auditForm.userIds = ['1510539584287346688']; |
|
|
|
state.auditForm.userIds = []; |
|
|
|
state.auditForm.message = ''; |
|
|
|
state.auditForm.message = ''; |
|
|
|
|
|
|
|
state.userPickerProps.title = '任务表单用户选择器'; |
|
|
|
|
|
|
|
state.userPickerProps.limit = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 流程抄送 */ |
|
|
|
/** 流程抄送 */ |
|
|
@ -421,9 +436,34 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 抄送 */ |
|
|
|
|
|
|
|
function handleCCUserPicker() { |
|
|
|
function handleCCUserPicker() { |
|
|
|
openModal(true,{ record: { ids: [], emitEventName: 'test' } }); |
|
|
|
state.userPickerProps.title = '抄送用户选择'; |
|
|
|
|
|
|
|
state.userPickerProps.limit = 0; |
|
|
|
|
|
|
|
openModal(true,{ |
|
|
|
|
|
|
|
record: { |
|
|
|
|
|
|
|
ids: state.auditForm.userIds, |
|
|
|
|
|
|
|
emitEventName: 'ccEmit' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function handleCCEmit(rows: KiccUser[]) { |
|
|
|
|
|
|
|
state.auditForm.userIds = rows.map(item => item.id); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function handleAssignUserPicker() { |
|
|
|
|
|
|
|
state.userPickerProps.title = '代理用户选择'; |
|
|
|
|
|
|
|
state.userPickerProps.limit = 1; |
|
|
|
|
|
|
|
openModal(true,{ |
|
|
|
|
|
|
|
record: { |
|
|
|
|
|
|
|
ids: [ state.auditForm.assignee ], |
|
|
|
|
|
|
|
emitEventName: 'assignEmit' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function handleAssignEmit(rows: KiccUser[]) { |
|
|
|
|
|
|
|
state.auditForm.assignee = rows[0].id; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 转办 */ |
|
|
|
/** 转办 */ |
|
|
|