feat(P17B-1,P17B-2): 补齐采购预算闭环与归档模型接口

这个提交包含在:
2026-03-07 22:00:50 +08:00
父节点 019423776e
当前提交 033cfd6833
共修改 8 个文件,包含 578 行新增和 5 行删除
+5 -1
查看文件
@@ -364,7 +364,11 @@ function buildMasterDataViewPreHandler(fastify) {
await fastify.authenticate(request);
const canView =
fastify.hasPermission(request.employee, "masterdata.view") ||
fastify.hasPermission(request.employee, "masterdata.manage");
fastify.hasPermission(request.employee, "masterdata.manage") ||
fastify.hasPermission(request.employee, "procurement.create") ||
fastify.hasPermission(request.employee, "procurement.view_own") ||
fastify.hasPermission(request.employee, "procurement.view_all") ||
fastify.hasPermission(request.employee, "procurement.manage");
if (!canView) {
throw new AppError({