@orbe-agro/client-core 5.3.170 → 5.3.171
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/@types/base/@types/api/response/bayer/TFindAllEntregaBayerResponse.d.ts +17 -0
- package/dist/@types/base/@types/api/response/bayer/TFindAllEntregaBayerResponse.d.ts.map +1 -0
- package/dist/@types/base/@types/api/response/bayer/TRetornoEntregaErrorResponse.d.ts +6 -0
- package/dist/@types/base/@types/api/response/bayer/TRetornoEntregaErrorResponse.d.ts.map +1 -0
- package/dist/@types/base/@types/api/response/bayer/TRetornoEntregaResponse.d.ts +12 -0
- package/dist/@types/base/@types/api/response/bayer/TRetornoEntregaResponse.d.ts.map +1 -0
- package/dist/@types/base/@types/enums/bayer/StatusRetornoEntrega.d.ts +10 -0
- package/dist/@types/base/@types/enums/bayer/StatusRetornoEntrega.d.ts.map +1 -0
- package/dist/@types/base/@types/enums/bayer/StatusTesteCarga.d.ts +6 -0
- package/dist/@types/base/@types/enums/bayer/StatusTesteCarga.d.ts.map +1 -0
- package/dist/@types/base/components/common/DadosNaoEncontrados.d.ts +10 -0
- package/dist/@types/base/components/common/DadosNaoEncontrados.d.ts.map +1 -0
- package/dist/@types/base/components/common/ScrollToTop.d.ts +4 -0
- package/dist/@types/base/components/common/ScrollToTop.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/bayer/bayer.d.ts +9 -0
- package/dist/@types/base/configs/endpoints.config/bayer/bayer.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/bayer/config/entregaBayer.d.ts +7 -0
- package/dist/@types/base/configs/endpoints.config/bayer/config/entregaBayer.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +7 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/modules.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/modules.submenu/bayer/entrega/submenu.entrega.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/bayer/entrega/submenu.entrega.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/bayer/submenu.bayer.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/modules.submenu/bayer/submenu.bayer.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/bayer/bayer.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/bayer/bayer.submenu.d.ts.map +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/index.d.ts +1 -0
- package/dist/@types/base/configs/navigation.config/submenu/index.d.ts.map +1 -1
- package/dist/@types/base/services/modules/bayer/entregaBayerService.d.ts +4 -0
- package/dist/@types/base/services/modules/bayer/entregaBayerService.d.ts.map +1 -0
- package/dist/base/@types/api/response/bayer/TFindAllEntregaBayerResponse.js +2 -0
- package/dist/base/@types/api/response/bayer/TFindAllEntregaBayerResponse.js.map +1 -0
- package/dist/base/@types/api/response/bayer/TRetornoEntregaErrorResponse.js +2 -0
- package/dist/base/@types/api/response/bayer/TRetornoEntregaErrorResponse.js.map +1 -0
- package/dist/base/@types/api/response/bayer/TRetornoEntregaResponse.js +2 -0
- package/dist/base/@types/api/response/bayer/TRetornoEntregaResponse.js.map +1 -0
- package/dist/base/@types/enums/bayer/StatusRetornoEntrega.js +5 -0
- package/dist/base/@types/enums/bayer/StatusRetornoEntrega.js.map +1 -0
- package/dist/base/@types/enums/bayer/StatusTesteCarga.js +5 -0
- package/dist/base/@types/enums/bayer/StatusTesteCarga.js.map +1 -0
- package/dist/base/components/common/DadosNaoEncontrados.js +9 -0
- package/dist/base/components/common/DadosNaoEncontrados.js.map +1 -0
- package/dist/base/components/common/ScrollToTop.js +27 -0
- package/dist/base/components/common/ScrollToTop.js.map +1 -0
- package/dist/base/configs/endpoints.config/bayer/bayer.js +8 -0
- package/dist/base/configs/endpoints.config/bayer/bayer.js.map +1 -0
- package/dist/base/configs/endpoints.config/bayer/config/entregaBayer.js +9 -0
- package/dist/base/configs/endpoints.config/bayer/config/entregaBayer.js.map +1 -0
- package/dist/base/configs/endpoints.config/endpoints.navigation.js +30 -28
- package/dist/base/configs/endpoints.config/endpoints.navigation.js.map +1 -1
- package/dist/base/configs/index.js +14 -12
- package/dist/base/configs/index.js.map +1 -1
- package/dist/base/configs/navigation.config/index.js +18 -16
- package/dist/base/configs/navigation.config/index.js.map +1 -1
- package/dist/base/configs/navigation.config/modules.navigation.js +5 -3
- package/dist/base/configs/navigation.config/modules.navigation.js.map +1 -1
- package/dist/base/configs/navigation.config/modules.submenu/bayer/entrega/submenu.entrega.js +16 -0
- package/dist/base/configs/navigation.config/modules.submenu/bayer/entrega/submenu.entrega.js.map +1 -0
- package/dist/base/configs/navigation.config/modules.submenu/bayer/submenu.bayer.js +17 -0
- package/dist/base/configs/navigation.config/modules.submenu/bayer/submenu.bayer.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/bayer/bayer.submenu.js +8 -0
- package/dist/base/configs/navigation.config/submenu/bayer/bayer.submenu.js.map +1 -0
- package/dist/base/configs/navigation.config/submenu/index.js +12 -10
- package/dist/base/configs/navigation.config/submenu/index.js.map +1 -1
- package/dist/base/index.js +526 -524
- package/dist/base/index.js.map +1 -1
- package/dist/base/services/modules/bayer/entregaBayerService.js +13 -0
- package/dist/base/services/modules/bayer/entregaBayerService.js.map +1 -0
- package/lib/base/@types/api/response/bayer/TFindAllEntregaBayerResponse.ts +17 -0
- package/lib/base/@types/api/response/bayer/TRetornoEntregaErrorResponse.ts +5 -0
- package/lib/base/@types/api/response/bayer/TRetornoEntregaResponse.ts +12 -0
- package/lib/base/@types/enums/bayer/StatusRetornoEntrega.ts +9 -0
- package/lib/base/@types/enums/bayer/StatusTesteCarga.ts +5 -0
- package/lib/base/components/common/DadosNaoEncontrados.tsx +28 -0
- package/lib/base/components/common/ScrollToTop.tsx +27 -0
- package/lib/base/configs/endpoints.config/bayer/bayer.ts +7 -0
- package/lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts +7 -0
- package/lib/base/configs/endpoints.config/endpoints.navigation.ts +3 -1
- package/lib/base/configs/navigation.config/modules.navigation.ts +2 -0
- package/lib/base/configs/navigation.config/modules.submenu/bayer/entrega/submenu.entrega.ts +16 -0
- package/lib/base/configs/navigation.config/modules.submenu/bayer/submenu.bayer.ts +18 -0
- package/lib/base/configs/navigation.config/submenu/bayer/bayer.submenu.ts +8 -0
- package/lib/base/configs/navigation.config/submenu/index.ts +1 -0
- package/lib/base/services/modules/bayer/entregaBayerService.ts +13 -0
- package/package.json +1 -1
package/dist/base/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "../../../../@ecme/services/ApiService.js";
|
|
2
|
+
import i from "../../../configs/endpoints.config/endpoints.navigation.js";
|
|
3
|
+
const r = i.bayer.entregaBayer;
|
|
4
|
+
async function a(t) {
|
|
5
|
+
return e.fetchDataWithAxios({
|
|
6
|
+
url: r.findAll(t),
|
|
7
|
+
method: "get"
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
a as apiFindAllEntregaBayer
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=entregaBayerService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entregaBayerService.js","sources":["../../../../../lib/base/services/modules/bayer/entregaBayerService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { TQueryResponse } from \"@base/@types/api\";\nimport { TFindAllEntregaBayerResponse } from \"@base/@types/api/response/bayer/TFindAllEntregaBayerResponse\";\nimport endpointNavigationConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst ENTREGA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.entregaBayer;\n\nexport async function apiFindAllEntregaBayer(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllEntregaBayerResponse>>({\n url: ENTREGA_BAYER_ENDPOINT.findAll(params),\n method: \"get\",\n });\n}"],"names":["ENTREGA_BAYER_ENDPOINT","endpointNavigationConfig","apiFindAllEntregaBayer","params","ApiService"],"mappings":";;AAKA,MAAMA,IAAyBC,EAAyB,MAAM;AAE9D,eAAsBC,EAAuBC,GAAiB;AAC5D,SAAOC,EAAW,mBAAiE;AAAA,IACjF,KAAKJ,EAAuB,QAAQG,CAAM;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACT;AACH;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StatusTesteCarga } from "@base/@types/enums/bayer/StatusTesteCarga";
|
|
2
|
+
import { TRetornoEntregaResponse } from "./TRetornoEntregaResponse";
|
|
3
|
+
|
|
4
|
+
export type TFindAllEntregaBayerResponse = {
|
|
5
|
+
id: number;
|
|
6
|
+
saldoEntradaGraosId?: number | null;
|
|
7
|
+
ticketId?: number | null;
|
|
8
|
+
codigoCentro?: string | null;
|
|
9
|
+
codigoDeposito?: string | null;
|
|
10
|
+
produtoId?: number | null;
|
|
11
|
+
safraId?: number | null;
|
|
12
|
+
produtorId?: number | null;
|
|
13
|
+
volume?: string | null;
|
|
14
|
+
dataEntrega?: string | null;
|
|
15
|
+
status?: StatusTesteCarga | null;
|
|
16
|
+
retornoEntrega?: TRetornoEntregaResponse | null;
|
|
17
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StatusRetornoEntrega } from "@base/@types/enums/bayer/StatusRetornoEntrega";
|
|
2
|
+
import { TRetornoEntregaErrorResponse } from "./TRetornoEntregaErrorResponse";
|
|
3
|
+
|
|
4
|
+
export type TRetornoEntregaResponse = {
|
|
5
|
+
id?: number | null;
|
|
6
|
+
deliveryId?: string | null;
|
|
7
|
+
bid?: string | null;
|
|
8
|
+
creationDate?: string | null;
|
|
9
|
+
status?: StatusRetornoEntrega | null;
|
|
10
|
+
quantity?: string | null;
|
|
11
|
+
errors?: TRetornoEntregaErrorResponse[] | null;
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface DadosNaoEncontradosProps {
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
data: any[];
|
|
6
|
+
message?: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const DadosNaoEncontrados: React.FC<DadosNaoEncontradosProps> = ({ isLoading, data, message, children }) => {
|
|
11
|
+
if (!isLoading && data.length === 0) {
|
|
12
|
+
return (
|
|
13
|
+
<div className="flex justify-center items-center min-h-[200px] p-5 bg-gray-100 dark:bg-gray-700 rounded-lg shadow-md">
|
|
14
|
+
<div className="text-center">
|
|
15
|
+
<h2 className="text-3xl mb-3 text-gray-800 dark:text-white">
|
|
16
|
+
Nenhum Dado Encontrado
|
|
17
|
+
</h2>
|
|
18
|
+
<p className="text-base text-gray-600 dark:text-gray-300">
|
|
19
|
+
{ message || "Não encontramos nenhum resultado para os filtros utilizados ou nenhum dado foi cadastrado ainda." }
|
|
20
|
+
</p>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
return <>{children}</>;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default DadosNaoEncontrados;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Button } from '@/components/ui';
|
|
2
|
+
import useScrollTop from '@/utils/hooks/useScrollTop';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { SlArrowUp } from "react-icons/sl";
|
|
5
|
+
|
|
6
|
+
const ScrollToTopButton: React.FC = () => {
|
|
7
|
+
const { isSticky } = useScrollTop();
|
|
8
|
+
|
|
9
|
+
if (!isSticky) return null;
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<Button
|
|
13
|
+
shape="circle"
|
|
14
|
+
icon={<SlArrowUp />}
|
|
15
|
+
style={{
|
|
16
|
+
position: 'fixed',
|
|
17
|
+
left: '95%',
|
|
18
|
+
bottom: '20px',
|
|
19
|
+
transform: 'translateX(-95%)',
|
|
20
|
+
zIndex: 1000
|
|
21
|
+
}}
|
|
22
|
+
onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })}
|
|
23
|
+
/>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default ScrollToTopButton;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const entregaBayer = {
|
|
2
|
+
findAll: (params?: string) => `/bayer/api/entregas?${params ?? ''}`,
|
|
3
|
+
createEntrega: (saldoId: number) => `/bayer/api/entregas${saldoId}`,
|
|
4
|
+
enviarBayer: (id: number) => `/bayer/api/entregas${id}/enviar-bayer`,
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export default entregaBayer
|
|
@@ -45,6 +45,7 @@ import crm from "./crm/crm";
|
|
|
45
45
|
import docusign from "./Docusign";
|
|
46
46
|
import consultaBuonny from "./transportadora/consultaBuonny";
|
|
47
47
|
import consultaVerttice from "./transportadora/consultaVerttice";
|
|
48
|
+
import bayer from "./bayer/bayer";
|
|
48
49
|
|
|
49
50
|
export const apiPrefix = "/api";
|
|
50
51
|
|
|
@@ -95,7 +96,8 @@ const endpointNavigationConfig = {
|
|
|
95
96
|
crm,
|
|
96
97
|
docusign,
|
|
97
98
|
consultaBuonny,
|
|
98
|
-
consultaVerttice
|
|
99
|
+
consultaVerttice,
|
|
100
|
+
bayer
|
|
99
101
|
};
|
|
100
102
|
|
|
101
103
|
export default endpointNavigationConfig;
|
|
@@ -24,6 +24,7 @@ import subMenuAlmoxarifado from './modules.submenu/almoxarifado/submenu.almoxari
|
|
|
24
24
|
import subMenuMdfe from './modules.submenu/mdfe/submenu.mdfe'
|
|
25
25
|
import subMenuDocusign from './modules.submenu/docusign/submenu.docusign'
|
|
26
26
|
import subMenuJuridico from './modules.submenu/juridico/submenu.juridico'
|
|
27
|
+
import subMenuBayer from './modules.submenu/bayer/submenu.bayer'
|
|
27
28
|
|
|
28
29
|
const modulesNavigationConfig: NavigationTree[] = [
|
|
29
30
|
{
|
|
@@ -62,6 +63,7 @@ const modulesNavigationConfig: NavigationTree[] = [
|
|
|
62
63
|
submenuQualidade,
|
|
63
64
|
dadosunificadosNavigationConfig,
|
|
64
65
|
subMenuMdfe,
|
|
66
|
+
subMenuBayer,
|
|
65
67
|
],
|
|
66
68
|
},
|
|
67
69
|
]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ADMIN } from '@/constants/roles.constant'
|
|
2
|
+
import { NavigationTree } from '@/@types/navigation'
|
|
3
|
+
import { NAV_ITEM_TYPE_ITEM } from '@/constants/navigation.constant'
|
|
4
|
+
|
|
5
|
+
const subMenuEntrega: NavigationTree = {
|
|
6
|
+
key: 'modules.bayer.entrega',
|
|
7
|
+
path: '/bayer/entrega-bayer',
|
|
8
|
+
title: 'Entrega',
|
|
9
|
+
translateKey: 'nav.modules.bayer.entrega.title',
|
|
10
|
+
icon: 'form',
|
|
11
|
+
type: NAV_ITEM_TYPE_ITEM,
|
|
12
|
+
authority: [ADMIN],
|
|
13
|
+
subMenu: [],
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default subMenuEntrega
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NAV_ITEM_TYPE_COLLAPSE } from '@/constants/navigation.constant'
|
|
2
|
+
import { ADMIN } from '@/constants/roles.constant'
|
|
3
|
+
import { NavigationTree } from '@/@types/navigation'
|
|
4
|
+
import bayerSubmenu from '../../submenu/bayer/bayer.submenu'
|
|
5
|
+
|
|
6
|
+
const subMenuBayer: NavigationTree =
|
|
7
|
+
{
|
|
8
|
+
key: 'modules.bayer',
|
|
9
|
+
path: '',
|
|
10
|
+
title: 'Bayer',
|
|
11
|
+
translateKey: 'nav.modules.bayer.title',
|
|
12
|
+
icon: 'form',
|
|
13
|
+
type: NAV_ITEM_TYPE_COLLAPSE,
|
|
14
|
+
authority: [ADMIN],
|
|
15
|
+
subMenu: bayerSubmenu,
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default subMenuBayer
|
|
@@ -9,3 +9,4 @@ export { default as insumosSubmenu } from './insumos/insumos.submenu';
|
|
|
9
9
|
export { default as mockSubmenu } from './mock/mock.submenu';
|
|
10
10
|
export { default as originacaoSubmenu } from './originacao/originacao.submenu';
|
|
11
11
|
export { default as racaoSubmenu } from './racao/racao.submenu';
|
|
12
|
+
export { default as bayerSubmenu } from './bayer/bayer.submenu';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import ApiService from "@/services/ApiService";
|
|
2
|
+
import { TQueryResponse } from "@base/@types/api";
|
|
3
|
+
import { TFindAllEntregaBayerResponse } from "@base/@types/api/response/bayer/TFindAllEntregaBayerResponse";
|
|
4
|
+
import endpointNavigationConfig from "@base/configs/endpoints.config/endpoints.navigation";
|
|
5
|
+
|
|
6
|
+
const ENTREGA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.entregaBayer;
|
|
7
|
+
|
|
8
|
+
export async function apiFindAllEntregaBayer(params?: string) {
|
|
9
|
+
return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllEntregaBayerResponse>>({
|
|
10
|
+
url: ENTREGA_BAYER_ENDPOINT.findAll(params),
|
|
11
|
+
method: "get",
|
|
12
|
+
});
|
|
13
|
+
}
|
package/package.json
CHANGED