feat-wip(components): 抽取leaveEdit组件,适配流程编辑和预览功能

This commit is contained in:
AN
2025-06-17 23:57:04 +08:00
parent 1cbeb59c0b
commit 85115ce327
10 changed files with 233 additions and 80 deletions

View File

@ -10,10 +10,14 @@ declare namespace Api {
* backend api module: "Workflow"
*/
namespace Workflow {
/** 业务流程状态 */
type BusinessStatus = 'cancel' | 'draft' | 'waiting' | 'finish' | 'invalid' | 'back' | 'termination';
/** 流程类型 */
type FlowCodeType = 'leave1' | 'leave2' | 'leave3' | 'leave4' | 'leave5' | 'leave6';
/** 请假状态 */
type LeaveType = '1' | '2' | '3' | '4';
/** leave */
type Leave = Common.CommonRecord<{
/** id */
@ -31,7 +35,7 @@ declare namespace Api {
/** 请假原因 */
remark: string;
/** 状态 */
status: string;
status: BusinessStatus;
}>;
/** leave search params */
@ -44,6 +48,11 @@ declare namespace Api {
Pick<Api.Workflow.Leave, 'id' | 'leaveType' | 'startDate' | 'endDate' | 'leaveDays' | 'remark'>
>;
/** leave detail */
type LeaveDetail = CommonType.RecordNullable<
Pick<Api.Workflow.Leave, 'id' | 'leaveType' | 'startDate' | 'endDate' | 'leaveDays' | 'remark' | 'status'>
>;
/** leave list */
type LeaveList = Api.Common.PaginatingQueryRecord<Leave>;
/** 工作流分类 */