mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat: 添加请假申请功能
This commit is contained in:
34
src/typings/api/workflow.api.d.ts
vendored
34
src/typings/api/workflow.api.d.ts
vendored
@ -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<{
|
||||
/** 主键 */
|
||||
|
1
src/typings/components.d.ts
vendored
1
src/typings/components.d.ts
vendored
@ -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']
|
||||
|
2
src/typings/elegant-router.d.ts
vendored
2
src/typings/elegant-router.d.ts
vendored
@ -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"
|
||||
>;
|
||||
|
Reference in New Issue
Block a user