@orbe-agro/client-core 5.3.188 → 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/configs/endpoints.config/dm/config/user.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/user.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts +4 -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 +4 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/user/UserService.d.ts +1 -0
- package/dist/@types/base/services/modules/dm/user/UserService.d.ts.map +1 -1
- 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/components/shared/AceitarProcessoDialog.js +11 -11
- package/dist/base/components/shared/AceitarProcessoDialog.js.map +1 -1
- package/dist/base/configs/endpoints.config/dm/config/user.js +4 -3
- package/dist/base/configs/endpoints.config/dm/config/user.js.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/index.js +323 -322
- package/dist/base/services/index.js +320 -319
- package/dist/base/services/modules/dm/index.js +26 -25
- package/dist/base/services/modules/dm/user/UserService.js +14 -6
- package/dist/base/services/modules/dm/user/UserService.js.map +1 -1
- package/dist/base/services/modules/index.js +319 -318
- 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/components/shared/AceitarProcessoDialog.tsx +1 -1
- package/lib/base/configs/endpoints.config/dm/config/user.ts +2 -1
- package/lib/base/configs/navigation.config/modules.submenu/Transportadora/pamcard.subMenu.navigation.ts +50 -50
- package/lib/base/services/modules/dm/user/UserService.tsx +8 -0
- package/lib/base/services/modules/originacao/termoFunrural/termoFunruralService.ts +7 -0
- package/package.json +1 -1
|
@@ -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;"}
|
|
@@ -12,7 +12,7 @@ const AceitarProcessoDialog = ({
|
|
|
12
12
|
onClose,
|
|
13
13
|
idProcesso,
|
|
14
14
|
}: AceitarProcessoDialogProps) => {
|
|
15
|
-
const { mutate: aceitarProcesso } = useAceitarProcesso()
|
|
15
|
+
const { mutate: aceitarProcesso } = useAceitarProcesso(onClose)
|
|
16
16
|
|
|
17
17
|
const handleAceitarProcesso = (id: number) => {
|
|
18
18
|
aceitarProcesso(id)
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const USER_BASE_URL = '/dados-mestres/api/user'
|
|
2
2
|
|
|
3
3
|
const user = {
|
|
4
|
-
find: { endpoint: `${USER_BASE_URL}/find`, httpMethod: 'post' }
|
|
4
|
+
find: { endpoint: `${USER_BASE_URL}/find`, httpMethod: 'post' },
|
|
5
|
+
findByIds: { endpoint: `${USER_BASE_URL}/find-by-ids`, httpMethod: 'post' }
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
export default user
|
|
@@ -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
|
|
@@ -10,4 +10,12 @@ export async function apiFindUser(body?: IFilterParams) {
|
|
|
10
10
|
method: USER_ENDPOINT.find.httpMethod,
|
|
11
11
|
data: body,
|
|
12
12
|
})
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export async function apiFindByIds(filters?: IFilterParams) {
|
|
16
|
+
return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
|
|
17
|
+
url: USER_ENDPOINT.findByIds.endpoint,
|
|
18
|
+
method: USER_ENDPOINT.findByIds.httpMethod,
|
|
19
|
+
data: filters,
|
|
20
|
+
})
|
|
13
21
|
}
|
|
@@ -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