[MVPTN-2] feat(CRUD): Atualização no crud de gerenciamento de andamentos
This commit is contained in:
parent
11aff8e15a
commit
3355c98164
8 changed files with 14 additions and 12 deletions
|
|
@ -6,7 +6,7 @@ import { useEffect, useState } from "react";
|
|||
import { useTTBAndamentoServicoReadHook } from "../../_hooks/t_tb_andamentoservico/useTTBAndamentoServicoReadHook";
|
||||
import Loading from "@/app/_components/loading/loading";
|
||||
import TTBAndamentoServicoInteface, { tipoEnum } from "../../_interfaces/TTBAndamentoServicoInterface";
|
||||
import { TTBAndamentoServicoSchema } from "../../_schemas/TTBAndamentoServico";
|
||||
import { TTBAndamentoServicoSchema } from "../../_schemas/TTBAndamentoServicoSchema";
|
||||
import z from "zod";
|
||||
import { useTTBAndamentoServicoSaveHook } from "../../_hooks/t_tb_andamentoservico/useTTBAndamentoServicoSaveHook";
|
||||
import TTBAndamentoServicoTable from "../../_components/t_tb_andamentoservico/TTBAndamentoServicoTable";
|
||||
|
|
|
|||
|
|
@ -33,12 +33,12 @@ import {
|
|||
TableHeader,
|
||||
TableRow,
|
||||
} from "@/components/ui/table"
|
||||
import { useTTBReconhecimentoTipoReadHooks } from "../../_hooks/useTTBReconhecimentoTipoReadHooks"
|
||||
import { useTTBReconhecimentoTipoReadHooks } from "../../_hooks/t_tb_reocnhecimentotipo/useTTBReconhecimentoTipoReadHooks"
|
||||
import { useEffect, useState } from "react"
|
||||
import ITTTBReconhecimentoTipo from "../../_interfaces/ITTTBReconhecimentoTipo"
|
||||
import ITTTBReconhecimentoTipo from "../../_interfaces/TTBReconhecimentoTipoInterface"
|
||||
import Loading from "@/app/_components/loading/loading"
|
||||
import { Button } from "@/components/ui/button"
|
||||
import { useTTBReconhecimentoTipoSaveHooks } from "../../_hooks/useTTBReconhecimentoTipoSaveHooks"
|
||||
import { useTTBReconhecimentoTipoSaveHooks } from "../../_hooks/t_tb_reocnhecimentotipo/useTTBReconhecimentoTipoSaveHooks"
|
||||
import { Controller, useForm } from "react-hook-form"
|
||||
import {
|
||||
Form,
|
||||
|
|
@ -49,7 +49,7 @@ import {
|
|||
FormMessage,
|
||||
} from "@/components/ui/form"
|
||||
import { zodResolver } from "@hookform/resolvers/zod"
|
||||
import { TTBReconhecimentoTipoSchema } from "../../_schemas/TTTBReconhecimentoTipo"
|
||||
import { TTBReconhecimentoTipoSchema } from "../../_schemas/TTBReconhecimentoTipoSchema"
|
||||
import z from "zod"
|
||||
import { Label } from "@/components/ui/label"
|
||||
import { Checkbox } from "@/components/ui/checkbox"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { Input } from "@/components/ui/input";
|
|||
import { Label } from "@/components/ui/label";
|
||||
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
|
||||
import { Controller, useForm } from "react-hook-form";
|
||||
import { TTBAndamentoServicoSchema } from "../../_schemas/TTBAndamentoServico";
|
||||
import { TTBAndamentoServicoSchema } from "../../_schemas/TTBAndamentoServicoSchema";
|
||||
import { tipoEnum } from "../../_interfaces/TTBAndamentoServicoInterface";
|
||||
|
||||
type FormValues = z.infer<typeof TTBAndamentoServicoSchema>
|
||||
|
|
@ -52,7 +52,9 @@ export default function TTBAndamentoServicoForm({ isOpen, onClose, initialData,
|
|||
<Form {...form}>
|
||||
<form onSubmit={form.handleSubmit(onSave)} className="space-y-8">
|
||||
<DialogHeader>
|
||||
<DialogTitle>Andamentos</DialogTitle>
|
||||
<DialogTitle>
|
||||
Andamentos
|
||||
</DialogTitle>
|
||||
<DialogDescription>
|
||||
Controle de andamentos de atos
|
||||
</DialogDescription>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
'use client'
|
||||
|
||||
import ITTTBReconhecimentoTipo from '../_interfaces/ITTTBReconhecimentoTipo'
|
||||
import ITTTBReconhecimentoTipo from '../../_interfaces/TTBReconhecimentoTipoInterface'
|
||||
import { useResponse } from "@/app/_response/ResponseContext"
|
||||
import { useState } from "react";
|
||||
import TTBReconhecimentoTipoIndexData from '../_data/TTBReconhecimentoTipo/TTBReconhecimentoTipoIndexData';
|
||||
import TTBReconhecimentoTipoIndexData from '../../_data/TTBReconhecimentoTipo/TTBReconhecimentoTipoIndexData';
|
||||
|
||||
export const useTTBReconhecimentoTipoReadHooks = () => {
|
||||
|
||||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import { useResponse } from "@/app/_response/ResponseContext"
|
||||
import { useState } from "react";
|
||||
import ITTTBReconhecimentoTipo from '../_interfaces/ITTTBReconhecimentoTipo'
|
||||
import TTBReconhecimentoTipoSaveData from "../_data/TTBReconhecimentoTipo/TTBReconhecimentoTipoSaveData";
|
||||
import ITTTBReconhecimentoTipo from '../../_interfaces/TTBReconhecimentoTipoInterface'
|
||||
import TTBReconhecimentoTipoSaveData from "../../_data/TTBReconhecimentoTipo/TTBReconhecimentoTipoSaveData";
|
||||
|
||||
export const useTTBReconhecimentoTipoSaveHooks = () => {
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
export default interface ITTTBReconhecimentoTipo{
|
||||
export default interface TTBReconhecimentoTipoInterface{
|
||||
tb_reconhecimentotipo_id: number,
|
||||
descricao: string,
|
||||
situacao: string,
|
||||
Loading…
Add table
Reference in a new issue