feat(P25-2/P25-3/P26-2/P28-1/P24-2/P29-3): 落地内部OA够用版前端入口与运营页面

关联 Issue: P25-2, P25-3, P25-4, P26-2, P26-4, P28-1, P28-2, P28-3, P28-4, P24-2, P29-3
这个提交包含在:
2026-03-21 18:03:48 +08:00
父节点 e39e41287e
当前提交 9905c1c79d
共修改 44 个文件,包含 2029 行新增和 169 行删除
+17
查看文件
@@ -0,0 +1,17 @@
import { apiRequestData } from "./http";
export type GlobalSearchHit = {
entityType: "reimbursement" | "leave" | "purchase_request" | "travel_request" | "asset";
entityId: string;
title: string;
subtitle: string | null;
status: string | null;
href: string;
matchedBy: "exact" | "prefix" | "contains";
updatedAt: string | null;
};
export async function searchGlobal(q: string, limit = 10) {
const params = new URLSearchParams({ q, limit: String(limit) });
return apiRequestData<{ items: GlobalSearchHit[] }>(`/api/search?${params.toString()}`);
}