@orbe-agro/client-core 5.6.184 → 5.6.186
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@ecme/components/template/Footer.js +1 -1
- package/dist/@types/base/@types/models/flux/formularioBase.d.ts +1 -0
- package/dist/@types/base/@types/models/flux/formularioBase.d.ts.map +1 -1
- package/dist/@types/base/components/shared/EncerrarProcessoDialog.d.ts +8 -0
- package/dist/@types/base/components/shared/EncerrarProcessoDialog.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +1 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/flux/config/processo.d.ts +1 -0
- package/dist/@types/base/configs/endpoints.config/flux/config/processo.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/flux/flux.d.ts +1 -0
- package/dist/@types/base/configs/endpoints.config/flux/flux.d.ts.map +1 -1
- package/dist/@types/base/hooks/flux/useEncerrarProcesso.d.ts +3 -0
- package/dist/@types/base/hooks/flux/useEncerrarProcesso.d.ts.map +1 -0
- package/dist/@types/base/services/modules/flux/FluxService.d.ts +1 -0
- package/dist/@types/base/services/modules/flux/FluxService.d.ts.map +1 -1
- package/dist/@types/base/utils/colorClassName/badge.d.ts.map +1 -1
- package/dist/base/components/shared/EncerrarProcessoDialog.js +65 -0
- package/dist/base/components/shared/EncerrarProcessoDialog.js.map +1 -0
- package/dist/base/configs/endpoints.config/flux/config/processo.js +1 -0
- package/dist/base/configs/endpoints.config/flux/config/processo.js.map +1 -1
- package/dist/base/hooks/flux/useEncerrarProcesso.js +27 -0
- package/dist/base/hooks/flux/useEncerrarProcesso.js.map +1 -0
- package/dist/base/services/modules/flux/FluxService.js +8 -0
- package/dist/base/services/modules/flux/FluxService.js.map +1 -1
- package/dist/base/utils/colorClassName/badge.js +1 -0
- package/dist/base/utils/colorClassName/badge.js.map +1 -1
- package/lib/base/@types/models/flux/formularioBase.ts +1 -0
- package/lib/base/components/shared/EncerrarProcessoDialog.tsx +77 -0
- package/lib/base/configs/endpoints.config/flux/config/processo.ts +1 -0
- package/lib/base/hooks/flux/useEncerrarProcesso.tsx +29 -0
- package/lib/base/services/modules/flux/FluxService.ts +8 -0
- package/lib/base/utils/colorClassName/badge.ts +1 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import Container from "../shared/Container.js";
|
|
|
3
3
|
import classNames from "../../utils/classNames.js";
|
|
4
4
|
import { APP_NAME } from "../../constants/app.constant.js";
|
|
5
5
|
import { PAGE_CONTAINER_GUTTER_X } from "../../constants/theme.constant.js";
|
|
6
|
-
const version = true ? "5.6.
|
|
6
|
+
const version = true ? "5.6.186" : "0.0.0";
|
|
7
7
|
const FooterContent = () => {
|
|
8
8
|
return /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-auto items-center justify-between", children: [
|
|
9
9
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formularioBase.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/flux/formularioBase.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,oBAAoB,EAAE,CAAC;IACzC,gBAAgB,EAAE,oBAAoB,EAAE,CAAC;IACzC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"formularioBase.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/@types/models/flux/formularioBase.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,oBAAoB,EAAE,CAAC;IACzC,gBAAgB,EAAE,oBAAoB,EAAE,CAAC;IACzC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface EncerrarProcessoDialogProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
idProcesso: number;
|
|
5
|
+
}
|
|
6
|
+
declare const EncerrarProcessoDialog: ({ isOpen, onClose, idProcesso, }: EncerrarProcessoDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default EncerrarProcessoDialog;
|
|
8
|
+
//# sourceMappingURL=EncerrarProcessoDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EncerrarProcessoDialog.d.ts","sourceRoot":"","sources":["../../../../../lib/base/components/shared/EncerrarProcessoDialog.tsx"],"names":[],"mappings":"AAMA,UAAU,2BAA2B;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,sBAAsB,GAAI,kCAI7B,2BAA2B,4CA0D7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAyDA,eAAO,MAAM,SAAS,SAAS,CAAA;AAE/B,QAAA,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAyDA,eAAO,MAAM,SAAS,SAAS,CAAA;AAE/B,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyD7B,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processo.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/flux/config/processo.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"processo.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/flux/config/processo.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;CAgBb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flux.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/flux/flux.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"flux.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/flux/flux.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQT,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TActionProcesso, TProcesso } from '@base/@types/models/flux/processo';
|
|
2
|
+
export default function useEncerrarProcesso(onClose?: () => void, onReset?: () => void): import("@tanstack/react-query").UseMutationResult<TProcesso, Error, TActionProcesso, unknown>;
|
|
3
|
+
//# sourceMappingURL=useEncerrarProcesso.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEncerrarProcesso.d.ts","sourceRoot":"","sources":["../../../../../lib/base/hooks/flux/useEncerrarProcesso.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAI9E,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACvC,OAAO,CAAC,EAAE,MAAM,IAAI,EACpB,OAAO,CAAC,EAAE,MAAM,IAAI,iGAqBvB"}
|
|
@@ -47,6 +47,7 @@ export declare function apiTransferirAtendente(body?: TActionProcesso): Promise<
|
|
|
47
47
|
export declare function apiAdicionarHistorico(body?: TActionProcesso): Promise<TProcesso>;
|
|
48
48
|
export declare function apiRetornarFluxoAtendimento(body?: TActionProcesso): Promise<TProcesso>;
|
|
49
49
|
export declare function apiReabrirProcesso(body?: TActionProcesso): Promise<TProcesso>;
|
|
50
|
+
export declare function apiEncerrarProcesso(body?: TActionProcesso): Promise<TProcesso>;
|
|
50
51
|
export declare function apiGetUsuariosGrupoAtendimentoAtual(processoId: number): Promise<any[]>;
|
|
51
52
|
export declare function apiGetBaseDeConhecimento(body?: any): Promise<TBaseDeConhecimento>;
|
|
52
53
|
//# sourceMappingURL=FluxService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FluxService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/flux/FluxService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,i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AAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,4BAKvD;AAED,wBAAsB,cAAc,CAAC,IAAI,CAAC,EAAE,aAAa,sCAMxD;AAED,wBAAsB,iBAAiB,CAAC,IAAI,CAAC,EAAE,SAAS,sCAMvD;AAED,wBAAsB,iBAAiB,CAAC,IAAI,CAAC,EAAE,eAAe,sCAM7D;AAED,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,MAAM,sBAKlD;AAED,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,MAAM,sBAKlD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,CAAC,EAAE,eAAe,sBAM/D;AAED,wBAAsB,mBAAmB,CAAC,IAAI,CAAC,EAAE,eAAe,sBAM/D;AAED,wBAAsB,qBAAqB,CAAC,IAAI,CAAC,EAAE,eAAe,sBAMjE;AAED,wBAAsB,wBAAwB,CAAC,IAAI,CAAC,EAAE,eAAe,sBAMpE;AAED,wBAAsB,sBAAsB,CAAC,IAAI,CAAC,EAAE,eAAe,sBAMlE;AAED,wBAAsB,qBAAqB,CAAC,IAAI,CAAC,EAAE,eAAe,sBAMjE;AAED,wBAAsB,2BAA2B,CAAC,IAAI,CAAC,EAAE,eAAe,sBAMvE;AAED,wBAAsB,kBAAkB,CAAC,IAAI,CAAC,EAAE,eAAe,sBAM9D;AAED,wBAAsB,mBAAmB,CAAC,IAAI,CAAC,EAAE,eAAe,sBAM/D;AAED,wBAAsB,mCAAmC,CAAC,UAAU,EAAE,MAAM,kBAK3E;AAED,wBAAsB,wBAAwB,CAAC,IAAI,CAAC,EAAE,GAAG,gCAMxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../../lib/base/utils/colorClassName/badge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../../lib/base/utils/colorClassName/badge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkErD,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import "../../../@ecme/components/ui/index.js";
|
|
3
|
+
import "../../../@ecme/components/index.js";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import useEncerrarProcesso from "../../hooks/flux/useEncerrarProcesso.js";
|
|
6
|
+
import Button from "../../../@ecme/components/ui/Button/Button.js";
|
|
7
|
+
import Tooltip from "../../../@ecme/components/ui/Tooltip/Tooltip.js";
|
|
8
|
+
import Drawer from "../../../@ecme/components/ui/Drawer/Drawer.js";
|
|
9
|
+
import Input from "../../../@ecme/components/ui/Input/Input.js";
|
|
10
|
+
const EncerrarProcessoDialog = ({
|
|
11
|
+
isOpen,
|
|
12
|
+
onClose,
|
|
13
|
+
idProcesso
|
|
14
|
+
}) => {
|
|
15
|
+
const { mutate: encerrarProcesso } = useEncerrarProcesso(
|
|
16
|
+
onClose,
|
|
17
|
+
() => setMotivo("")
|
|
18
|
+
);
|
|
19
|
+
const [motivo, setMotivo] = useState("");
|
|
20
|
+
const handleEncerrarProcesso = (dados) => {
|
|
21
|
+
encerrarProcesso(dados);
|
|
22
|
+
};
|
|
23
|
+
const Footer = /* @__PURE__ */ jsxs("div", { className: "flex w-full items-start", children: [
|
|
24
|
+
/* @__PURE__ */ jsx(Button, { block: true, className: "mx-2", onClick: () => onClose(), children: "Cancelar" }),
|
|
25
|
+
/* @__PURE__ */ jsx(Tooltip, { title: !motivo ? "Motivo obrigatório" : /* @__PURE__ */ jsx(Fragment, {}), placement: "top", children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
26
|
+
Button,
|
|
27
|
+
{
|
|
28
|
+
block: true,
|
|
29
|
+
className: "mx-2",
|
|
30
|
+
variant: "solid",
|
|
31
|
+
disabled: !motivo,
|
|
32
|
+
onClick: () => handleEncerrarProcesso({
|
|
33
|
+
idProcesso,
|
|
34
|
+
mensagemInteracao: motivo
|
|
35
|
+
}),
|
|
36
|
+
children: "Confirmar"
|
|
37
|
+
}
|
|
38
|
+
) }) })
|
|
39
|
+
] });
|
|
40
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
41
|
+
Drawer,
|
|
42
|
+
{
|
|
43
|
+
title: "Encerrar Processo",
|
|
44
|
+
isOpen,
|
|
45
|
+
onClose,
|
|
46
|
+
onRequestClose: onClose,
|
|
47
|
+
footer: Footer,
|
|
48
|
+
children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4 p-4", children: /* @__PURE__ */ jsx(
|
|
49
|
+
Input,
|
|
50
|
+
{
|
|
51
|
+
textArea: true,
|
|
52
|
+
required: true,
|
|
53
|
+
rows: 4,
|
|
54
|
+
placeholder: "Motivo do encerramento",
|
|
55
|
+
value: motivo,
|
|
56
|
+
onChange: (e) => setMotivo(e.target.value)
|
|
57
|
+
}
|
|
58
|
+
) })
|
|
59
|
+
}
|
|
60
|
+
) });
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
EncerrarProcessoDialog as default
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=EncerrarProcessoDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EncerrarProcessoDialog.js","sources":["../../../../lib/base/components/shared/EncerrarProcessoDialog.tsx"],"sourcesContent":["import { Drawer, Input, Tooltip } from \"@/components/ui\";\nimport { TActionProcesso } from \"@base/@types/models/flux/processo\";\nimport { Button, Dialog } from \"@/components\";\nimport { useState } from \"react\";\nimport useEncerrarProcesso from \"@base/hooks/flux/useEncerrarProcesso\";\n\ninterface EncerrarProcessoDialogProps {\n isOpen: boolean;\n onClose: () => void;\n idProcesso: number;\n}\n\nconst EncerrarProcessoDialog = ({\n isOpen,\n onClose,\n idProcesso,\n}: EncerrarProcessoDialogProps) => {\n const { mutate: encerrarProcesso } = useEncerrarProcesso(onClose, () =>\n setMotivo(\"\")\n );\n const [motivo, setMotivo] = useState<string>(\"\");\n\n const handleEncerrarProcesso = (dados: TActionProcesso) => {\n encerrarProcesso(dados);\n };\n\n const Footer = (\n <div className=\"flex w-full items-start\">\n <Button block className=\"mx-2\" onClick={() => onClose()}>\n Cancelar\n </Button>\n <Tooltip title={!motivo ? \"Motivo obrigatório\" : <></>} placement=\"top\">\n <span>\n <Button\n block\n className=\"mx-2\"\n variant=\"solid\"\n disabled={!motivo}\n onClick={() =>\n handleEncerrarProcesso({\n idProcesso,\n mensagemInteracao: motivo,\n })\n }\n >\n Confirmar\n </Button>\n </span>\n </Tooltip>\n </div>\n );\n\n return (\n <>\n <Drawer\n title=\"Encerrar Processo\"\n isOpen={isOpen}\n onClose={onClose}\n onRequestClose={onClose}\n footer={Footer}\n >\n <div className=\"flex flex-col gap-4 p-4\">\n <Input\n textArea\n required\n rows={4}\n placeholder=\"Motivo do encerramento\"\n value={motivo}\n onChange={(e) => setMotivo(e.target.value)}\n />\n </div>\n </Drawer>\n </>\n );\n};\n\nexport default EncerrarProcessoDialog;\n"],"names":[],"mappings":";;;;;;;;;AAYA,MAAM,yBAAyB,CAAC;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AACF,MAAmC;AACjC,QAAM,EAAE,QAAQ,iBAAA,IAAqB;AAAA,IAAoB;AAAA,IAAS,MAChE,UAAU,EAAE;AAAA,EAAA;AAEd,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAiB,EAAE;AAE/C,QAAM,yBAAyB,CAAC,UAA2B;AACzD,qBAAiB,KAAK;AAAA,EACxB;AAEA,QAAM,SACJ,qBAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,IAAA,oBAAC,QAAA,EAAO,OAAK,MAAC,WAAU,QAAO,SAAS,MAAM,QAAA,GAAW,UAAA,WAAA,CAEzD;AAAA,IACA,oBAAC,SAAA,EAAQ,OAAO,CAAC,SAAS,uBAAuB,oBAAA,UAAA,CAAA,CAAE,GAAK,WAAU,OAChE,UAAA,oBAAC,QAAA,EACC,UAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,OAAK;AAAA,QACL,WAAU;AAAA,QACV,SAAQ;AAAA,QACR,UAAU,CAAC;AAAA,QACX,SAAS,MACP,uBAAuB;AAAA,UACrB;AAAA,UACA,mBAAmB;AAAA,QAAA,CACpB;AAAA,QAEJ,UAAA;AAAA,MAAA;AAAA,IAAA,GAGH,EAAA,CACF;AAAA,EAAA,GACF;AAGF,SACE,oBAAA,UAAA,EACE,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA,gBAAgB;AAAA,MAChB,QAAQ;AAAA,MAER,UAAA,oBAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,UAAQ;AAAA,UACR,UAAQ;AAAA,UACR,MAAM;AAAA,UACN,aAAY;AAAA,UACZ,OAAO;AAAA,UACP,UAAU,CAAC,MAAM,UAAU,EAAE,OAAO,KAAK;AAAA,QAAA;AAAA,MAAA,EAC3C,CACF;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
|
|
@@ -12,6 +12,7 @@ const processo = {
|
|
|
12
12
|
adicionarHistorico: "/flux/api/processo/adicionar-historico",
|
|
13
13
|
retornarFluxoAtendimento: "/flux/api/processo/retornar-fluxo-atendimento",
|
|
14
14
|
reabrir: "/flux/api/processo/reabrir",
|
|
15
|
+
encerrar: "/flux/api/processo/encerrar",
|
|
15
16
|
usuariosGrupoAtendimentoAtual: "/flux/api/processo"
|
|
16
17
|
};
|
|
17
18
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processo.js","sources":["../../../../../../lib/base/configs/endpoints.config/flux/config/processo.ts"],"sourcesContent":["const processo = {\n add: \"/flux/api/processo/add\",\n findAll: \"/flux/api/processo/find\",\n findOne: \"/flux/api/processo\",\n update: \"/flux/api/processo/update\",\n aceitar: \"/flux/api/processo/aceitar\",\n concluir: \"/flux/api/processo/concluir\",\n cancelar: \"/flux/api/processo/cancelar\",\n transferir: \"/flux/api/processo/transferir\",\n transferirSolicitante: \"/flux/api/processo/transferir-para-solicitante\",\n transferirAtendente: \"/flux/api/processo/transferir-para-atendente\",\n adicionarHistorico: \"/flux/api/processo/adicionar-historico\",\n retornarFluxoAtendimento: \"/flux/api/processo/retornar-fluxo-atendimento\",\n reabrir: \"/flux/api/processo/reabrir\",\n usuariosGrupoAtendimentoAtual: \"/flux/api/processo\",\n};\n\nexport default processo;\n"],"names":[],"mappings":"AAAA,MAAM,WAAW;AAAA,EACf,KAAK;AAAA,EACL,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,0BAA0B;AAAA,EAC1B,SAAS;AAAA,EACT,+BAA+B;AACjC;"}
|
|
1
|
+
{"version":3,"file":"processo.js","sources":["../../../../../../lib/base/configs/endpoints.config/flux/config/processo.ts"],"sourcesContent":["const processo = {\n add: \"/flux/api/processo/add\",\n findAll: \"/flux/api/processo/find\",\n findOne: \"/flux/api/processo\",\n update: \"/flux/api/processo/update\",\n aceitar: \"/flux/api/processo/aceitar\",\n concluir: \"/flux/api/processo/concluir\",\n cancelar: \"/flux/api/processo/cancelar\",\n transferir: \"/flux/api/processo/transferir\",\n transferirSolicitante: \"/flux/api/processo/transferir-para-solicitante\",\n transferirAtendente: \"/flux/api/processo/transferir-para-atendente\",\n adicionarHistorico: \"/flux/api/processo/adicionar-historico\",\n retornarFluxoAtendimento: \"/flux/api/processo/retornar-fluxo-atendimento\",\n reabrir: \"/flux/api/processo/reabrir\",\n encerrar: \"/flux/api/processo/encerrar\",\n usuariosGrupoAtendimentoAtual: \"/flux/api/processo\",\n};\n\nexport default processo;\n"],"names":[],"mappings":"AAAA,MAAM,WAAW;AAAA,EACf,KAAK;AAAA,EACL,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,0BAA0B;AAAA,EAC1B,SAAS;AAAA,EACT,UAAU;AAAA,EACV,+BAA+B;AACjC;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "../../../@ecme/components/index.js";
|
|
3
|
+
import { apiEncerrarProcesso } from "../../services/modules/flux/FluxService.js";
|
|
4
|
+
import { useMutation } from "@tanstack/react-query";
|
|
5
|
+
import toast from "../../../@ecme/components/ui/toast/toast.js";
|
|
6
|
+
import Notification from "../../../@ecme/components/ui/Notification/Notification.js";
|
|
7
|
+
function useEncerrarProcesso(onClose, onReset) {
|
|
8
|
+
return useMutation({
|
|
9
|
+
mutationFn: apiEncerrarProcesso,
|
|
10
|
+
onSuccess: () => {
|
|
11
|
+
if (onClose) onClose();
|
|
12
|
+
if (onReset) onReset();
|
|
13
|
+
toast.push(
|
|
14
|
+
/* @__PURE__ */ jsx(Notification, { title: "Sucesso", type: "success", children: "Processo encerrado com sucesso" })
|
|
15
|
+
);
|
|
16
|
+
},
|
|
17
|
+
onError: (error) => {
|
|
18
|
+
toast.push(
|
|
19
|
+
/* @__PURE__ */ jsx(Notification, { title: "Erro", type: "danger", children: error.message })
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
useEncerrarProcesso as default
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=useEncerrarProcesso.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEncerrarProcesso.js","sources":["../../../../lib/base/hooks/flux/useEncerrarProcesso.tsx"],"sourcesContent":["import { Notification, toast } from '@/components'\nimport { TActionProcesso, TProcesso } from '@base/@types/models/flux/processo'\nimport { apiEncerrarProcesso } from '@base/services/modules/flux/FluxService'\nimport { useMutation } from '@tanstack/react-query'\n\nexport default function useEncerrarProcesso(\n onClose?: () => void,\n onReset?: () => void,\n) {\n return useMutation<TProcesso, Error, TActionProcesso>({\n mutationFn: apiEncerrarProcesso,\n onSuccess: () => {\n if (onClose) onClose()\n if (onReset) onReset()\n toast.push(\n <Notification title=\"Sucesso\" type=\"success\">\n Processo encerrado com sucesso\n </Notification>,\n )\n },\n onError: (error) => {\n toast.push(\n <Notification title=\"Erro\" type=\"danger\">\n {error.message}\n </Notification>,\n )\n },\n })\n}\n"],"names":[],"mappings":";;;;;;AAKA,SAAwB,oBACpB,SACA,SACF;AACE,SAAO,YAA+C;AAAA,IAClD,YAAY;AAAA,IACZ,WAAW,MAAM;AACb,UAAI,QAAS,SAAA;AACb,UAAI,QAAS,SAAA;AACb,YAAM;AAAA,4BACD,cAAA,EAAa,OAAM,WAAU,MAAK,WAAU,UAAA,iCAAA,CAE7C;AAAA,MAAA;AAAA,IAER;AAAA,IACA,SAAS,CAAC,UAAU;AAChB,YAAM;AAAA,4BACD,cAAA,EAAa,OAAM,QAAO,MAAK,UAC3B,gBAAM,QAAA,CACX;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,CACH;AACL;"}
|
|
@@ -274,6 +274,13 @@ async function apiReabrirProcesso(body) {
|
|
|
274
274
|
data: body
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
+
async function apiEncerrarProcesso(body) {
|
|
278
|
+
return ApiService.fetchDataWithAxios({
|
|
279
|
+
url: endpointNavigationConfig.flux.processo.encerrar,
|
|
280
|
+
method: "put",
|
|
281
|
+
data: body
|
|
282
|
+
});
|
|
283
|
+
}
|
|
277
284
|
async function apiGetUsuariosGrupoAtendimentoAtual(processoId) {
|
|
278
285
|
return ApiService.fetchDataWithAxios({
|
|
279
286
|
url: `${endpointNavigationConfig.flux.processo.usuariosGrupoAtendimentoAtual}/${processoId}/usuarios-grupo-atendimento-atual`,
|
|
@@ -303,6 +310,7 @@ export {
|
|
|
303
310
|
apiDeleteGrupoAtendimento,
|
|
304
311
|
apiDeleteSubcategoria,
|
|
305
312
|
apiDeleteTipoProcesso,
|
|
313
|
+
apiEncerrarProcesso,
|
|
306
314
|
apiFindCategoriaByTipoProcesso,
|
|
307
315
|
apiFindOneCategoria,
|
|
308
316
|
apiFindOneFormularioBase,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FluxService.js","sources":["../../../../../lib/base/services/modules/flux/FluxService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TTipoProcesso } from \"@base/@types/models/flux/tipoProcesso\";\nimport { TGrupoAtendimento } from \"@base/@types/models/flux/grupoAtendimento\";\nimport { TCategoria } from \"@base/@types/models/flux/categoria\";\nimport { TFormularioBase } from \"@base/@types/models/flux/formularioBase\";\nimport {\n TActionProcesso,\n TProcesso,\n TUpdateProcesso,\n} from \"@base/@types/models/flux/processo\";\nimport { TSubcategoria } from \"@base/@types/models/flux/subcategoria\";\nimport { endpointsConfig } from \"@base/configs\";\nimport ApiService from \"@/services/ApiService\";\nimport { TBaseDeConhecimento } from \"@base/@types/models/flux/baseDeConhecimento\";\n\nexport async function apiGetTipoProcesso(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTipoProcesso>>({\n url: endpointsConfig.flux.tipoProcesso.findAll,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiCreateTipoProcesso(data?: TTipoProcesso) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTipoProcesso>>({\n url: endpointsConfig.flux.tipoProcesso.add,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiUpdateTipoProcesso(data?: TTipoProcesso) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTipoProcesso>>({\n url: endpointsConfig.flux.tipoProcesso.update,\n method: \"patch\",\n data,\n });\n}\n\nexport async function apiFindOneTipoProcesso(id: string) {\n return ApiService.fetchDataWithAxios<TTipoProcesso>({\n url: `${endpointsConfig.flux.tipoProcesso.findOne}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiDeleteTipoProcesso(id: string) {\n return ApiService.fetchDataWithAxios<TTipoProcesso>({\n url: `${endpointsConfig.flux.tipoProcesso.delete}/${id}`,\n method: \"delete\",\n });\n}\n\nexport async function apiGetGrupoAtendimento(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TGrupoAtendimento>>({\n url: endpointsConfig.flux.grupoAtendimento.findAll,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiGetGrupoAtendimentoComUsuarios(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: endpointsConfig.flux.grupoAtendimento.findAllWithUsers,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiCreateGrupoAtendimento(data?: TGrupoAtendimento) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TGrupoAtendimento>>({\n url: endpointsConfig.flux.grupoAtendimento.add,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiUpdateGrupoAtendimento(data?: TGrupoAtendimento) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TGrupoAtendimento>>({\n url: endpointsConfig.flux.grupoAtendimento.update,\n method: \"patch\",\n data,\n });\n}\n\nexport async function apiFindOneGrupoAtendimento(id: string) {\n return ApiService.fetchDataWithAxios<TGrupoAtendimento>({\n url: `${endpointsConfig.flux.grupoAtendimento.findOne}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiDeleteGrupoAtendimento(id: string) {\n return ApiService.fetchDataWithAxios<TGrupoAtendimento>({\n url: `${endpointsConfig.flux.grupoAtendimento.delete}/${id}`,\n method: \"delete\",\n });\n}\n\nexport async function apiGetCategoria(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCategoria>>({\n url: endpointsConfig.flux.categoria.findAll,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiCreateCategoria(data?: TCategoria) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCategoria>>({\n url: endpointsConfig.flux.categoria.add,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiUpdateCategoria(data?: TCategoria) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCategoria>>({\n url: endpointsConfig.flux.categoria.update,\n method: \"patch\",\n data,\n });\n}\n\nexport async function apiFindOneCategoria(id: string) {\n return ApiService.fetchDataWithAxios<TCategoria>({\n url: `${endpointsConfig.flux.categoria.findOne}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiDeleteCategoria(id: string) {\n return ApiService.fetchDataWithAxios<TCategoria>({\n url: `${endpointsConfig.flux.categoria.delete}/${id}`,\n method: \"delete\",\n });\n}\n\nexport async function apiFindCategoriaByTipoProcesso(idTipoProcesso: number) {\n return ApiService.fetchDataWithAxios<TCategoria[]>({\n url: `${endpointsConfig.flux.categoria.findCategoriaByTipoProcesso}/${idTipoProcesso}`,\n method: \"get\",\n });\n}\n\nexport async function apiGetSubcategoria(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSubcategoria>>({\n url: endpointsConfig.flux.subcategoria.findAll,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiCreateSubcategoria(data?: TSubcategoria) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSubcategoria>>({\n url: endpointsConfig.flux.subcategoria.add,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiUpdateSubcategoria(data?: TSubcategoria) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSubcategoria>>({\n url: endpointsConfig.flux.subcategoria.update,\n method: \"patch\",\n data,\n });\n}\n\nexport async function apiFindSubategoriaByCategoria(idCategoria: number) {\n return ApiService.fetchDataWithAxios<TSubcategoria[]>({\n url: `${endpointsConfig.flux.subcategoria.findSubcategoriaByCategoria}/${idCategoria}`,\n method: \"get\",\n });\n}\n\nexport async function apiFindOneSubcategoria(id: string) {\n return ApiService.fetchDataWithAxios<TSubcategoria>({\n url: `${endpointsConfig.flux.subcategoria.findOne}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiDeleteSubcategoria(id: string) {\n return ApiService.fetchDataWithAxios<TSubcategoria>({\n url: `${endpointsConfig.flux.subcategoria.delete}/${id}`,\n method: \"delete\",\n });\n}\n\nexport async function apiGetFormularioBase(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFormularioBase>>({\n url: endpointsConfig.flux.formularioBase.findAll,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiCreateFormularioBase(data?: TFormularioBase) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFormularioBase>>({\n url: endpointsConfig.flux.formularioBase.add,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiUpdateFormularioBase(data?: TFormularioBase) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFormularioBase>>({\n url: endpointsConfig.flux.formularioBase.update,\n method: \"patch\",\n data,\n });\n}\n\nexport async function apiFindOneFormularioBase(id: string) {\n return ApiService.fetchDataWithAxios<TFormularioBase>({\n url: `${endpointsConfig.flux.formularioBase.findOne}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiDeleteFormularioBase(id: string) {\n return ApiService.fetchDataWithAxios<TFormularioBase>({\n url: `${endpointsConfig.flux.formularioBase.delete}/${id}`,\n method: \"delete\",\n });\n}\n\nexport async function apiGetProcesso(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TProcesso>>({\n url: endpointsConfig.flux.processo.findAll,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiCreateProcesso(data?: TProcesso) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TProcesso>>({\n url: endpointsConfig.flux.processo.add,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiUpdateProcesso(data?: TUpdateProcesso) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TProcesso>>({\n url: endpointsConfig.flux.processo.update,\n method: \"patch\",\n data,\n });\n}\n\nexport async function apiFindOneProcesso(id: string) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: `${endpointsConfig.flux.processo.findOne}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiAceitarProcesso(id: number) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: `${endpointsConfig.flux.processo.aceitar}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiConcluirProcesso(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.concluir,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiCancelarProcesso(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.cancelar,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiTransferirProcesso(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.transferir,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiTransferirSolicitante(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.transferirSolicitante,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiTransferirAtendente(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.transferirAtendente,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiAdicionarHistorico(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.adicionarHistorico,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiRetornarFluxoAtendimento(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.retornarFluxoAtendimento,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiReabrirProcesso(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.reabrir,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiGetUsuariosGrupoAtendimentoAtual(processoId: number) {\n return ApiService.fetchDataWithAxios<any[]>({\n url: `${endpointsConfig.flux.processo.usuariosGrupoAtendimentoAtual}/${processoId}/usuarios-grupo-atendimento-atual`,\n method: \"get\",\n });\n}\n\nexport async function apiGetBaseDeConhecimento(body?: any) {\n return ApiService.fetchDataWithAxios<TBaseDeConhecimento>({\n url: endpointsConfig.flux.baseDeConhecimento.findAll,\n method: \"post\",\n data: body,\n });\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAeA,eAAsB,mBAAmB,MAAsB;AAC7D,SAAO,WAAW,mBAAkD;AAAA,IAClE,KAAKA,yBAAgB,KAAK,aAAa;AAAA,IACvC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,sBAAsB,MAAsB;AAChE,SAAO,WAAW,mBAAkD;AAAA,IAClE,KAAKA,yBAAgB,KAAK,aAAa;AAAA,IACvC,QAAQ;AAAA,IACR;AAAA,EAAA,CACD;AACH;AAEA,eAAsB,sBAAsB,MAAsB;AAChE,SAAO,WAAW,mBAAkD;AAAA,IAClE,KAAKA,yBAAgB,KAAK,aAAa;AAAA,IACvC,QAAQ;AAAA,IACR;AAAA,EAAA,CACD;AACH;AAEA,eAAsB,uBAAuB,IAAY;AACvD,SAAO,WAAW,mBAAkC;AAAA,IAClD,KAAK,GAAGA,yBAAgB,KAAK,aAAa,OAAO,IAAI,EAAE;AAAA,IACvD,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,sBAAsB,IAAY;AACtD,SAAO,WAAW,mBAAkC;AAAA,IAClD,KAAK,GAAGA,yBAAgB,KAAK,aAAa,MAAM,IAAI,EAAE;AAAA,IACtD,QAA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AA,IACnC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,uBAAuB,MAAwB;AACnE,SAAO,WAAW,mBAA8B;AAAA,IAC9C,KAAKA,yBAAgB,KAAK,SAAS;AAAA,IACnC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,sBAAsB,MAAwB;AAClE,SAAO,WAAW,mBAA8B;AAAA,IAC9C,KAAKA,yBAAgB,KAAK,SAAS;AAAA,IACnC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,4BAA4B,MAAwB;AACxE,SAAO,WAAW,mBAA8B;AAAA,IAC9C,KAAKA,yBAAgB,KAAK,SAAS;AAAA,IACnC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,mBAAmB,MAAwB;AAC/D,SAAO,WAAW,mBAA8B;AAAA,IAC9C,KAAKA,yBAAgB,KAAK,SAAS;AAAA,IACnC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,oCAAoC,YAAoB;AAC5E,SAAO,WAAW,mBAA0B;AAAA,IAC1C,KAAK,GAAGA,yBAAgB,KAAK,SAAS,6BAA6B,IAAI,UAAU;AAAA,IACjF,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,yBAAyB,MAAY;AACzD,SAAO,WAAW,mBAAwC;AAAA,IACxD,KAAKA,yBAAgB,KAAK,mBAAmB;AAAA,IAC7C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;"}
|
|
1
|
+
{"version":3,"file":"FluxService.js","sources":["../../../../../lib/base/services/modules/flux/FluxService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from \"@base/@types/api\";\nimport { TTipoProcesso } from \"@base/@types/models/flux/tipoProcesso\";\nimport { TGrupoAtendimento } from \"@base/@types/models/flux/grupoAtendimento\";\nimport { TCategoria } from \"@base/@types/models/flux/categoria\";\nimport { TFormularioBase } from \"@base/@types/models/flux/formularioBase\";\nimport {\n TActionProcesso,\n TProcesso,\n TUpdateProcesso,\n} from \"@base/@types/models/flux/processo\";\nimport { TSubcategoria } from \"@base/@types/models/flux/subcategoria\";\nimport { endpointsConfig } from \"@base/configs\";\nimport ApiService from \"@/services/ApiService\";\nimport { TBaseDeConhecimento } from \"@base/@types/models/flux/baseDeConhecimento\";\n\nexport async function apiGetTipoProcesso(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTipoProcesso>>({\n url: endpointsConfig.flux.tipoProcesso.findAll,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiCreateTipoProcesso(data?: TTipoProcesso) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTipoProcesso>>({\n url: endpointsConfig.flux.tipoProcesso.add,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiUpdateTipoProcesso(data?: TTipoProcesso) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTipoProcesso>>({\n url: endpointsConfig.flux.tipoProcesso.update,\n method: \"patch\",\n data,\n });\n}\n\nexport async function apiFindOneTipoProcesso(id: string) {\n return ApiService.fetchDataWithAxios<TTipoProcesso>({\n url: `${endpointsConfig.flux.tipoProcesso.findOne}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiDeleteTipoProcesso(id: string) {\n return ApiService.fetchDataWithAxios<TTipoProcesso>({\n url: `${endpointsConfig.flux.tipoProcesso.delete}/${id}`,\n method: \"delete\",\n });\n}\n\nexport async function apiGetGrupoAtendimento(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TGrupoAtendimento>>({\n url: endpointsConfig.flux.grupoAtendimento.findAll,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiGetGrupoAtendimentoComUsuarios(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: endpointsConfig.flux.grupoAtendimento.findAllWithUsers,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiCreateGrupoAtendimento(data?: TGrupoAtendimento) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TGrupoAtendimento>>({\n url: endpointsConfig.flux.grupoAtendimento.add,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiUpdateGrupoAtendimento(data?: TGrupoAtendimento) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TGrupoAtendimento>>({\n url: endpointsConfig.flux.grupoAtendimento.update,\n method: \"patch\",\n data,\n });\n}\n\nexport async function apiFindOneGrupoAtendimento(id: string) {\n return ApiService.fetchDataWithAxios<TGrupoAtendimento>({\n url: `${endpointsConfig.flux.grupoAtendimento.findOne}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiDeleteGrupoAtendimento(id: string) {\n return ApiService.fetchDataWithAxios<TGrupoAtendimento>({\n url: `${endpointsConfig.flux.grupoAtendimento.delete}/${id}`,\n method: \"delete\",\n });\n}\n\nexport async function apiGetCategoria(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCategoria>>({\n url: endpointsConfig.flux.categoria.findAll,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiCreateCategoria(data?: TCategoria) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCategoria>>({\n url: endpointsConfig.flux.categoria.add,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiUpdateCategoria(data?: TCategoria) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCategoria>>({\n url: endpointsConfig.flux.categoria.update,\n method: \"patch\",\n data,\n });\n}\n\nexport async function apiFindOneCategoria(id: string) {\n return ApiService.fetchDataWithAxios<TCategoria>({\n url: `${endpointsConfig.flux.categoria.findOne}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiDeleteCategoria(id: string) {\n return ApiService.fetchDataWithAxios<TCategoria>({\n url: `${endpointsConfig.flux.categoria.delete}/${id}`,\n method: \"delete\",\n });\n}\n\nexport async function apiFindCategoriaByTipoProcesso(idTipoProcesso: number) {\n return ApiService.fetchDataWithAxios<TCategoria[]>({\n url: `${endpointsConfig.flux.categoria.findCategoriaByTipoProcesso}/${idTipoProcesso}`,\n method: \"get\",\n });\n}\n\nexport async function apiGetSubcategoria(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSubcategoria>>({\n url: endpointsConfig.flux.subcategoria.findAll,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiCreateSubcategoria(data?: TSubcategoria) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSubcategoria>>({\n url: endpointsConfig.flux.subcategoria.add,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiUpdateSubcategoria(data?: TSubcategoria) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TSubcategoria>>({\n url: endpointsConfig.flux.subcategoria.update,\n method: \"patch\",\n data,\n });\n}\n\nexport async function apiFindSubategoriaByCategoria(idCategoria: number) {\n return ApiService.fetchDataWithAxios<TSubcategoria[]>({\n url: `${endpointsConfig.flux.subcategoria.findSubcategoriaByCategoria}/${idCategoria}`,\n method: \"get\",\n });\n}\n\nexport async function apiFindOneSubcategoria(id: string) {\n return ApiService.fetchDataWithAxios<TSubcategoria>({\n url: `${endpointsConfig.flux.subcategoria.findOne}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiDeleteSubcategoria(id: string) {\n return ApiService.fetchDataWithAxios<TSubcategoria>({\n url: `${endpointsConfig.flux.subcategoria.delete}/${id}`,\n method: \"delete\",\n });\n}\n\nexport async function apiGetFormularioBase(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFormularioBase>>({\n url: endpointsConfig.flux.formularioBase.findAll,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiCreateFormularioBase(data?: TFormularioBase) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFormularioBase>>({\n url: endpointsConfig.flux.formularioBase.add,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiUpdateFormularioBase(data?: TFormularioBase) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFormularioBase>>({\n url: endpointsConfig.flux.formularioBase.update,\n method: \"patch\",\n data,\n });\n}\n\nexport async function apiFindOneFormularioBase(id: string) {\n return ApiService.fetchDataWithAxios<TFormularioBase>({\n url: `${endpointsConfig.flux.formularioBase.findOne}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiDeleteFormularioBase(id: string) {\n return ApiService.fetchDataWithAxios<TFormularioBase>({\n url: `${endpointsConfig.flux.formularioBase.delete}/${id}`,\n method: \"delete\",\n });\n}\n\nexport async function apiGetProcesso(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TProcesso>>({\n url: endpointsConfig.flux.processo.findAll,\n method: \"post\",\n data: body,\n });\n}\n\nexport async function apiCreateProcesso(data?: TProcesso) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TProcesso>>({\n url: endpointsConfig.flux.processo.add,\n method: \"post\",\n data,\n });\n}\n\nexport async function apiUpdateProcesso(data?: TUpdateProcesso) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TProcesso>>({\n url: endpointsConfig.flux.processo.update,\n method: \"patch\",\n data,\n });\n}\n\nexport async function apiFindOneProcesso(id: string) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: `${endpointsConfig.flux.processo.findOne}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiAceitarProcesso(id: number) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: `${endpointsConfig.flux.processo.aceitar}/${id}`,\n method: \"get\",\n });\n}\n\nexport async function apiConcluirProcesso(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.concluir,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiCancelarProcesso(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.cancelar,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiTransferirProcesso(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.transferir,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiTransferirSolicitante(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.transferirSolicitante,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiTransferirAtendente(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.transferirAtendente,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiAdicionarHistorico(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.adicionarHistorico,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiRetornarFluxoAtendimento(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.retornarFluxoAtendimento,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiReabrirProcesso(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.reabrir,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiEncerrarProcesso(body?: TActionProcesso) {\n return ApiService.fetchDataWithAxios<TProcesso>({\n url: endpointsConfig.flux.processo.encerrar,\n method: \"put\",\n data: body,\n });\n}\n\nexport async function apiGetUsuariosGrupoAtendimentoAtual(processoId: number) {\n return ApiService.fetchDataWithAxios<any[]>({\n url: `${endpointsConfig.flux.processo.usuariosGrupoAtendimentoAtual}/${processoId}/usuarios-grupo-atendimento-atual`,\n method: \"get\",\n });\n}\n\nexport async function apiGetBaseDeConhecimento(body?: any) {\n return ApiService.fetchDataWithAxios<TBaseDeConhecimento>({\n url: endpointsConfig.flux.baseDeConhecimento.findAll,\n method: \"post\",\n data: body,\n });\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAeA,eAAsB,mBAAmB,MAAsB;AAC7D,SAAO,WAAW,mBAAkD;AAAA,IAClE,KAAKA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BAA8B;AAAA,IAC9C,KAAKA,yBAAgB,KAAK,SAAS;AAAA,IACnC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,oBAAoB,MAAwB;AAChE,SAAO,WAAW,mBAA8B;AAAA,IAC9C,KAAKA,yBAAgB,KAAK,SAAS;AAAA,IACnC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;AAEA,eAAsB,oCAAoC,YAAoB;AAC5E,SAAO,WAAW,mBAA0B;AAAA,IAC1C,KAAK,GAAGA,yBAAgB,KAAK,SAAS,6BAA6B,IAAI,UAAU;AAAA,IACjF,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,yBAAyB,MAAY;AACzD,SAAO,WAAW,mBAAwC;AAAA,IACxD,KAAKA,yBAAgB,KAAK,mBAAmB;AAAA,IAC7C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACP;AACH;"}
|
|
@@ -3,6 +3,7 @@ const statusBadgeClasses = {
|
|
|
3
3
|
AGUARDANDO_ENVIO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
|
4
4
|
AGUARDANDO_APROVACAO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
|
5
5
|
AGUARDANDO_CONSULTA: "bg-purple-50 text-purple-600 whitespace-nowrap",
|
|
6
|
+
AGUARDANDO_PEDIDO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
|
6
7
|
AGUARDANDO_BOLETO: "bg-red-50 text-red-500 whitespace-nowrap",
|
|
7
8
|
AGUARDANDO_RECEPCAO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
|
8
9
|
AGUARDANDO_VINCULO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sources":["../../../../lib/base/utils/colorClassName/badge.ts"],"sourcesContent":["/**\n * Mapeia cada status técnico para uma combinação de classes CSS utilizadas no componente <Badge/>.\n *\n * Este dicionário define o estilo visual (cores de fundo e texto) associado a cada status do sistema,\n * permitindo uma apresentação visual coerente e padronizada para cada situação.\n *\n * Exemplo de uso:\n * ```tsx\n * const className = statusBadgeClasses[status] || \"bg-gray-100 text-gray-500\";\n * ```\n *\n * @constant\n * @type {Record<string, string>}\n */\nexport const statusBadgeClasses: Record<string, string> = {\n AGUARDANDO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_ENVIO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_APROVACAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_CONSULTA: 'bg-purple-50 text-purple-600 whitespace-nowrap',\n AGUARDANDO_BOLETO: 'bg-red-50 text-red-500 whitespace-nowrap',\n AGUARDANDO_RECEPCAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_VINCULO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_SEGUNDA_APROVACAO: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n APROVADA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n APROVADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n ATENCAO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n CANCELADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n CANCELADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n COMPLETO: 'bg-green-50 text-green-600 whitespace-nowrap',\n CONCLUIDA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n CONCLUIDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n EM_PROCESSAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n ENTREGUE: 'bg-green-50 text-green-600 whitespace-nowrap',\n ERRO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ERRO_INTEGRACAO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ESTORNADO: 'bg-red-50 text-red-500 whitespace-nowrap',\n NOVA: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n NOVO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PARCIAL: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n PARCIALMENTE_APROVADA: 'bg-purple-50 text-purple-600 whitespace-nowrap',\n PARCIALMENTE_UTILIZADO: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n PAUSADO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n RECEBIDO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n REPROVADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n REPROVADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n VALIDADO: 'bg-green-50 text-green-500 whitespace-nowrap',\n VALOR_DIVERGENTE: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n VINCULADO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n FINALIZADO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n // Status de Integração\n PENDENTE: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PROCESSANDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n ENVIADO_SAP: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n ENVIADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n PROCESSANDO_SAP: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n NAO_PROCESSADO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n EM_ANDAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n // Tipo de Envio\n FISICO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n FISICA: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n DIGITAL: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n // Status do SAP\n A: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n B: 'bg-indigo-50 text-indigo-600 whitespace-nowrap',\n C: 'bg-blue-50 text-blue-600 whitespace-nowrap',\n D: 'bg-red-50 text-red-500 whitespace-nowrap',\n // Insumos - Compras\n LIBERADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n REJEITADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n BONIFICACAO: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n EFETIVA: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n VIRTUAL: \"bg-cyan-50 text-cyan-600 whitespace-nowrap\",\n EFETIVA_AO_CLIENTE: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n VIRTUAL_AO_CLIENTE: \"bg-teal-50 text-teal-600 whitespace-nowrap\",\n A_VISTA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n A_PRAZO: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n // Ração - Juros Compostos\n DENTRO_ESTADO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n FORA_ESTADO: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n};\n"],"names":[],"mappings":"AAcO,MAAM,qBAA6C;AAAA,EACxD,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,qBAAqB;AAAA,EACrB,mBAAmB;AAAA,EACnB,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,8BAA8B;AAAA,EAC9B,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS;AAAA,EACT,uBAAuB;AAAA,EACvB,wBAAwB;AAAA,EACxB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,WAAW;AAAA,EACX,YAAY;AAAA;AAAA,EAEZ,UAAU;AAAA,EACV,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,cAAc;AAAA;AAAA,EAEd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA;AAAA,EAET,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA;AAAA,EAEH,UAAU;AAAA,EACV,WAAW;AAAA,EACX,aAAa;AAAA,EACb,SAAS;AAAA,EACT,SAAS;AAAA,EACT,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,SAAS;AAAA,EACT,SAAS;AAAA;AAAA,EAET,eAAe;AAAA,EACf,aAAa;AACf;"}
|
|
1
|
+
{"version":3,"file":"badge.js","sources":["../../../../lib/base/utils/colorClassName/badge.ts"],"sourcesContent":["/**\n * Mapeia cada status técnico para uma combinação de classes CSS utilizadas no componente <Badge/>.\n *\n * Este dicionário define o estilo visual (cores de fundo e texto) associado a cada status do sistema,\n * permitindo uma apresentação visual coerente e padronizada para cada situação.\n *\n * Exemplo de uso:\n * ```tsx\n * const className = statusBadgeClasses[status] || \"bg-gray-100 text-gray-500\";\n * ```\n *\n * @constant\n * @type {Record<string, string>}\n */\nexport const statusBadgeClasses: Record<string, string> = {\n AGUARDANDO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_ENVIO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_APROVACAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_CONSULTA: 'bg-purple-50 text-purple-600 whitespace-nowrap',\n AGUARDANDO_PEDIDO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_BOLETO: 'bg-red-50 text-red-500 whitespace-nowrap',\n AGUARDANDO_RECEPCAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_VINCULO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_SEGUNDA_APROVACAO: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n APROVADA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n APROVADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n ATENCAO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n CANCELADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n CANCELADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n COMPLETO: 'bg-green-50 text-green-600 whitespace-nowrap',\n CONCLUIDA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n CONCLUIDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n EM_PROCESSAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n ENTREGUE: 'bg-green-50 text-green-600 whitespace-nowrap',\n ERRO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ERRO_INTEGRACAO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ESTORNADO: 'bg-red-50 text-red-500 whitespace-nowrap',\n NOVA: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n NOVO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PARCIAL: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n PARCIALMENTE_APROVADA: 'bg-purple-50 text-purple-600 whitespace-nowrap',\n PARCIALMENTE_UTILIZADO: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n PAUSADO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n RECEBIDO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n REPROVADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n REPROVADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n VALIDADO: 'bg-green-50 text-green-500 whitespace-nowrap',\n VALOR_DIVERGENTE: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n VINCULADO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n FINALIZADO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n // Status de Integração\n PENDENTE: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PROCESSANDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n ENVIADO_SAP: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n ENVIADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n PROCESSANDO_SAP: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n NAO_PROCESSADO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n EM_ANDAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n // Tipo de Envio\n FISICO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n FISICA: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n DIGITAL: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n // Status do SAP\n A: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n B: 'bg-indigo-50 text-indigo-600 whitespace-nowrap',\n C: 'bg-blue-50 text-blue-600 whitespace-nowrap',\n D: 'bg-red-50 text-red-500 whitespace-nowrap',\n // Insumos - Compras\n LIBERADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n REJEITADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n BONIFICACAO: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n EFETIVA: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n VIRTUAL: \"bg-cyan-50 text-cyan-600 whitespace-nowrap\",\n EFETIVA_AO_CLIENTE: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n VIRTUAL_AO_CLIENTE: \"bg-teal-50 text-teal-600 whitespace-nowrap\",\n A_VISTA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n A_PRAZO: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n // Ração - Juros Compostos\n DENTRO_ESTADO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n FORA_ESTADO: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
+
import { Drawer, Input, Tooltip } from "@/components/ui";
|
|
2
|
+
import { TActionProcesso } from "@base/@types/models/flux/processo";
|
|
3
|
+
import { Button, Dialog } from "@/components";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import useEncerrarProcesso from "@base/hooks/flux/useEncerrarProcesso";
|
|
6
|
+
|
|
7
|
+
interface EncerrarProcessoDialogProps {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
idProcesso: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const EncerrarProcessoDialog = ({
|
|
14
|
+
isOpen,
|
|
15
|
+
onClose,
|
|
16
|
+
idProcesso,
|
|
17
|
+
}: EncerrarProcessoDialogProps) => {
|
|
18
|
+
const { mutate: encerrarProcesso } = useEncerrarProcesso(onClose, () =>
|
|
19
|
+
setMotivo("")
|
|
20
|
+
);
|
|
21
|
+
const [motivo, setMotivo] = useState<string>("");
|
|
22
|
+
|
|
23
|
+
const handleEncerrarProcesso = (dados: TActionProcesso) => {
|
|
24
|
+
encerrarProcesso(dados);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const Footer = (
|
|
28
|
+
<div className="flex w-full items-start">
|
|
29
|
+
<Button block className="mx-2" onClick={() => onClose()}>
|
|
30
|
+
Cancelar
|
|
31
|
+
</Button>
|
|
32
|
+
<Tooltip title={!motivo ? "Motivo obrigatório" : <></>} placement="top">
|
|
33
|
+
<span>
|
|
34
|
+
<Button
|
|
35
|
+
block
|
|
36
|
+
className="mx-2"
|
|
37
|
+
variant="solid"
|
|
38
|
+
disabled={!motivo}
|
|
39
|
+
onClick={() =>
|
|
40
|
+
handleEncerrarProcesso({
|
|
41
|
+
idProcesso,
|
|
42
|
+
mensagemInteracao: motivo,
|
|
43
|
+
})
|
|
44
|
+
}
|
|
45
|
+
>
|
|
46
|
+
Confirmar
|
|
47
|
+
</Button>
|
|
48
|
+
</span>
|
|
49
|
+
</Tooltip>
|
|
50
|
+
</div>
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<>
|
|
55
|
+
<Drawer
|
|
56
|
+
title="Encerrar Processo"
|
|
57
|
+
isOpen={isOpen}
|
|
58
|
+
onClose={onClose}
|
|
59
|
+
onRequestClose={onClose}
|
|
60
|
+
footer={Footer}
|
|
61
|
+
>
|
|
62
|
+
<div className="flex flex-col gap-4 p-4">
|
|
63
|
+
<Input
|
|
64
|
+
textArea
|
|
65
|
+
required
|
|
66
|
+
rows={4}
|
|
67
|
+
placeholder="Motivo do encerramento"
|
|
68
|
+
value={motivo}
|
|
69
|
+
onChange={(e) => setMotivo(e.target.value)}
|
|
70
|
+
/>
|
|
71
|
+
</div>
|
|
72
|
+
</Drawer>
|
|
73
|
+
</>
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export default EncerrarProcessoDialog;
|
|
@@ -12,6 +12,7 @@ const processo = {
|
|
|
12
12
|
adicionarHistorico: "/flux/api/processo/adicionar-historico",
|
|
13
13
|
retornarFluxoAtendimento: "/flux/api/processo/retornar-fluxo-atendimento",
|
|
14
14
|
reabrir: "/flux/api/processo/reabrir",
|
|
15
|
+
encerrar: "/flux/api/processo/encerrar",
|
|
15
16
|
usuariosGrupoAtendimentoAtual: "/flux/api/processo",
|
|
16
17
|
};
|
|
17
18
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Notification, toast } from '@/components'
|
|
2
|
+
import { TActionProcesso, TProcesso } from '@base/@types/models/flux/processo'
|
|
3
|
+
import { apiEncerrarProcesso } from '@base/services/modules/flux/FluxService'
|
|
4
|
+
import { useMutation } from '@tanstack/react-query'
|
|
5
|
+
|
|
6
|
+
export default function useEncerrarProcesso(
|
|
7
|
+
onClose?: () => void,
|
|
8
|
+
onReset?: () => void,
|
|
9
|
+
) {
|
|
10
|
+
return useMutation<TProcesso, Error, TActionProcesso>({
|
|
11
|
+
mutationFn: apiEncerrarProcesso,
|
|
12
|
+
onSuccess: () => {
|
|
13
|
+
if (onClose) onClose()
|
|
14
|
+
if (onReset) onReset()
|
|
15
|
+
toast.push(
|
|
16
|
+
<Notification title="Sucesso" type="success">
|
|
17
|
+
Processo encerrado com sucesso
|
|
18
|
+
</Notification>,
|
|
19
|
+
)
|
|
20
|
+
},
|
|
21
|
+
onError: (error) => {
|
|
22
|
+
toast.push(
|
|
23
|
+
<Notification title="Erro" type="danger">
|
|
24
|
+
{error.message}
|
|
25
|
+
</Notification>,
|
|
26
|
+
)
|
|
27
|
+
},
|
|
28
|
+
})
|
|
29
|
+
}
|
|
@@ -327,6 +327,14 @@ export async function apiReabrirProcesso(body?: TActionProcesso) {
|
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
+
export async function apiEncerrarProcesso(body?: TActionProcesso) {
|
|
331
|
+
return ApiService.fetchDataWithAxios<TProcesso>({
|
|
332
|
+
url: endpointsConfig.flux.processo.encerrar,
|
|
333
|
+
method: "put",
|
|
334
|
+
data: body,
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
|
|
330
338
|
export async function apiGetUsuariosGrupoAtendimentoAtual(processoId: number) {
|
|
331
339
|
return ApiService.fetchDataWithAxios<any[]>({
|
|
332
340
|
url: `${endpointsConfig.flux.processo.usuariosGrupoAtendimentoAtual}/${processoId}/usuarios-grupo-atendimento-atual`,
|
|
@@ -17,6 +17,7 @@ export const statusBadgeClasses: Record<string, string> = {
|
|
|
17
17
|
AGUARDANDO_ENVIO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',
|
|
18
18
|
AGUARDANDO_APROVACAO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
|
19
19
|
AGUARDANDO_CONSULTA: 'bg-purple-50 text-purple-600 whitespace-nowrap',
|
|
20
|
+
AGUARDANDO_PEDIDO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',
|
|
20
21
|
AGUARDANDO_BOLETO: 'bg-red-50 text-red-500 whitespace-nowrap',
|
|
21
22
|
AGUARDANDO_RECEPCAO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
|
22
23
|
AGUARDANDO_VINCULO: "bg-yellow-50 text-yellow-600 whitespace-nowrap",
|
package/package.json
CHANGED