From c785a9fb7ffae9928911a67642679ec3618bf2ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Thu, 17 Jul 2025 14:28:45 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=AF=B7=E6=B1=82=E6=B5=81=E7=A8=8B=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E5=8F=91=E8=B5=B7demo=E6=A1=88=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workflow/leave/index.ts | 12 +++++++ src/components/Process/approvalButton.vue | 11 ++++--- src/views/workflow/leave/leaveEdit.vue | 38 +++++++++++++++-------- 3 files changed, 43 insertions(+), 18 deletions(-) diff --git a/src/api/workflow/leave/index.ts b/src/api/workflow/leave/index.ts index 4e6f363..5a88edb 100644 --- a/src/api/workflow/leave/index.ts +++ b/src/api/workflow/leave/index.ts @@ -39,6 +39,18 @@ export const addLeave = (data: LeaveForm): AxiosPromise => { }); }; +/** + * 提交请假并发起流程 + * @param data + */ +export const submitAndFlowStart = (data: LeaveForm): AxiosPromise => { + return request({ + url: '/workflow/leave/submitAndFlowStart', + method: 'post', + data: data + }); +}; + /** * 修改请假 * @param data diff --git a/src/components/Process/approvalButton.vue b/src/components/Process/approvalButton.vue index cb4fe8d..e53ad3b 100644 --- a/src/components/Process/approvalButton.vue +++ b/src/components/Process/approvalButton.vue @@ -1,8 +1,8 @@