@orbe-agro/client-core-prod 5.3.232 → 5.3.239
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/jurosCompostos.d.ts +5 -5
- package/dist/@types/base/@types/models/racao/jurosCompostos.d.ts.map +1 -1
- package/dist/@types/base/@types/models/racao/tabelaPreco.d.ts +13 -1
- package/dist/@types/base/@types/models/racao/tabelaPreco.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/Ticket/Cadastros/vinculoProdutorOperacao.endpoint.config.d.ts +8 -0
- package/dist/@types/base/configs/endpoints.config/Ticket/Cadastros/vinculoProdutorOperacao.endpoint.config.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/area.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/area.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/dm/config/produto.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/produto.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/dm/config/safra.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/safra.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts +12 -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 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/modules.submenu/Ticket/ticket.navigation.d.ts.map +1 -1
- package/dist/@types/base/locales/lang/ptBR/modules/Ticket/ticket.nav.d.ts +1 -0
- package/dist/@types/base/locales/lang/ptBR/modules/Ticket/ticket.nav.d.ts.map +1 -1
- package/dist/@types/base/services/modules/Ticket/Cadastros/VinculoProdutorOperacaoService.d.ts +5 -0
- package/dist/@types/base/services/modules/Ticket/Cadastros/VinculoProdutorOperacaoService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/dm/area/AreaService.d.ts +1 -0
- package/dist/@types/base/services/modules/dm/area/AreaService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/produto/ProdutoService.d.ts +1 -0
- package/dist/@types/base/services/modules/dm/produto/ProdutoService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/safra/SafraService.d.ts +1 -0
- package/dist/@types/base/services/modules/dm/safra/SafraService.d.ts.map +1 -1
- package/dist/base/@types/models/racao/jurosCompostos.js.map +1 -1
- package/dist/base/configs/endpoints.config/Ticket/Cadastros/vinculoProdutorOperacao.endpoint.config.js +10 -0
- package/dist/base/configs/endpoints.config/Ticket/Cadastros/vinculoProdutorOperacao.endpoint.config.js.map +1 -0
- package/dist/base/configs/endpoints.config/dm/config/area.js +1 -0
- package/dist/base/configs/endpoints.config/dm/config/area.js.map +1 -1
- package/dist/base/configs/endpoints.config/dm/config/produto.js +2 -1
- package/dist/base/configs/endpoints.config/dm/config/produto.js.map +1 -1
- package/dist/base/configs/endpoints.config/dm/config/safra.js +2 -1
- package/dist/base/configs/endpoints.config/dm/config/safra.js.map +1 -1
- package/dist/base/configs/navigation.config/modules.submenu/Ticket/ticket.navigation.js +10 -0
- package/dist/base/configs/navigation.config/modules.submenu/Ticket/ticket.navigation.js.map +1 -1
- package/dist/base/index.js +372 -371
- package/dist/base/locales/lang/ptBR/modules/Ticket/ticket.nav.js +4 -3
- package/dist/base/locales/lang/ptBR/modules/Ticket/ticket.nav.js.map +1 -1
- package/dist/base/services/index.js +368 -367
- package/dist/base/services/modules/Ticket/Cadastros/VinculoProdutorOperacaoService.js +36 -0
- package/dist/base/services/modules/Ticket/Cadastros/VinculoProdutorOperacaoService.js.map +1 -0
- package/dist/base/services/modules/dm/area/AreaService.js +11 -4
- package/dist/base/services/modules/dm/area/AreaService.js.map +1 -1
- package/dist/base/services/modules/dm/index.js +30 -29
- package/dist/base/services/modules/dm/produto/ProdutoService.js +46 -38
- package/dist/base/services/modules/dm/produto/ProdutoService.js.map +1 -1
- package/dist/base/services/modules/dm/safra/SafraService.js +21 -13
- package/dist/base/services/modules/dm/safra/SafraService.js.map +1 -1
- package/dist/base/services/modules/index.js +368 -367
- package/lib/base/@types/models/racao/jurosCompostos.ts +5 -5
- package/lib/base/@types/models/racao/tabelaPreco.ts +14 -1
- package/lib/base/configs/endpoints.config/Ticket/Cadastros/vinculoProdutorOperacao.endpoint.config.ts +10 -0
- package/lib/base/configs/endpoints.config/dm/config/area.ts +1 -0
- package/lib/base/configs/endpoints.config/dm/config/produto.ts +1 -0
- package/lib/base/configs/endpoints.config/dm/config/safra.ts +1 -0
- package/lib/base/configs/navigation.config/modules.submenu/Ticket/ticket.navigation.ts +10 -0
- package/lib/base/locales/lang/ptBR/modules/Ticket/ticket.nav.ts +2 -1
- package/lib/base/services/modules/Ticket/Cadastros/VinculoProdutorOperacaoService.ts +33 -0
- package/lib/base/services/modules/dm/area/AreaService.ts +7 -0
- package/lib/base/services/modules/dm/produto/ProdutoService.ts +8 -0
- package/lib/base/services/modules/dm/safra/SafraService.ts +14 -6
- package/package.json +1 -1
|
@@ -8,9 +8,8 @@ export type TJurosCompostosColumnDef = {
|
|
|
8
8
|
dataCriacao: string
|
|
9
9
|
usuarioCriacaoId: number
|
|
10
10
|
usuarioCriacaoNome: string
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
descricaoProduto?: string
|
|
11
|
+
diaInicial: number
|
|
12
|
+
diaFinal: number
|
|
14
13
|
percentual: number
|
|
15
14
|
prazo: string
|
|
16
15
|
tipoJurosCompostos: string
|
|
@@ -18,8 +17,9 @@ export type TJurosCompostosColumnDef = {
|
|
|
18
17
|
|
|
19
18
|
export type TJurosCompostos = {
|
|
20
19
|
id?: number
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
diaInicial: number
|
|
21
|
+
diaFinal: number
|
|
23
22
|
prazo: string
|
|
23
|
+
percentual: number
|
|
24
24
|
tipoJurosCompostos: tipoJurosCompostos | string
|
|
25
25
|
}
|
|
@@ -10,8 +10,10 @@ export type TTabelaPrecoColumnDef = {
|
|
|
10
10
|
export type TTabelaPreco = {
|
|
11
11
|
id?: number
|
|
12
12
|
parametrosPreco: TParametrosPreco
|
|
13
|
-
|
|
13
|
+
produtosListaTecnica: TTabelaPrecoProduto[]
|
|
14
14
|
listaTecnica: TListaTecnica[]
|
|
15
|
+
jurosCompostosDentroEstado: TJurosCompostos[]
|
|
16
|
+
jurosCompostosForaEstado: TJurosCompostos[]
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
export type TParametrosPreco = {
|
|
@@ -32,4 +34,15 @@ export type TTabelaPrecoProduto = {
|
|
|
32
34
|
precoStandard: number
|
|
33
35
|
margem: number
|
|
34
36
|
precoCalculado: number
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type TJurosCompostos = {
|
|
40
|
+
id?: number
|
|
41
|
+
produtoId?: number
|
|
42
|
+
codigo?: string
|
|
43
|
+
descricao?: string
|
|
44
|
+
percentual: number
|
|
45
|
+
prazo: string
|
|
46
|
+
valorJurosCompostos: number
|
|
47
|
+
tipoJurosCompostos: string
|
|
35
48
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const VINCULO_PRODUTOR_OPERACAO_API_PATH = '/ticket/api/vinculo-produtor-operacao'
|
|
2
|
+
|
|
3
|
+
const vinculoProdutorOperacaoEndpointConfig = {
|
|
4
|
+
add: `${VINCULO_PRODUTOR_OPERACAO_API_PATH}`,
|
|
5
|
+
findAll: `${VINCULO_PRODUTOR_OPERACAO_API_PATH}/find`,
|
|
6
|
+
findOne: `${VINCULO_PRODUTOR_OPERACAO_API_PATH}/`,
|
|
7
|
+
findIds: `${VINCULO_PRODUTOR_OPERACAO_API_PATH}/find/ids`,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default vinculoProdutorOperacaoEndpointConfig
|
|
@@ -3,6 +3,7 @@ const CENTRO_BASE_URL = '/dados-mestres/api/area'
|
|
|
3
3
|
const area = {
|
|
4
4
|
create: { endpoint: `${CENTRO_BASE_URL}`, method: 'post' },
|
|
5
5
|
findOne: {endpoint: (id:number)=>`${CENTRO_BASE_URL}/${id}`,method: 'get'},
|
|
6
|
+
findAll: {endpoint: `${CENTRO_BASE_URL}`,method: 'get'},
|
|
6
7
|
findMonitor: { endpoint: `${CENTRO_BASE_URL}/find-monitor`, httpMethod: 'post'}
|
|
7
8
|
}
|
|
8
9
|
|
|
@@ -13,6 +13,7 @@ const produto = {
|
|
|
13
13
|
findByCodigos: { endpoint: `${PRODUTO_BASE_URL}/find-by-codigos`, method: 'post' },
|
|
14
14
|
update: { endpoint: PRODUTO_BASE_URL, method: 'patch' },
|
|
15
15
|
getMultiplicadorUnidadeMedida: { endpoint: `${PRODUTO_BASE_URL}/{idProduto}/multiplicador`, method: 'get' },
|
|
16
|
+
findProdutoComItinerario: { endpoint: `${PRODUTO_BASE_URL}/find/produto-com-itinerario`, httpMethod: 'post' },
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export default produto
|
|
@@ -4,6 +4,7 @@ const safra = {
|
|
|
4
4
|
findOne: { endpoint: `${SAFRA_API_PATH}/`, method: 'get' },
|
|
5
5
|
add: { endpoint: `${SAFRA_API_PATH}`, method: 'post' },
|
|
6
6
|
find: { endpoint: `${SAFRA_API_PATH}/find`, method: 'post' },
|
|
7
|
+
findBySafra: { endpoint: `${SAFRA_API_PATH}/by-safra`, method: 'get' },
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export default safra
|
|
@@ -95,6 +95,16 @@ const ticketNavigationConfig: NavigationTree[] = [
|
|
|
95
95
|
authority: [ADMIN],
|
|
96
96
|
subMenu: [],
|
|
97
97
|
},
|
|
98
|
+
{
|
|
99
|
+
key: 'ticket.cadastros.vinculoProdutorOperacao',
|
|
100
|
+
path: '/ticket/vinculo-produtor-operacao',
|
|
101
|
+
title: 'Vinculo de Produtor e Operação',
|
|
102
|
+
translateKey: 'nav.modules.ticket.vinculoProdutorOperacao',
|
|
103
|
+
icon: '',
|
|
104
|
+
type: NAV_ITEM_TYPE_ITEM,
|
|
105
|
+
authority: [ADMIN],
|
|
106
|
+
subMenu: [],
|
|
107
|
+
},
|
|
98
108
|
{
|
|
99
109
|
key: 'ticket.cadastros.vinculoSafraOperacao',
|
|
100
110
|
path: '/ticket/vinculo-safra-operacao',
|
|
@@ -9,6 +9,7 @@ export default {
|
|
|
9
9
|
tabelaBiodiesel: 'Tabela do Biodiesel',
|
|
10
10
|
rotaRomaneio: 'Rota do Romaneio',
|
|
11
11
|
vinculoProdutoOperacao: 'Vínculo de Produto e Operação',
|
|
12
|
-
monitorCompraRemessaArmazemTerceiro: 'Monitor de Compra e Remessa/Armazem Terceiro',
|
|
12
|
+
monitorCompraRemessaArmazemTerceiro: 'Monitor de Compra e Remessa/Armazem Terceiro',
|
|
13
|
+
vinculoProdutorOperacao: 'Vínculo de Produtor e Operação',
|
|
13
14
|
},
|
|
14
15
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import vinculoProdutorOperacaoEndpointConfig from '@base/configs/endpoints.config/Ticket/Cadastros/vinculoProdutorOperacao.endpoint.config'
|
|
2
|
+
import ApiService from '@/services/ApiService'
|
|
3
|
+
|
|
4
|
+
export async function apiGetVinculosProdutoresOperacoes(body) {
|
|
5
|
+
return ApiService.fetchDataWithAxios({
|
|
6
|
+
url: vinculoProdutorOperacaoEndpointConfig.findAll,
|
|
7
|
+
method: 'post',
|
|
8
|
+
data: body,
|
|
9
|
+
})
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function apiGetVinculoProdutorOperacao(id) {
|
|
13
|
+
return ApiService.fetchDataWithAxios({
|
|
14
|
+
url: vinculoProdutorOperacaoEndpointConfig.findOne + id,
|
|
15
|
+
method: 'get',
|
|
16
|
+
})
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export async function apiAddVinculoProdutorOperacao(body) {
|
|
20
|
+
return ApiService.fetchDataWithAxios({
|
|
21
|
+
url: vinculoProdutorOperacaoEndpointConfig.add,
|
|
22
|
+
method: 'post',
|
|
23
|
+
data: body,
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export async function apiGetIdsVinculoProdutorOperacao(body) {
|
|
28
|
+
return ApiService.fetchDataWithAxios({
|
|
29
|
+
url: vinculoProdutorOperacaoEndpointConfig.findIds,
|
|
30
|
+
method: 'post',
|
|
31
|
+
data: body,
|
|
32
|
+
})
|
|
33
|
+
}
|
|
@@ -14,6 +14,13 @@ export async function apiGetAreById(id: number) {
|
|
|
14
14
|
})
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
export async function apiGetAllArea() {
|
|
18
|
+
return ApiService.fetchDataWithAxios<TBusinessPartner>({
|
|
19
|
+
url: AREA_ENDPOINT.findAll.endpoint,
|
|
20
|
+
method: AREA_ENDPOINT.findAll.method,
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
|
|
17
24
|
export async function apiFindMonitorArea(body?: IFilterParams) {
|
|
18
25
|
return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
|
|
19
26
|
url: AREA_ENDPOINT.findMonitor.endpoint,
|
|
@@ -121,4 +121,12 @@ export async function apiGetMultiplicadorUnidadeMedida(unidadeMedidaXml: string,
|
|
|
121
121
|
unidadeMedidaXml
|
|
122
122
|
}
|
|
123
123
|
})
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export async function apiFindProdutoComItinerario(body?: IFilterParams) {
|
|
127
|
+
return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
|
|
128
|
+
url: PRODUTO_ENDPOINT.findProdutoComItinerario.endpoint,
|
|
129
|
+
method: PRODUTO_ENDPOINT.findProdutoComItinerario.httpMethod,
|
|
130
|
+
data: body,
|
|
131
|
+
})
|
|
124
132
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import ApiService from '@/services/ApiService'
|
|
2
|
-
import { IFilterParams, TQueryResponse } from '@base/@types/api'
|
|
3
|
-
import { TSafra } from '@base/@types/api/response/originacao/TGetContratoResponse'
|
|
4
|
-
import { endpointsConfig } from '@base/configs'
|
|
1
|
+
import ApiService from '@/services/ApiService'
|
|
2
|
+
import { IFilterParams, TQueryResponse } from '@base/@types/api'
|
|
3
|
+
import { TSafra } from '@base/@types/api/response/originacao/TGetContratoResponse'
|
|
4
|
+
import { endpointsConfig } from '@base/configs'
|
|
5
5
|
|
|
6
|
-
const SAFRA_ENDPOINT = endpointsConfig.dm.safra
|
|
6
|
+
const SAFRA_ENDPOINT = endpointsConfig.dm.safra
|
|
7
7
|
|
|
8
8
|
export async function apiGetDmSafra(id: number) {
|
|
9
9
|
return ApiService.fetchDataWithAxios<TSafra>({
|
|
@@ -26,4 +26,12 @@ export async function apiFindAllDmSafra(body?: IFilterParams) {
|
|
|
26
26
|
method: SAFRA_ENDPOINT.find.method,
|
|
27
27
|
data: body,
|
|
28
28
|
})
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export async function apiGetSafraBySafra(safra: string) {
|
|
32
|
+
return ApiService.fetchDataWithAxios<TSafra>({
|
|
33
|
+
url: SAFRA_ENDPOINT.findBySafra.endpoint,
|
|
34
|
+
method: SAFRA_ENDPOINT.findBySafra.method,
|
|
35
|
+
params: { safra },
|
|
36
|
+
})
|
|
37
|
+
}
|
package/package.json
CHANGED