feat: 添加请假申请功能

This commit is contained in:
AN
2025-05-29 10:34:00 +08:00
parent b265f590e4
commit d7e0516cfb
15 changed files with 531 additions and 4 deletions

View File

@ -10,6 +10,40 @@ declare namespace Api {
* backend api module: "Workflow"
*/
namespace Workflow {
/** 请假状态 */
type LeaveType = '1' | '2' | '3' | '4';
/** leave */
type Leave = Common.CommonRecord<{
/** id */
id: CommonType.IdType;
/** 租户编号 */
tenantId: CommonType.IdType;
/** 请假类型 */
leaveType: LeaveType;
/** 开始时间 */
startDate: string;
/** 结束时间 */
endDate: string;
/** 请假天数 */
leaveDays: number;
/** 请假原因 */
remark: string;
/** 状态 */
status: string;
}>;
/** leave search params */
type LeaveSearchParams = CommonType.RecordNullable<
Pick<Api.Workflow.Leave, 'leaveDays'> & Api.Common.CommonSearchParams
>;
/** leave operate params */
type LeaveOperateParams = CommonType.RecordNullable<
Pick<Api.Workflow.Leave, 'id' | 'leaveType' | 'startDate' | 'endDate' | 'leaveDays' | 'remark'>
>;
/** leave list */
type LeaveList = Api.Common.PaginatingQueryRecord<Leave>;
/** 工作流分类 */
type WorkflowCategory = Common.CommonRecord<{
/** 主键 */

View File

@ -92,6 +92,7 @@ declare module 'vue' {
NInput: typeof import('naive-ui')['NInput']
NInputGroup: typeof import('naive-ui')['NInputGroup']
NInputGroupLabel: typeof import('naive-ui')['NInputGroupLabel']
NInputNubmer: typeof import('naive-ui')['NInputNubmer']
NInputNumber: typeof import('naive-ui')['NInputNumber']
NLayout: typeof import('naive-ui')['NLayout']
NLayoutContent: typeof import('naive-ui')['NLayoutContent']

View File

@ -55,6 +55,7 @@ declare module "@elegant-router/types" {
"user-center": "/user-center";
"workflow": "/workflow";
"workflow_category": "/workflow/category";
"workflow_leave": "/workflow/leave";
"workflow_process-definition": "/workflow/process-definition";
"workflow_process-instance": "/workflow/process-instance";
};
@ -151,6 +152,7 @@ declare module "@elegant-router/types" {
| "system_user"
| "tool_gen"
| "workflow_category"
| "workflow_leave"
| "workflow_process-definition"
| "workflow_process-instance"
>;