mirror of
https://gitee.com/yudaocode/yudao-ui-admin-vue3.git
synced 2025-12-30 01:22:27 +00:00
feat:【bpm】优化业务表单流程添加重新发起功能
This commit is contained in:
@@ -192,7 +192,7 @@ const daysDifference = () => {
|
||||
}
|
||||
|
||||
/** 获取请假数据,用于重新发起时自动填充 */
|
||||
const getLeaveData = async (id: number) => {
|
||||
const getDetail = async (id: number) => {
|
||||
try {
|
||||
formLoading.value = true
|
||||
const data = await LeaveApi.getLeave(id)
|
||||
@@ -228,7 +228,7 @@ onMounted(async () => {
|
||||
|
||||
// 如果有业务编号,说明是重新发起,需要加载原有数据
|
||||
if (query.id) {
|
||||
await getLeaveData(Number(query.id))
|
||||
await getDetail(Number(query.id))
|
||||
}
|
||||
|
||||
// 审批相关:加载最新的审批详情,主要用于节点预测
|
||||
|
||||
@@ -279,7 +279,7 @@ const handleCreate = async (row?: ProcessInstanceVO) => {
|
||||
const processDefinitionDetail = await DefinitionApi.getProcessDefinition(
|
||||
row.processDefinitionId
|
||||
)
|
||||
//如果是【业务表单】,跳转到对应的发起界面
|
||||
// 如果是【业务表单】,跳转到对应的发起界面
|
||||
if (processDefinitionDetail.formType === 20) {
|
||||
await router.push({
|
||||
path: processDefinitionDetail.formCustomCreatePath,
|
||||
|
||||
Reference in New Issue
Block a user