refactor: enhance employee management with regime de trabalho integration

- Added regime de trabalho selection to employee forms for better categorization.
- Updated backend validation to include regime de trabalho options for employees.
- Enhanced employee data handling by integrating regime de trabalho into various components.
- Removed the print modal for financial data to streamline the employee profile interface.
- Improved overall code clarity and maintainability across multiple files.
This commit is contained in:
2025-11-11 16:10:08 -03:00
parent 3cc774d7df
commit 8a0a4552f7
12 changed files with 3213 additions and 1802 deletions

View File

@@ -36,6 +36,15 @@ const aposentadoValidator = v.optional(
v.union(v.literal("nao"), v.literal("funape_ipsep"), v.literal("inss"))
);
const regimeTrabalhoValidator = v.optional(
v.union(
v.literal("clt"),
v.literal("estatutario_pe"),
v.literal("estatutario_federal"),
v.literal("estatutario_municipal")
)
);
export const getAll = query({
args: {},
handler: async (ctx) => {
@@ -282,6 +291,7 @@ export const update = mutation({
nomeacaoPortaria: v.optional(v.string()),
nomeacaoData: v.optional(v.string()),
nomeacaoDOE: v.optional(v.string()),
regimeTrabalho: regimeTrabalhoValidator,
pertenceOrgaoPublico: v.optional(v.boolean()),
orgaoOrigem: v.optional(v.string()),
aposentado: aposentadoValidator,