@orbe-agro/client-core 5.6.163 → 5.6.165
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/components/template/Footer.js +1 -1
- package/dist/@ecme/components/ui/DatePicker/RangeCalendar.js +1 -0
- package/dist/@ecme/components/ui/DatePicker/RangeCalendar.js.map +1 -1
- package/dist/@types/@ecme/components/ui/DatePicker/RangeCalendar.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +196 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/config/agenda.d.ts +36 -0
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/config/agenda.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/config/contratos.d.ts +44 -0
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/config/contratos.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/config/dashboard.d.ts +40 -0
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/config/dashboard.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/config/notasFiscais.d.ts +28 -0
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/config/notasFiscais.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/config/pagamentos.d.ts +36 -0
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/config/pagamentos.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/config/planoPagamento.d.ts +24 -0
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/config/planoPagamento.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/gestaoServicos.d.ts +196 -0
- package/dist/@types/base/configs/endpoints.config/gestaoServicos/gestaoServicos.d.ts.map +1 -1
- package/dist/@types/base/services/modules/gestaoServicos/GestaoServicosService.d.ts +35 -0
- package/dist/@types/base/services/modules/gestaoServicos/GestaoServicosService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/gestaoServicos/index.d.ts +1 -0
- package/dist/@types/base/services/modules/gestaoServicos/index.d.ts.map +1 -1
- package/dist/base/configs/endpoints.config/gestaoServicos/config/agenda.js +15 -0
- package/dist/base/configs/endpoints.config/gestaoServicos/config/agenda.js.map +1 -0
- package/dist/base/configs/endpoints.config/gestaoServicos/config/contratos.js +17 -0
- package/dist/base/configs/endpoints.config/gestaoServicos/config/contratos.js.map +1 -0
- package/dist/base/configs/endpoints.config/gestaoServicos/config/dashboard.js +16 -0
- package/dist/base/configs/endpoints.config/gestaoServicos/config/dashboard.js.map +1 -0
- package/dist/base/configs/endpoints.config/gestaoServicos/config/notasFiscais.js +13 -0
- package/dist/base/configs/endpoints.config/gestaoServicos/config/notasFiscais.js.map +1 -0
- package/dist/base/configs/endpoints.config/gestaoServicos/config/pagamentos.js +15 -0
- package/dist/base/configs/endpoints.config/gestaoServicos/config/pagamentos.js.map +1 -0
- package/dist/base/configs/endpoints.config/gestaoServicos/config/planoPagamento.js +12 -0
- package/dist/base/configs/endpoints.config/gestaoServicos/config/planoPagamento.js.map +1 -0
- package/dist/base/configs/endpoints.config/gestaoServicos/gestaoServicos.js +13 -1
- package/dist/base/configs/endpoints.config/gestaoServicos/gestaoServicos.js.map +1 -1
- package/dist/base/services/modules/gestaoServicos/GestaoServicosService.js +259 -0
- package/dist/base/services/modules/gestaoServicos/GestaoServicosService.js.map +1 -0
- package/dist/base/services/modules/gestaoServicos/index.js +35 -1
- package/dist/base/services/modules/gestaoServicos/index.js.map +1 -1
- package/lib/@ecme/components/ui/DatePicker/RangeCalendar.tsx +1 -0
- package/lib/base/configs/endpoints.config/gestaoServicos/config/agenda.ts +14 -0
- package/lib/base/configs/endpoints.config/gestaoServicos/config/contratos.ts +16 -0
- package/lib/base/configs/endpoints.config/gestaoServicos/config/dashboard.ts +15 -0
- package/lib/base/configs/endpoints.config/gestaoServicos/config/notasFiscais.ts +12 -0
- package/lib/base/configs/endpoints.config/gestaoServicos/config/pagamentos.ts +14 -0
- package/lib/base/configs/endpoints.config/gestaoServicos/config/planoPagamento.ts +11 -0
- package/lib/base/configs/endpoints.config/gestaoServicos/gestaoServicos.ts +13 -1
- package/lib/base/services/modules/gestaoServicos/GestaoServicosService.ts +268 -0
- package/lib/base/services/modules/gestaoServicos/index.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import ApiService from "../../../../@ecme/services/ApiService.js";
|
|
2
|
+
import endpointNavigationConfig from "../../../configs/endpoints.config/endpoints.navigation.js";
|
|
3
|
+
const GS_ENDPOINT = endpointNavigationConfig.gestaoServicos;
|
|
4
|
+
async function apiFindAllContratos(body) {
|
|
5
|
+
return ApiService.fetchDataWithAxios({
|
|
6
|
+
url: GS_ENDPOINT.contratos.findMonitor.endpoint,
|
|
7
|
+
method: GS_ENDPOINT.contratos.findMonitor.httpMethod,
|
|
8
|
+
data: body
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
async function apiFindOneContrato(id) {
|
|
12
|
+
return ApiService.fetchDataWithAxios({
|
|
13
|
+
url: `${GS_ENDPOINT.contratos.findOne.endpoint}/${id}`,
|
|
14
|
+
method: GS_ENDPOINT.contratos.findOne.httpMethod
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function apiCreateContrato(values) {
|
|
18
|
+
return ApiService.fetchDataWithAxios({
|
|
19
|
+
url: GS_ENDPOINT.contratos.create.endpoint,
|
|
20
|
+
method: GS_ENDPOINT.contratos.create.httpMethod,
|
|
21
|
+
data: values
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async function apiUpdateContrato(id, values) {
|
|
25
|
+
return ApiService.fetchDataWithAxios({
|
|
26
|
+
url: `${GS_ENDPOINT.contratos.update.endpoint}/${id}`,
|
|
27
|
+
method: GS_ENDPOINT.contratos.update.httpMethod,
|
|
28
|
+
data: values
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
async function apiSubmeterContrato(id, comentario) {
|
|
32
|
+
return ApiService.fetchDataWithAxios({
|
|
33
|
+
url: `${GS_ENDPOINT.contratos.submeter.endpoint.replace("{id}", String(id))}`,
|
|
34
|
+
method: GS_ENDPOINT.contratos.submeter.httpMethod,
|
|
35
|
+
data: { comentario }
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
async function apiAprovarContrato(id) {
|
|
39
|
+
return ApiService.fetchDataWithAxios({
|
|
40
|
+
url: `${GS_ENDPOINT.contratos.aprovar.endpoint.replace("{id}", String(id))}`,
|
|
41
|
+
method: GS_ENDPOINT.contratos.aprovar.httpMethod
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
async function apiReprovarContrato(id, justificativa) {
|
|
45
|
+
return ApiService.fetchDataWithAxios({
|
|
46
|
+
url: `${GS_ENDPOINT.contratos.reprovar.endpoint.replace("{id}", String(id))}`,
|
|
47
|
+
method: GS_ENDPOINT.contratos.reprovar.httpMethod,
|
|
48
|
+
data: { justificativa }
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
async function apiEncerrarContrato(id) {
|
|
52
|
+
return ApiService.fetchDataWithAxios({
|
|
53
|
+
url: `${GS_ENDPOINT.contratos.encerrar.endpoint.replace("{id}", String(id))}`,
|
|
54
|
+
method: GS_ENDPOINT.contratos.encerrar.httpMethod
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
async function apiContratosVencendo() {
|
|
58
|
+
return ApiService.fetchDataWithAxios({
|
|
59
|
+
url: GS_ENDPOINT.contratos.vencendo.endpoint,
|
|
60
|
+
method: GS_ENDPOINT.contratos.vencendo.httpMethod
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
async function apiFindAllAgenda(body) {
|
|
64
|
+
return ApiService.fetchDataWithAxios({
|
|
65
|
+
url: GS_ENDPOINT.agenda.findMonitor.endpoint,
|
|
66
|
+
method: GS_ENDPOINT.agenda.findMonitor.httpMethod,
|
|
67
|
+
data: body
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
async function apiGerarAgenda(contratoId) {
|
|
71
|
+
return ApiService.fetchDataWithAxios({
|
|
72
|
+
url: GS_ENDPOINT.agenda.gerar.endpoint.replace("{contratoId}", String(contratoId)),
|
|
73
|
+
method: GS_ENDPOINT.agenda.gerar.httpMethod
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
async function apiMarcarExecucaoRealizada(id, dataRealizada) {
|
|
77
|
+
return ApiService.fetchDataWithAxios({
|
|
78
|
+
url: GS_ENDPOINT.agenda.marcarRealizada.endpoint.replace("{id}", String(id)),
|
|
79
|
+
method: GS_ENDPOINT.agenda.marcarRealizada.httpMethod,
|
|
80
|
+
data: { dataRealizada }
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
async function apiAprovarExecucao(id) {
|
|
84
|
+
return ApiService.fetchDataWithAxios({
|
|
85
|
+
url: GS_ENDPOINT.agenda.aprovar.endpoint.replace("{id}", String(id)),
|
|
86
|
+
method: GS_ENDPOINT.agenda.aprovar.httpMethod
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
async function apiReprovarExecucao(id, observacao) {
|
|
90
|
+
return ApiService.fetchDataWithAxios({
|
|
91
|
+
url: GS_ENDPOINT.agenda.reprovar.endpoint.replace("{id}", String(id)),
|
|
92
|
+
method: GS_ENDPOINT.agenda.reprovar.httpMethod,
|
|
93
|
+
data: { observacao }
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
async function apiFindAllNotasFiscais(body) {
|
|
97
|
+
return ApiService.fetchDataWithAxios({
|
|
98
|
+
url: GS_ENDPOINT.notasFiscais.findMonitor.endpoint,
|
|
99
|
+
method: GS_ENDPOINT.notasFiscais.findMonitor.httpMethod,
|
|
100
|
+
data: body
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
async function apiCreateNotaFiscal(values) {
|
|
104
|
+
return ApiService.fetchDataWithAxios({
|
|
105
|
+
url: GS_ENDPOINT.notasFiscais.create.endpoint,
|
|
106
|
+
method: GS_ENDPOINT.notasFiscais.create.httpMethod,
|
|
107
|
+
data: values
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
async function apiValidarNotaFiscal(id) {
|
|
111
|
+
return ApiService.fetchDataWithAxios({
|
|
112
|
+
url: GS_ENDPOINT.notasFiscais.validar.endpoint.replace("{id}", String(id)),
|
|
113
|
+
method: GS_ENDPOINT.notasFiscais.validar.httpMethod
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
async function apiReprovarNotaFiscal(id, motivo) {
|
|
117
|
+
return ApiService.fetchDataWithAxios({
|
|
118
|
+
url: GS_ENDPOINT.notasFiscais.reprovar.endpoint.replace("{id}", String(id)),
|
|
119
|
+
method: GS_ENDPOINT.notasFiscais.reprovar.httpMethod,
|
|
120
|
+
data: { motivo }
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
async function apiFindAllPagamentos(nfId) {
|
|
124
|
+
return ApiService.fetchDataWithAxios({
|
|
125
|
+
url: `${GS_ENDPOINT.pagamentos.findOne.endpoint}?nfId=${nfId}`,
|
|
126
|
+
method: GS_ENDPOINT.pagamentos.findOne.httpMethod
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
async function apiCreatePagamento(values) {
|
|
130
|
+
return ApiService.fetchDataWithAxios({
|
|
131
|
+
url: GS_ENDPOINT.pagamentos.create.endpoint,
|
|
132
|
+
method: GS_ENDPOINT.pagamentos.create.httpMethod,
|
|
133
|
+
data: values
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
async function apiAprovarPagamento(id) {
|
|
137
|
+
return ApiService.fetchDataWithAxios({
|
|
138
|
+
url: GS_ENDPOINT.pagamentos.aprovar.endpoint.replace("{id}", String(id)),
|
|
139
|
+
method: GS_ENDPOINT.pagamentos.aprovar.httpMethod
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
async function apiMarcarPagamentoPago(id, dataPagamento) {
|
|
143
|
+
return ApiService.fetchDataWithAxios({
|
|
144
|
+
url: GS_ENDPOINT.pagamentos.marcarPago.endpoint.replace("{id}", String(id)),
|
|
145
|
+
method: GS_ENDPOINT.pagamentos.marcarPago.httpMethod,
|
|
146
|
+
data: { dataPagamento }
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
async function apiDeletePagamento(id) {
|
|
150
|
+
return ApiService.fetchDataWithAxios({
|
|
151
|
+
url: `${GS_ENDPOINT.pagamentos.delete.endpoint}/${id}`,
|
|
152
|
+
method: GS_ENDPOINT.pagamentos.delete.httpMethod
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
async function apiTotaisPagamentos(nfId) {
|
|
156
|
+
return ApiService.fetchDataWithAxios({
|
|
157
|
+
url: GS_ENDPOINT.pagamentos.totais.endpoint.replace("{nfId}", String(nfId)),
|
|
158
|
+
method: GS_ENDPOINT.pagamentos.totais.httpMethod
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
async function apiDashboardKpis(params) {
|
|
162
|
+
return ApiService.fetchDataWithAxios({
|
|
163
|
+
url: GS_ENDPOINT.dashboard.kpis.endpoint,
|
|
164
|
+
method: GS_ENDPOINT.dashboard.kpis.httpMethod,
|
|
165
|
+
params
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
async function apiDashboardContratosPorStatus(params) {
|
|
169
|
+
return ApiService.fetchDataWithAxios({
|
|
170
|
+
url: GS_ENDPOINT.dashboard.contratosPorStatus.endpoint,
|
|
171
|
+
method: GS_ENDPOINT.dashboard.contratosPorStatus.httpMethod,
|
|
172
|
+
params
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
async function apiDashboardValorPorFornecedor(params) {
|
|
176
|
+
return ApiService.fetchDataWithAxios({
|
|
177
|
+
url: GS_ENDPOINT.dashboard.valorPorFornecedor.endpoint,
|
|
178
|
+
method: GS_ENDPOINT.dashboard.valorPorFornecedor.httpMethod,
|
|
179
|
+
params
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
async function apiDashboardExecucoesPorStatus(params) {
|
|
183
|
+
return ApiService.fetchDataWithAxios({
|
|
184
|
+
url: GS_ENDPOINT.dashboard.execucoesPorStatus.endpoint,
|
|
185
|
+
method: GS_ENDPOINT.dashboard.execucoesPorStatus.httpMethod,
|
|
186
|
+
params
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
async function apiDashboardVencimentosPorMes(params) {
|
|
190
|
+
return ApiService.fetchDataWithAxios({
|
|
191
|
+
url: GS_ENDPOINT.dashboard.vencimentosPorMes.endpoint,
|
|
192
|
+
method: GS_ENDPOINT.dashboard.vencimentosPorMes.httpMethod,
|
|
193
|
+
params
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
async function apiDashboardPipelineOperacional(params) {
|
|
197
|
+
return ApiService.fetchDataWithAxios({
|
|
198
|
+
url: GS_ENDPOINT.dashboard.pipelineOperacional.endpoint,
|
|
199
|
+
method: GS_ENDPOINT.dashboard.pipelineOperacional.httpMethod,
|
|
200
|
+
params
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
async function apiDashboardKpisFinanceiro(params) {
|
|
204
|
+
return ApiService.fetchDataWithAxios({
|
|
205
|
+
url: GS_ENDPOINT.dashboard.kpisFinanceiro.endpoint,
|
|
206
|
+
method: GS_ENDPOINT.dashboard.kpisFinanceiro.httpMethod,
|
|
207
|
+
params
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
async function apiDashboardPagamentosPorMes(params) {
|
|
211
|
+
return ApiService.fetchDataWithAxios({
|
|
212
|
+
url: GS_ENDPOINT.dashboard.pagamentosPorMes.endpoint,
|
|
213
|
+
method: GS_ENDPOINT.dashboard.pagamentosPorMes.httpMethod,
|
|
214
|
+
params
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
async function apiDashboardValorPorCentroCusto(params) {
|
|
218
|
+
return ApiService.fetchDataWithAxios({
|
|
219
|
+
url: GS_ENDPOINT.dashboard.valorPorCentroCusto.endpoint,
|
|
220
|
+
method: GS_ENDPOINT.dashboard.valorPorCentroCusto.httpMethod,
|
|
221
|
+
params
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
export {
|
|
225
|
+
apiAprovarContrato,
|
|
226
|
+
apiAprovarExecucao,
|
|
227
|
+
apiAprovarPagamento,
|
|
228
|
+
apiContratosVencendo,
|
|
229
|
+
apiCreateContrato,
|
|
230
|
+
apiCreateNotaFiscal,
|
|
231
|
+
apiCreatePagamento,
|
|
232
|
+
apiDashboardContratosPorStatus,
|
|
233
|
+
apiDashboardExecucoesPorStatus,
|
|
234
|
+
apiDashboardKpis,
|
|
235
|
+
apiDashboardKpisFinanceiro,
|
|
236
|
+
apiDashboardPagamentosPorMes,
|
|
237
|
+
apiDashboardPipelineOperacional,
|
|
238
|
+
apiDashboardValorPorCentroCusto,
|
|
239
|
+
apiDashboardValorPorFornecedor,
|
|
240
|
+
apiDashboardVencimentosPorMes,
|
|
241
|
+
apiDeletePagamento,
|
|
242
|
+
apiEncerrarContrato,
|
|
243
|
+
apiFindAllAgenda,
|
|
244
|
+
apiFindAllContratos,
|
|
245
|
+
apiFindAllNotasFiscais,
|
|
246
|
+
apiFindAllPagamentos,
|
|
247
|
+
apiFindOneContrato,
|
|
248
|
+
apiGerarAgenda,
|
|
249
|
+
apiMarcarExecucaoRealizada,
|
|
250
|
+
apiMarcarPagamentoPago,
|
|
251
|
+
apiReprovarContrato,
|
|
252
|
+
apiReprovarExecucao,
|
|
253
|
+
apiReprovarNotaFiscal,
|
|
254
|
+
apiSubmeterContrato,
|
|
255
|
+
apiTotaisPagamentos,
|
|
256
|
+
apiUpdateContrato,
|
|
257
|
+
apiValidarNotaFiscal
|
|
258
|
+
};
|
|
259
|
+
//# sourceMappingURL=GestaoServicosService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GestaoServicosService.js","sources":["../../../../../lib/base/services/modules/gestaoServicos/GestaoServicosService.ts"],"sourcesContent":["import ApiService from '@/services/ApiService'\nimport { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointConfig from '@base/configs/endpoints.config/endpoints.navigation'\n\nconst GS_ENDPOINT = endpointConfig.gestaoServicos\n\n// ───────────────────────────── CONTRATOS ─────────────────────────────\n\nexport async function apiFindAllContratos(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: GS_ENDPOINT.contratos.findMonitor.endpoint,\n method: GS_ENDPOINT.contratos.findMonitor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindOneContrato(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${GS_ENDPOINT.contratos.findOne.endpoint}/${id}`,\n method: GS_ENDPOINT.contratos.findOne.httpMethod,\n })\n}\n\nexport async function apiCreateContrato(values: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.contratos.create.endpoint,\n method: GS_ENDPOINT.contratos.create.httpMethod,\n data: values,\n })\n}\n\nexport async function apiUpdateContrato(id: number, values: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${GS_ENDPOINT.contratos.update.endpoint}/${id}`,\n method: GS_ENDPOINT.contratos.update.httpMethod,\n data: values,\n })\n}\n\nexport async function apiSubmeterContrato(id: number, comentario?: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${GS_ENDPOINT.contratos.submeter.endpoint.replace('{id}', String(id))}`,\n method: GS_ENDPOINT.contratos.submeter.httpMethod,\n data: { comentario },\n })\n}\n\nexport async function apiAprovarContrato(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${GS_ENDPOINT.contratos.aprovar.endpoint.replace('{id}', String(id))}`,\n method: GS_ENDPOINT.contratos.aprovar.httpMethod,\n })\n}\n\nexport async function apiReprovarContrato(id: number, justificativa: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${GS_ENDPOINT.contratos.reprovar.endpoint.replace('{id}', String(id))}`,\n method: GS_ENDPOINT.contratos.reprovar.httpMethod,\n data: { justificativa },\n })\n}\n\nexport async function apiEncerrarContrato(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${GS_ENDPOINT.contratos.encerrar.endpoint.replace('{id}', String(id))}`,\n method: GS_ENDPOINT.contratos.encerrar.httpMethod,\n })\n}\n\nexport async function apiContratosVencendo() {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.contratos.vencendo.endpoint,\n method: GS_ENDPOINT.contratos.vencendo.httpMethod,\n })\n}\n\n// ───────────────────────────── AGENDA ─────────────────────────────\n\nexport async function apiFindAllAgenda(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: GS_ENDPOINT.agenda.findMonitor.endpoint,\n method: GS_ENDPOINT.agenda.findMonitor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiGerarAgenda(contratoId: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.agenda.gerar.endpoint.replace('{contratoId}', String(contratoId)),\n method: GS_ENDPOINT.agenda.gerar.httpMethod,\n })\n}\n\nexport async function apiMarcarExecucaoRealizada(id: number, dataRealizada: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.agenda.marcarRealizada.endpoint.replace('{id}', String(id)),\n method: GS_ENDPOINT.agenda.marcarRealizada.httpMethod,\n data: { dataRealizada },\n })\n}\n\nexport async function apiAprovarExecucao(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.agenda.aprovar.endpoint.replace('{id}', String(id)),\n method: GS_ENDPOINT.agenda.aprovar.httpMethod,\n })\n}\n\nexport async function apiReprovarExecucao(id: number, observacao: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.agenda.reprovar.endpoint.replace('{id}', String(id)),\n method: GS_ENDPOINT.agenda.reprovar.httpMethod,\n data: { observacao },\n })\n}\n\n// ───────────────────────────── NOTAS FISCAIS ─────────────────────────────\n\nexport async function apiFindAllNotasFiscais(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: GS_ENDPOINT.notasFiscais.findMonitor.endpoint,\n method: GS_ENDPOINT.notasFiscais.findMonitor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiCreateNotaFiscal(values: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.notasFiscais.create.endpoint,\n method: GS_ENDPOINT.notasFiscais.create.httpMethod,\n data: values,\n })\n}\n\nexport async function apiValidarNotaFiscal(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.notasFiscais.validar.endpoint.replace('{id}', String(id)),\n method: GS_ENDPOINT.notasFiscais.validar.httpMethod,\n })\n}\n\nexport async function apiReprovarNotaFiscal(id: number, motivo: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.notasFiscais.reprovar.endpoint.replace('{id}', String(id)),\n method: GS_ENDPOINT.notasFiscais.reprovar.httpMethod,\n data: { motivo },\n })\n}\n\n// ───────────────────────────── PAGAMENTOS ─────────────────────────────\n\nexport async function apiFindAllPagamentos(nfId: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${GS_ENDPOINT.pagamentos.findOne.endpoint}?nfId=${nfId}`,\n method: GS_ENDPOINT.pagamentos.findOne.httpMethod,\n })\n}\n\nexport async function apiCreatePagamento(values: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.pagamentos.create.endpoint,\n method: GS_ENDPOINT.pagamentos.create.httpMethod,\n data: values,\n })\n}\n\nexport async function apiAprovarPagamento(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.pagamentos.aprovar.endpoint.replace('{id}', String(id)),\n method: GS_ENDPOINT.pagamentos.aprovar.httpMethod,\n })\n}\n\nexport async function apiMarcarPagamentoPago(id: number, dataPagamento: string) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.pagamentos.marcarPago.endpoint.replace('{id}', String(id)),\n method: GS_ENDPOINT.pagamentos.marcarPago.httpMethod,\n data: { dataPagamento },\n })\n}\n\nexport async function apiDeletePagamento(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${GS_ENDPOINT.pagamentos.delete.endpoint}/${id}`,\n method: GS_ENDPOINT.pagamentos.delete.httpMethod,\n })\n}\n\nexport async function apiTotaisPagamentos(nfId: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.pagamentos.totais.endpoint.replace('{nfId}', String(nfId)),\n method: GS_ENDPOINT.pagamentos.totais.httpMethod,\n })\n}\n\n// ───────────────────────────── DASHBOARD ─────────────────────────────\n\nexport async function apiDashboardKpis(params?: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.dashboard.kpis.endpoint,\n method: GS_ENDPOINT.dashboard.kpis.httpMethod,\n params,\n })\n}\n\nexport async function apiDashboardContratosPorStatus(params?: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.dashboard.contratosPorStatus.endpoint,\n method: GS_ENDPOINT.dashboard.contratosPorStatus.httpMethod,\n params,\n })\n}\n\nexport async function apiDashboardValorPorFornecedor(params?: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.dashboard.valorPorFornecedor.endpoint,\n method: GS_ENDPOINT.dashboard.valorPorFornecedor.httpMethod,\n params,\n })\n}\n\nexport async function apiDashboardExecucoesPorStatus(params?: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.dashboard.execucoesPorStatus.endpoint,\n method: GS_ENDPOINT.dashboard.execucoesPorStatus.httpMethod,\n params,\n })\n}\n\nexport async function apiDashboardVencimentosPorMes(params?: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.dashboard.vencimentosPorMes.endpoint,\n method: GS_ENDPOINT.dashboard.vencimentosPorMes.httpMethod,\n params,\n })\n}\n\nexport async function apiDashboardPipelineOperacional(params?: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.dashboard.pipelineOperacional.endpoint,\n method: GS_ENDPOINT.dashboard.pipelineOperacional.httpMethod,\n params,\n })\n}\n\nexport async function apiDashboardKpisFinanceiro(params?: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.dashboard.kpisFinanceiro.endpoint,\n method: GS_ENDPOINT.dashboard.kpisFinanceiro.httpMethod,\n params,\n })\n}\n\nexport async function apiDashboardPagamentosPorMes(params?: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.dashboard.pagamentosPorMes.endpoint,\n method: GS_ENDPOINT.dashboard.pagamentosPorMes.httpMethod,\n params,\n })\n}\n\nexport async function apiDashboardValorPorCentroCusto(params?: any) {\n return ApiService.fetchDataWithAxios<any>({\n url: GS_ENDPOINT.dashboard.valorPorCentroCusto.endpoint,\n method: GS_ENDPOINT.dashboard.valorPorCentroCusto.httpMethod,\n params,\n })\n}"],"names":["endpointConfig"],"mappings":";;AAIA,MAAM,cAAcA,yBAAe;AAInC,eAAsB,oBAAoB,MAAsB;AAC5D,SAAO,WAAW,mBAAwC;AAAA,IACtD,KAAK,YAAY,UAAU,YAAY;AAAA,IACvC,QAAQ,YAAY,UAAU,YAAY;AAAA,IAC1C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,mBAAmB,IAAY;AACjD,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,GAAG,YAAY,UAAU,QAAQ,QAAQ,IAAI,EAAE;AAAA,IACpD,QAAQ,YAAY,UAAU,QAAQ;AAAA,EAAA,CACzC;AACL;AAEA,eAAsB,kBAAkB,QAAa;AACjD,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,YAAY,UAAU,OAAO;AAAA,IAClC,QAAQ,YAAY,UAAU,OAAO;AAAA,IACrC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,kBAAkB,IAAY,QAAa;AAC7D,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,GAAG,YAAY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AAwB;AAAA,IACtC,KAAK,YAAY,UAAU,oBAAoB;AAAA,IAC/C,QAAQ,YAAY,UAAU,oBAAoB;AAAA,IAClD;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,2BAA2B,QAAc;AAC3D,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,YAAY,UAAU,eAAe;AAAA,IAC1C,QAAQ,YAAY,UAAU,eAAe;AAAA,IAC7C;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,6BAA6B,QAAc;AAC7D,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,YAAY,UAAU,iBAAiB;AAAA,IAC5C,QAAQ,YAAY,UAAU,iBAAiB;AAAA,IAC/C;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,gCAAgC,QAAc;AAChE,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,YAAY,UAAU,oBAAoB;AAAA,IAC/C,QAAQ,YAAY,UAAU,oBAAoB;AAAA,IAClD;AAAA,EAAA,CACH;AACL;"}
|
|
@@ -1,8 +1,42 @@
|
|
|
1
|
+
import { apiAprovarContrato, apiAprovarExecucao, apiAprovarPagamento, apiContratosVencendo, apiCreateContrato, apiCreateNotaFiscal, apiCreatePagamento, apiDashboardContratosPorStatus, apiDashboardExecucoesPorStatus, apiDashboardKpis, apiDashboardKpisFinanceiro, apiDashboardPagamentosPorMes, apiDashboardPipelineOperacional, apiDashboardValorPorCentroCusto, apiDashboardValorPorFornecedor, apiDashboardVencimentosPorMes, apiDeletePagamento, apiEncerrarContrato, apiFindAllAgenda, apiFindAllContratos, apiFindAllNotasFiscais, apiFindAllPagamentos, apiFindOneContrato, apiGerarAgenda, apiMarcarExecucaoRealizada, apiMarcarPagamentoPago, apiReprovarContrato, apiReprovarExecucao, apiReprovarNotaFiscal, apiSubmeterContrato, apiTotaisPagamentos, apiUpdateContrato, apiValidarNotaFiscal } from "./GestaoServicosService.js";
|
|
1
2
|
import { apiCreateContratoServico, apiFindAllContratoServico, apiFindOneContratoServico, apiUpdateContratoServico } from "./contratoServico/ContratoServicoService.js";
|
|
2
3
|
export {
|
|
4
|
+
apiAprovarContrato,
|
|
5
|
+
apiAprovarExecucao,
|
|
6
|
+
apiAprovarPagamento,
|
|
7
|
+
apiContratosVencendo,
|
|
8
|
+
apiCreateContrato,
|
|
3
9
|
apiCreateContratoServico,
|
|
10
|
+
apiCreateNotaFiscal,
|
|
11
|
+
apiCreatePagamento,
|
|
12
|
+
apiDashboardContratosPorStatus,
|
|
13
|
+
apiDashboardExecucoesPorStatus,
|
|
14
|
+
apiDashboardKpis,
|
|
15
|
+
apiDashboardKpisFinanceiro,
|
|
16
|
+
apiDashboardPagamentosPorMes,
|
|
17
|
+
apiDashboardPipelineOperacional,
|
|
18
|
+
apiDashboardValorPorCentroCusto,
|
|
19
|
+
apiDashboardValorPorFornecedor,
|
|
20
|
+
apiDashboardVencimentosPorMes,
|
|
21
|
+
apiDeletePagamento,
|
|
22
|
+
apiEncerrarContrato,
|
|
23
|
+
apiFindAllAgenda,
|
|
4
24
|
apiFindAllContratoServico,
|
|
25
|
+
apiFindAllContratos,
|
|
26
|
+
apiFindAllNotasFiscais,
|
|
27
|
+
apiFindAllPagamentos,
|
|
28
|
+
apiFindOneContrato,
|
|
5
29
|
apiFindOneContratoServico,
|
|
6
|
-
|
|
30
|
+
apiGerarAgenda,
|
|
31
|
+
apiMarcarExecucaoRealizada,
|
|
32
|
+
apiMarcarPagamentoPago,
|
|
33
|
+
apiReprovarContrato,
|
|
34
|
+
apiReprovarExecucao,
|
|
35
|
+
apiReprovarNotaFiscal,
|
|
36
|
+
apiSubmeterContrato,
|
|
37
|
+
apiTotaisPagamentos,
|
|
38
|
+
apiUpdateContrato,
|
|
39
|
+
apiUpdateContratoServico,
|
|
40
|
+
apiValidarNotaFiscal
|
|
7
41
|
};
|
|
8
42
|
//# 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":";;"}
|
|
@@ -40,6 +40,7 @@ const RangeCalendar = (props: RangeCalendarProps) => {
|
|
|
40
40
|
const setRangeDate = (date: Date) => {
|
|
41
41
|
if (pickedDate instanceof Date) {
|
|
42
42
|
if (isSameDate(date, pickedDate) && !singleDate) {
|
|
43
|
+
onChange([date, date])
|
|
43
44
|
setPickedDate(null)
|
|
44
45
|
setHoveredDay(null)
|
|
45
46
|
return null
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const AGENDA_BASE_URL = '/gestao-servicos/api/gestao-servicos/agenda'
|
|
2
|
+
|
|
3
|
+
const agenda = {
|
|
4
|
+
findMonitor: { endpoint: `${AGENDA_BASE_URL}/find-monitor`, httpMethod: 'post' },
|
|
5
|
+
findOne: { endpoint: AGENDA_BASE_URL, httpMethod: 'get' },
|
|
6
|
+
gerar: { endpoint: `${AGENDA_BASE_URL}/gerar/{contratoId}`, httpMethod: 'post' },
|
|
7
|
+
marcarRealizada: { endpoint: `${AGENDA_BASE_URL}/{id}/realizada`, httpMethod: 'put' },
|
|
8
|
+
aprovar: { endpoint: `${AGENDA_BASE_URL}/{id}/aprovar`, httpMethod: 'put' },
|
|
9
|
+
reprovar: { endpoint: `${AGENDA_BASE_URL}/{id}/reprovar`, httpMethod: 'put' },
|
|
10
|
+
limparPrevistas: { endpoint: `${AGENDA_BASE_URL}/previstas/{contratoId}`, httpMethod: 'delete' },
|
|
11
|
+
executarSemNf: { endpoint: `${AGENDA_BASE_URL}/sem-nf`, httpMethod: 'get' },
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default agenda
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const CONTRATOS_BASE_URL = '/gestao-servicos/api/gestao-servicos/contratos'
|
|
2
|
+
|
|
3
|
+
const contratos = {
|
|
4
|
+
findMonitor: { endpoint: `${CONTRATOS_BASE_URL}/find-monitor`, httpMethod: 'post' },
|
|
5
|
+
findOne: { endpoint: CONTRATOS_BASE_URL, httpMethod: 'get' },
|
|
6
|
+
create: { endpoint: CONTRATOS_BASE_URL, httpMethod: 'post' },
|
|
7
|
+
update: { endpoint: CONTRATOS_BASE_URL, httpMethod: 'put' },
|
|
8
|
+
submeter: { endpoint: `${CONTRATOS_BASE_URL}/{id}/submeter`, httpMethod: 'post' },
|
|
9
|
+
aprovar: { endpoint: `${CONTRATOS_BASE_URL}/{id}/aprovar`, httpMethod: 'post' },
|
|
10
|
+
reprovar: { endpoint: `${CONTRATOS_BASE_URL}/{id}/reprovar`, httpMethod: 'post' },
|
|
11
|
+
encerrar: { endpoint: `${CONTRATOS_BASE_URL}/{id}/encerrar`, httpMethod: 'post' },
|
|
12
|
+
vencendo: { endpoint: `${CONTRATOS_BASE_URL}/vencendo`, httpMethod: 'get' },
|
|
13
|
+
executarReajuste: { endpoint: `${CONTRATOS_BASE_URL}/{id}/reajustar`, httpMethod: 'post' },
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default contratos
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const DASHBOARD_BASE_URL = '/gestao-servicos/api/gestao-servicos/dashboard'
|
|
2
|
+
|
|
3
|
+
const dashboard = {
|
|
4
|
+
kpis: { endpoint: `${DASHBOARD_BASE_URL}/kpis`, httpMethod: 'get' },
|
|
5
|
+
kpisFinanceiro: { endpoint: `${DASHBOARD_BASE_URL}/kpis-financeiro`, httpMethod: 'get' },
|
|
6
|
+
contratosPorStatus: { endpoint: `${DASHBOARD_BASE_URL}/contratos-por-status`, httpMethod: 'get' },
|
|
7
|
+
valorPorFornecedor: { endpoint: `${DASHBOARD_BASE_URL}/valor-por-fornecedor`, httpMethod: 'get' },
|
|
8
|
+
execucoesPorStatus: { endpoint: `${DASHBOARD_BASE_URL}/execucoes-por-status`, httpMethod: 'get' },
|
|
9
|
+
vencimentosPorMes: { endpoint: `${DASHBOARD_BASE_URL}/vencimentos-por-mes`, httpMethod: 'get' },
|
|
10
|
+
pipelineOperacional: { endpoint: `${DASHBOARD_BASE_URL}/pipeline`, httpMethod: 'get' },
|
|
11
|
+
pagamentosPorMes: { endpoint: `${DASHBOARD_BASE_URL}/pagamentos-por-mes`, httpMethod: 'get' },
|
|
12
|
+
valorPorCentroCusto: { endpoint: `${DASHBOARD_BASE_URL}/valor-por-centro-custo`, httpMethod: 'get' },
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default dashboard
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const NOTAS_FISCAIS_BASE_URL = '/gestao-servicos/api/gestao-servicos/notas-fiscais'
|
|
2
|
+
|
|
3
|
+
const notasFiscais = {
|
|
4
|
+
findMonitor: { endpoint: `${NOTAS_FISCAIS_BASE_URL}/find-monitor`, httpMethod: 'post' },
|
|
5
|
+
findOne: { endpoint: NOTAS_FISCAIS_BASE_URL, httpMethod: 'get' },
|
|
6
|
+
create: { endpoint: NOTAS_FISCAIS_BASE_URL, httpMethod: 'post' },
|
|
7
|
+
validar: { endpoint: `${NOTAS_FISCAIS_BASE_URL}/{id}/validar`, httpMethod: 'put' },
|
|
8
|
+
reprovar: { endpoint: `${NOTAS_FISCAIS_BASE_URL}/{id}/reprovar`, httpMethod: 'put' },
|
|
9
|
+
vincularExecucoes: { endpoint: `${NOTAS_FISCAIS_BASE_URL}/{id}/execucoes`, httpMethod: 'post' },
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default notasFiscais
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const PAGAMENTOS_BASE_URL = '/gestao-servicos/api/gestao-servicos/pagamentos'
|
|
2
|
+
|
|
3
|
+
const pagamentos = {
|
|
4
|
+
findMonitor: { endpoint: `${PAGAMENTOS_BASE_URL}/find-monitor`, httpMethod: 'post' },
|
|
5
|
+
findOne: { endpoint: PAGAMENTOS_BASE_URL, httpMethod: 'get' },
|
|
6
|
+
create: { endpoint: PAGAMENTOS_BASE_URL, httpMethod: 'post' },
|
|
7
|
+
aprovar: { endpoint: `${PAGAMENTOS_BASE_URL}/{id}/aprovar`, httpMethod: 'put' },
|
|
8
|
+
reprovar: { endpoint: `${PAGAMENTOS_BASE_URL}/{id}/reprovar`, httpMethod: 'put' },
|
|
9
|
+
marcarPago: { endpoint: `${PAGAMENTOS_BASE_URL}/{id}/pagar`, httpMethod: 'put' },
|
|
10
|
+
delete: { endpoint: PAGAMENTOS_BASE_URL, httpMethod: 'delete' },
|
|
11
|
+
totais: { endpoint: `${PAGAMENTOS_BASE_URL}/totais/{nfId}`, httpMethod: 'get' },
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default pagamentos
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const PLANO_PAGAMENTO_BASE_URL = '/gestao-servicos/api/gestao-servicos/contratos/{contratoId}/plano-pagamento'
|
|
2
|
+
|
|
3
|
+
const planoPagamento = {
|
|
4
|
+
listar: { endpoint: PLANO_PAGAMENTO_BASE_URL, httpMethod: 'get' },
|
|
5
|
+
adicionar: { endpoint: PLANO_PAGAMENTO_BASE_URL, httpMethod: 'post' },
|
|
6
|
+
excluir: { endpoint: `${PLANO_PAGAMENTO_BASE_URL}/{planoId}`, httpMethod: 'delete' },
|
|
7
|
+
limpar: { endpoint: PLANO_PAGAMENTO_BASE_URL, httpMethod: 'delete' },
|
|
8
|
+
atualizarCondicao: { endpoint: `${PLANO_PAGAMENTO_BASE_URL}/condicao`, httpMethod: 'put' },
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default planoPagamento
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import contratoServico from
|
|
1
|
+
import contratoServico from './config/contratoServico'
|
|
2
|
+
import contratos from './config/contratos'
|
|
3
|
+
import agenda from './config/agenda'
|
|
4
|
+
import notasFiscais from './config/notasFiscais'
|
|
5
|
+
import pagamentos from './config/pagamentos'
|
|
6
|
+
import planoPagamento from './config/planoPagamento'
|
|
7
|
+
import dashboard from './config/dashboard'
|
|
2
8
|
|
|
3
9
|
const gestaoServicos = {
|
|
4
10
|
contratoServico: contratoServico,
|
|
11
|
+
contratos: contratos,
|
|
12
|
+
agenda: agenda,
|
|
13
|
+
notasFiscais: notasFiscais,
|
|
14
|
+
pagamentos: pagamentos,
|
|
15
|
+
planoPagamento: planoPagamento,
|
|
16
|
+
dashboard: dashboard,
|
|
5
17
|
}
|
|
6
18
|
|
|
7
19
|
export default gestaoServicos
|