LP6 完善请假采购体验与审批说明
这个提交包含在:
@@ -299,6 +299,10 @@ export function mapApiErrorMessage(
|
||||
return "当前报销金额超出预算,系统已阻断提交。";
|
||||
}
|
||||
|
||||
if (details?.budget === "missing_budget_pool") {
|
||||
return "未匹配到预算池;当前强预算校验已阻断提交,请联系管理员补充预算配置。";
|
||||
}
|
||||
|
||||
if (details?.leave === "conflict_range") {
|
||||
return "当前时间段与已有请假记录冲突,请调整后再提交。";
|
||||
}
|
||||
|
||||
@@ -66,6 +66,28 @@ export type LeaveRequestItem = {
|
||||
employeeNo: string;
|
||||
name: string;
|
||||
} | null;
|
||||
pendingWorkflow: {
|
||||
instanceId: string;
|
||||
currentStatus: string;
|
||||
currentStepId: string;
|
||||
task: {
|
||||
id: string;
|
||||
stepId: string;
|
||||
stepName: string;
|
||||
assigneeId: string | null;
|
||||
assigneeRole: string | null;
|
||||
} | null;
|
||||
} | null;
|
||||
approvalHistory: Array<{
|
||||
id: string;
|
||||
taskId: string | null;
|
||||
actorId: string;
|
||||
actorName: string | null;
|
||||
actorEmployeeNo: string | null;
|
||||
action: string;
|
||||
comment: string | null;
|
||||
createdAt: string | null;
|
||||
}>;
|
||||
createdAt: string | null;
|
||||
updatedAt: string | null;
|
||||
};
|
||||
|
||||
@@ -199,6 +199,16 @@ export type PurchaseRequestDetail = PurchaseRequestSummary & {
|
||||
assigneeRole: string | null;
|
||||
} | null;
|
||||
} | null;
|
||||
approvalHistory: Array<{
|
||||
id: string;
|
||||
taskId: string | null;
|
||||
actorId: string;
|
||||
actorName: string | null;
|
||||
actorEmployeeNo: string | null;
|
||||
action: string;
|
||||
comment: string | null;
|
||||
createdAt: string | null;
|
||||
}>;
|
||||
archiveOrder: PurchaseOrderArchive | null;
|
||||
permissions: {
|
||||
canEditDraft: boolean;
|
||||
|
||||
在新工单中引用
屏蔽一个用户