feat:【bpm】优化业务表单流程添加重新发起功能

This commit is contained in:
YunaiV
2025-12-27 11:39:24 +08:00
parent e80e4cdea8
commit 46602fec26
2 changed files with 3 additions and 3 deletions

View File

@@ -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))
}
// 审批相关:加载最新的审批详情,主要用于节点预测

View File

@@ -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,