feat: 更新请假申请表单,添加流程类型选择和流程启动功能

This commit is contained in:
AN
2025-05-31 23:48:36 +08:00
parent ab1d3a237e
commit 49521b667d
9 changed files with 345 additions and 15 deletions

View File

@ -18,7 +18,7 @@ export function fetchGetLeaveDetail(id: CommonType.IdType) {
/** 新增请假申请 */
export function fetchCreateLeave(data: Api.Workflow.LeaveOperateParams) {
return request<boolean>({
return request<Api.Workflow.Leave>({
url: '/workflow/leave',
method: 'post',
data
@ -27,7 +27,7 @@ export function fetchCreateLeave(data: Api.Workflow.LeaveOperateParams) {
/** 修改请假申请 */
export function fetchUpdateLeave(data: Api.Workflow.LeaveOperateParams) {
return request<boolean>({
return request<Api.Workflow.Leave>({
url: '/workflow/leave',
method: 'put',
data