@orbe-agro/client-core 5.3.189 → 5.3.191
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/services/modules/originacao/termoFunrural/termoFunruralService.d.ts +1 -0
- package/dist/@types/base/services/modules/originacao/termoFunrural/termoFunruralService.d.ts.map +1 -1
- package/dist/base/configs/navigation.config/modules.submenu/Transportadora/pamcard.subMenu.navigation.js +53 -58
- package/dist/base/configs/navigation.config/modules.submenu/Transportadora/pamcard.subMenu.navigation.js.map +1 -1
- package/dist/base/services/modules/originacao/termoFunrural/termoFunruralService.js +47 -39
- package/dist/base/services/modules/originacao/termoFunrural/termoFunruralService.js.map +1 -1
- package/lib/base/configs/navigation.config/modules.submenu/Transportadora/pamcard.subMenu.navigation.ts +50 -50
- package/lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts +7 -0
- package/package.json +1 -1
package/dist/@types/base/services/modules/originacao/termoFunrural/termoFunruralService.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ export declare function apiFindMonitorTermoFunrural(params: string): Promise<TQu
|
|
|
6
6
|
export declare function apiCancelarTermoFunrural(id: number, motivo: string): Promise<void>;
|
|
7
7
|
export declare function apiReprovarTermoFunrural(id: number, motivo: string): Promise<void>;
|
|
8
8
|
export declare function apiAprovarTermoFunrural(id: number): Promise<TTermoFunrural>;
|
|
9
|
+
export declare function apiReabrirTermoFunrural(id: number): Promise<TTermoFunrural>;
|
|
9
10
|
export declare function apiUploadArquivoAssinado(id: number, formData: FormData): Promise<void>;
|
|
10
11
|
//# sourceMappingURL=termoFunruralService.d.ts.map
|
package/dist/@types/base/services/modules/originacao/termoFunrural/termoFunruralService.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"termoFunruralService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAI9E,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,cAAc,2CAM7D;AAED,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,MAAM,2BAKnD;AAED,wBAAsB,2BAA2B,CAAC,MAAM,EAAE,MAAM,2CAK/D;AAED,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAMxE;AAED,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAMxE;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,2BAMvD;
|
|
1
|
+
{"version":3,"file":"termoFunruralService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAI9E,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,cAAc,2CAM7D;AAED,wBAAsB,mBAAmB,CAAC,EAAE,EAAE,MAAM,2BAKnD;AAED,wBAAsB,2BAA2B,CAAC,MAAM,EAAE,MAAM,2CAK/D;AAED,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAMxE;AAED,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAMxE;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,2BAMvD;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,2BAMvD;AAED,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,iBAS5E"}
|
|
@@ -1,43 +1,38 @@
|
|
|
1
1
|
import "../../../../../@ecme/constants/index.js";
|
|
2
2
|
import a from "./imposto.subMenu.js";
|
|
3
|
-
import r from "./conta.subMenu.js";
|
|
4
|
-
import n from "./favorecido.subMenu.js";
|
|
5
|
-
import s from "./cartaoPortadorFrete.subMenu.js";
|
|
6
|
-
import i from "./remetenteDestinatario.subMenu.js";
|
|
7
|
-
import u from "./consultas.subMenu.js";
|
|
8
3
|
import { ADMIN as t } from "../../../../../@ecme/constants/roles.constant.js";
|
|
9
|
-
import {
|
|
10
|
-
const
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
4
|
+
import { NAV_ITEM_TYPE_ITEM as o, NAV_ITEM_TYPE_COLLAPSE as e } from "../../../../../@ecme/constants/navigation.constant.js";
|
|
5
|
+
const i = [
|
|
6
|
+
// {
|
|
7
|
+
// key: 'cartaoPortadorFrete',
|
|
8
|
+
// path: '',
|
|
9
|
+
// title: 'Cartão - Portador/Frete',
|
|
10
|
+
// translateKey: 'nav.modules.transportadora.cartaoPortadorFrete',
|
|
11
|
+
// icon: '',
|
|
12
|
+
// type: NAV_ITEM_TYPE_COLLAPSE,
|
|
13
|
+
// authority: [ADMIN],
|
|
14
|
+
// subMenu: cartaoPortadorFreteSubMenu
|
|
15
|
+
// },
|
|
16
|
+
// {
|
|
17
|
+
// key: 'consultas',
|
|
18
|
+
// path: '',
|
|
19
|
+
// title: 'Consultas',
|
|
20
|
+
// translateKey: 'nav.modules.transportadora.consultas',
|
|
21
|
+
// icon: '',
|
|
22
|
+
// type: NAV_ITEM_TYPE_COLLAPSE,
|
|
23
|
+
// authority: [ADMIN],
|
|
24
|
+
// subMenu: consultasSubMenu
|
|
25
|
+
// },
|
|
26
|
+
// {
|
|
27
|
+
// key: 'conta',
|
|
28
|
+
// path: '',
|
|
29
|
+
// title: 'Conta',
|
|
30
|
+
// translateKey: 'nav.modules.transportadora.conta',
|
|
31
|
+
// icon: '',
|
|
32
|
+
// type: NAV_ITEM_TYPE_COLLAPSE,
|
|
33
|
+
// authority: [ADMIN],
|
|
34
|
+
// subMenu: contaSubMenu,
|
|
35
|
+
// },
|
|
41
36
|
{
|
|
42
37
|
key: "transportadora.contratoFrete",
|
|
43
38
|
path: "/transportadora/contrato-frete",
|
|
@@ -58,16 +53,16 @@ const f = [
|
|
|
58
53
|
authority: [t],
|
|
59
54
|
subMenu: []
|
|
60
55
|
},
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
},
|
|
56
|
+
// {
|
|
57
|
+
// key: 'favorecido',
|
|
58
|
+
// path: '',
|
|
59
|
+
// title: 'Favorecido',
|
|
60
|
+
// translateKey: 'nav.modules.transportadora.favorecido',
|
|
61
|
+
// icon: '',
|
|
62
|
+
// type: NAV_ITEM_TYPE_COLLAPSE,
|
|
63
|
+
// authority: [ADMIN],
|
|
64
|
+
// subMenu: favorecidoSubMenu
|
|
65
|
+
// },
|
|
71
66
|
{
|
|
72
67
|
key: "imposto",
|
|
73
68
|
path: "",
|
|
@@ -77,19 +72,19 @@ const f = [
|
|
|
77
72
|
type: e,
|
|
78
73
|
authority: [t],
|
|
79
74
|
subMenu: a
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
key: "remetenteDestinatario",
|
|
83
|
-
path: "",
|
|
84
|
-
title: "Remetente e Destinatário",
|
|
85
|
-
translateKey: "nav.modules.transportadora.remetenteDestinatario",
|
|
86
|
-
icon: "",
|
|
87
|
-
type: e,
|
|
88
|
-
authority: [t],
|
|
89
|
-
subMenu: i
|
|
90
75
|
}
|
|
76
|
+
// {
|
|
77
|
+
// key: 'remetenteDestinatario',
|
|
78
|
+
// path: '',
|
|
79
|
+
// title: 'Remetente e Destinatário',
|
|
80
|
+
// translateKey: 'nav.modules.transportadora.remetenteDestinatario',
|
|
81
|
+
// icon: '',
|
|
82
|
+
// type: NAV_ITEM_TYPE_COLLAPSE,
|
|
83
|
+
// authority: [ADMIN],
|
|
84
|
+
// subMenu: remetenteDestinatarioSubMenu
|
|
85
|
+
// },
|
|
91
86
|
];
|
|
92
87
|
export {
|
|
93
|
-
|
|
88
|
+
i as default
|
|
94
89
|
};
|
|
95
90
|
//# sourceMappingURL=pamcard.subMenu.navigation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pamcard.subMenu.navigation.js","sources":["../../../../../../lib/base/configs/navigation.config/modules.submenu/Transportadora/pamcard.subMenu.navigation.ts"],"sourcesContent":["import type { NavigationTree } from '@/@types/navigation'\nimport { ADMIN, NAV_ITEM_TYPE_COLLAPSE, NAV_ITEM_TYPE_ITEM } from '@/constants'\nimport impostoSubMenu from './imposto.subMenu'\nimport contaSubMenu from './conta.subMenu'\nimport favorecidoSubMenu from './favorecido.subMenu'\nimport cartaoPortadorFreteSubMenu from './cartaoPortadorFrete.subMenu'\nimport remetenteDestinatarioSubMenu from './remetenteDestinatario.subMenu'\nimport consultasSubMenu from './consultas.subMenu'\n\nconst subMenuPamcard: NavigationTree[] = [\n {\n
|
|
1
|
+
{"version":3,"file":"pamcard.subMenu.navigation.js","sources":["../../../../../../lib/base/configs/navigation.config/modules.submenu/Transportadora/pamcard.subMenu.navigation.ts"],"sourcesContent":["import type { NavigationTree } from '@/@types/navigation'\nimport { ADMIN, NAV_ITEM_TYPE_COLLAPSE, NAV_ITEM_TYPE_ITEM } from '@/constants'\nimport impostoSubMenu from './imposto.subMenu'\nimport contaSubMenu from './conta.subMenu'\nimport favorecidoSubMenu from './favorecido.subMenu'\nimport cartaoPortadorFreteSubMenu from './cartaoPortadorFrete.subMenu'\nimport remetenteDestinatarioSubMenu from './remetenteDestinatario.subMenu'\nimport consultasSubMenu from './consultas.subMenu'\n\nconst subMenuPamcard: NavigationTree[] = [\n // {\n // key: 'cartaoPortadorFrete',\n // path: '',\n // title: 'Cartão - Portador/Frete',\n // translateKey: 'nav.modules.transportadora.cartaoPortadorFrete',\n // icon: '',\n // type: NAV_ITEM_TYPE_COLLAPSE,\n // authority: [ADMIN],\n // subMenu: cartaoPortadorFreteSubMenu\n // },\n // {\n // key: 'consultas',\n // path: '',\n // title: 'Consultas',\n // translateKey: 'nav.modules.transportadora.consultas',\n // icon: '',\n // type: NAV_ITEM_TYPE_COLLAPSE,\n // authority: [ADMIN],\n // subMenu: consultasSubMenu\n // },\n // {\n // key: 'conta',\n // path: '',\n // title: 'Conta',\n // translateKey: 'nav.modules.transportadora.conta',\n // icon: '',\n // type: NAV_ITEM_TYPE_COLLAPSE,\n // authority: [ADMIN],\n // subMenu: contaSubMenu,\n // },\n {\n key: 'transportadora.contratoFrete',\n path: '/transportadora/contrato-frete',\n title: 'Contratos de Frete',\n translateKey: 'nav.modules.transportadora.contratoFrete',\n icon: '',\n type: NAV_ITEM_TYPE_ITEM,\n authority: [ADMIN],\n subMenu: [],\n },\n {\n key: 'transportadora.especie',\n path: '/transportadora/especie',\n title: 'Espécie',\n translateKey: 'nav.modules.transportadora.especie',\n icon: '',\n type: NAV_ITEM_TYPE_ITEM,\n authority: [ADMIN],\n subMenu: [],\n },\n // {\n // key: 'favorecido',\n // path: '',\n // title: 'Favorecido',\n // translateKey: 'nav.modules.transportadora.favorecido',\n // icon: '',\n // type: NAV_ITEM_TYPE_COLLAPSE,\n // authority: [ADMIN],\n // subMenu: favorecidoSubMenu\n // },\n {\n key: 'imposto',\n path: '',\n title: 'imposto',\n translateKey: 'nav.modules.transportadora.imposto',\n icon: '',\n type: NAV_ITEM_TYPE_COLLAPSE,\n authority: [ADMIN],\n subMenu: impostoSubMenu\n },\n // {\n // key: 'remetenteDestinatario',\n // path: '',\n // title: 'Remetente e Destinatário',\n // translateKey: 'nav.modules.transportadora.remetenteDestinatario',\n // icon: '',\n // type: NAV_ITEM_TYPE_COLLAPSE,\n // authority: [ADMIN],\n // subMenu: remetenteDestinatarioSubMenu\n // },\n]\n\nexport default subMenuPamcard\n"],"names":["subMenuPamcard","NAV_ITEM_TYPE_ITEM","ADMIN","NAV_ITEM_TYPE_COLLAPSE","impostoSubMenu"],"mappings":";;;;AASA,MAAMA,IAAmC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA+BrC;AAAA,IACI,KAAK;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,IACP,cAAc;AAAA,IACd,MAAM;AAAA,IACN,MAAMC;AAAA,IACN,WAAW,CAACC,CAAK;AAAA,IACjB,SAAS,CAAA;AAAA,EACb;AAAA,EACA;AAAA,IACI,KAAK;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,IACP,cAAc;AAAA,IACd,MAAM;AAAA,IACN,MAAMD;AAAA,IACN,WAAW,CAACC,CAAK;AAAA,IACjB,SAAS,CAAA;AAAA,EACb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA;AAAA,IACI,KAAK;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,IACP,cAAc;AAAA,IACd,MAAM;AAAA,IACN,MAAMC;AAAA,IACN,WAAW,CAACD,CAAK;AAAA,IACjB,SAASE;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYjB;"}
|
|
@@ -1,51 +1,58 @@
|
|
|
1
1
|
import n from "../../../../configs/endpoints.config/endpoints.navigation.js";
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
async function d(
|
|
5
|
-
return
|
|
6
|
-
url:
|
|
7
|
-
method:
|
|
8
|
-
data:
|
|
2
|
+
import a from "../../../../../@ecme/services/ApiService.js";
|
|
3
|
+
const t = n.originacao.termoFunrural;
|
|
4
|
+
async function d(r) {
|
|
5
|
+
return a.fetchDataWithAxios({
|
|
6
|
+
url: t.add.endpoint,
|
|
7
|
+
method: t.add.method,
|
|
8
|
+
data: r
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
async function u(
|
|
12
|
-
return
|
|
13
|
-
url:
|
|
14
|
-
method:
|
|
11
|
+
async function u(r) {
|
|
12
|
+
return a.fetchDataWithAxios({
|
|
13
|
+
url: t.findOne.endpoint + `${r}`,
|
|
14
|
+
method: t.findOne.method
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
async function
|
|
18
|
-
return
|
|
19
|
-
url:
|
|
20
|
-
method:
|
|
17
|
+
async function c(r) {
|
|
18
|
+
return a.fetchDataWithAxios({
|
|
19
|
+
url: t.findMonitor.endpoint + `?${r}`,
|
|
20
|
+
method: t.findMonitor.method
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
async function
|
|
24
|
-
return
|
|
25
|
-
url:
|
|
26
|
-
method:
|
|
27
|
-
data: { motivo:
|
|
23
|
+
async function h(r, o) {
|
|
24
|
+
return a.fetchDataWithAxios({
|
|
25
|
+
url: t.cancelar.endpoint + `${r}`,
|
|
26
|
+
method: t.cancelar.method,
|
|
27
|
+
data: { motivo: o }
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
async function
|
|
31
|
-
return
|
|
32
|
-
url:
|
|
33
|
-
method:
|
|
34
|
-
data: { motivo:
|
|
30
|
+
async function p(r, o) {
|
|
31
|
+
return a.fetchDataWithAxios({
|
|
32
|
+
url: t.reprovar.endpoint + `${r}`,
|
|
33
|
+
method: t.reprovar.method,
|
|
34
|
+
data: { motivo: o }
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
async function m(
|
|
38
|
-
return
|
|
39
|
-
url:
|
|
40
|
-
method:
|
|
41
|
-
data: { id:
|
|
37
|
+
async function m(r) {
|
|
38
|
+
return a.fetchDataWithAxios({
|
|
39
|
+
url: t.aprovar.endpoint + `${r}`,
|
|
40
|
+
method: t.aprovar.method,
|
|
41
|
+
data: { id: r }
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
async function f(
|
|
45
|
-
return
|
|
46
|
-
url:
|
|
47
|
-
method:
|
|
48
|
-
data:
|
|
44
|
+
async function f(r) {
|
|
45
|
+
return a.fetchDataWithAxios({
|
|
46
|
+
url: t.reabrir.endpoint + `/${r}`,
|
|
47
|
+
method: t.reabrir.method,
|
|
48
|
+
data: { id: r }
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
async function l(r, o) {
|
|
52
|
+
return a.fetchDataWithAxios({
|
|
53
|
+
url: t.uploadArquivo.endpoint.replace("{id}", r.toString()),
|
|
54
|
+
method: t.uploadArquivo.method,
|
|
55
|
+
data: o,
|
|
49
56
|
headers: {
|
|
50
57
|
"Content-Type": "multipart/form-data"
|
|
51
58
|
}
|
|
@@ -54,10 +61,11 @@ async function f(t, a) {
|
|
|
54
61
|
export {
|
|
55
62
|
d as apiAddTermoFunrural,
|
|
56
63
|
m as apiAprovarTermoFunrural,
|
|
57
|
-
|
|
58
|
-
|
|
64
|
+
h as apiCancelarTermoFunrural,
|
|
65
|
+
c as apiFindMonitorTermoFunrural,
|
|
59
66
|
u as apiGetTermoFunrural,
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
f as apiReabrirTermoFunrural,
|
|
68
|
+
p as apiReprovarTermoFunrural,
|
|
69
|
+
l as apiUploadArquivoAssinado
|
|
62
70
|
};
|
|
63
71
|
//# sourceMappingURL=termoFunruralService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"termoFunruralService.js","sources":["../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport ApiService from '@/services/ApiService'\nimport { TTermoFunrural } from '@base/@types/models/originacao/termoFunrural';\n\nconst TERMO_FUNRURAL_PROJECT_ENDPOINT = endpointConfig.originacao.termoFunrural;\n\nexport async function apiAddTermoFunrural(body: TTermoFunrural) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.endpoint,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiGetTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.method,\n });\n}\n\nexport async function apiFindMonitorTermoFunrural(params: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.endpoint + `?${params}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.method,\n });\n}\n\nexport async function apiCancelarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.method,\n data: { motivo },\n });\n}\n\nexport async function apiReprovarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.method,\n data: { motivo },\n });\n}\n\nexport async function apiAprovarTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.method,\n data: { id },\n });\n}\n\n\nexport async function apiUploadArquivoAssinado(id: number, formData: FormData) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.endpoint.replace('{id}', id.toString()),\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.method,\n data: formData as any,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n });\n}\n"],"names":["TERMO_FUNRURAL_PROJECT_ENDPOINT","endpointConfig","apiAddTermoFunrural","body","ApiService","apiGetTermoFunrural","id","apiFindMonitorTermoFunrural","params","apiCancelarTermoFunrural","motivo","apiReprovarTermoFunrural","apiAprovarTermoFunrural","apiUploadArquivoAssinado","formData"],"mappings":";;AAKA,MAAMA,IAAkCC,EAAe,WAAW;AAElE,eAAsBC,EAAoBC,GAAsB;AAC5D,SAAOC,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAgC,IAAI;AAAA,IACzC,QAAQA,EAAgC,IAAI;AAAA,IAC5C,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAAoBC,GAAY;AAClD,SAAOF,EAAW,mBAAmC;AAAA,IACjD,KAAKJ,EAAgC,QAAQ,WAAW,GAAGM,CAAE;AAAA,IAC7D,QAAQN,EAAgC,QAAQ;AAAA,EAAA,CACnD;AACL;AAEA,eAAsBO,EAA4BC,GAAgB;AAC9D,SAAOJ,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAgC,YAAY,WAAW,IAAIQ,CAAM;AAAA,IACtE,QAAQR,EAAgC,YAAY;AAAA,EAAA,CACvD;AACL;AAEsB,eAAAS,EAAyBH,GAAYI,GAAgB;AACvE,SAAON,EAAW,mBAAyB;AAAA,IACvC,KAAKJ,EAAgC,SAAS,WAAW,GAAGM,CAAE;AAAA,IAC9D,QAAQN,EAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,QAAAU,EAAO;AAAA,EAAA,CAClB;AACL;AAEsB,eAAAC,EAAyBL,GAAYI,GAAgB;AACvE,SAAON,EAAW,mBAAyB;AAAA,IACvC,KAAKJ,EAAgC,SAAS,WAAW,GAAGM,CAAE;AAAA,IAC9D,QAAQN,EAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,QAAAU,EAAO;AAAA,EAAA,CAClB;AACL;AAEA,eAAsBE,EAAwBN,GAAY;AACtD,SAAOF,EAAW,mBAAmC;AAAA,IACjD,KAAKJ,EAAgC,QAAQ,WAAW,GAAGM,CAAE;AAAA,IAC7D,QAAQN,EAAgC,QAAQ;AAAA,IAChD,MAAM,EAAE,IAAAM,EAAG;AAAA,EAAA,CACd;AACL;
|
|
1
|
+
{"version":3,"file":"termoFunruralService.js","sources":["../../../../../../lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport ApiService from '@/services/ApiService'\nimport { TTermoFunrural } from '@base/@types/models/originacao/termoFunrural';\n\nconst TERMO_FUNRURAL_PROJECT_ENDPOINT = endpointConfig.originacao.termoFunrural;\n\nexport async function apiAddTermoFunrural(body: TTermoFunrural) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.endpoint,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.add.method,\n data: body,\n })\n}\n\nexport async function apiGetTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findOne.method,\n });\n}\n\nexport async function apiFindMonitorTermoFunrural(params: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTermoFunrural>>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.endpoint + `?${params}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.findMonitor.method,\n });\n}\n\nexport async function apiCancelarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.cancelar.method,\n data: { motivo },\n });\n}\n\nexport async function apiReprovarTermoFunrural(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reprovar.method,\n data: { motivo },\n });\n}\n\nexport async function apiAprovarTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.endpoint + `${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.aprovar.method,\n data: { id },\n });\n}\n\nexport async function apiReabrirTermoFunrural(id: number) {\n return ApiService.fetchDataWithAxios<TTermoFunrural>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.endpoint + `/${id}`,\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.method,\n data: { id },\n });\n}\n\nexport async function apiUploadArquivoAssinado(id: number, formData: FormData) {\n return ApiService.fetchDataWithAxios<void>({\n url: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.endpoint.replace('{id}', id.toString()),\n method: TERMO_FUNRURAL_PROJECT_ENDPOINT.uploadArquivo.method,\n data: formData as any,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n });\n}\n"],"names":["TERMO_FUNRURAL_PROJECT_ENDPOINT","endpointConfig","apiAddTermoFunrural","body","ApiService","apiGetTermoFunrural","id","apiFindMonitorTermoFunrural","params","apiCancelarTermoFunrural","motivo","apiReprovarTermoFunrural","apiAprovarTermoFunrural","apiReabrirTermoFunrural","apiUploadArquivoAssinado","formData"],"mappings":";;AAKA,MAAMA,IAAkCC,EAAe,WAAW;AAElE,eAAsBC,EAAoBC,GAAsB;AAC5D,SAAOC,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAgC,IAAI;AAAA,IACzC,QAAQA,EAAgC,IAAI;AAAA,IAC5C,MAAMG;AAAA,EAAA,CACT;AACL;AAEA,eAAsBE,EAAoBC,GAAY;AAClD,SAAOF,EAAW,mBAAmC;AAAA,IACjD,KAAKJ,EAAgC,QAAQ,WAAW,GAAGM,CAAE;AAAA,IAC7D,QAAQN,EAAgC,QAAQ;AAAA,EAAA,CACnD;AACL;AAEA,eAAsBO,EAA4BC,GAAgB;AAC9D,SAAOJ,EAAW,mBAAmD;AAAA,IACjE,KAAKJ,EAAgC,YAAY,WAAW,IAAIQ,CAAM;AAAA,IACtE,QAAQR,EAAgC,YAAY;AAAA,EAAA,CACvD;AACL;AAEsB,eAAAS,EAAyBH,GAAYI,GAAgB;AACvE,SAAON,EAAW,mBAAyB;AAAA,IACvC,KAAKJ,EAAgC,SAAS,WAAW,GAAGM,CAAE;AAAA,IAC9D,QAAQN,EAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,QAAAU,EAAO;AAAA,EAAA,CAClB;AACL;AAEsB,eAAAC,EAAyBL,GAAYI,GAAgB;AACvE,SAAON,EAAW,mBAAyB;AAAA,IACvC,KAAKJ,EAAgC,SAAS,WAAW,GAAGM,CAAE;AAAA,IAC9D,QAAQN,EAAgC,SAAS;AAAA,IACjD,MAAM,EAAE,QAAAU,EAAO;AAAA,EAAA,CAClB;AACL;AAEA,eAAsBE,EAAwBN,GAAY;AACtD,SAAOF,EAAW,mBAAmC;AAAA,IACjD,KAAKJ,EAAgC,QAAQ,WAAW,GAAGM,CAAE;AAAA,IAC7D,QAAQN,EAAgC,QAAQ;AAAA,IAChD,MAAM,EAAE,IAAAM,EAAG;AAAA,EAAA,CACd;AACL;AAEA,eAAsBO,EAAwBP,GAAY;AACtD,SAAOF,EAAW,mBAAmC;AAAA,IACjD,KAAKJ,EAAgC,QAAQ,WAAW,IAAIM,CAAE;AAAA,IAC9D,QAAQN,EAAgC,QAAQ;AAAA,IAChD,MAAM,EAAE,IAAAM,EAAG;AAAA,EAAA,CACd;AACL;AAEsB,eAAAQ,EAAyBR,GAAYS,GAAoB;AAC3E,SAAOX,EAAW,mBAAyB;AAAA,IACvC,KAAKJ,EAAgC,cAAc,SAAS,QAAQ,QAAQM,EAAG,UAAU;AAAA,IACzF,QAAQN,EAAgC,cAAc;AAAA,IACtD,MAAMe;AAAA,IACN,SAAS;AAAA,MACL,gBAAgB;AAAA,IAAA;AAAA,EACpB,CACH;AACL;"}
|
|
@@ -8,36 +8,36 @@ import remetenteDestinatarioSubMenu from './remetenteDestinatario.subMenu'
|
|
|
8
8
|
import consultasSubMenu from './consultas.subMenu'
|
|
9
9
|
|
|
10
10
|
const subMenuPamcard: NavigationTree[] = [
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
11
|
+
// {
|
|
12
|
+
// key: 'cartaoPortadorFrete',
|
|
13
|
+
// path: '',
|
|
14
|
+
// title: 'Cartão - Portador/Frete',
|
|
15
|
+
// translateKey: 'nav.modules.transportadora.cartaoPortadorFrete',
|
|
16
|
+
// icon: '',
|
|
17
|
+
// type: NAV_ITEM_TYPE_COLLAPSE,
|
|
18
|
+
// authority: [ADMIN],
|
|
19
|
+
// subMenu: cartaoPortadorFreteSubMenu
|
|
20
|
+
// },
|
|
21
|
+
// {
|
|
22
|
+
// key: 'consultas',
|
|
23
|
+
// path: '',
|
|
24
|
+
// title: 'Consultas',
|
|
25
|
+
// translateKey: 'nav.modules.transportadora.consultas',
|
|
26
|
+
// icon: '',
|
|
27
|
+
// type: NAV_ITEM_TYPE_COLLAPSE,
|
|
28
|
+
// authority: [ADMIN],
|
|
29
|
+
// subMenu: consultasSubMenu
|
|
30
|
+
// },
|
|
31
|
+
// {
|
|
32
|
+
// key: 'conta',
|
|
33
|
+
// path: '',
|
|
34
|
+
// title: 'Conta',
|
|
35
|
+
// translateKey: 'nav.modules.transportadora.conta',
|
|
36
|
+
// icon: '',
|
|
37
|
+
// type: NAV_ITEM_TYPE_COLLAPSE,
|
|
38
|
+
// authority: [ADMIN],
|
|
39
|
+
// subMenu: contaSubMenu,
|
|
40
|
+
// },
|
|
41
41
|
{
|
|
42
42
|
key: 'transportadora.contratoFrete',
|
|
43
43
|
path: '/transportadora/contrato-frete',
|
|
@@ -58,16 +58,16 @@ const subMenuPamcard: NavigationTree[] = [
|
|
|
58
58
|
authority: [ADMIN],
|
|
59
59
|
subMenu: [],
|
|
60
60
|
},
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
},
|
|
61
|
+
// {
|
|
62
|
+
// key: 'favorecido',
|
|
63
|
+
// path: '',
|
|
64
|
+
// title: 'Favorecido',
|
|
65
|
+
// translateKey: 'nav.modules.transportadora.favorecido',
|
|
66
|
+
// icon: '',
|
|
67
|
+
// type: NAV_ITEM_TYPE_COLLAPSE,
|
|
68
|
+
// authority: [ADMIN],
|
|
69
|
+
// subMenu: favorecidoSubMenu
|
|
70
|
+
// },
|
|
71
71
|
{
|
|
72
72
|
key: 'imposto',
|
|
73
73
|
path: '',
|
|
@@ -78,16 +78,16 @@ const subMenuPamcard: NavigationTree[] = [
|
|
|
78
78
|
authority: [ADMIN],
|
|
79
79
|
subMenu: impostoSubMenu
|
|
80
80
|
},
|
|
81
|
-
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
},
|
|
81
|
+
// {
|
|
82
|
+
// key: 'remetenteDestinatario',
|
|
83
|
+
// path: '',
|
|
84
|
+
// title: 'Remetente e Destinatário',
|
|
85
|
+
// translateKey: 'nav.modules.transportadora.remetenteDestinatario',
|
|
86
|
+
// icon: '',
|
|
87
|
+
// type: NAV_ITEM_TYPE_COLLAPSE,
|
|
88
|
+
// authority: [ADMIN],
|
|
89
|
+
// subMenu: remetenteDestinatarioSubMenu
|
|
90
|
+
// },
|
|
91
91
|
]
|
|
92
92
|
|
|
93
93
|
export default subMenuPamcard
|
|
@@ -51,6 +51,13 @@ export async function apiAprovarTermoFunrural(id: number) {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export async function apiReabrirTermoFunrural(id: number) {
|
|
55
|
+
return ApiService.fetchDataWithAxios<TTermoFunrural>({
|
|
56
|
+
url: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.endpoint + `/${id}`,
|
|
57
|
+
method: TERMO_FUNRURAL_PROJECT_ENDPOINT.reabrir.method,
|
|
58
|
+
data: { id },
|
|
59
|
+
});
|
|
60
|
+
}
|
|
54
61
|
|
|
55
62
|
export async function apiUploadArquivoAssinado(id: number, formData: FormData) {
|
|
56
63
|
return ApiService.fetchDataWithAxios<void>({
|
package/package.json
CHANGED