@orbe-agro/client-core 5.3.131 → 5.3.133
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/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js +10 -11
- package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js.map +1 -1
- package/dist/@types/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.d.ts.map +1 -1
- package/dist/@types/base/configs/api.config.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/centralNfe/centralNfe.d.ts +26 -0
- package/dist/@types/base/configs/endpoints.config/centralNfe/centralNfe.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/centralNfe/config/vinculoIva.d.ts +28 -0
- package/dist/@types/base/configs/endpoints.config/centralNfe/config/vinculoIva.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/compras/compras.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/compras/compras.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/compras/config/ordemCompra.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/compras/config/ordemCompra.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/dm/config/businessPartner.d.ts +8 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/businessPartner.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/dm/config/condicaoPagamento.d.ts +4 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/condicaoPagamento.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/dm/config/grupoComprador.d.ts +8 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/grupoComprador.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/iva.d.ts +8 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/iva.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts +24 -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 +54 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/services/modules/centralNfe/vinculoIva/VinculoIvaService.d.ts +7 -0
- package/dist/@types/base/services/modules/centralNfe/vinculoIva/VinculoIvaService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/compras/ordemCompra/OrdemCompraService.d.ts +1 -0
- package/dist/@types/base/services/modules/compras/ordemCompra/OrdemCompraService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/businessPartner/BusinessPartnerService.d.ts +2 -0
- package/dist/@types/base/services/modules/dm/businessPartner/BusinessPartnerService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/condicaoPagamento/CondicaoPagamentoService.d.ts +1 -0
- package/dist/@types/base/services/modules/dm/condicaoPagamento/CondicaoPagamentoService.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/grupoComprador/GrupoCompradorService.d.ts +3 -0
- package/dist/@types/base/services/modules/dm/grupoComprador/GrupoCompradorService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/dm/index.d.ts +3 -1
- package/dist/@types/base/services/modules/dm/index.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/iva/IvaService.d.ts +3 -0
- package/dist/@types/base/services/modules/dm/iva/IvaService.d.ts.map +1 -0
- package/dist/base/configs/api.config.js +5 -5
- package/dist/base/configs/api.config.js.map +1 -1
- package/dist/base/configs/endpoints.config/centralNfe/centralNfe.js +10 -8
- package/dist/base/configs/endpoints.config/centralNfe/centralNfe.js.map +1 -1
- package/dist/base/configs/endpoints.config/centralNfe/config/vinculoIva.js +12 -0
- package/dist/base/configs/endpoints.config/centralNfe/config/vinculoIva.js.map +1 -0
- package/dist/base/configs/endpoints.config/compras/config/ordemCompra.js +7 -6
- package/dist/base/configs/endpoints.config/compras/config/ordemCompra.js.map +1 -1
- package/dist/base/configs/endpoints.config/dm/config/businessPartner.js +2 -0
- package/dist/base/configs/endpoints.config/dm/config/businessPartner.js.map +1 -1
- package/dist/base/configs/endpoints.config/dm/config/condicaoPagamento.js +2 -1
- package/dist/base/configs/endpoints.config/dm/config/condicaoPagamento.js.map +1 -1
- package/dist/base/configs/endpoints.config/dm/config/grupoComprador.js +7 -0
- package/dist/base/configs/endpoints.config/dm/config/grupoComprador.js.map +1 -0
- package/dist/base/configs/endpoints.config/dm/config/iva.js +7 -0
- package/dist/base/configs/endpoints.config/dm/config/iva.js.map +1 -0
- package/dist/base/configs/endpoints.config/dm/dm.js +16 -12
- package/dist/base/configs/endpoints.config/dm/dm.js.map +1 -1
- package/dist/base/index.js +395 -387
- package/dist/base/index.js.map +1 -1
- package/dist/base/services/index.js +377 -369
- package/dist/base/services/index.js.map +1 -1
- package/dist/base/services/modules/centralNfe/vinculoIva/VinculoIvaService.js +52 -0
- package/dist/base/services/modules/centralNfe/vinculoIva/VinculoIvaService.js.map +1 -0
- package/dist/base/services/modules/compras/index.js +18 -17
- package/dist/base/services/modules/compras/ordemCompra/OrdemCompraService.js +24 -16
- package/dist/base/services/modules/compras/ordemCompra/OrdemCompraService.js.map +1 -1
- package/dist/base/services/modules/dm/businessPartner/BusinessPartnerService.js +25 -11
- package/dist/base/services/modules/dm/businessPartner/BusinessPartnerService.js.map +1 -1
- package/dist/base/services/modules/dm/condicaoPagamento/CondicaoPagamentoService.js +15 -8
- package/dist/base/services/modules/dm/condicaoPagamento/CondicaoPagamentoService.js.map +1 -1
- package/dist/base/services/modules/dm/grupoComprador/GrupoCompradorService.js +15 -0
- package/dist/base/services/modules/dm/grupoComprador/GrupoCompradorService.js.map +1 -0
- package/dist/base/services/modules/dm/index.js +77 -70
- package/dist/base/services/modules/dm/index.js.map +1 -1
- package/dist/base/services/modules/dm/iva/IvaService.js +15 -0
- package/dist/base/services/modules/dm/iva/IvaService.js.map +1 -0
- package/dist/base/services/modules/index.js +380 -372
- package/dist/base/services/modules/index.js.map +1 -1
- package/dist/base/utils/logo.js +5 -5
- package/dist/base/utils/logo.js.map +1 -1
- package/lib/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.tsx +15 -19
- package/lib/base/configs/api.config.ts +1 -1
- package/lib/base/configs/endpoints.config/centralNfe/centralNfe.ts +3 -1
- package/lib/base/configs/endpoints.config/centralNfe/config/vinculoIva.ts +12 -0
- package/lib/base/configs/endpoints.config/compras/config/ordemCompra.ts +2 -1
- package/lib/base/configs/endpoints.config/dm/config/businessPartner.ts +3 -1
- package/lib/base/configs/endpoints.config/dm/config/condicaoPagamento.ts +2 -1
- package/lib/base/configs/endpoints.config/dm/config/grupoComprador.ts +7 -0
- package/lib/base/configs/endpoints.config/dm/config/iva.ts +7 -0
- package/lib/base/configs/endpoints.config/dm/dm.ts +4 -0
- package/lib/base/services/modules/centralNfe/vinculoIva/VinculoIvaService.ts +53 -0
- package/lib/base/services/modules/compras/ordemCompra/OrdemCompraService.ts +8 -0
- package/lib/base/services/modules/dm/businessPartner/BusinessPartnerService.ts +14 -0
- package/lib/base/services/modules/dm/condicaoPagamento/CondicaoPagamentoService.ts +7 -0
- package/lib/base/services/modules/dm/grupoComprador/GrupoCompradorService.ts +13 -0
- package/lib/base/services/modules/dm/index.ts +4 -2
- package/lib/base/services/modules/dm/iva/IvaService.ts +13 -0
- package/lib/base/utils/logo.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/base/utils/logo.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
3
|
-
const t = o ? "-min" : "-full-h", n = e === "dark" ? "-white" : "";
|
|
4
|
-
return `${
|
|
1
|
+
import r from "../../@ecme/configs/app.config.js";
|
|
2
|
+
function i(o, e) {
|
|
3
|
+
const t = o ? "-min" : "-full-h", n = e === "dark" ? "-white" : "-gray";
|
|
4
|
+
return `${r.orgName}-logo${t}${n}.svg`;
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
i as getLogoFilename
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=logo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo.js","sources":["../../../lib/base/utils/logo.ts"],"sourcesContent":["import appConfig from '@/configs/app.config'\n\nexport function getLogoFilename(isCollapsed: boolean, mode: 'dark' | 'light') {\n const suffix = isCollapsed ? '-min' : '-full-h'\n const theme = mode === 'dark' ? '-white' : ''\n return `${appConfig.orgName}-logo${suffix}${theme}.svg`\n}\n"],"names":["getLogoFilename","isCollapsed","mode","suffix","theme","appConfig"],"mappings":";AAEO,SAASA,EAAgBC,GAAsBC,GAAwB;AAC1E,QAAMC,IAASF,IAAc,SAAS,WAChCG,IAAQF,MAAS,SAAS,WAAW;AAC3C,SAAO,GAAGG,EAAU,OAAO,QAAQF,CAAM,GAAGC,CAAK;AACrD;"}
|
|
1
|
+
{"version":3,"file":"logo.js","sources":["../../../lib/base/utils/logo.ts"],"sourcesContent":["import appConfig from '@/configs/app.config'\n\nexport function getLogoFilename(isCollapsed: boolean, mode: 'dark' | 'light') {\n const suffix = isCollapsed ? '-min' : '-full-h'\n const theme = mode === 'dark' ? '-white' : '-gray'\n return `${appConfig.orgName}-logo${suffix}${theme}.svg`\n}\n"],"names":["getLogoFilename","isCollapsed","mode","suffix","theme","appConfig"],"mappings":";AAEO,SAASA,EAAgBC,GAAsBC,GAAwB;AAC1E,QAAMC,IAASF,IAAc,SAAS,WAChCG,IAAQF,MAAS,SAAS,WAAW;AAC3C,SAAO,GAAGG,EAAU,OAAO,QAAQF,CAAM,GAAGC,CAAK;AACrD;"}
|
|
@@ -37,25 +37,21 @@ const ForgotPasswordForm = (props: ForgotPasswordFormProps) => {
|
|
|
37
37
|
})
|
|
38
38
|
|
|
39
39
|
const onForgotPassword = async (values: ForgotPasswordFormSchema) => {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
setSubmitting(false)
|
|
58
|
-
}
|
|
40
|
+
const { email } = values
|
|
41
|
+
|
|
42
|
+
setSubmitting(true)
|
|
43
|
+
|
|
44
|
+
try {
|
|
45
|
+
await apiForgotPassword({ email })
|
|
46
|
+
setSubmitting(false)
|
|
47
|
+
setEmailSent?.(true)
|
|
48
|
+
} catch (errors) {
|
|
49
|
+
setMessage?.(
|
|
50
|
+
typeof errors === 'string' ? errors : 'Erro ao enviar email.',
|
|
51
|
+
)
|
|
52
|
+
setSubmitting(false)
|
|
53
|
+
}
|
|
54
|
+
}
|
|
59
55
|
|
|
60
56
|
return (
|
|
61
57
|
<div className={className}>
|
|
@@ -35,7 +35,7 @@ const BUILD_API_URL = import.meta.env.VITE_APP_API_URL
|
|
|
35
35
|
* @desc Endereço atual da API.
|
|
36
36
|
**/
|
|
37
37
|
|
|
38
|
-
export const API_URL = NODE_ENV === 'development' || !BUILD_API_URL ? DEV_API_URL : window?.location?.origin?.replace(':31000', ':30001') ?? BUILD_API_URL
|
|
38
|
+
export const API_URL = NODE_ENV === 'development' || !BUILD_API_URL ? DEV_API_URL : window?.location?.origin?.replace(':5173', ':8081').replace(':31000', ':30001') ?? BUILD_API_URL
|
|
39
39
|
|
|
40
40
|
export const GOOGLE_MAP_API_KEY = import.meta.env.VITE_APP_GOOGLE_MAP_API_KEY
|
|
41
41
|
export const GOOGLE_MAP_MAP_ID = import.meta.env.VITE_APP_GOOGLE_MAP_MAP_ID
|
|
@@ -3,13 +3,15 @@ import notificacaoCentralNfe from "./config/notificacaoCentralNfe"
|
|
|
3
3
|
import vinculoUnidadeMedida from "./config/vinculoUnidadeMedida"
|
|
4
4
|
import cnpjLiberadoNota from "./config/cnpjLiberadoNota"
|
|
5
5
|
import nfe from "./config/nfe"
|
|
6
|
+
import vinculoIva from "./config/vinculoIva"
|
|
6
7
|
|
|
7
8
|
const centralNfe = {
|
|
8
9
|
notificacaoCentralNfe,
|
|
9
10
|
intervaloPrecoXml,
|
|
10
11
|
vinculoUnidadeMedida,
|
|
11
12
|
cnpjLiberadoNota,
|
|
12
|
-
nfe
|
|
13
|
+
nfe,
|
|
14
|
+
vinculoIva
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
export default centralNfe
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const VINCULO_IVA_BASE_URL = '/central-nfe/api/vinculo-iva'
|
|
2
|
+
|
|
3
|
+
const vinculoIva = {
|
|
4
|
+
findMonitor: { endpoint: `${VINCULO_IVA_BASE_URL}/find-monitor`, httpMethod: 'post' },
|
|
5
|
+
findOne: { endpoint: VINCULO_IVA_BASE_URL, httpMethod: 'get' },
|
|
6
|
+
update: { endpoint: VINCULO_IVA_BASE_URL, httpMethod: 'patch' },
|
|
7
|
+
create: { endpoint: VINCULO_IVA_BASE_URL, httpMethod: 'post' },
|
|
8
|
+
findIdIvaByMaterialAndIdFornecedorAndClassificacaoContabil: { endpoint: `${VINCULO_IVA_BASE_URL}/{nMaterial}/{idFornecedor}/{classificacaoContabil}/id-iva`, httpMethod: 'get' },
|
|
9
|
+
save: { endpoint: `${VINCULO_IVA_BASE_URL}/save`, httpMethod: 'post' },
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default vinculoIva
|
|
@@ -4,7 +4,8 @@ const ordemCompra = {
|
|
|
4
4
|
findMonitor: { endpoint: `${ORDEM_COMPRA_BASE_URL}/find-monitor`, httpMethod: 'post' },
|
|
5
5
|
findOne: { endpoint: ORDEM_COMPRA_BASE_URL, httpMethod: 'get' },
|
|
6
6
|
update: { endpoint: ORDEM_COMPRA_BASE_URL, httpMethod: 'put' },
|
|
7
|
-
cancelar: { endpoint: `${ORDEM_COMPRA_BASE_URL}/{id}/cancelar`, httpMethod: 'post' }
|
|
7
|
+
cancelar: { endpoint: `${ORDEM_COMPRA_BASE_URL}/{id}/cancelar`, httpMethod: 'post' },
|
|
8
|
+
findOrdensComprasNfeByIdsFornecedores: { endpoint: `${ORDEM_COMPRA_BASE_URL}/find-ordens-compras-by-ids-fornecedores`, httpMethod: 'post' },
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
export default ordemCompra
|
|
@@ -7,12 +7,14 @@ const businessPartner = {
|
|
|
7
7
|
findBusinessPartnerFornecedor: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-business-partner-is-fornecedor`, method: 'post' },
|
|
8
8
|
findMonitorFornecedor: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-monitor-fornecedor`, httpMethod: 'post' },
|
|
9
9
|
findMonitorTransportadora: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-monitor-transportadora`, httpMethod: 'post' },
|
|
10
|
+
findEmpresasIdsByCnpj: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/{cnpj}/find-empresas-ids`, httpMethod: 'get' },
|
|
10
11
|
findBusinessPartnerFiliais: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-business-partner-filiais`, method: 'post' },
|
|
11
12
|
findBusinessPartnerMatrizes: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-business-partner-matrizes`, method: 'post' },
|
|
13
|
+
findFornecedorNfeByCnpj: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/{cnpj}/find-fornecedor-nfe`, httpMethod: 'get' },
|
|
12
14
|
findBusinessPartnerFuncoesParceirosClientes: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-bp-vinculo-funcao-parceiros-clientes`, method: 'post' },
|
|
13
15
|
findBusinessPartnerFuncoesParceirosFornecedores: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-bp-vinculo-funcao-parceiros-fornecedores`, method: 'post' },
|
|
14
16
|
findBusinessPartnerByClientOrSupplierFunction: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-vendedores-aka-representantes-vendas`, method: 'get' },
|
|
15
|
-
findSalesAreasByBusinessPartnerAndSetorAtividade: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-sales-areas-client-by-business-partner-and-setor-atividade/`, method: 'get' }
|
|
17
|
+
findSalesAreasByBusinessPartnerAndSetorAtividade: { endpoint: `${BUSINESS_PARTNER_BASE_URL}/find-sales-areas-client-by-business-partner-and-setor-atividade/`, method: 'get' }
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
export default businessPartner
|
|
@@ -2,7 +2,8 @@ const CONDICAO_PAGAMENTO_BASE_URL = '/dados-mestres/api/dm/condicao-pagamento'
|
|
|
2
2
|
|
|
3
3
|
const condicaoPagamento = {
|
|
4
4
|
find: { endpoint: `${CONDICAO_PAGAMENTO_BASE_URL}/find`, method: 'post' },
|
|
5
|
-
findMonitor: { endpoint: `${CONDICAO_PAGAMENTO_BASE_URL}/find-monitor`, httpMethod: 'post' }
|
|
5
|
+
findMonitor: { endpoint: `${CONDICAO_PAGAMENTO_BASE_URL}/find-monitor`, httpMethod: 'post' },
|
|
6
|
+
verificaCadastroCompletoByCondicaoPagamento: { endpoint: `${CONDICAO_PAGAMENTO_BASE_URL}/{condicaoPagamento}/verifica-cadastro-completo`, httpMethod: 'get' }
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export default condicaoPagamento
|
|
@@ -17,6 +17,8 @@ import departamento from "./config/departamento.endpoint.config";
|
|
|
17
17
|
import tipoDocumentoVenda from "./config/tipoDocumentoVenda";
|
|
18
18
|
import grupoVenda from "./config/grupoVenda";
|
|
19
19
|
import tipoOrdemVenda from "./config/tipoOrdemVenda";
|
|
20
|
+
import iva from "./config/iva";
|
|
21
|
+
import grupoComprador from "./config/grupoComprador";
|
|
20
22
|
import tipoVeiculo from "./config/tipoVeiculo";
|
|
21
23
|
import municipio from "./config/municipio";
|
|
22
24
|
|
|
@@ -40,6 +42,8 @@ const dm = {
|
|
|
40
42
|
grupoVenda,
|
|
41
43
|
tipoDocumentoVenda,
|
|
42
44
|
tipoOrdemVenda,
|
|
45
|
+
iva,
|
|
46
|
+
grupoComprador,
|
|
43
47
|
tipoVeiculo,
|
|
44
48
|
municipio
|
|
45
49
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import ApiService from "@/services/ApiService";
|
|
2
|
+
import endpointConfig from "@base/configs/endpoints.config/endpoints.navigation";
|
|
3
|
+
|
|
4
|
+
const VINCULO_IVA_ENDPOINT = endpointConfig.centralNfe.vinculoIva;
|
|
5
|
+
|
|
6
|
+
export async function apiFindMonitorVinculoIva(body) {
|
|
7
|
+
return ApiService.fetchDataWithAxios<any>({
|
|
8
|
+
url: VINCULO_IVA_ENDPOINT.findMonitor.endpoint,
|
|
9
|
+
method: VINCULO_IVA_ENDPOINT.findMonitor.httpMethod,
|
|
10
|
+
data: body,
|
|
11
|
+
})
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export async function apiFindOneVinculoIva(id: number) {
|
|
15
|
+
return ApiService.fetchDataWithAxios<any>({
|
|
16
|
+
url: `${VINCULO_IVA_ENDPOINT.findOne.endpoint}/${id}`,
|
|
17
|
+
method: VINCULO_IVA_ENDPOINT.findOne.httpMethod
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export async function apiUpdateVinculoIva(body) {
|
|
22
|
+
return ApiService.fetchDataWithAxios<any>({
|
|
23
|
+
url: VINCULO_IVA_ENDPOINT.update.endpoint,
|
|
24
|
+
method: VINCULO_IVA_ENDPOINT.update.httpMethod,
|
|
25
|
+
data: body,
|
|
26
|
+
})
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export async function apiCreateVinculoIva(values: any) {
|
|
30
|
+
return ApiService.fetchDataWithAxios<any>({
|
|
31
|
+
url: VINCULO_IVA_ENDPOINT.create.endpoint,
|
|
32
|
+
method: VINCULO_IVA_ENDPOINT.create.httpMethod,
|
|
33
|
+
data: values
|
|
34
|
+
})
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export async function apiFindIdIvaByMaterialAndIdFornecedorAndClassificacaoContabil(material: string, idFornecedor: number, classificacaoContabil: string) {
|
|
38
|
+
return ApiService.fetchDataWithAxios<number>({
|
|
39
|
+
url: VINCULO_IVA_ENDPOINT.findIdIvaByMaterialAndIdFornecedorAndClassificacaoContabil.endpoint
|
|
40
|
+
.replace('{nMaterial}', material)
|
|
41
|
+
.replace('{idFornecedor}', idFornecedor.toString())
|
|
42
|
+
.replace('{classificacaoContabil}', classificacaoContabil),
|
|
43
|
+
method: VINCULO_IVA_ENDPOINT.findIdIvaByMaterialAndIdFornecedorAndClassificacaoContabil.httpMethod
|
|
44
|
+
})
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export async function apiSaveVinculoIva(data: any) {
|
|
48
|
+
return ApiService.fetchDataWithAxios<number>({
|
|
49
|
+
url: VINCULO_IVA_ENDPOINT.save.endpoint,
|
|
50
|
+
method: VINCULO_IVA_ENDPOINT.save.httpMethod,
|
|
51
|
+
data
|
|
52
|
+
})
|
|
53
|
+
}
|
|
@@ -31,4 +31,12 @@ export async function apiCancelarOrdemCompra(id: number) {
|
|
|
31
31
|
url: ORDEM_COMPRA_ENDPOINT.cancelar.endpoint.replace("{id}", id.toString()),
|
|
32
32
|
method: ORDEM_COMPRA_ENDPOINT.cancelar.httpMethod
|
|
33
33
|
})
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export async function apiFindOrdensComprasNfeByIdsFornecedores(data) {
|
|
37
|
+
return ApiService.fetchDataWithAxios<any>({
|
|
38
|
+
url: ORDEM_COMPRA_ENDPOINT.findOrdensComprasNfeByIdsFornecedores.endpoint,
|
|
39
|
+
method: ORDEM_COMPRA_ENDPOINT.findOrdensComprasNfeByIdsFornecedores.httpMethod,
|
|
40
|
+
data
|
|
41
|
+
})
|
|
34
42
|
}
|
|
@@ -50,6 +50,13 @@ export async function apiFindMonitorFornecedor(body?: IFilterParams) {
|
|
|
50
50
|
})
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
export async function apiFindEmpresasIdsByCnpj(cnpj: string) {
|
|
54
|
+
return ApiService.fetchDataWithAxios<any>({
|
|
55
|
+
url: BUSINESS_PARTNER_ENDPOINT.findEmpresasIdsByCnpj.endpoint.replace('{cnpj}', cnpj),
|
|
56
|
+
method: BUSINESS_PARTNER_ENDPOINT.findEmpresasIdsByCnpj.httpMethod,
|
|
57
|
+
})
|
|
58
|
+
}
|
|
59
|
+
|
|
53
60
|
export async function apiFindMonitorTransportadora(body?: IFilterParams) {
|
|
54
61
|
return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
|
|
55
62
|
url: BUSINESS_PARTNER_ENDPOINT.findMonitorTransportadora.endpoint,
|
|
@@ -80,6 +87,13 @@ export async function apiFindDmBusinessPartnerMatrizes(body?: IFilterParams) {
|
|
|
80
87
|
})
|
|
81
88
|
}
|
|
82
89
|
|
|
90
|
+
export async function apiFindFornecedorNfeByCnpj(cnpj: string) {
|
|
91
|
+
return ApiService.fetchDataWithAxios<any>({
|
|
92
|
+
url: BUSINESS_PARTNER_ENDPOINT.findFornecedorNfeByCnpj.endpoint.replace('{cnpj}', cnpj),
|
|
93
|
+
method: BUSINESS_PARTNER_ENDPOINT.findFornecedorNfeByCnpj.httpMethod,
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
|
|
83
97
|
export async function apiFindDmBusinessPartnerFuncoesParceirosClientes(body?: IFilterParams) {
|
|
84
98
|
if (!body || Object.keys(body).length === 0) {
|
|
85
99
|
return undefined
|
|
@@ -20,3 +20,10 @@ export async function apiFindMonitorCondicaoPagamento(body?: IFilterParams) {
|
|
|
20
20
|
data: body,
|
|
21
21
|
})
|
|
22
22
|
}
|
|
23
|
+
|
|
24
|
+
export async function apiFindVerificaCadastroCompletoByCondicaoPagamento(condicaoPagamento: string) {
|
|
25
|
+
return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
|
|
26
|
+
url: CONDICAO_PAGAMENTO_ENDPOINT.verificaCadastroCompletoByCondicaoPagamento.endpoint.replace('condicaoPagamento', condicaoPagamento),
|
|
27
|
+
method: CONDICAO_PAGAMENTO_ENDPOINT.verificaCadastroCompletoByCondicaoPagamento.httpMethod
|
|
28
|
+
})
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import ApiService from "@/services/ApiService";
|
|
2
|
+
import { IFilterParams, TQueryResponse } from "@base/@types/api";
|
|
3
|
+
import { endpointsConfig } from "@base/configs";
|
|
4
|
+
|
|
5
|
+
const GRUPO_COMPRADOR_ENDPOINT = endpointsConfig.dm.grupoComprador;
|
|
6
|
+
|
|
7
|
+
export async function apiFindMonitorGrupoComprador(body?: IFilterParams) {
|
|
8
|
+
return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
|
|
9
|
+
url: GRUPO_COMPRADOR_ENDPOINT.findMonitor.endpoint,
|
|
10
|
+
method: GRUPO_COMPRADOR_ENDPOINT.findMonitor.httpMethod,
|
|
11
|
+
data: body,
|
|
12
|
+
})
|
|
13
|
+
}
|
|
@@ -15,7 +15,9 @@ export * from './incoterms/IncotermsService';
|
|
|
15
15
|
export * from './produto/ProdutoService';
|
|
16
16
|
export * from './setorAtividade/SetorAtividadeService';
|
|
17
17
|
export * from './tipoDocumentoVenda/TipoDocumentoVendaService';
|
|
18
|
+
export * from './user/UserService';
|
|
19
|
+
export * from './iva/IvaService';
|
|
20
|
+
export * from './grupoComprador/GrupoCompradorService';
|
|
18
21
|
export * from './tipoOrdemVenda/TipoOrdemVendaService';
|
|
19
22
|
export * from './tipoVeiculo/TipoVeiculoService';
|
|
20
|
-
export * from './municipio/MunicipioService';
|
|
21
|
-
export * from './user/UserService';
|
|
23
|
+
export * from './municipio/MunicipioService';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import ApiService from "@/services/ApiService";
|
|
2
|
+
import { IFilterParams, TQueryResponse } from "@base/@types/api";
|
|
3
|
+
import { endpointsConfig } from "@base/configs";
|
|
4
|
+
|
|
5
|
+
const IVA_ENDPOINT = endpointsConfig.dm.iva;
|
|
6
|
+
|
|
7
|
+
export async function apiFindMonitorIva(body?: IFilterParams) {
|
|
8
|
+
return ApiService.fetchDataWithAxios<TQueryResponse<any>>({
|
|
9
|
+
url: IVA_ENDPOINT.findMonitor.endpoint,
|
|
10
|
+
method: IVA_ENDPOINT.findMonitor.httpMethod,
|
|
11
|
+
data: body,
|
|
12
|
+
})
|
|
13
|
+
}
|
package/lib/base/utils/logo.ts
CHANGED
|
@@ -2,6 +2,6 @@ import appConfig from '@/configs/app.config'
|
|
|
2
2
|
|
|
3
3
|
export function getLogoFilename(isCollapsed: boolean, mode: 'dark' | 'light') {
|
|
4
4
|
const suffix = isCollapsed ? '-min' : '-full-h'
|
|
5
|
-
const theme = mode === 'dark' ? '-white' : ''
|
|
5
|
+
const theme = mode === 'dark' ? '-white' : '-gray'
|
|
6
6
|
return `${appConfig.orgName}-logo${suffix}${theme}.svg`
|
|
7
7
|
}
|
package/package.json
CHANGED