瀏覽代碼

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

YunaiV 1 月之前
父節點
當前提交
46602fec26
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      src/views/bpm/oa/leave/create.vue
  2. 1 1
      src/views/bpm/processInstance/index.vue

+ 2 - 2
src/views/bpm/oa/leave/create.vue

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

+ 1 - 1
src/views/bpm/processInstance/index.vue

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