@orbe-agro/client-core 5.3.197 → 5.3.199
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/models/racao/tabelaPreco.d.ts +1 -1
- package/dist/@types/base/@types/models/racao/tabelaPreco.d.ts.map +1 -1
- package/dist/@types/base/@types/models/sap/listaTecnica.d.ts +47 -0
- package/dist/@types/base/@types/models/sap/listaTecnica.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/produto.d.ts +8 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/produto.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts +8 -0
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +12 -30
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/racao/racao.d.ts +0 -30
- package/dist/@types/base/configs/endpoints.config/racao/racao.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/sap/config/listaTecnica.d.ts +8 -0
- package/dist/@types/base/configs/endpoints.config/sap/config/listaTecnica.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/sap/sap.d.ts +6 -0
- package/dist/@types/base/configs/endpoints.config/sap/sap.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/transportadora/contratoFrete.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/transportadora/contratoFrete.d.ts.map +1 -1
- package/dist/@types/base/hooks/dm/produto/useFindByCodigosProdutoList.d.ts +13 -0
- package/dist/@types/base/hooks/dm/produto/useFindByCodigosProdutoList.d.ts.map +1 -0
- package/dist/@types/base/hooks/dm/produto/useFindByIdsProdutoList.d.ts +13 -0
- package/dist/@types/base/hooks/dm/produto/useFindByIdsProdutoList.d.ts.map +1 -0
- package/dist/@types/base/hooks/index.d.ts +7 -4
- package/dist/@types/base/hooks/index.d.ts.map +1 -1
- package/dist/@types/base/hooks/sap/listaTecnica/useSapFindListaTecnica.d.ts +13 -0
- package/dist/@types/base/hooks/sap/listaTecnica/useSapFindListaTecnica.d.ts.map +1 -0
- package/dist/@types/base/services/modules/dm/index.d.ts +5 -5
- package/dist/@types/base/services/modules/dm/index.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/produto/ProdutoService.d.ts +2 -0
- package/dist/@types/base/services/modules/dm/produto/ProdutoService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/racao/index.d.ts +0 -1
- package/dist/@types/base/services/modules/racao/index.d.ts.map +1 -1
- package/dist/@types/base/services/modules/sap/index.d.ts +2 -0
- package/dist/@types/base/services/modules/sap/index.d.ts.map +1 -1
- package/dist/@types/base/services/modules/sap/listaTecnica/ListaTecnicaService.d.ts +3 -0
- package/dist/@types/base/services/modules/sap/listaTecnica/ListaTecnicaService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.d.ts +1 -0
- package/dist/@types/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.d.ts.map +1 -1
- package/dist/@types/base/store/sap/listaTecnica/useListaTecnicaListStore.d.ts +4 -0
- package/dist/@types/base/store/sap/listaTecnica/useListaTecnicaListStore.d.ts.map +1 -0
- package/dist/base/@types/models/sap/listaTecnica.js +2 -0
- package/dist/base/@types/models/sap/listaTecnica.js.map +1 -0
- package/dist/base/configs/endpoints.config/dm/config/produto.js +3 -1
- package/dist/base/configs/endpoints.config/dm/config/produto.js.map +1 -1
- package/dist/base/configs/endpoints.config/racao/racao.js +14 -16
- package/dist/base/configs/endpoints.config/racao/racao.js.map +1 -1
- package/dist/base/configs/endpoints.config/sap/config/listaTecnica.js +7 -0
- package/dist/base/configs/endpoints.config/sap/config/listaTecnica.js.map +1 -0
- package/dist/base/configs/endpoints.config/sap/sap.js +4 -2
- package/dist/base/configs/endpoints.config/sap/sap.js.map +1 -1
- package/dist/base/configs/endpoints.config/transportadora/contratoFrete.js +4 -3
- package/dist/base/configs/endpoints.config/transportadora/contratoFrete.js.map +1 -1
- package/dist/base/hooks/dm/produto/useFindByCodigosProdutoList.js +29 -0
- package/dist/base/hooks/dm/produto/useFindByCodigosProdutoList.js.map +1 -0
- package/dist/base/hooks/dm/produto/useFindByIdsProdutoList.js +29 -0
- package/dist/base/hooks/dm/produto/useFindByIdsProdutoList.js.map +1 -0
- package/dist/base/hooks/index.js +92 -86
- package/dist/base/hooks/index.js.map +1 -1
- package/dist/base/hooks/sap/listaTecnica/useSapFindListaTecnica.js +26 -0
- package/dist/base/hooks/sap/listaTecnica/useSapFindListaTecnica.js.map +1 -0
- package/dist/base/index.js +517 -512
- package/dist/base/index.js.map +1 -1
- package/dist/base/services/index.js +345 -346
- package/dist/base/services/index.js.map +1 -1
- package/dist/base/services/modules/dm/index.js +54 -52
- package/dist/base/services/modules/dm/produto/ProdutoService.js +22 -6
- package/dist/base/services/modules/dm/produto/ProdutoService.js.map +1 -1
- package/dist/base/services/modules/index.js +343 -344
- package/dist/base/services/modules/index.js.map +1 -1
- package/dist/base/services/modules/racao/index.js +38 -46
- package/dist/base/services/modules/racao/index.js.map +1 -1
- package/dist/base/services/modules/sap/index.js +6 -2
- package/dist/base/services/modules/sap/index.js.map +1 -1
- package/dist/base/services/modules/sap/listaTecnica/ListaTecnicaService.js +13 -0
- package/dist/base/services/modules/sap/listaTecnica/ListaTecnicaService.js.map +1 -0
- package/dist/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.js +24 -17
- package/dist/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.js.map +1 -1
- package/dist/base/services/modules/transportadora/index.js +57 -56
- package/dist/base/store/sap/listaTecnica/useListaTecnicaListStore.js +14 -0
- package/dist/base/store/sap/listaTecnica/useListaTecnicaListStore.js.map +1 -0
- package/lib/base/@types/models/racao/tabelaPreco.ts +1 -1
- package/lib/base/@types/models/sap/listaTecnica.ts +48 -0
- package/lib/base/configs/endpoints.config/dm/config/produto.ts +2 -0
- package/lib/base/configs/endpoints.config/racao/racao.ts +0 -2
- package/lib/base/configs/endpoints.config/sap/config/listaTecnica.ts +7 -0
- package/lib/base/configs/endpoints.config/sap/sap.ts +2 -0
- package/lib/base/configs/endpoints.config/transportadora/contratoFrete.ts +2 -0
- package/lib/base/hooks/dm/produto/useFindByCodigosProdutoList.tsx +32 -0
- package/lib/base/hooks/dm/produto/useFindByIdsProdutoList.tsx +32 -0
- package/lib/base/hooks/index.ts +10 -7
- package/lib/base/hooks/sap/listaTecnica/useSapFindListaTecnica.tsx +33 -0
- package/lib/base/services/modules/dm/index.ts +5 -5
- package/lib/base/services/modules/dm/produto/ProdutoService.ts +16 -0
- package/lib/base/services/modules/racao/index.ts +0 -1
- package/lib/base/services/modules/sap/index.ts +3 -1
- package/lib/base/services/modules/sap/listaTecnica/ListaTecnicaService.ts +22 -0
- package/lib/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.ts +7 -0
- package/lib/base/store/sap/listaTecnica/useListaTecnicaListStore.ts +19 -0
- package/package.json +1 -1
- package/dist/@types/base/configs/endpoints.config/racao/config/listaTecnica.d.ts +0 -32
- package/dist/@types/base/configs/endpoints.config/racao/config/listaTecnica.d.ts.map +0 -1
- package/dist/@types/base/services/modules/racao/listaTecnica/ListaTecnicaService.d.ts +0 -10
- package/dist/@types/base/services/modules/racao/listaTecnica/ListaTecnicaService.d.ts.map +0 -1
- package/dist/base/configs/endpoints.config/racao/config/listaTecnica.js +0 -13
- package/dist/base/configs/endpoints.config/racao/config/listaTecnica.js.map +0 -1
- package/dist/base/services/modules/racao/listaTecnica/ListaTecnicaService.js +0 -60
- package/dist/base/services/modules/racao/listaTecnica/ListaTecnicaService.js.map +0 -1
- package/lib/base/configs/endpoints.config/racao/config/listaTecnica.ts +0 -13
- package/lib/base/services/modules/racao/listaTecnica/ListaTecnicaService.ts +0 -60
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,65 +1,57 @@
|
|
|
1
|
-
import { apiAddRacaoAutorizacaoAtendimentoCliente as o, apiDeleteRacaoAutorizacaoAtendimentoCliente as i, apiFindMonitorRacaoAutorizacaoAtendimentoCliente as t, apiGetRacaoAutorizacaoAtendimentoCliente as n, apiUpdateRacaoAutorizacaoAtendimentoCliente as
|
|
2
|
-
import { apiAddRacaoGestaoComissaoRepresentante as
|
|
1
|
+
import { apiAddRacaoAutorizacaoAtendimentoCliente as o, apiDeleteRacaoAutorizacaoAtendimentoCliente as i, apiFindMonitorRacaoAutorizacaoAtendimentoCliente as t, apiGetRacaoAutorizacaoAtendimentoCliente as n, apiUpdateRacaoAutorizacaoAtendimentoCliente as d, apiUploadRacaoAutorizacaoAtendimentoCliente as p } from "./autorizacaoAtendimentoCliente/AutorizacaoAtendimentoClienteService.js";
|
|
2
|
+
import { apiAddRacaoGestaoComissaoRepresentante as c, apiDeleteRacaoGestaoComissaoRepresentante as R, apiFindMonitorRacaoGestaoComissaoRepresentante as l, apiGetRacaoGestaoComissaoRepresentante as s, apiUpdateRacaoGestaoComissaoRepresentante as m } from "./gestaoComissaoRepresentante/GestaoComissaoRepresentanteService.js";
|
|
3
3
|
import { apiAddRacaoMetaMensal as M, apiDeleteRacaoMetaMensal as A, apiFindMonitorRacaoMetaMensal as P, apiGetRacaoMetaMensal as u, apiUpdateRacaoMetaMensal as G } from "./metaMensal/MetaMensalService.js";
|
|
4
|
-
import { apiAddRacaoSegmentoProduto as
|
|
5
|
-
import { apiAddRacaoTabelaPreco as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { apiAddRacaoCarga as ia, apiDeleteRacaoCarga as ta, apiFindMonitorRacaoCarga as na, apiFindOrdensDisponiveisRacaoCarga as ca, apiGetRacaoCarga as pa, apiUpdateRacaoCarga as da } from "./carga/CargaService.js";
|
|
4
|
+
import { apiAddRacaoSegmentoProduto as g, apiDeleteRacaoSegmentoProduto as D, apiFindMonitorRacaoSegmentoProduto as F, apiGetRacaoSegmentoProduto as U, apiUpdateRacaoSegmentoProduto as f } from "./segmentoProduto/SegmentoProdutoService.js";
|
|
5
|
+
import { apiAddRacaoTabelaPreco as z, apiDeleteRacaoTabelaPreco as b, apiFindMonitorRacaoTabelaPreco as S, apiGetRacaoTabelaPreco as T, apiUpdateRacaoTabelaPreco as v } from "./tabelaPreco/TabelaPrecoService.js";
|
|
6
|
+
import { apiAddRacaoVinculoMaterialCentro as h, apiDeleteRacaoVinculoMaterialCentro as j, apiFindMonitorRacaoVinculoMaterialCentro as k, apiGetRacaoVinculoMaterialCentro as q, apiUpdateRacaoVinculoMaterialCentro as w } from "./vinculoMaterialCentro/VinculoMaterialCentroService.js";
|
|
7
|
+
import { apiAddRacaoPedidoVenda as B, apiAprovarRacaoPedidoVenda as E, apiCancelarRacaoPedidoVenda as H, apiDeleteRacaoPedidoVenda as I, apiFindMonitorRacaoPedidoVenda as J, apiGetCalulatePriceRacaoPedidoVenda as K, apiGetRacaoPedidoVenda as L, apiReprovarRacaoPedidoVenda as N, apiUpdateRacaoPedidoVenda as Q } from "./pedidoVenda/PedidoVendaService.js";
|
|
8
|
+
import { apiAddRacaoCarga as X, apiDeleteRacaoCarga as Y, apiFindMonitorRacaoCarga as Z, apiFindOrdensDisponiveisRacaoCarga as _, apiGetRacaoCarga as $, apiUpdateRacaoCarga as aa } from "./carga/CargaService.js";
|
|
10
9
|
export {
|
|
11
10
|
o as apiAddRacaoAutorizacaoAtendimentoCliente,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
O as apiAddRacaoListaTecnica,
|
|
11
|
+
X as apiAddRacaoCarga,
|
|
12
|
+
c as apiAddRacaoGestaoComissaoRepresentante,
|
|
15
13
|
M as apiAddRacaoMetaMensal,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
B as apiAddRacaoPedidoVenda,
|
|
15
|
+
g as apiAddRacaoSegmentoProduto,
|
|
16
|
+
z as apiAddRacaoTabelaPreco,
|
|
17
|
+
h as apiAddRacaoVinculoMaterialCentro,
|
|
18
|
+
E as apiAprovarRacaoPedidoVenda,
|
|
19
|
+
H as apiCancelarRacaoPedidoVenda,
|
|
22
20
|
i as apiDeleteRacaoAutorizacaoAtendimentoCliente,
|
|
23
|
-
|
|
21
|
+
Y as apiDeleteRacaoCarga,
|
|
24
22
|
R as apiDeleteRacaoGestaoComissaoRepresentante,
|
|
25
|
-
h as apiDeleteRacaoListaTecnica,
|
|
26
23
|
A as apiDeleteRacaoMetaMensal,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
I as apiDeleteRacaoPedidoVenda,
|
|
25
|
+
D as apiDeleteRacaoSegmentoProduto,
|
|
26
|
+
b as apiDeleteRacaoTabelaPreco,
|
|
27
|
+
j as apiDeleteRacaoVinculoMaterialCentro,
|
|
31
28
|
t as apiFindMonitorRacaoAutorizacaoAtendimentoCliente,
|
|
32
|
-
|
|
29
|
+
Z as apiFindMonitorRacaoCarga,
|
|
33
30
|
l as apiFindMonitorRacaoGestaoComissaoRepresentante,
|
|
34
|
-
j as apiFindMonitorRacaoListaTecnica,
|
|
35
31
|
P as apiFindMonitorRacaoMetaMensal,
|
|
36
|
-
|
|
32
|
+
J as apiFindMonitorRacaoPedidoVenda,
|
|
37
33
|
F as apiFindMonitorRacaoSegmentoProduto,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
_ as apiGetCalulatePriceRacaoPedidoVenda,
|
|
34
|
+
S as apiFindMonitorRacaoTabelaPreco,
|
|
35
|
+
k as apiFindMonitorRacaoVinculoMaterialCentro,
|
|
36
|
+
_ as apiFindOrdensDisponiveisRacaoCarga,
|
|
37
|
+
K as apiGetCalulatePriceRacaoPedidoVenda,
|
|
43
38
|
n as apiGetRacaoAutorizacaoAtendimentoCliente,
|
|
44
|
-
|
|
39
|
+
$ as apiGetRacaoCarga,
|
|
45
40
|
s as apiGetRacaoGestaoComissaoRepresentante,
|
|
46
|
-
q as apiGetRacaoListaTecnica,
|
|
47
41
|
u as apiGetRacaoMetaMensal,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
da as apiUpdateRacaoCarga,
|
|
42
|
+
L as apiGetRacaoPedidoVenda,
|
|
43
|
+
U as apiGetRacaoSegmentoProduto,
|
|
44
|
+
T as apiGetRacaoTabelaPreco,
|
|
45
|
+
q as apiGetRacaoVinculoMaterialCentro,
|
|
46
|
+
N as apiReprovarRacaoPedidoVenda,
|
|
47
|
+
d as apiUpdateRacaoAutorizacaoAtendimentoCliente,
|
|
48
|
+
aa as apiUpdateRacaoCarga,
|
|
56
49
|
m as apiUpdateRacaoGestaoComissaoRepresentante,
|
|
57
|
-
y as apiUpdateRacaoListaTecnica,
|
|
58
50
|
G as apiUpdateRacaoMetaMensal,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
51
|
+
Q as apiUpdateRacaoPedidoVenda,
|
|
52
|
+
f as apiUpdateRacaoSegmentoProduto,
|
|
53
|
+
v as apiUpdateRacaoTabelaPreco,
|
|
54
|
+
w as apiUpdateRacaoVinculoMaterialCentro,
|
|
63
55
|
p as apiUploadRacaoAutorizacaoAtendimentoCliente
|
|
64
56
|
};
|
|
65
57
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { apiFindLimiteCredito as
|
|
1
|
+
import { apiFindLimiteCredito as a } from "./limiteCredito/LimiteCreditoService.js";
|
|
2
|
+
import { apiFindListaTecnica as t } from "./listaTecnica/ListaTecnicaService.js";
|
|
3
|
+
import { apiFindPartidas as p } from "./partidas/PartidasService.js";
|
|
2
4
|
export {
|
|
3
|
-
|
|
5
|
+
a as apiFindLimiteCredito,
|
|
6
|
+
t as apiFindListaTecnica,
|
|
7
|
+
p as apiFindPartidas
|
|
4
8
|
};
|
|
5
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -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 a from "../../../../../@ecme/services/ApiService.js";
|
|
2
|
+
import i from "../../../../configs/endpoints.config/sap/sap.js";
|
|
3
|
+
async function e(t = {}) {
|
|
4
|
+
return a.fetchDataWithAxios({
|
|
5
|
+
url: i.listaTecnica.findListaTecnica.endpoint,
|
|
6
|
+
method: i.listaTecnica.findListaTecnica.method,
|
|
7
|
+
data: t
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
e as apiFindListaTecnica
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=ListaTecnicaService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListaTecnicaService.js","sources":["../../../../../../lib/base/services/modules/sap/listaTecnica/ListaTecnicaService.ts"],"sourcesContent":["import ApiService from '@/services/ApiService'\nimport { TListasTecnicas } from '@base/@types/models/sap/listaTecnica'\nimport sap from '@base/configs/endpoints.config/sap/sap'\n\n/* export async function apiFindListaTecnica(body?: IFilterParams) {\n if (!body || Object.keys(body).length === 0) {\n return undefined\n }\n return ApiService.fetchDataWithAxios<TListasTecnicas[]>({\n url: sap.listaTecnica.findListaTecnica.endpoint,\n method: sap.listaTecnica.findListaTecnica.method,\n data: body,\n })\n} */\n\nexport async function apiFindListaTecnica(data = {}) {\n return ApiService.fetchDataWithAxios<TListasTecnicas[]>({\n url: sap.listaTecnica.findListaTecnica.endpoint,\n method: sap.listaTecnica.findListaTecnica.method,\n data,\n })\n}"],"names":["apiFindListaTecnica","data","ApiService","sap"],"mappings":";;AAesB,eAAAA,EAAoBC,IAAO,IAAI;AACjD,SAAOC,EAAW,mBAAsC;AAAA,IACpD,KAAKC,EAAI,aAAa,iBAAiB;AAAA,IACvC,QAAQA,EAAI,aAAa,iBAAiB;AAAA,IAC1C,MAAAF;AAAA,EAAA,CACH;AACL;"}
|
|
@@ -1,84 +1,91 @@
|
|
|
1
1
|
import r from "../../../../configs/endpoints.config/endpoints.navigation.js";
|
|
2
|
-
import
|
|
2
|
+
import e from "../../../../../@ecme/services/ApiService.js";
|
|
3
3
|
const t = r.contratoFrete;
|
|
4
4
|
async function u(o) {
|
|
5
|
-
return
|
|
5
|
+
return e.fetchDataWithAxios({
|
|
6
6
|
url: t.findOne.endpoint + `${o}`,
|
|
7
7
|
method: t.findOne.method
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
10
|
async function c(o) {
|
|
11
|
-
return
|
|
11
|
+
return e.fetchDataWithAxios({
|
|
12
12
|
url: t.add.endpoint,
|
|
13
13
|
method: t.add.method,
|
|
14
14
|
data: o
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
async function h(o) {
|
|
18
|
-
return
|
|
18
|
+
return e.fetchDataWithAxios({
|
|
19
19
|
url: t.update.endpoint,
|
|
20
20
|
method: t.update.method,
|
|
21
21
|
data: o
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
async function f(o) {
|
|
25
|
-
return
|
|
25
|
+
return e.fetchDataWithAxios({
|
|
26
26
|
url: t.findAll.endpoint,
|
|
27
27
|
method: t.findAll.method,
|
|
28
28
|
data: o
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
async function
|
|
32
|
-
return
|
|
33
|
-
url: `${t.updateStatusParcela.endpoint}/${o}/${
|
|
31
|
+
async function m(o, n, a) {
|
|
32
|
+
return e.fetchDataWithAxios({
|
|
33
|
+
url: `${t.updateStatusParcela.endpoint}/${o}/${n}`,
|
|
34
34
|
method: t.updateStatusParcela.method,
|
|
35
|
-
data:
|
|
35
|
+
data: a
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
async function p(o) {
|
|
39
|
-
return
|
|
39
|
+
return e.fetchDataWithAxios({
|
|
40
40
|
url: `${t.findValorBrutoContrato.endpoint}/${o}`,
|
|
41
41
|
method: t.findValorBrutoContrato.method
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
async function
|
|
45
|
-
return
|
|
44
|
+
async function l(o) {
|
|
45
|
+
return e.fetchDataWithAxios({
|
|
46
46
|
url: t.findCalculoFrete.endpoint,
|
|
47
47
|
method: t.findCalculoFrete.method,
|
|
48
48
|
data: o
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
async function s(o) {
|
|
52
|
-
return
|
|
52
|
+
return e.fetchDataWithAxios({
|
|
53
53
|
url: t.findContratoPorDocumento.endpoint,
|
|
54
54
|
method: t.findContratoPorDocumento.method,
|
|
55
55
|
data: o
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
async function C(o) {
|
|
59
|
-
return
|
|
59
|
+
return e.fetchDataWithAxios({
|
|
60
60
|
url: t.roteirizar.endpoint,
|
|
61
61
|
method: t.roteirizar.method,
|
|
62
62
|
data: o
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
async function A(o) {
|
|
66
|
-
return
|
|
66
|
+
return e.fetchDataWithAxios({
|
|
67
67
|
url: t.controleEmbarque.endpoint,
|
|
68
68
|
method: t.controleEmbarque.method,
|
|
69
69
|
data: o
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
+
async function D(o) {
|
|
73
|
+
return e.fetchDataWithAxios({
|
|
74
|
+
url: t.findByOrdemCarregamentoId.endpoint + o,
|
|
75
|
+
method: t.findByOrdemCarregamentoId.method
|
|
76
|
+
});
|
|
77
|
+
}
|
|
72
78
|
export {
|
|
73
79
|
c as apiAddContratoFrete,
|
|
74
80
|
f as apiFindAllContratoFrete,
|
|
75
|
-
|
|
81
|
+
l as apiFindCalculoFrete,
|
|
76
82
|
s as apiFindContratoPorDocumento,
|
|
77
83
|
A as apiFindControleEmbarque,
|
|
78
84
|
p as apiFindvalorBrutoContrato,
|
|
79
85
|
u as apiGetContratoFrete,
|
|
80
86
|
C as apiRoteirizar,
|
|
81
87
|
h as apiUpdateContratoFrete,
|
|
82
|
-
|
|
88
|
+
m as apiUpdateStatusParcela,
|
|
89
|
+
D as apiVerificaContratoFreteByOrdemCarregamentoId
|
|
83
90
|
};
|
|
84
91
|
//# sourceMappingURL=ContratoFreteService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContratoFreteService.js","sources":["../../../../../../lib/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport ApiService from '@/services/ApiService'\nimport { TContratoFrete } from '@base/@types/models/transportadora/contratoFrete';\nimport { TContratoFreteViagemParcela } from '@base/@types/models/transportadora/contratoFreteViagemParcela';\nimport { TValorBrutoContrato } from '@base/@types/models/transportadora/valorBrutoContrato';\nimport { TPageCalculoFreteRequest, TCalculoFreteResponse } from '@base/@types/api';\nimport { TContratoPorDocumentoFilter } from '@base/@types/models/transportadora/contratoPorDocumento';\nimport { TContratoPorDocumentoResponse } from '@base/@types/api/response/transportadora/TContratoPorDocumentoResponse';\nimport { TControleEmbarque } from '@base/@types/models/transportadora/controleEmbarque';\n\nconst CONTRATO_FRETE_PROJECT_ENDPOINT = endpointConfig.contratoFrete;\n\nexport async function apiGetContratoFrete(id: string) {\n return ApiService.fetchDataWithAxios<TContratoFrete>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findOne.endpoint + `${id}`,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddContratoFrete(body: TContratoFrete) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoFrete>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.add.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateContratoFrete(body: TContratoFrete) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoFrete>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.update.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiFindAllContratoFrete(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoFrete>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findAll.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findAll.method,\n data: body,\n })\n}\n\nexport async function apiUpdateStatusParcela(id: number, statusParcela: string, parcelas: TContratoFreteViagemParcela[]) {\n return ApiService.fetchDataWithAxios<TContratoFrete>({\n url: `${CONTRATO_FRETE_PROJECT_ENDPOINT.updateStatusParcela.endpoint}/${id}/${statusParcela}`,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.updateStatusParcela.method,\n data: parcelas as any,\n })\n}\n\nexport async function apiFindvalorBrutoContrato(cpf: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TValorBrutoContrato>>({\n url: `${CONTRATO_FRETE_PROJECT_ENDPOINT.findValorBrutoContrato.endpoint}/${cpf}`,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findValorBrutoContrato.method,\n });\n}\n\nexport async function apiFindCalculoFrete(request: TPageCalculoFreteRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCalculoFreteResponse>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findCalculoFrete.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findCalculoFrete.method,\n data: request,\n })\n}\n\nexport async function apiFindContratoPorDocumento(body: TContratoPorDocumentoFilter) {\n return ApiService.fetchDataWithAxios<TContratoPorDocumentoResponse>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findContratoPorDocumento.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findContratoPorDocumento.method,\n data: body,\n })\n}\n\nexport async function apiRoteirizar(body) {\n return ApiService.fetchDataWithAxios({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.roteirizar.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.roteirizar.method,\n data: body,\n })\n}\n\nexport async function apiFindControleEmbarque(payload: Record<string, unknown>) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TControleEmbarque>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.controleEmbarque.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.controleEmbarque.method,\n data: payload,\n })\n}\n"],"names":["CONTRATO_FRETE_PROJECT_ENDPOINT","endpointConfig","apiGetContratoFrete","id","ApiService","apiAddContratoFrete","body","apiUpdateContratoFrete","apiFindAllContratoFrete","apiUpdateStatusParcela","statusParcela","parcelas","apiFindvalorBrutoContrato","cpf","apiFindCalculoFrete","request","apiFindContratoPorDocumento","apiRoteirizar","apiFindControleEmbarque","payload"],"mappings":";;AAWA,MAAMA,IAAkCC,EAAe;AAEvD,eAAsBC,EAAoBC,GAAY;AAClD,SAAOC,EAAW,mBAAmC;AAAA,IACjD,KAAKJ,EAAgC,QAAQ,WAAW,GAAGG,CAAE;AAAA,IAC7D,QAAQH,EAAgC,QAAQ;AAAA,EAAA,CACnD;AACL;AAEA,eAAsBK,EAAoBC,GAAsB;AAC5D,SAAOF,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAgC,IAAI;AAAA,IACzC,QAAQA,EAAgC,IAAI;AAAA,IAC5C,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBC,EAAuBD,GAAsB;AAC/D,SAAOF,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAgC,OAAO;AAAA,IAC5C,QAAQA,EAAgC,OAAO;AAAA,IAC/C,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAAwBF,GAAsB;AAChE,SAAOF,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAgC,QAAQ;AAAA,IAC7C,QAAQA,EAAgC,QAAQ;AAAA,IAChD,MAAMM;AAAA,EAAA,CACT;AACL;AAEsB,eAAAG,EAAuBN,GAAYO,GAAuBC,GAAyC;AACrH,SAAOP,EAAW,mBAAmC;AAAA,IACjD,KAAK,GAAGJ,EAAgC,oBAAoB,QAAQ,IAAIG,CAAE,IAAIO,CAAa;AAAA,IAC3F,QAAQV,EAAgC,oBAAoB;AAAA,IAC5D,MAAMW;AAAA,EAAA,CACT;AACL;AAEA,eAAsBC,EAA0BC,GAAa;AACzD,SAAOT,EAAW,mBAAwD;AAAA,IACtE,KAAK,GAAGJ,EAAgC,uBAAuB,QAAQ,IAAIa,CAAG;AAAA,IAC9E,QAAQb,EAAgC,uBAAuB;AAAA,EAAA,CAClE;AACL;AAEA,eAAsBc,EAAoBC,GAAmC;AACzE,SAAOX,EAAW,mBAA0D;AAAA,IACxE,KAAKJ,EAAgC,iBAAiB;AAAA,IACtD,QAAQA,EAAgC,iBAAiB;AAAA,IACzD,MAAMe;AAAA,EAAA,CACT;AACL;AAEA,eAAsBC,EAA4BV,GAAmC;AACjF,SAAOF,EAAW,mBAAkD;AAAA,IAChE,KAAKJ,EAAgC,yBAAyB;AAAA,IAC9D,QAAQA,EAAgC,yBAAyB;AAAA,IACjE,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBW,EAAcX,GAAM;AACtC,SAAOF,EAAW,mBAAmB;AAAA,IACjC,KAAKJ,EAAgC,WAAW;AAAA,IAChD,QAAQA,EAAgC,WAAW;AAAA,IACnD,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBY,EAAwBC,GAAkC;AAC5E,SAAOf,EAAW,mBAAsD;AAAA,IACpE,KAAKJ,EAAgC,iBAAiB;AAAA,IACtD,QAAQA,EAAgC,iBAAiB;AAAA,IACzD,MAAMmB;AAAA,EAAA,CACT;AACL;"}
|
|
1
|
+
{"version":3,"file":"ContratoFreteService.js","sources":["../../../../../../lib/base/services/modules/transportadora/ContratoFrete/ContratoFreteService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport ApiService from '@/services/ApiService'\nimport { TContratoFrete } from '@base/@types/models/transportadora/contratoFrete';\nimport { TContratoFreteViagemParcela } from '@base/@types/models/transportadora/contratoFreteViagemParcela';\nimport { TValorBrutoContrato } from '@base/@types/models/transportadora/valorBrutoContrato';\nimport { TPageCalculoFreteRequest, TCalculoFreteResponse } from '@base/@types/api';\nimport { TContratoPorDocumentoFilter } from '@base/@types/models/transportadora/contratoPorDocumento';\nimport { TContratoPorDocumentoResponse } from '@base/@types/api/response/transportadora/TContratoPorDocumentoResponse';\nimport { TControleEmbarque } from '@base/@types/models/transportadora/controleEmbarque';\n\nconst CONTRATO_FRETE_PROJECT_ENDPOINT = endpointConfig.contratoFrete;\n\nexport async function apiGetContratoFrete(id: string) {\n return ApiService.fetchDataWithAxios<TContratoFrete>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findOne.endpoint + `${id}`,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findOne.method,\n })\n}\n\nexport async function apiAddContratoFrete(body: TContratoFrete) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoFrete>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.add.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiUpdateContratoFrete(body: TContratoFrete) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoFrete>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.update.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.update.method,\n data: body,\n })\n}\n\nexport async function apiFindAllContratoFrete(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TContratoFrete>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findAll.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findAll.method,\n data: body,\n })\n}\n\nexport async function apiUpdateStatusParcela(id: number, statusParcela: string, parcelas: TContratoFreteViagemParcela[]) {\n return ApiService.fetchDataWithAxios<TContratoFrete>({\n url: `${CONTRATO_FRETE_PROJECT_ENDPOINT.updateStatusParcela.endpoint}/${id}/${statusParcela}`,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.updateStatusParcela.method,\n data: parcelas as any,\n })\n}\n\nexport async function apiFindvalorBrutoContrato(cpf: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TValorBrutoContrato>>({\n url: `${CONTRATO_FRETE_PROJECT_ENDPOINT.findValorBrutoContrato.endpoint}/${cpf}`,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findValorBrutoContrato.method,\n });\n}\n\nexport async function apiFindCalculoFrete(request: TPageCalculoFreteRequest) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TCalculoFreteResponse>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findCalculoFrete.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findCalculoFrete.method,\n data: request,\n })\n}\n\nexport async function apiFindContratoPorDocumento(body: TContratoPorDocumentoFilter) {\n return ApiService.fetchDataWithAxios<TContratoPorDocumentoResponse>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findContratoPorDocumento.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findContratoPorDocumento.method,\n data: body,\n })\n}\n\nexport async function apiRoteirizar(body) {\n return ApiService.fetchDataWithAxios({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.roteirizar.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.roteirizar.method,\n data: body,\n })\n}\n\nexport async function apiFindControleEmbarque(payload: Record<string, unknown>) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TControleEmbarque>>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.controleEmbarque.endpoint,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.controleEmbarque.method,\n data: payload,\n })\n}\n\nexport async function apiVerificaContratoFreteByOrdemCarregamentoId(ordemCarregamentoId: string) {\n return ApiService.fetchDataWithAxios<boolean>({\n url: CONTRATO_FRETE_PROJECT_ENDPOINT.findByOrdemCarregamentoId.endpoint + ordemCarregamentoId,\n method: CONTRATO_FRETE_PROJECT_ENDPOINT.findByOrdemCarregamentoId.method,\n })\n}\n"],"names":["CONTRATO_FRETE_PROJECT_ENDPOINT","endpointConfig","apiGetContratoFrete","id","ApiService","apiAddContratoFrete","body","apiUpdateContratoFrete","apiFindAllContratoFrete","apiUpdateStatusParcela","statusParcela","parcelas","apiFindvalorBrutoContrato","cpf","apiFindCalculoFrete","request","apiFindContratoPorDocumento","apiRoteirizar","apiFindControleEmbarque","payload","apiVerificaContratoFreteByOrdemCarregamentoId","ordemCarregamentoId"],"mappings":";;AAWA,MAAMA,IAAkCC,EAAe;AAEvD,eAAsBC,EAAoBC,GAAY;AAClD,SAAOC,EAAW,mBAAmC;AAAA,IACjD,KAAKJ,EAAgC,QAAQ,WAAW,GAAGG,CAAE;AAAA,IAC7D,QAAQH,EAAgC,QAAQ;AAAA,EAAA,CACnD;AACL;AAEA,eAAsBK,EAAoBC,GAAsB;AAC5D,SAAOF,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAgC,IAAI;AAAA,IACzC,QAAQA,EAAgC,IAAI;AAAA,IAC5C,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBC,EAAuBD,GAAsB;AAC/D,SAAOF,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAgC,OAAO;AAAA,IAC5C,QAAQA,EAAgC,OAAO;AAAA,IAC/C,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAAwBF,GAAsB;AAChE,SAAOF,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAgC,QAAQ;AAAA,IAC7C,QAAQA,EAAgC,QAAQ;AAAA,IAChD,MAAMM;AAAA,EAAA,CACT;AACL;AAEsB,eAAAG,EAAuBN,GAAYO,GAAuBC,GAAyC;AACrH,SAAOP,EAAW,mBAAmC;AAAA,IACjD,KAAK,GAAGJ,EAAgC,oBAAoB,QAAQ,IAAIG,CAAE,IAAIO,CAAa;AAAA,IAC3F,QAAQV,EAAgC,oBAAoB;AAAA,IAC5D,MAAMW;AAAA,EAAA,CACT;AACL;AAEA,eAAsBC,EAA0BC,GAAa;AACzD,SAAOT,EAAW,mBAAwD;AAAA,IACtE,KAAK,GAAGJ,EAAgC,uBAAuB,QAAQ,IAAIa,CAAG;AAAA,IAC9E,QAAQb,EAAgC,uBAAuB;AAAA,EAAA,CAClE;AACL;AAEA,eAAsBc,EAAoBC,GAAmC;AACzE,SAAOX,EAAW,mBAA0D;AAAA,IACxE,KAAKJ,EAAgC,iBAAiB;AAAA,IACtD,QAAQA,EAAgC,iBAAiB;AAAA,IACzD,MAAMe;AAAA,EAAA,CACT;AACL;AAEA,eAAsBC,EAA4BV,GAAmC;AACjF,SAAOF,EAAW,mBAAkD;AAAA,IAChE,KAAKJ,EAAgC,yBAAyB;AAAA,IAC9D,QAAQA,EAAgC,yBAAyB;AAAA,IACjE,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBW,EAAcX,GAAM;AACtC,SAAOF,EAAW,mBAAmB;AAAA,IACjC,KAAKJ,EAAgC,WAAW;AAAA,IAChD,QAAQA,EAAgC,WAAW;AAAA,IACnD,MAAMM;AAAA,EAAA,CACT;AACL;AAEA,eAAsBY,EAAwBC,GAAkC;AAC5E,SAAOf,EAAW,mBAAsD;AAAA,IACpE,KAAKJ,EAAgC,iBAAiB;AAAA,IACtD,QAAQA,EAAgC,iBAAiB;AAAA,IACzD,MAAMmB;AAAA,EAAA,CACT;AACL;AAEA,eAAsBC,EAA8CC,GAA6B;AAC7F,SAAOjB,EAAW,mBAA4B;AAAA,IAC1C,KAAKJ,EAAgC,0BAA0B,WAAWqB;AAAA,IAC1E,QAAQrB,EAAgC,0BAA0B;AAAA,EAAA,CACrE;AACL;"}
|
|
@@ -1,95 +1,96 @@
|
|
|
1
|
-
import { apiAddCartaoPortadorFrete as
|
|
1
|
+
import { apiAddCartaoPortadorFrete as i, apiFindAllCartaoPortadorFrete as o, apiFindCartaoPortadorFreteByTipoBusca as e } from "./CartaoPortadorFrete/CartaoPortadorFreteService.js";
|
|
2
2
|
import { apiAddCertificadoTransportadora as p, apiDownloadCertificadoTransportadora as d, apiFindAllMonitorCertificadoTransportadora as n, apiGetCertificadoTransportadora as l, apiUpdateCertificadoTransportadora as C } from "./CertificadoTransportadora/CertificadoTransportadoraService.js";
|
|
3
3
|
import { apiAddCest as s, apiFindAllCest as m, apiGetCest as A, apiUpdateCest as f } from "./Cest/CestService.js";
|
|
4
4
|
import { apiAddConta as g, apiFindConta as x } from "./Conta/ContaService.js";
|
|
5
|
-
import { apiAddContratoFrete as G, apiFindAllContratoFrete as U, apiFindCalculoFrete as T, apiFindContratoPorDocumento as u, apiFindControleEmbarque as D, apiFindvalorBrutoContrato as R, apiGetContratoFrete as B, apiRoteirizar as O, apiUpdateContratoFrete as P, apiUpdateStatusParcela as v } from "./ContratoFrete/ContratoFreteService.js";
|
|
6
|
-
import { apiAddControleDescarga as
|
|
5
|
+
import { apiAddContratoFrete as G, apiFindAllContratoFrete as U, apiFindCalculoFrete as T, apiFindContratoPorDocumento as u, apiFindControleEmbarque as D, apiFindvalorBrutoContrato as R, apiGetContratoFrete as B, apiRoteirizar as O, apiUpdateContratoFrete as P, apiUpdateStatusParcela as v, apiVerificaContratoFreteByOrdemCarregamentoId as y } from "./ContratoFrete/ContratoFreteService.js";
|
|
6
|
+
import { apiAddControleDescarga as N, apiFindAllControleDescarga as S, apiGetCodigoControleDescarga as V, apiGetControleDescarga as b, apiUpdateControleDescarga as w } from "./ControleDescarga/ControleDescargaService.js";
|
|
7
7
|
import { apiAddFavorecido as E, apiFindAllFavorecido as L, apiFindFavorecidoByTipoBusca as M } from "./Favorecido/FavorecidoService.js";
|
|
8
|
-
import { apiAddInss as
|
|
9
|
-
import { apiAddIrpf as
|
|
10
|
-
import { apiAddIss as
|
|
11
|
-
import { apiAddItinerario as oa, apiFindAllItinerario as
|
|
12
|
-
import { apiGetFornecedor as
|
|
13
|
-
import { apiFindByNomeOrCodigo as
|
|
14
|
-
import { apiFindByNotaFiscal as
|
|
15
|
-
import { apiAddOrdemCarregamento as
|
|
16
|
-
import { apiAddRemetenteDestinatario as
|
|
17
|
-
import { apiAddRota as
|
|
18
|
-
import { apiAddTipoCarga as
|
|
8
|
+
import { apiAddInss as j, apiFindAllInss as k, apiGetInss as H, apiUpdateInss as J } from "./Inss/InssService.js";
|
|
9
|
+
import { apiAddIrpf as Q, apiFindAllIrpf as W, apiGetIrpf as X, apiUpdateIrpf as Y } from "./Irpf/IrpfService.js";
|
|
10
|
+
import { apiAddIss as _, apiFindAllIss as $, apiGeTIss as aa, apiUpdateIss as ra } from "./Iss/IssService.js";
|
|
11
|
+
import { apiAddItinerario as oa, apiFindAllItinerario as ea, apiGetItinerario as ta, apiItinerarioFindRotaAndProduto as pa, apiItinerarioFindValorLiquidoFrete as da, apiUpdateItinerario as na } from "./Itinerario/ItinerarioService.js";
|
|
12
|
+
import { apiGetFornecedor as Ca } from "./Motorista/MotoristaService.js";
|
|
13
|
+
import { apiFindByNomeOrCodigo as sa } from "./NaturezaCarga/NaturezaCargaService.js";
|
|
14
|
+
import { apiFindByNotaFiscal as Aa } from "./NotaFiscal/NotaFiscalService.js";
|
|
15
|
+
import { apiAddOrdemCarregamento as ca, apiFindAllOrdemCarregamento as ga, apiGetCodigoOrdemCarregamento as xa, apiGetOrdemCarregamento as Ia, apiUpdateOrdemCarregamento as Ga } from "./OrdemCarregamento/OrdemCarregamentoService.js";
|
|
16
|
+
import { apiAddRemetenteDestinatario as Ta, apiFindAllRemetenteDestinatario as ua, apiUpdateRemetenteDestinatario as Da } from "./RemetenteDestinatario/RemetenteDestinatarioService.js";
|
|
17
|
+
import { apiAddRota as Ba, apiFindAllRota as Oa, apiFindRotas as Pa, apiGetRota as va, apiUpdateRota as ya, apiUpdateStatus as qa } from "./Rota/RotaService.js";
|
|
18
|
+
import { apiAddTipoCarga as Sa, apiFindAllTipoCarga as Va, apiGetCodigoTipoCarga as ba, apiGetTipoCarga as wa, apiUpdateTipoCarga as za } from "./TiposCarga/TipoCargaService.js";
|
|
19
19
|
import { apiFindAllveiculo as La } from "./Veiculo/VeiculoService.js";
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
i as apiAddCartaoPortadorFrete,
|
|
22
22
|
p as apiAddCertificadoTransportadora,
|
|
23
23
|
s as apiAddCest,
|
|
24
24
|
g as apiAddConta,
|
|
25
25
|
G as apiAddContratoFrete,
|
|
26
|
-
|
|
26
|
+
N as apiAddControleDescarga,
|
|
27
27
|
E as apiAddFavorecido,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
j as apiAddInss,
|
|
29
|
+
Q as apiAddIrpf,
|
|
30
|
+
_ as apiAddIss,
|
|
31
31
|
oa as apiAddItinerario,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
ca as apiAddOrdemCarregamento,
|
|
33
|
+
Ta as apiAddRemetenteDestinatario,
|
|
34
|
+
Ba as apiAddRota,
|
|
35
|
+
Sa as apiAddTipoCarga,
|
|
36
36
|
d as apiDownloadCertificadoTransportadora,
|
|
37
|
-
|
|
37
|
+
o as apiFindAllCartaoPortadorFrete,
|
|
38
38
|
m as apiFindAllCest,
|
|
39
39
|
U as apiFindAllContratoFrete,
|
|
40
|
-
|
|
40
|
+
S as apiFindAllControleDescarga,
|
|
41
41
|
L as apiFindAllFavorecido,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
k as apiFindAllInss,
|
|
43
|
+
W as apiFindAllIrpf,
|
|
44
|
+
$ as apiFindAllIss,
|
|
45
|
+
ea as apiFindAllItinerario,
|
|
46
46
|
n as apiFindAllMonitorCertificadoTransportadora,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
ga as apiFindAllOrdemCarregamento,
|
|
48
|
+
ua as apiFindAllRemetenteDestinatario,
|
|
49
|
+
Oa as apiFindAllRota,
|
|
50
|
+
Va as apiFindAllTipoCarga,
|
|
51
51
|
La as apiFindAllveiculo,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
sa as apiFindByNomeOrCodigo,
|
|
53
|
+
Aa as apiFindByNotaFiscal,
|
|
54
54
|
T as apiFindCalculoFrete,
|
|
55
|
-
|
|
55
|
+
e as apiFindCartaoPortadorFreteByTipoBusca,
|
|
56
56
|
x as apiFindConta,
|
|
57
57
|
u as apiFindContratoPorDocumento,
|
|
58
58
|
D as apiFindControleEmbarque,
|
|
59
59
|
M as apiFindFavorecidoByTipoBusca,
|
|
60
|
-
|
|
60
|
+
Pa as apiFindRotas,
|
|
61
61
|
R as apiFindvalorBrutoContrato,
|
|
62
|
-
|
|
62
|
+
aa as apiGeTIss,
|
|
63
63
|
l as apiGetCertificadoTransportadora,
|
|
64
64
|
A as apiGetCest,
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
V as apiGetCodigoControleDescarga,
|
|
66
|
+
xa as apiGetCodigoOrdemCarregamento,
|
|
67
67
|
ba as apiGetCodigoTipoCarga,
|
|
68
68
|
B as apiGetContratoFrete,
|
|
69
69
|
b as apiGetControleDescarga,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
Ca as apiGetFornecedor,
|
|
71
|
+
H as apiGetInss,
|
|
72
|
+
X as apiGetIrpf,
|
|
73
73
|
ta as apiGetItinerario,
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
Ia as apiGetOrdemCarregamento,
|
|
75
|
+
va as apiGetRota,
|
|
76
76
|
wa as apiGetTipoCarga,
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
pa as apiItinerarioFindRotaAndProduto,
|
|
78
|
+
da as apiItinerarioFindValorLiquidoFrete,
|
|
79
79
|
O as apiRoteirizar,
|
|
80
80
|
C as apiUpdateCertificadoTransportadora,
|
|
81
81
|
f as apiUpdateCest,
|
|
82
82
|
P as apiUpdateContratoFrete,
|
|
83
83
|
w as apiUpdateControleDescarga,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
J as apiUpdateInss,
|
|
85
|
+
Y as apiUpdateIrpf,
|
|
86
|
+
ra as apiUpdateIss,
|
|
87
|
+
na as apiUpdateItinerario,
|
|
88
|
+
Ga as apiUpdateOrdemCarregamento,
|
|
89
|
+
Da as apiUpdateRemetenteDestinatario,
|
|
90
|
+
ya as apiUpdateRota,
|
|
91
|
+
qa as apiUpdateStatus,
|
|
92
92
|
v as apiUpdateStatusParcela,
|
|
93
|
-
za as apiUpdateTipoCarga
|
|
93
|
+
za as apiUpdateTipoCarga,
|
|
94
|
+
y as apiVerificaContratoFreteByOrdemCarregamentoId
|
|
94
95
|
};
|
|
95
96
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getBaseTableParams as e } from "../../../services/query.js";
|
|
2
|
+
import { create as r } from "zustand";
|
|
3
|
+
const s = e(), m = {
|
|
4
|
+
filterParams: {},
|
|
5
|
+
tableParams: s
|
|
6
|
+
}, o = r((t) => ({
|
|
7
|
+
...m,
|
|
8
|
+
setFilterParams: (a) => t(() => ({ filterParams: a })),
|
|
9
|
+
setTableParams: (a) => t(() => ({ tableParams: a }))
|
|
10
|
+
}));
|
|
11
|
+
export {
|
|
12
|
+
o as useListaTecnicaListStore
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useListaTecnicaListStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useListaTecnicaListStore.js","sources":["../../../../../lib/base/store/sap/listaTecnica/useListaTecnicaListStore.ts"],"sourcesContent":["import { TListasTecnicas } from '@base/@types/models/sap/listaTecnica'\nimport { IListStoreAction, IListStoreState } from '@base/@types/store'\nimport { getBaseTableParams } from '@base/services/query'\nimport { create } from 'zustand'\n\nconst baseTableParams = getBaseTableParams()\n\nconst initialState: IListStoreState<TListasTecnicas> = {\n filterParams: {},\n tableParams: baseTableParams,\n}\n\nexport const useListaTecnicaListStore = create<\n IListStoreState<TListasTecnicas> & IListStoreAction<TListasTecnicas>\n>((set) => ({\n ...initialState,\n setFilterParams: (payload) => set(() => ({ filterParams: payload })),\n setTableParams: (payload) => set(() => ({ tableParams: payload })),\n}))"],"names":["baseTableParams","getBaseTableParams","initialState","useListaTecnicaListStore","create","set","payload"],"mappings":";;AAKA,MAAMA,IAAkBC,EAAmB,GAErCC,IAAiD;AAAA,EACnD,cAAc,CAAC;AAAA,EACf,aAAaF;AACjB,GAEaG,IAA2BC,EAEtC,CAACC,OAAS;AAAA,EACR,GAAGH;AAAA,EACH,iBAAiB,CAACI,MAAYD,EAAI,OAAO,EAAE,cAAcC,IAAU;AAAA,EACnE,gBAAgB,CAACA,MAAYD,EAAI,OAAO,EAAE,aAAaC,IAAU;AACrE,EAAE;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export type TListasTecnicas = {
|
|
2
|
+
listasTecnicas: TListaTecnica[];
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
export type TListaTecnica = {
|
|
6
|
+
codigo: string; // Código do produto
|
|
7
|
+
categoria: string; // Categoria
|
|
8
|
+
variante: string; // Variante
|
|
9
|
+
versao: string; // Versão
|
|
10
|
+
objeto: string; // Objeto técnico
|
|
11
|
+
codigoCentro: string; // Código do centro
|
|
12
|
+
documento: string; // Documento da lista
|
|
13
|
+
usoVariante: string; // Uso variante
|
|
14
|
+
uuidHeader: string | null;
|
|
15
|
+
dataInicioValidadeHeader: string | null;
|
|
16
|
+
dataFimValidadeHeader: string | null;
|
|
17
|
+
unidadeBaseHeader: string | null;
|
|
18
|
+
quantidadeBaseHeader: string | null;
|
|
19
|
+
dataCriacaoRegistro: string | null;
|
|
20
|
+
dataUltimaAlteracao: string | null;
|
|
21
|
+
itensListaTecnica: TListaTecnicaItem[];
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type TListaTecnicaItem = {
|
|
25
|
+
codigo: string; // Código do item
|
|
26
|
+
categoria: string; // Categoria
|
|
27
|
+
variante: string; // Variante
|
|
28
|
+
versao: string; // Versão
|
|
29
|
+
objeto: string; // Objeto técnico
|
|
30
|
+
codigoCentro: string; // Centro
|
|
31
|
+
documento: string; // Documento
|
|
32
|
+
usoVariante: string; // Uso variante
|
|
33
|
+
idItem: string; // Node number do item
|
|
34
|
+
numero: string; // Número do item
|
|
35
|
+
unidade: string; // Unidade
|
|
36
|
+
quantidade: string; // Quantidade
|
|
37
|
+
uuidItem: string | null;
|
|
38
|
+
contadorAlteracaoInterna: string | null;
|
|
39
|
+
dataInicioValidade: string | null;
|
|
40
|
+
dataFimValidade: string | null;
|
|
41
|
+
dataCriacaoRegistro: string | null;
|
|
42
|
+
dataUltimaAlteracao: string | null;
|
|
43
|
+
componente: string | null;
|
|
44
|
+
categoriaItem: string | null;
|
|
45
|
+
precoComponente: string | null;
|
|
46
|
+
identificadorItem: string | null;
|
|
47
|
+
descricaoComponente: string | null;
|
|
48
|
+
};
|
|
@@ -9,6 +9,8 @@ const produto = {
|
|
|
9
9
|
validaProdutoByEmissorPedidoVenda: { endpoint: `${PRODUTO_BASE_URL}/valida-produto-by-emissor-pedido-venda/`, method: 'get' },
|
|
10
10
|
findProdutosByCanalDistribuicaoAndOrganizacaoVenda: { endpoint: `${PRODUTO_BASE_URL}/find-produtos-by-canal-distribuicao-and-organizacao-venda/`, method: 'get' },
|
|
11
11
|
findDescricaoById: { endpoint: `${PRODUTO_BASE_URL}/{id}/descricao`, method: 'get' },
|
|
12
|
+
findByIds: { endpoint: `${PRODUTO_BASE_URL}/find-by-ids`, method: 'post' },
|
|
13
|
+
findByCodigos: { endpoint: `${PRODUTO_BASE_URL}/find-by-codigos`, method: 'post' },
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export default produto
|
|
@@ -3,7 +3,6 @@ import carga from "./config/carga"
|
|
|
3
3
|
import contratoCredito from "./config/contratoCredito"
|
|
4
4
|
import desconto from "./config/desconto"
|
|
5
5
|
import gestaoComissaoRepresentante from "./config/gestaoComissaoRepresentante"
|
|
6
|
-
import listaTecnica from "./config/listaTecnica"
|
|
7
6
|
import metaMensal from "./config/metaMensal"
|
|
8
7
|
import metaVendaRepresentante from "./config/metaVendaRepresentante"
|
|
9
8
|
import pedidoVenda from "./config/pedidoVenda"
|
|
@@ -17,7 +16,6 @@ const racao = {
|
|
|
17
16
|
gestaoComissaoRepresentante: gestaoComissaoRepresentante,
|
|
18
17
|
metaMensal: metaMensal,
|
|
19
18
|
autorizacaoAtendimentoCliente: autorizacaoAtendimentoCliente,
|
|
20
|
-
listaTecnica: listaTecnica,
|
|
21
19
|
tabelaPreco: tabelaPreco,
|
|
22
20
|
pedidoVenda: pedidoVenda,
|
|
23
21
|
carga: carga,
|
|
@@ -12,5 +12,7 @@ const contratoFrete = {
|
|
|
12
12
|
findContratoPorDocumento: {endpoint: `${CONTRATO_FRETE_URL}/contrato-por-documento`, method: 'post'},
|
|
13
13
|
roteirizar: {endpoint: `${CONTRATO_FRETE_URL}/roteirizar`, method: 'post'},
|
|
14
14
|
controleEmbarque: {endpoint: `${CONTRATO_FRETE_URL}/controle-embarque`, method: 'post'},
|
|
15
|
+
findByOrdemCarregamentoId: {endpoint: `${CONTRATO_FRETE_URL}/find-ordem-carregamento/`, method: 'get'},
|
|
15
16
|
}
|
|
16
17
|
export default contratoFrete
|
|
18
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { apiFindByCodigosProduto } from '@base/services'
|
|
2
|
+
import { useProdutoListStore } from '@base/store/dm/produto/produtoListStore'
|
|
3
|
+
import useSWR from 'swr'
|
|
4
|
+
|
|
5
|
+
export default function useFindByCodigosProdutoList() {
|
|
6
|
+
const { tableParams, filterParams, setTableParams, setFilterParams } = useProdutoListStore((state) => state)
|
|
7
|
+
|
|
8
|
+
const codigos = (filterParams?.codigos as string[]) || []
|
|
9
|
+
|
|
10
|
+
const { data, error, isLoading, mutate } = useSWR(
|
|
11
|
+
codigos.length > 0 ? [`/api/dm/produto/find-by-codigos`, codigos] : null,
|
|
12
|
+
([, codigos]: [string, string[]]) => apiFindByCodigosProduto(codigos),
|
|
13
|
+
{
|
|
14
|
+
revalidateOnFocus: false,
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
const produtosByCodigosList = data || []
|
|
19
|
+
|
|
20
|
+
return {
|
|
21
|
+
data,
|
|
22
|
+
produtosByCodigosList,
|
|
23
|
+
produtosByCodigosListTotal: data?.length || 0,
|
|
24
|
+
error,
|
|
25
|
+
isLoading,
|
|
26
|
+
tableParams,
|
|
27
|
+
filterParams,
|
|
28
|
+
mutate,
|
|
29
|
+
setTableParams,
|
|
30
|
+
setFilterParams,
|
|
31
|
+
}
|
|
32
|
+
}
|