@orbe-agro/client-core 5.6.340 → 5.6.341

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.
Files changed (37) hide show
  1. package/dist/@ecme/assets/styles/app.css +8 -0
  2. package/dist/@ecme/assets/styles/tailwind/index.css +8 -0
  3. package/dist/@ecme/components/template/Footer.js +1 -1
  4. package/dist/@types/base/configs/endpoints.config/compras/compras.d.ts +16 -0
  5. package/dist/@types/base/configs/endpoints.config/compras/compras.d.ts.map +1 -1
  6. package/dist/@types/base/configs/endpoints.config/compras/config/itemOrdemCompra.d.ts +12 -0
  7. package/dist/@types/base/configs/endpoints.config/compras/config/itemOrdemCompra.d.ts.map +1 -1
  8. package/dist/@types/base/configs/endpoints.config/compras/config/ordemCompra.d.ts +4 -0
  9. package/dist/@types/base/configs/endpoints.config/compras/config/ordemCompra.d.ts.map +1 -1
  10. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +16 -0
  11. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
  12. package/dist/@types/base/services/modules/compras/ordemCompra/ItemOrdemCompraService.d.ts +6 -0
  13. package/dist/@types/base/services/modules/compras/ordemCompra/ItemOrdemCompraService.d.ts.map +1 -1
  14. package/dist/@types/base/services/modules/compras/ordemCompra/OrdemCompraService.d.ts +4 -0
  15. package/dist/@types/base/services/modules/compras/ordemCompra/OrdemCompraService.d.ts.map +1 -1
  16. package/dist/@types/base/utils/colorClassName/badge.d.ts.map +1 -1
  17. package/dist/base/assets/styles/init.css +8 -0
  18. package/dist/base/configs/endpoints.config/compras/config/itemOrdemCompra.js +4 -1
  19. package/dist/base/configs/endpoints.config/compras/config/itemOrdemCompra.js.map +1 -1
  20. package/dist/base/configs/endpoints.config/compras/config/ordemCompra.js +2 -1
  21. package/dist/base/configs/endpoints.config/compras/config/ordemCompra.js.map +1 -1
  22. package/dist/base/index.js +6 -2
  23. package/dist/base/services/index.js +6 -2
  24. package/dist/base/services/modules/compras/index.js +6 -2
  25. package/dist/base/services/modules/compras/ordemCompra/ItemOrdemCompraService.js +23 -1
  26. package/dist/base/services/modules/compras/ordemCompra/ItemOrdemCompraService.js.map +1 -1
  27. package/dist/base/services/modules/compras/ordemCompra/OrdemCompraService.js +8 -0
  28. package/dist/base/services/modules/compras/ordemCompra/OrdemCompraService.js.map +1 -1
  29. package/dist/base/services/modules/index.js +6 -2
  30. package/dist/base/utils/colorClassName/badge.js +2 -0
  31. package/dist/base/utils/colorClassName/badge.js.map +1 -1
  32. package/lib/base/configs/endpoints.config/compras/config/itemOrdemCompra.ts +4 -1
  33. package/lib/base/configs/endpoints.config/compras/config/ordemCompra.ts +1 -0
  34. package/lib/base/services/modules/compras/ordemCompra/ItemOrdemCompraService.ts +22 -0
  35. package/lib/base/services/modules/compras/ordemCompra/OrdemCompraService.ts +8 -0
  36. package/lib/base/utils/colorClassName/badge.ts +2 -0
  37. package/package.json +1 -1
@@ -6543,6 +6543,10 @@ video {
6543
6543
  --tw-bg-opacity: 1;
6544
6544
  background-color: rgb(251 191 36 / var(--tw-bg-opacity, 1));
6545
6545
  }
6546
+ .bg-amber-50{
6547
+ --tw-bg-opacity: 1;
6548
+ background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
6549
+ }
6546
6550
  .bg-amber-500{
6547
6551
  --tw-bg-opacity: 1;
6548
6552
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
@@ -7289,6 +7293,10 @@ video {
7289
7293
  --tw-text-opacity: 1;
7290
7294
  color: rgb(217 119 6 / var(--tw-text-opacity, 1));
7291
7295
  }
7296
+ .text-amber-700{
7297
+ --tw-text-opacity: 1;
7298
+ color: rgb(180 83 9 / var(--tw-text-opacity, 1));
7299
+ }
7292
7300
  .text-black{
7293
7301
  --tw-text-opacity: 1;
7294
7302
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
@@ -2622,6 +2622,10 @@ video {
2622
2622
  --tw-bg-opacity: 1;
2623
2623
  background-color: rgb(251 191 36 / var(--tw-bg-opacity, 1));
2624
2624
  }
2625
+ .bg-amber-50 {
2626
+ --tw-bg-opacity: 1;
2627
+ background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
2628
+ }
2625
2629
  .bg-amber-500 {
2626
2630
  --tw-bg-opacity: 1;
2627
2631
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
@@ -3368,6 +3372,10 @@ video {
3368
3372
  --tw-text-opacity: 1;
3369
3373
  color: rgb(217 119 6 / var(--tw-text-opacity, 1));
3370
3374
  }
3375
+ .text-amber-700 {
3376
+ --tw-text-opacity: 1;
3377
+ color: rgb(180 83 9 / var(--tw-text-opacity, 1));
3378
+ }
3371
3379
  .text-black {
3372
3380
  --tw-text-opacity: 1;
3373
3381
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
@@ -3,7 +3,7 @@ import Container from "../shared/Container.js";
3
3
  import classNames from "../../utils/classNames.js";
4
4
  import { APP_NAME } from "../../constants/app.constant.js";
5
5
  import { PAGE_CONTAINER_GUTTER_X } from "../../constants/theme.constant.js";
6
- const version = true ? "5.6.340" : "0.0.0";
6
+ const version = true ? "5.6.341" : "0.0.0";
7
7
  const FooterContent = () => {
8
8
  return /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-auto items-center justify-between", children: [
9
9
  /* @__PURE__ */ jsxs("span", { children: [
@@ -130,6 +130,10 @@ declare const compras: {
130
130
  endpoint: string;
131
131
  httpMethod: string;
132
132
  };
133
+ encerrar: {
134
+ endpoint: string;
135
+ httpMethod: string;
136
+ };
133
137
  };
134
138
  historicoAcao: {
135
139
  findHistoricoAcaoByIdEntidade: {
@@ -190,6 +194,18 @@ declare const compras: {
190
194
  endpoint: string;
191
195
  httpMethod: string;
192
196
  };
197
+ findHistoricoItensCanceladosByOrdemCompraId: {
198
+ endpoint: string;
199
+ httpMethod: string;
200
+ };
201
+ encerrar: {
202
+ endpoint: string;
203
+ httpMethod: string;
204
+ };
205
+ findHistoricoItensEncerradosByOrdemCompraId: {
206
+ endpoint: string;
207
+ httpMethod: string;
208
+ };
193
209
  };
194
210
  };
195
211
  export default compras;
@@ -1 +1 @@
1
- {"version":3,"file":"compras.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/compras/compras.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWZ,CAAA;AAED,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"compras.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/compras/compras.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWZ,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -3,6 +3,18 @@ declare const itemOrdemCompra: {
3
3
  endpoint: string;
4
4
  httpMethod: string;
5
5
  };
6
+ findHistoricoItensCanceladosByOrdemCompraId: {
7
+ endpoint: string;
8
+ httpMethod: string;
9
+ };
10
+ encerrar: {
11
+ endpoint: string;
12
+ httpMethod: string;
13
+ };
14
+ findHistoricoItensEncerradosByOrdemCompraId: {
15
+ endpoint: string;
16
+ httpMethod: string;
17
+ };
6
18
  };
7
19
  export default itemOrdemCompra;
8
20
  //# sourceMappingURL=itemOrdemCompra.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"itemOrdemCompra.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/compras/config/itemOrdemCompra.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe;;;;;CAEpB,CAAA;AAED,eAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"itemOrdemCompra.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/compras/config/itemOrdemCompra.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;CAKpB,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -23,6 +23,10 @@ declare const ordemCompra: {
23
23
  endpoint: string;
24
24
  httpMethod: string;
25
25
  };
26
+ encerrar: {
27
+ endpoint: string;
28
+ httpMethod: string;
29
+ };
26
30
  };
27
31
  export default ordemCompra;
28
32
  //# sourceMappingURL=ordemCompra.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ordemCompra.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/compras/config/ordemCompra.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"ordemCompra.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/compras/config/ordemCompra.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1519,6 +1519,10 @@ declare const endpointNavigationConfig: {
1519
1519
  endpoint: string;
1520
1520
  httpMethod: string;
1521
1521
  };
1522
+ encerrar: {
1523
+ endpoint: string;
1524
+ httpMethod: string;
1525
+ };
1522
1526
  };
1523
1527
  historicoAcao: {
1524
1528
  findHistoricoAcaoByIdEntidade: {
@@ -1579,6 +1583,18 @@ declare const endpointNavigationConfig: {
1579
1583
  endpoint: string;
1580
1584
  httpMethod: string;
1581
1585
  };
1586
+ findHistoricoItensCanceladosByOrdemCompraId: {
1587
+ endpoint: string;
1588
+ httpMethod: string;
1589
+ };
1590
+ encerrar: {
1591
+ endpoint: string;
1592
+ httpMethod: string;
1593
+ };
1594
+ findHistoricoItensEncerradosByOrdemCompraId: {
1595
+ endpoint: string;
1596
+ httpMethod: string;
1597
+ };
1582
1598
  };
1583
1599
  };
1584
1600
  originacao: {
@@ -1 +1 @@
1
- {"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AA2DA,eAAO,MAAM,SAAS,SAAS,CAAA;AAE/B,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2D7B,CAAA;AAED,eAAe,wBAAwB,CAAA"}
@@ -1,2 +1,8 @@
1
1
  export declare function apiCancelar(body: any): Promise<any>;
2
+ export declare function apiEncerrarItemOrdemCompra(body: {
3
+ id: number;
4
+ justificativa: string;
5
+ }): Promise<any>;
6
+ export declare function apiFindHistoricoItensEncerradosByOrdemCompraId(idOrdemCompra: number): Promise<any>;
7
+ export declare function apiFindHistoricoItensCanceladosByOrdemCompraId(idOrdemCompra: number): Promise<any>;
2
8
  //# sourceMappingURL=ItemOrdemCompraService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ItemOrdemCompraService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/compras/ordemCompra/ItemOrdemCompraService.ts"],"names":[],"mappings":"AAKA,wBAAsB,WAAW,CAAC,IAAI,KAAA,gBAMrC"}
1
+ {"version":3,"file":"ItemOrdemCompraService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/compras/ordemCompra/ItemOrdemCompraService.ts"],"names":[],"mappings":"AAKA,wBAAsB,WAAW,CAAC,IAAI,KAAA,gBAMrC;AAED,wBAAsB,0BAA0B,CAAC,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,gBAM3F;AAED,wBAAsB,8CAA8C,CAAC,aAAa,EAAE,MAAM,gBAKzF;AAED,wBAAsB,8CAA8C,CAAC,aAAa,EAAE,MAAM,gBAKzF"}
@@ -6,5 +6,9 @@ export declare function apiEditarValorOrdemCompra(id: number, itens: {
6
6
  idItem: number;
7
7
  valorUnitario: number;
8
8
  }[]): Promise<any>;
9
+ export declare function apiEncerrarOrdemCompra(body: {
10
+ id: number;
11
+ justificativa: string;
12
+ }): Promise<any>;
9
13
  export declare function apiFindOrdensComprasNfeByIdsFornecedores(data: any): Promise<any>;
10
14
  //# sourceMappingURL=OrdemCompraService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OrdemCompraService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/compras/ordemCompra/OrdemCompraService.ts"],"names":[],"mappings":"AAKA,wBAAsB,yBAAyB,CAAC,IAAI,KAAA,gBAMnD;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,gBAKrD;AAED,wBAAsB,oBAAoB,CAAC,IAAI,KAAA,gBAM9C;AAED,wBAAsB,yBAAyB,CAAC,IAAI,KAAA,gBAMnD;AAED,wBAAsB,yBAAyB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,gBAM7G;AAED,wBAAsB,wCAAwC,CAAC,IAAI,KAAA,gBAMlE"}
1
+ {"version":3,"file":"OrdemCompraService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/compras/ordemCompra/OrdemCompraService.ts"],"names":[],"mappings":"AAKA,wBAAsB,yBAAyB,CAAC,IAAI,KAAA,gBAMnD;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,gBAKrD;AAED,wBAAsB,oBAAoB,CAAC,IAAI,KAAA,gBAM9C;AAED,wBAAsB,yBAAyB,CAAC,IAAI,KAAA,gBAMnD;AAED,wBAAsB,yBAAyB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,EAAE,gBAM7G;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,gBAMvF;AAED,wBAAsB,wCAAwC,CAAC,IAAI,KAAA,gBAMlE"}
@@ -1 +1 @@
1
- {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../../lib/base/utils/colorClassName/badge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkErD,CAAC"}
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../../lib/base/utils/colorClassName/badge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAoErD,CAAC"}
@@ -6543,6 +6543,10 @@ video {
6543
6543
  --tw-bg-opacity: 1;
6544
6544
  background-color: rgb(251 191 36 / var(--tw-bg-opacity, 1));
6545
6545
  }
6546
+ .bg-amber-50{
6547
+ --tw-bg-opacity: 1;
6548
+ background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
6549
+ }
6546
6550
  .bg-amber-500{
6547
6551
  --tw-bg-opacity: 1;
6548
6552
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
@@ -7289,6 +7293,10 @@ video {
7289
7293
  --tw-text-opacity: 1;
7290
7294
  color: rgb(217 119 6 / var(--tw-text-opacity, 1));
7291
7295
  }
7296
+ .text-amber-700{
7297
+ --tw-text-opacity: 1;
7298
+ color: rgb(180 83 9 / var(--tw-text-opacity, 1));
7299
+ }
7292
7300
  .text-black{
7293
7301
  --tw-text-opacity: 1;
7294
7302
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
@@ -1,6 +1,9 @@
1
1
  const ITEM_ORDEM_COMPRA_BASE_URL = "/compras/api/item-ordem-compra";
2
2
  const itemOrdemCompra = {
3
- cancelar: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/cancelar`, httpMethod: "post" }
3
+ cancelar: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/cancelar`, httpMethod: "post" },
4
+ findHistoricoItensCanceladosByOrdemCompraId: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/ordem-compra/{idOrdemCompra}/historico-cancelados`, httpMethod: "get" },
5
+ encerrar: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/encerrar`, httpMethod: "post" },
6
+ findHistoricoItensEncerradosByOrdemCompraId: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/ordem-compra/{idOrdemCompra}/historico-encerrados`, httpMethod: "get" }
4
7
  };
5
8
  export {
6
9
  itemOrdemCompra as default
@@ -1 +1 @@
1
- {"version":3,"file":"itemOrdemCompra.js","sources":["../../../../../../lib/base/configs/endpoints.config/compras/config/itemOrdemCompra.ts"],"sourcesContent":["const ITEM_ORDEM_COMPRA_BASE_URL = '/compras/api/item-ordem-compra'\n\nconst itemOrdemCompra = {\n cancelar: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/cancelar`, httpMethod: 'post' }\n}\n\nexport default itemOrdemCompra"],"names":[],"mappings":"AAAA,MAAM,6BAA6B;AAEnC,MAAM,kBAAkB;AAAA,EACpB,UAAU,EAAE,UAAU,GAAG,0BAA0B,aAAa,YAAY,OAAA;AAChF;"}
1
+ {"version":3,"file":"itemOrdemCompra.js","sources":["../../../../../../lib/base/configs/endpoints.config/compras/config/itemOrdemCompra.ts"],"sourcesContent":["const ITEM_ORDEM_COMPRA_BASE_URL = '/compras/api/item-ordem-compra'\n\nconst itemOrdemCompra = {\n cancelar: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/cancelar`, httpMethod: 'post' },\n findHistoricoItensCanceladosByOrdemCompraId: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/ordem-compra/{idOrdemCompra}/historico-cancelados`, httpMethod: 'get' },\n encerrar: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/encerrar`, httpMethod: 'post' },\n findHistoricoItensEncerradosByOrdemCompraId: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/ordem-compra/{idOrdemCompra}/historico-encerrados`, httpMethod: 'get' }\n}\n\nexport default itemOrdemCompra"],"names":[],"mappings":"AAAA,MAAM,6BAA6B;AAEnC,MAAM,kBAAkB;AAAA,EACpB,UAAU,EAAE,UAAU,GAAG,0BAA0B,aAAa,YAAY,OAAA;AAAA,EAC5E,6CAA6C,EAAE,UAAU,GAAG,0BAA0B,sDAAsD,YAAY,MAAA;AAAA,EACxJ,UAAU,EAAE,UAAU,GAAG,0BAA0B,aAAa,YAAY,OAAA;AAAA,EAC5E,6CAA6C,EAAE,UAAU,GAAG,0BAA0B,sDAAsD,YAAY,MAAA;AAC5J;"}
@@ -5,7 +5,8 @@ const ordemCompra = {
5
5
  update: { endpoint: ORDEM_COMPRA_BASE_URL, httpMethod: "put" },
6
6
  executeAcaoOrdemCompra: { endpoint: `${ORDEM_COMPRA_BASE_URL}/execute-acao`, httpMethod: "post" },
7
7
  findOrdensComprasNfeByIdsFornecedores: { endpoint: `${ORDEM_COMPRA_BASE_URL}/find-ordens-compras-by-ids-fornecedores`, httpMethod: "post" },
8
- editarValor: { endpoint: ORDEM_COMPRA_BASE_URL, httpMethod: "patch" }
8
+ editarValor: { endpoint: ORDEM_COMPRA_BASE_URL, httpMethod: "patch" },
9
+ encerrar: { endpoint: `${ORDEM_COMPRA_BASE_URL}/encerrar`, httpMethod: "post" }
9
10
  };
10
11
  export {
11
12
  ordemCompra as default
@@ -1 +1 @@
1
- {"version":3,"file":"ordemCompra.js","sources":["../../../../../../lib/base/configs/endpoints.config/compras/config/ordemCompra.ts"],"sourcesContent":["const ORDEM_COMPRA_BASE_URL = '/compras/api/ordem-compra'\n\nconst ordemCompra = {\n findMonitor: { endpoint: `${ORDEM_COMPRA_BASE_URL}/find-monitor`, httpMethod: 'post' },\n findOne: { endpoint: ORDEM_COMPRA_BASE_URL, httpMethod: 'get' },\n update: { endpoint: ORDEM_COMPRA_BASE_URL, httpMethod: 'put' },\n executeAcaoOrdemCompra: { endpoint: `${ORDEM_COMPRA_BASE_URL}/execute-acao`, httpMethod: 'post' },\n findOrdensComprasNfeByIdsFornecedores: { endpoint: `${ORDEM_COMPRA_BASE_URL}/find-ordens-compras-by-ids-fornecedores`, httpMethod: 'post' },\n editarValor: { endpoint: ORDEM_COMPRA_BASE_URL, httpMethod: 'patch' },\n}\n\nexport default ordemCompra"],"names":[],"mappings":"AAAA,MAAM,wBAAwB;AAE9B,MAAM,cAAc;AAAA,EAChB,aAAa,EAAE,UAAU,GAAG,qBAAqB,iBAAiB,YAAY,OAAA;AAAA,EAC9E,SAAS,EAAE,UAAU,uBAAuB,YAAY,MAAA;AAAA,EACxD,QAAQ,EAAE,UAAU,uBAAuB,YAAY,MAAA;AAAA,EACvD,wBAAwB,EAAE,UAAU,GAAG,qBAAqB,iBAAiB,YAAY,OAAA;AAAA,EACzF,uCAAuC,EAAE,UAAU,GAAG,qBAAqB,4CAA4C,YAAY,OAAA;AAAA,EACnI,aAAa,EAAE,UAAU,uBAAuB,YAAY,QAAA;AAChE;"}
1
+ {"version":3,"file":"ordemCompra.js","sources":["../../../../../../lib/base/configs/endpoints.config/compras/config/ordemCompra.ts"],"sourcesContent":["const ORDEM_COMPRA_BASE_URL = '/compras/api/ordem-compra'\n\nconst ordemCompra = {\n findMonitor: { endpoint: `${ORDEM_COMPRA_BASE_URL}/find-monitor`, httpMethod: 'post' },\n findOne: { endpoint: ORDEM_COMPRA_BASE_URL, httpMethod: 'get' },\n update: { endpoint: ORDEM_COMPRA_BASE_URL, httpMethod: 'put' },\n executeAcaoOrdemCompra: { endpoint: `${ORDEM_COMPRA_BASE_URL}/execute-acao`, httpMethod: 'post' },\n findOrdensComprasNfeByIdsFornecedores: { endpoint: `${ORDEM_COMPRA_BASE_URL}/find-ordens-compras-by-ids-fornecedores`, httpMethod: 'post' },\n editarValor: { endpoint: ORDEM_COMPRA_BASE_URL, httpMethod: 'patch' },\n encerrar: { endpoint: `${ORDEM_COMPRA_BASE_URL}/encerrar`, httpMethod: 'post' },\n}\n\nexport default ordemCompra"],"names":[],"mappings":"AAAA,MAAM,wBAAwB;AAE9B,MAAM,cAAc;AAAA,EAChB,aAAa,EAAE,UAAU,GAAG,qBAAqB,iBAAiB,YAAY,OAAA;AAAA,EAC9E,SAAS,EAAE,UAAU,uBAAuB,YAAY,MAAA;AAAA,EACxD,QAAQ,EAAE,UAAU,uBAAuB,YAAY,MAAA;AAAA,EACvD,wBAAwB,EAAE,UAAU,GAAG,qBAAqB,iBAAiB,YAAY,OAAA;AAAA,EACzF,uCAAuC,EAAE,UAAU,GAAG,qBAAqB,4CAA4C,YAAY,OAAA;AAAA,EACnI,aAAa,EAAE,UAAU,uBAAuB,YAAY,QAAA;AAAA,EAC5D,UAAU,EAAE,UAAU,GAAG,qBAAqB,aAAa,YAAY,OAAA;AAC3E;"}
@@ -110,7 +110,7 @@ import { apiBuscarEntradaGraos } from "./services/modules/bayer/registroEntradaB
110
110
  import { apiBuscarPendencias, apiBuscarPendenciasBayer, apiBuscarStatusConsumo, apiBuscarStatusFixacao } from "./services/modules/bayer/pendenciaBayerService.js";
111
111
  import { apiCancelContratoCompraGraos, apiCreateContratoCompraGraos, apiEditContratoCompraGraos, apiFindAllContratoCompraGraos, apiFindAllContratoCompraGraosExport, apiFindByIdContratoCompraGraos, apiFindHistoricoByIdContratoCompraGraos, apiFindSaldoByIdContratoCompraGraos, apiGeneratePdfContratoCompraGraos, apiUpdateStatusContratoCompraGraos, apiUploadContrato } from "./services/modules/originacao/contratoCompraGraos/contratoCompraGraosService.js";
112
112
  import { apiCancelPreContrato, apiCreatePreContrato, apiEditPreContrato, apiFindAllPreContrato, apiFindByIdPreContrato, apiFindHistoricoByIdPreContrato, apiUpdateStatusPreContrato } from "./services/modules/originacao/preContrato/preContratoService.js";
113
- import { apiCancelar } from "./services/modules/compras/ordemCompra/ItemOrdemCompraService.js";
113
+ import { apiCancelar, apiEncerrarItemOrdemCompra, apiFindHistoricoItensCanceladosByOrdemCompraId, apiFindHistoricoItensEncerradosByOrdemCompraId } from "./services/modules/compras/ordemCompra/ItemOrdemCompraService.js";
114
114
  import { apiCancelarInsumosItemCompra, apiFindMonitorInsumosItemCompra } from "./services/modules/insumos/itemCompra/ItemCompraService.js";
115
115
  import { apiCatalogoRelatorioDinamico, apiConsultarRelatorioDinamico, apiCriarRelatorioDinamico, apiEditarRelatorioDinamico, apiExcluirRelatorioDinamico, apiExportarRelatorioDinamico, apiListarRelatoriosDinamicos, apiObterRelatorioDinamico } from "./services/modules/originacao/relatoriosDinamicos/relatoriosDinamicosService.js";
116
116
  import { apiChangeStatusTarefasAgendadas, apiFetchUserFuncionalidades, apiFetchUserFuncionalidadesDetail, apiFetchUserVinculosUsuario, apiGetExecuteTarefasAgendadas, apiGetRoles, apiGetRolesByFuncionalidadeUrl, apiGetRolesByUserId, apiGetTarefasAgendadas, apiGetUsers } from "./services/modules/AdmService.js";
@@ -132,7 +132,7 @@ import { apiCreateTarefaLiquidacao, apiDeleteTarefaLiquidacao, apiFindAllTarefaL
132
132
  import { apiCreateVinculoOperacaoLiquidacao, apiFindAllVinculoOperacaoLiquidacao, apiFindByIdVinculoOperacaoLiquidacao, apiUpdateVinculoOperacaoLiquidacao } from "./services/modules/originacao/vinculoOperacaoLiquidacao/vinculoOperacaoLiquidacaoService.js";
133
133
  import { apiCreateVinculoTipoFiscalTipoFreteOperacao, apiDesativarVinculoTipoFiscalTipoFreteOperacao, apiFindAllVinculoTipoFiscalTipoFreteOperacao, apiFindByIdVinculoTipoFiscalTipoFreteOperacao, apiUpdateVinculoTipoFiscalTipoFreteOperacao } from "./services/modules/originacao/vinculoTipoFiscalTipoFreteOperacao/vinculoTipoFiscalTipoFreteOperacaoService.js";
134
134
  import { apiDelete, apiGet, apiPost, apiPut } from "./services/http.js";
135
- import { apiEditarValorOrdemCompra, apiExecuteAcaoOrdemCompra, apiFindMonitorOrdemCompra, apiFindOneOrdemCompra, apiFindOrdensComprasNfeByIdsFornecedores, apiUpdateOrdemCompra } from "./services/modules/compras/ordemCompra/OrdemCompraService.js";
135
+ import { apiEditarValorOrdemCompra, apiEncerrarOrdemCompra, apiExecuteAcaoOrdemCompra, apiFindMonitorOrdemCompra, apiFindOneOrdemCompra, apiFindOrdensComprasNfeByIdsFornecedores, apiUpdateOrdemCompra } from "./services/modules/compras/ordemCompra/OrdemCompraService.js";
136
136
  import { apiExecuteAcaoCotacao, apiFindCotacoesEmProcessamento, apiFindMonitorCotacao, apiFindOneCotacao, apiUpdateCotacao } from "./services/modules/compras/cotacao/CotacaoService.js";
137
137
  import { apiExecuteAcaoItemRequisicaoCompra, apiFindDetalhesRecebimentoMercadoria } from "./services/modules/compras/itemRequisicaoCompra/ItemRequisicaoCompraService.js";
138
138
  import { apiFinalizarCancelamentoRetencao, apiFindAllRetencao } from "./services/modules/bayer/retencaoBayerService.js";
@@ -542,6 +542,8 @@ export {
542
542
  apiEditPreContrato,
543
543
  apiEditarRelatorioDinamico,
544
544
  apiEditarValorOrdemCompra,
545
+ apiEncerrarItemOrdemCompra,
546
+ apiEncerrarOrdemCompra,
545
547
  apiEnviarAprovacaoLancamentoResultadoPpr,
546
548
  apiEnviarEntregaBayer,
547
549
  apiEnviarEntregaBayerLote,
@@ -701,6 +703,8 @@ export {
701
703
  apiFindHistoricoByIdContratoCompraGraos,
702
704
  apiFindHistoricoByIdPreContrato,
703
705
  apiFindHistoricoByTipoAcao,
706
+ apiFindHistoricoItensCanceladosByOrdemCompraId,
707
+ apiFindHistoricoItensEncerradosByOrdemCompraId,
704
708
  apiFindHistoricosMovimentacao,
705
709
  apiFindInventarioAtivosAtivo,
706
710
  apiFindLimiteCredito,
@@ -103,7 +103,7 @@ import { apiBuscarEntradaGraos } from "./modules/bayer/registroEntradaBayerServi
103
103
  import { apiBuscarPendencias, apiBuscarPendenciasBayer, apiBuscarStatusConsumo, apiBuscarStatusFixacao } from "./modules/bayer/pendenciaBayerService.js";
104
104
  import { apiCancelContratoCompraGraos, apiCreateContratoCompraGraos, apiEditContratoCompraGraos, apiFindAllContratoCompraGraos, apiFindAllContratoCompraGraosExport, apiFindByIdContratoCompraGraos, apiFindHistoricoByIdContratoCompraGraos, apiFindSaldoByIdContratoCompraGraos, apiGeneratePdfContratoCompraGraos, apiUpdateStatusContratoCompraGraos, apiUploadContrato } from "./modules/originacao/contratoCompraGraos/contratoCompraGraosService.js";
105
105
  import { apiCancelPreContrato, apiCreatePreContrato, apiEditPreContrato, apiFindAllPreContrato, apiFindByIdPreContrato, apiFindHistoricoByIdPreContrato, apiUpdateStatusPreContrato } from "./modules/originacao/preContrato/preContratoService.js";
106
- import { apiCancelar } from "./modules/compras/ordemCompra/ItemOrdemCompraService.js";
106
+ import { apiCancelar, apiEncerrarItemOrdemCompra, apiFindHistoricoItensCanceladosByOrdemCompraId, apiFindHistoricoItensEncerradosByOrdemCompraId } from "./modules/compras/ordemCompra/ItemOrdemCompraService.js";
107
107
  import { apiCancelarInsumosItemCompra, apiFindMonitorInsumosItemCompra } from "./modules/insumos/itemCompra/ItemCompraService.js";
108
108
  import { apiCatalogoRelatorioDinamico, apiConsultarRelatorioDinamico, apiCriarRelatorioDinamico, apiEditarRelatorioDinamico, apiExcluirRelatorioDinamico, apiExportarRelatorioDinamico, apiListarRelatoriosDinamicos, apiObterRelatorioDinamico } from "./modules/originacao/relatoriosDinamicos/relatoriosDinamicosService.js";
109
109
  import { apiCountPartidasVencidas, apiFindPartidasAbertas, apiFindPartidasCreditos, apiFindPartidasPagas, apiFindPartidasVencidas } from "./modules/sap/partidas/PartidasService.js";
@@ -122,7 +122,7 @@ import { apiCreateRoyaltiesBusinessPartner, apiGetRoyaltiesBusinessPartner } fro
122
122
  import { apiCreateTarefaLiquidacao, apiDeleteTarefaLiquidacao, apiFindAllTarefaLiquidacao, apiFindByIdTarefaLiquidacao, apiUpdateTarefaLiquidacao } from "./modules/originacao/tarefaLiquidacao/tarefaLiquidacaoService.js";
123
123
  import { apiCreateVinculoOperacaoLiquidacao, apiFindAllVinculoOperacaoLiquidacao, apiFindByIdVinculoOperacaoLiquidacao, apiUpdateVinculoOperacaoLiquidacao } from "./modules/originacao/vinculoOperacaoLiquidacao/vinculoOperacaoLiquidacaoService.js";
124
124
  import { apiCreateVinculoTipoFiscalTipoFreteOperacao, apiDesativarVinculoTipoFiscalTipoFreteOperacao, apiFindAllVinculoTipoFiscalTipoFreteOperacao, apiFindByIdVinculoTipoFiscalTipoFreteOperacao, apiUpdateVinculoTipoFiscalTipoFreteOperacao } from "./modules/originacao/vinculoTipoFiscalTipoFreteOperacao/vinculoTipoFiscalTipoFreteOperacaoService.js";
125
- import { apiEditarValorOrdemCompra, apiExecuteAcaoOrdemCompra, apiFindMonitorOrdemCompra, apiFindOneOrdemCompra, apiFindOrdensComprasNfeByIdsFornecedores, apiUpdateOrdemCompra } from "./modules/compras/ordemCompra/OrdemCompraService.js";
125
+ import { apiEditarValorOrdemCompra, apiEncerrarOrdemCompra, apiExecuteAcaoOrdemCompra, apiFindMonitorOrdemCompra, apiFindOneOrdemCompra, apiFindOrdensComprasNfeByIdsFornecedores, apiUpdateOrdemCompra } from "./modules/compras/ordemCompra/OrdemCompraService.js";
126
126
  import { apiExecuteAcaoCotacao, apiFindCotacoesEmProcessamento, apiFindMonitorCotacao, apiFindOneCotacao, apiUpdateCotacao } from "./modules/compras/cotacao/CotacaoService.js";
127
127
  import { apiExecuteAcaoItemRequisicaoCompra, apiFindDetalhesRecebimentoMercadoria } from "./modules/compras/itemRequisicaoCompra/ItemRequisicaoCompraService.js";
128
128
  import { apiFinalizarCancelamentoRetencao, apiFindAllRetencao } from "./modules/bayer/retencaoBayerService.js";
@@ -390,6 +390,8 @@ export {
390
390
  apiEditPreContrato,
391
391
  apiEditarRelatorioDinamico,
392
392
  apiEditarValorOrdemCompra,
393
+ apiEncerrarItemOrdemCompra,
394
+ apiEncerrarOrdemCompra,
393
395
  apiEnviarAprovacaoLancamentoResultadoPpr,
394
396
  apiEnviarEntregaBayer,
395
397
  apiEnviarEntregaBayerLote,
@@ -549,6 +551,8 @@ export {
549
551
  apiFindHistoricoByIdContratoCompraGraos,
550
552
  apiFindHistoricoByIdPreContrato,
551
553
  apiFindHistoricoByTipoAcao,
554
+ apiFindHistoricoItensCanceladosByOrdemCompraId,
555
+ apiFindHistoricoItensEncerradosByOrdemCompraId,
552
556
  apiFindHistoricosMovimentacao,
553
557
  apiFindInventarioAtivosAtivo,
554
558
  apiFindLimiteCredito,
@@ -2,12 +2,12 @@ import { apiCreateLocalRecepcao, apiFindMonitorLocalRecepcao, apiFindOneLocalRec
2
2
  import { apiAdicionarObservacaoRequisicaoCompra, apiCreateRequisicaoCompra, apiExecuteAcao, apiFindDetalheItemRequisicaoCompraMonitor, apiFindHistoricosMovimentacao, apiFindMonitorRequisicaoCompra, apiFindOneRequisicaoCompra, apiSetRequisicaoCompraLock, apiUpdateRequisicaoCompra } from "./requisicaoCompra/RequisicaoCompraService.js";
3
3
  import { apiAdicionarItensCotacaoEmProcessamento, apiFinalizaRequisicaoAgrupada, apiFindMonitorRequisicaoAgrupadaItem, apiFindMonitorRequisicaoAgrupadaRequisicao } from "./requisicaoAgrupada/RequisicaoAgrupadaService.js";
4
4
  import { apiExecuteAcaoCotacao, apiFindCotacoesEmProcessamento, apiFindMonitorCotacao, apiFindOneCotacao, apiUpdateCotacao } from "./cotacao/CotacaoService.js";
5
- import { apiEditarValorOrdemCompra, apiExecuteAcaoOrdemCompra, apiFindMonitorOrdemCompra, apiFindOneOrdemCompra, apiFindOrdensComprasNfeByIdsFornecedores, apiUpdateOrdemCompra } from "./ordemCompra/OrdemCompraService.js";
5
+ import { apiEditarValorOrdemCompra, apiEncerrarOrdemCompra, apiExecuteAcaoOrdemCompra, apiFindMonitorOrdemCompra, apiFindOneOrdemCompra, apiFindOrdensComprasNfeByIdsFornecedores, apiUpdateOrdemCompra } from "./ordemCompra/OrdemCompraService.js";
6
6
  import { apiFindHistoricoAcaoByIdEntidade } from "./historicoAcao/HistoricoAcaoService.js";
7
7
  import { apiCreateCadastroEstrategiaLiberacaoValor, apiDeleteOneCadastroEstrategiaLiberacaoValor, apiFindMonitorCadastroEstrategiaLiberacaoValor, apiFindOneCadastroEstrategiaLiberacaoValor, apiFindRolesByValorCadastroEstrategiaLiberacaoValor, apiUpdateCadastroEstrategiaLiberacaoValor } from "./cadastroEstrategiaLiberacaoValor/CadastroEstrategiaLiberacaoValorService.js";
8
8
  import { apiExecuteAcaoItemRequisicaoCompra, apiFindDetalhesRecebimentoMercadoria } from "./itemRequisicaoCompra/ItemRequisicaoCompraService.js";
9
9
  import { apiGetDashboardComprasDiretas, apiGetDashboardComprasRequisicoes, apiGetDashboardOpcoesFiltro, apiGetDashboardPedidosPendentes, apiGetDashboardRankings } from "./dashboard/DashboardService.js";
10
- import { apiCancelar } from "./ordemCompra/ItemOrdemCompraService.js";
10
+ import { apiCancelar, apiEncerrarItemOrdemCompra, apiFindHistoricoItensCanceladosByOrdemCompraId, apiFindHistoricoItensEncerradosByOrdemCompraId } from "./ordemCompra/ItemOrdemCompraService.js";
11
11
  export {
12
12
  apiAdicionarItensCotacaoEmProcessamento,
13
13
  apiAdicionarObservacaoRequisicaoCompra,
@@ -17,6 +17,8 @@ export {
17
17
  apiCreateRequisicaoCompra,
18
18
  apiDeleteOneCadastroEstrategiaLiberacaoValor,
19
19
  apiEditarValorOrdemCompra,
20
+ apiEncerrarItemOrdemCompra,
21
+ apiEncerrarOrdemCompra,
20
22
  apiExecuteAcao,
21
23
  apiExecuteAcaoCotacao,
22
24
  apiExecuteAcaoItemRequisicaoCompra,
@@ -26,6 +28,8 @@ export {
26
28
  apiFindDetalheItemRequisicaoCompraMonitor,
27
29
  apiFindDetalhesRecebimentoMercadoria,
28
30
  apiFindHistoricoAcaoByIdEntidade,
31
+ apiFindHistoricoItensCanceladosByOrdemCompraId,
32
+ apiFindHistoricoItensEncerradosByOrdemCompraId,
29
33
  apiFindHistoricosMovimentacao,
30
34
  apiFindMonitorCadastroEstrategiaLiberacaoValor,
31
35
  apiFindMonitorCotacao,
@@ -8,7 +8,29 @@ async function apiCancelar(body) {
8
8
  data: body
9
9
  });
10
10
  }
11
+ async function apiEncerrarItemOrdemCompra(body) {
12
+ return ApiService.fetchDataWithAxios({
13
+ url: ITEM_ORDEM_COMPRA_ENDPOINT.encerrar.endpoint,
14
+ method: ITEM_ORDEM_COMPRA_ENDPOINT.encerrar.httpMethod,
15
+ data: body
16
+ });
17
+ }
18
+ async function apiFindHistoricoItensEncerradosByOrdemCompraId(idOrdemCompra) {
19
+ return ApiService.fetchDataWithAxios({
20
+ url: ITEM_ORDEM_COMPRA_ENDPOINT.findHistoricoItensEncerradosByOrdemCompraId.endpoint.replace("{idOrdemCompra}", idOrdemCompra.toString()),
21
+ method: ITEM_ORDEM_COMPRA_ENDPOINT.findHistoricoItensEncerradosByOrdemCompraId.httpMethod
22
+ });
23
+ }
24
+ async function apiFindHistoricoItensCanceladosByOrdemCompraId(idOrdemCompra) {
25
+ return ApiService.fetchDataWithAxios({
26
+ url: ITEM_ORDEM_COMPRA_ENDPOINT.findHistoricoItensCanceladosByOrdemCompraId.endpoint.replace("{idOrdemCompra}", idOrdemCompra.toString()),
27
+ method: ITEM_ORDEM_COMPRA_ENDPOINT.findHistoricoItensCanceladosByOrdemCompraId.httpMethod
28
+ });
29
+ }
11
30
  export {
12
- apiCancelar
31
+ apiCancelar,
32
+ apiEncerrarItemOrdemCompra,
33
+ apiFindHistoricoItensCanceladosByOrdemCompraId,
34
+ apiFindHistoricoItensEncerradosByOrdemCompraId
13
35
  };
14
36
  //# sourceMappingURL=ItemOrdemCompraService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ItemOrdemCompraService.js","sources":["../../../../../../lib/base/services/modules/compras/ordemCompra/ItemOrdemCompraService.ts"],"sourcesContent":["import ApiService from '@/services/ApiService'\nimport endpointConfig from '@base/configs/endpoints.config/endpoints.navigation'\n\nconst ITEM_ORDEM_COMPRA_ENDPOINT = endpointConfig.compras.itemOrdemCompra\n\nexport async function apiCancelar(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: ITEM_ORDEM_COMPRA_ENDPOINT.cancelar.endpoint,\n method: ITEM_ORDEM_COMPRA_ENDPOINT.cancelar.httpMethod,\n data: body,\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AAGA,MAAM,6BAA6BA,yBAAe,QAAQ;AAE1D,eAAsB,YAAY,MAAM;AACpC,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,2BAA2B,SAAS;AAAA,IACzC,QAAQ,2BAA2B,SAAS;AAAA,IAC5C,MAAM;AAAA,EAAA,CACT;AACL;"}
1
+ {"version":3,"file":"ItemOrdemCompraService.js","sources":["../../../../../../lib/base/services/modules/compras/ordemCompra/ItemOrdemCompraService.ts"],"sourcesContent":["import ApiService from '@/services/ApiService'\nimport endpointConfig from '@base/configs/endpoints.config/endpoints.navigation'\n\nconst ITEM_ORDEM_COMPRA_ENDPOINT = endpointConfig.compras.itemOrdemCompra\n\nexport async function apiCancelar(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: ITEM_ORDEM_COMPRA_ENDPOINT.cancelar.endpoint,\n method: ITEM_ORDEM_COMPRA_ENDPOINT.cancelar.httpMethod,\n data: body,\n })\n}\n\nexport async function apiEncerrarItemOrdemCompra(body: { id: number; justificativa: string }) {\n return ApiService.fetchDataWithAxios<any>({\n url: ITEM_ORDEM_COMPRA_ENDPOINT.encerrar.endpoint,\n method: ITEM_ORDEM_COMPRA_ENDPOINT.encerrar.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindHistoricoItensEncerradosByOrdemCompraId(idOrdemCompra: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: ITEM_ORDEM_COMPRA_ENDPOINT.findHistoricoItensEncerradosByOrdemCompraId.endpoint.replace(\"{idOrdemCompra}\", idOrdemCompra.toString()),\n method: ITEM_ORDEM_COMPRA_ENDPOINT.findHistoricoItensEncerradosByOrdemCompraId.httpMethod,\n })\n}\n\nexport async function apiFindHistoricoItensCanceladosByOrdemCompraId(idOrdemCompra: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: ITEM_ORDEM_COMPRA_ENDPOINT.findHistoricoItensCanceladosByOrdemCompraId.endpoint.replace(\"{idOrdemCompra}\", idOrdemCompra.toString()),\n method: ITEM_ORDEM_COMPRA_ENDPOINT.findHistoricoItensCanceladosByOrdemCompraId.httpMethod,\n })\n}\n"],"names":["endpointConfig"],"mappings":";;AAGA,MAAM,6BAA6BA,yBAAe,QAAQ;AAE1D,eAAsB,YAAY,MAAM;AACpC,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,2BAA2B,SAAS;AAAA,IACzC,QAAQ,2BAA2B,SAAS;AAAA,IAC5C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,2BAA2B,MAA6C;AAC1F,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,2BAA2B,SAAS;AAAA,IACzC,QAAQ,2BAA2B,SAAS;AAAA,IAC5C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,+CAA+C,eAAuB;AACxF,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,2BAA2B,4CAA4C,SAAS,QAAQ,mBAAmB,cAAc,UAAU;AAAA,IACxI,QAAQ,2BAA2B,4CAA4C;AAAA,EAAA,CAClF;AACL;AAEA,eAAsB,+CAA+C,eAAuB;AACxF,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,2BAA2B,4CAA4C,SAAS,QAAQ,mBAAmB,cAAc,UAAU;AAAA,IACxI,QAAQ,2BAA2B,4CAA4C;AAAA,EAAA,CAClF;AACL;"}
@@ -35,6 +35,13 @@ async function apiEditarValorOrdemCompra(id, itens) {
35
35
  data: { itens }
36
36
  });
37
37
  }
38
+ async function apiEncerrarOrdemCompra(body) {
39
+ return ApiService.fetchDataWithAxios({
40
+ url: ORDEM_COMPRA_ENDPOINT.encerrar.endpoint,
41
+ method: ORDEM_COMPRA_ENDPOINT.encerrar.httpMethod,
42
+ data: body
43
+ });
44
+ }
38
45
  async function apiFindOrdensComprasNfeByIdsFornecedores(data) {
39
46
  return ApiService.fetchDataWithAxios({
40
47
  url: ORDEM_COMPRA_ENDPOINT.findOrdensComprasNfeByIdsFornecedores.endpoint,
@@ -44,6 +51,7 @@ async function apiFindOrdensComprasNfeByIdsFornecedores(data) {
44
51
  }
45
52
  export {
46
53
  apiEditarValorOrdemCompra,
54
+ apiEncerrarOrdemCompra,
47
55
  apiExecuteAcaoOrdemCompra,
48
56
  apiFindMonitorOrdemCompra,
49
57
  apiFindOneOrdemCompra,
@@ -1 +1 @@
1
- {"version":3,"file":"OrdemCompraService.js","sources":["../../../../../../lib/base/services/modules/compras/ordemCompra/OrdemCompraService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst ORDEM_COMPRA_ENDPOINT = endpointConfig.compras.ordemCompra;\n\nexport async function apiFindMonitorOrdemCompra(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: ORDEM_COMPRA_ENDPOINT.findMonitor.endpoint,\n method: ORDEM_COMPRA_ENDPOINT.findMonitor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindOneOrdemCompra(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${ORDEM_COMPRA_ENDPOINT.findOne.endpoint}/${id}`,\n method: ORDEM_COMPRA_ENDPOINT.findOne.httpMethod\n })\n}\n\nexport async function apiUpdateOrdemCompra(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: ORDEM_COMPRA_ENDPOINT.update.endpoint,\n method: ORDEM_COMPRA_ENDPOINT.update.httpMethod,\n data: body,\n })\n}\n\nexport async function apiExecuteAcaoOrdemCompra(data) {\n return ApiService.fetchDataWithAxios<any>({\n url: ORDEM_COMPRA_ENDPOINT.executeAcaoOrdemCompra.endpoint,\n method: ORDEM_COMPRA_ENDPOINT.executeAcaoOrdemCompra.httpMethod,\n data\n })\n}\n\nexport async function apiEditarValorOrdemCompra(id: number, itens: { idItem: number; valorUnitario: number }[]) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${ORDEM_COMPRA_ENDPOINT.editarValor.endpoint}/${id}/valor`,\n method: ORDEM_COMPRA_ENDPOINT.editarValor.httpMethod,\n data: { itens },\n })\n}\n\nexport async function apiFindOrdensComprasNfeByIdsFornecedores(data) {\n return ApiService.fetchDataWithAxios<any>({\n url: ORDEM_COMPRA_ENDPOINT.findOrdensComprasNfeByIdsFornecedores.endpoint,\n method: ORDEM_COMPRA_ENDPOINT.findOrdensComprasNfeByIdsFornecedores.httpMethod,\n data\n })\n}"],"names":["endpointConfig"],"mappings":";;AAGA,MAAM,wBAAwBA,yBAAe,QAAQ;AAErD,eAAsB,0BAA0B,MAAM;AAClD,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,sBAAsB,YAAY;AAAA,IACvC,QAAQ,sBAAsB,YAAY;AAAA,IAC1C,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,sBAAsB,IAAY;AACpD,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,GAAG,sBAAsB,QAAQ,QAAQ,IAAI,EAAE;AAAA,IACpD,QAAQ,sBAAsB,QAAQ;AAAA,EAAA,CACzC;AACL;AAEA,eAAsB,qBAAqB,MAAM;AAC7C,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,sBAAsB,OAAO;AAAA,IAClC,QAAQ,sBAAsB,OAAO;AAAA,IACrC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,0BAA0B,MAAM;AAClD,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,sBAAsB,uBAAuB;AAAA,IAClD,QAAQ,sBAAsB,uBAAuB;AAAA,IACrD;AAAA,EAAA,CACH;AACL;AAEA,eAAsB,0BAA0B,IAAY,OAAoD;AAC5G,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,GAAG,sBAAsB,YAAY,QAAQ,IAAI,EAAE;AAAA,IACxD,QAAQ,sBAAsB,YAAY;AAAA,IAC1C,MAAM,EAAE,MAAA;AAAA,EAAM,CACjB;AACL;AAEA,eAAsB,yCAAyC,MAAM;AACjE,SAAO,WAAW,mBAAwB;AAAA,IACtC,KAAK,sBAAsB,sCAAsC;AAAA,IACjE,QAAQ,sBAAsB,sCAAsC;AAAA,IACpE;AAAA,EAAA,CACH;AACL;"}
1
+ {"version":3,"file":"OrdemCompraService.js","sources":["../../../../../../lib/base/services/modules/compras/ordemCompra/OrdemCompraService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport endpointConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\n\nconst ORDEM_COMPRA_ENDPOINT = endpointConfig.compras.ordemCompra;\n\nexport async function apiFindMonitorOrdemCompra(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: ORDEM_COMPRA_ENDPOINT.findMonitor.endpoint,\n method: ORDEM_COMPRA_ENDPOINT.findMonitor.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindOneOrdemCompra(id: number) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${ORDEM_COMPRA_ENDPOINT.findOne.endpoint}/${id}`,\n method: ORDEM_COMPRA_ENDPOINT.findOne.httpMethod\n })\n}\n\nexport async function apiUpdateOrdemCompra(body) {\n return ApiService.fetchDataWithAxios<any>({\n url: ORDEM_COMPRA_ENDPOINT.update.endpoint,\n method: ORDEM_COMPRA_ENDPOINT.update.httpMethod,\n data: body,\n })\n}\n\nexport async function apiExecuteAcaoOrdemCompra(data) {\n return ApiService.fetchDataWithAxios<any>({\n url: ORDEM_COMPRA_ENDPOINT.executeAcaoOrdemCompra.endpoint,\n method: ORDEM_COMPRA_ENDPOINT.executeAcaoOrdemCompra.httpMethod,\n data\n })\n}\n\nexport async function apiEditarValorOrdemCompra(id: number, itens: { idItem: number; valorUnitario: number }[]) {\n return ApiService.fetchDataWithAxios<any>({\n url: `${ORDEM_COMPRA_ENDPOINT.editarValor.endpoint}/${id}/valor`,\n method: ORDEM_COMPRA_ENDPOINT.editarValor.httpMethod,\n data: { itens },\n })\n}\n\nexport async function apiEncerrarOrdemCompra(body: { id: number; justificativa: string }) {\n return ApiService.fetchDataWithAxios<any>({\n url: ORDEM_COMPRA_ENDPOINT.encerrar.endpoint,\n method: ORDEM_COMPRA_ENDPOINT.encerrar.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindOrdensComprasNfeByIdsFornecedores(data) {\n return ApiService.fetchDataWithAxios<any>({\n url: ORDEM_COMPRA_ENDPOINT.findOrdensComprasNfeByIdsFornecedores.endpoint,\n method: ORDEM_COMPRA_ENDPOINT.findOrdensComprasNfeByIdsFornecedores.httpMethod,\n data\n })\n}"],"names":["endpointConfig"],"mappings":";;AAGA,MAAM,wBAAwBA,yBAAe,QAAQ;AAErD,eAAsB,0BA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grupada,
97
97
  import { apiAdicionarObservacaoRequisicaoCompra, apiCreateRequisicaoCompra, apiExecuteAcao, apiFindDetalheItemRequisicaoCompraMonitor, apiFindHistoricosMovimentacao, apiFindMonitorRequisicaoCompra, apiFindOneRequisicaoCompra, apiSetRequisicaoCompraLock, apiUpdateRequisicaoCompra } from "./compras/requisicaoCompra/RequisicaoCompraService.js";
98
98
  import { apiCancelContratoCompraGraos, apiCreateContratoCompraGraos, apiEditContratoCompraGraos, apiFindAllContratoCompraGraos, apiFindAllContratoCompraGraosExport, apiFindByIdContratoCompraGraos, apiFindHistoricoByIdContratoCompraGraos, apiFindSaldoByIdContratoCompraGraos, apiGeneratePdfContratoCompraGraos, apiUpdateStatusContratoCompraGraos, apiUploadContrato } from "./originacao/contratoCompraGraos/contratoCompraGraosService.js";
99
99
  import { apiCancelPreContrato, apiCreatePreContrato, apiEditPreContrato, apiFindAllPreContrato, apiFindByIdPreContrato, apiFindHistoricoByIdPreContrato, apiUpdateStatusPreContrato } from "./originacao/preContrato/preContratoService.js";
100
- import { apiCancelar } from "./compras/ordemCompra/ItemOrdemCompraService.js";
100
+ import { apiCancelar, apiEncerrarItemOrdemCompra, apiFindHistoricoItensCanceladosByOrdemCompraId, apiFindHistoricoItensEncerradosByOrdemCompraId } from "./compras/ordemCompra/ItemOrdemCompraService.js";
101
101
  import { apiCancelarInsumosItemCompra, apiFindMonitorInsumosItemCompra } from "./insumos/itemCompra/ItemCompraService.js";
102
102
  import { apiCatalogoRelatorioDinamico, apiConsultarRelatorioDinamico, apiCriarRelatorioDinamico, apiEditarRelatorioDinamico, apiExcluirRelatorioDinamico, apiExportarRelatorioDinamico, apiListarRelatoriosDinamicos, apiObterRelatorioDinamico } from "./originacao/relatoriosDinamicos/relatoriosDinamicosService.js";
103
103
  import { apiCountPartidasVencidas, apiFindPartidasAbertas, apiFindPartidasCreditos, apiFindPartidasPagas, apiFindPartidasVencidas } from "./sap/partidas/PartidasService.js";
@@ -115,7 +115,7 @@ import { apiCreateProdutoCommodity, apiFindAllProdutoCommodity } from "./origina
115
115
  import { apiCreateTarefaLiquidacao, apiDeleteTarefaLiquidacao, apiFindAllTarefaLiquidacao, apiFindByIdTarefaLiquidacao, apiUpdateTarefaLiquidacao } from "./originacao/tarefaLiquidacao/tarefaLiquidacaoService.js";
116
116
  import { apiCreateVinculoOperacaoLiquidacao, apiFindAllVinculoOperacaoLiquidacao, apiFindByIdVinculoOperacaoLiquidacao, apiUpdateVinculoOperacaoLiquidacao } from "./originacao/vinculoOperacaoLiquidacao/vinculoOperacaoLiquidacaoService.js";
117
117
  import { apiCreateVinculoTipoFiscalTipoFreteOperacao, apiDesativarVinculoTipoFiscalTipoFreteOperacao, apiFindAllVinculoTipoFiscalTipoFreteOperacao, apiFindByIdVinculoTipoFiscalTipoFreteOperacao, apiUpdateVinculoTipoFiscalTipoFreteOperacao } from "./originacao/vinculoTipoFiscalTipoFreteOperacao/vinculoTipoFiscalTipoFreteOperacaoService.js";
118
- import { apiEditarValorOrdemCompra, apiExecuteAcaoOrdemCompra, apiFindMonitorOrdemCompra, apiFindOneOrdemCompra, apiFindOrdensComprasNfeByIdsFornecedores, apiUpdateOrdemCompra } from "./compras/ordemCompra/OrdemCompraService.js";
118
+ import { apiEditarValorOrdemCompra, apiEncerrarOrdemCompra, apiExecuteAcaoOrdemCompra, apiFindMonitorOrdemCompra, apiFindOneOrdemCompra, apiFindOrdensComprasNfeByIdsFornecedores, apiUpdateOrdemCompra } from "./compras/ordemCompra/OrdemCompraService.js";
119
119
  import { apiExecuteAcaoCotacao, apiFindCotacoesEmProcessamento, apiFindMonitorCotacao, apiFindOneCotacao, apiUpdateCotacao } from "./compras/cotacao/CotacaoService.js";
120
120
  import { apiExecuteAcaoItemRequisicaoCompra, apiFindDetalhesRecebimentoMercadoria } from "./compras/itemRequisicaoCompra/ItemRequisicaoCompraService.js";
121
121
  import { apiFindAllCampos } from "./originacao/formulario/formularioService.js";
@@ -368,6 +368,8 @@ export {
368
368
  apiEditPreContrato,
369
369
  apiEditarRelatorioDinamico,
370
370
  apiEditarValorOrdemCompra,
371
+ apiEncerrarItemOrdemCompra,
372
+ apiEncerrarOrdemCompra,
371
373
  apiEnviarAprovacaoLancamentoResultadoPpr,
372
374
  apiEnviarSapContratoFrete,
373
375
  apiExcluirRelatorioDinamico,
@@ -518,6 +520,8 @@ export {
518
520
  apiFindHistoricoByIdContratoCompraGraos,
519
521
  apiFindHistoricoByIdPreContrato,
520
522
  apiFindHistoricoByTipoAcao,
523
+ apiFindHistoricoItensCanceladosByOrdemCompraId,
524
+ apiFindHistoricoItensEncerradosByOrdemCompraId,
521
525
  apiFindHistoricosMovimentacao,
522
526
  apiFindInventarioAtivosAtivo,
523
527
  apiFindLimiteCredito,
@@ -17,6 +17,8 @@ const statusBadgeClasses = {
17
17
  CONCLUIDA: "bg-green-50 text-green-600 whitespace-nowrap",
18
18
  CONCLUIDO: "bg-blue-50 text-blue-600 whitespace-nowrap",
19
19
  EM_PROCESSAMENTO: "bg-indigo-50 text-indigo-600 whitespace-nowrap",
20
+ ENCERRADA: "bg-amber-50 text-amber-700 whitespace-nowrap",
21
+ ENCERRADO: "bg-amber-50 text-amber-700 whitespace-nowrap",
20
22
  ENTREGUE: "bg-green-50 text-green-600 whitespace-nowrap",
21
23
  ERRO: "bg-red-50 text-red-500 whitespace-nowrap",
22
24
  ERRO_INTEGRACAO: "bg-red-50 text-red-500 whitespace-nowrap",
@@ -1 +1 @@
1
- {"version":3,"file":"badge.js","sources":["../../../../lib/base/utils/colorClassName/badge.ts"],"sourcesContent":["/**\n * Mapeia cada status técnico para uma combinação de classes CSS utilizadas no componente <Badge/>.\n *\n * Este dicionário define o estilo visual (cores de fundo e texto) associado a cada status do sistema,\n * permitindo uma apresentação visual coerente e padronizada para cada situação.\n *\n * Exemplo de uso:\n * ```tsx\n * const className = statusBadgeClasses[status] || \"bg-gray-100 text-gray-500\";\n * ```\n *\n * @constant\n * @type {Record<string, string>}\n */\nexport const statusBadgeClasses: Record<string, string> = {\n AGUARDANDO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_ENVIO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_APROVACAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_CONSULTA: 'bg-purple-50 text-purple-600 whitespace-nowrap',\n AGUARDANDO_PEDIDO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_BOLETO: 'bg-red-50 text-red-500 whitespace-nowrap',\n AGUARDANDO_RECEPCAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_VINCULO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_SEGUNDA_APROVACAO: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n APROVADA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n APROVADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n ATENCAO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n CANCELADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n CANCELADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n COMPLETO: 'bg-green-50 text-green-600 whitespace-nowrap',\n CONCLUIDA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n CONCLUIDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n EM_PROCESSAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n ENTREGUE: 'bg-green-50 text-green-600 whitespace-nowrap',\n ERRO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ERRO_INTEGRACAO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ESTORNADO: 'bg-red-50 text-red-500 whitespace-nowrap',\n NOVA: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n NOVO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PARCIAL: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n PARCIALMENTE_APROVADA: 'bg-purple-50 text-purple-600 whitespace-nowrap',\n PARCIALMENTE_UTILIZADO: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n PAUSADO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n RECEBIDO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n REPROVADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n REPROVADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n VALIDADO: 'bg-green-50 text-green-500 whitespace-nowrap',\n VALOR_DIVERGENTE: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n VINCULADO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n FINALIZADO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n // Status de Integração\n PENDENTE: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PROCESSANDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n ENVIADO_SAP: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n ENVIADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n PROCESSANDO_SAP: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n NAO_PROCESSADO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n EM_ANDAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n // Tipo de Envio\n FISICO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n FISICA: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n DIGITAL: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n // Status do SAP\n A: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n B: 'bg-indigo-50 text-indigo-600 whitespace-nowrap',\n C: 'bg-blue-50 text-blue-600 whitespace-nowrap',\n D: 'bg-red-50 text-red-500 whitespace-nowrap',\n // Insumos - Compras\n LIBERADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n REJEITADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n BONIFICACAO: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n EFETIVA: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n VIRTUAL: \"bg-cyan-50 text-cyan-600 whitespace-nowrap\",\n EFETIVA_AO_CLIENTE: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n VIRTUAL_AO_CLIENTE: \"bg-teal-50 text-teal-600 whitespace-nowrap\",\n A_VISTA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n A_PRAZO: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n // Ração - Juros Compostos\n DENTRO_ESTADO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n FORA_ESTADO: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n};\n"],"names":[],"mappings":"AAcO,MAAM,qBAA6C;AAAA,EACxD,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,qBAAqB;AAAA,EACrB,mBAAmB;AAAA,EACnB,mBAAmB;AAAA,EACnB,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,8BAA8B;AAAA,EAC9B,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS;AAAA,EACT,uBAAuB;AAAA,EACvB,wBAAwB;AAAA,EACxB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,WAAW;AAAA,EACX,YAAY;AAAA;AAAA,EAEZ,UAAU;AAAA,EACV,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,cAAc;AAAA;AAAA,EAEd,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA;AAAA,EAET,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA;AAAA,EAEH,UAAU;AAAA,EACV,WAAW;AAAA,EACX,aAAa;AAAA,EACb,SAAS;AAAA,EACT,SAAS;AAAA,EACT,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,SAAS;AAAA,EACT,SAAS;AAAA;AAAA,EAET,eAAe;AAAA,EACf,aAAa;AACf;"}
1
+ {"version":3,"file":"badge.js","sources":["../../../../lib/base/utils/colorClassName/badge.ts"],"sourcesContent":["/**\n * Mapeia cada status técnico para uma combinação de classes CSS utilizadas no componente <Badge/>.\n *\n * Este dicionário define o estilo visual (cores de fundo e texto) associado a cada status do sistema,\n * permitindo uma apresentação visual coerente e padronizada para cada situação.\n *\n * Exemplo de uso:\n * ```tsx\n * const className = statusBadgeClasses[status] || \"bg-gray-100 text-gray-500\";\n * ```\n *\n * @constant\n * @type {Record<string, string>}\n */\nexport const statusBadgeClasses: Record<string, string> = {\n AGUARDANDO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_ENVIO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_APROVACAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_CONSULTA: 'bg-purple-50 text-purple-600 whitespace-nowrap',\n AGUARDANDO_PEDIDO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n AGUARDANDO_BOLETO: 'bg-red-50 text-red-500 whitespace-nowrap',\n AGUARDANDO_RECEPCAO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_VINCULO: \"bg-yellow-50 text-yellow-600 whitespace-nowrap\",\n AGUARDANDO_SEGUNDA_APROVACAO: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n APROVADA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n APROVADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n ATENCAO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n CANCELADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n CANCELADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n COMPLETO: 'bg-green-50 text-green-600 whitespace-nowrap',\n CONCLUIDA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n CONCLUIDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n EM_PROCESSAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n ENCERRADA: \"bg-amber-50 text-amber-700 whitespace-nowrap\",\n ENCERRADO: \"bg-amber-50 text-amber-700 whitespace-nowrap\",\n ENTREGUE: 'bg-green-50 text-green-600 whitespace-nowrap',\n ERRO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ERRO_INTEGRACAO: 'bg-red-50 text-red-500 whitespace-nowrap',\n ESTORNADO: 'bg-red-50 text-red-500 whitespace-nowrap',\n NOVA: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n NOVO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PARCIAL: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n PARCIALMENTE_APROVADA: 'bg-purple-50 text-purple-600 whitespace-nowrap',\n PARCIALMENTE_UTILIZADO: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n PAUSADO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n RECEBIDO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n REPROVADA: \"bg-red-50 text-red-500 whitespace-nowrap\",\n REPROVADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n VALIDADO: 'bg-green-50 text-green-500 whitespace-nowrap',\n VALOR_DIVERGENTE: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n VINCULADO: \"bg-green-50 text-green-500 whitespace-nowrap\",\n FINALIZADO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n // Status de Integração\n PENDENTE: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n PROCESSANDO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n ENVIADO_SAP: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n ENVIADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n PROCESSANDO_SAP: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n NAO_PROCESSADO: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n EM_ANDAMENTO: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n // Tipo de Envio\n FISICO: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n FISICA: \"bg-gray-50 text-gray-600 whitespace-nowrap\",\n DIGITAL: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n // Status do SAP\n A: 'bg-yellow-50 text-yellow-600 whitespace-nowrap',\n B: 'bg-indigo-50 text-indigo-600 whitespace-nowrap',\n C: 'bg-blue-50 text-blue-600 whitespace-nowrap',\n D: 'bg-red-50 text-red-500 whitespace-nowrap',\n // Insumos - Compras\n LIBERADO: \"bg-green-50 text-green-600 whitespace-nowrap\",\n REJEITADO: \"bg-red-50 text-red-500 whitespace-nowrap\",\n BONIFICACAO: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n EFETIVA: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n VIRTUAL: \"bg-cyan-50 text-cyan-600 whitespace-nowrap\",\n EFETIVA_AO_CLIENTE: \"bg-indigo-50 text-indigo-600 whitespace-nowrap\",\n VIRTUAL_AO_CLIENTE: \"bg-teal-50 text-teal-600 whitespace-nowrap\",\n A_VISTA: \"bg-green-50 text-green-600 whitespace-nowrap\",\n A_PRAZO: \"bg-orange-50 text-orange-600 whitespace-nowrap\",\n // Ração - Juros Compostos\n DENTRO_ESTADO: \"bg-blue-50 text-blue-600 whitespace-nowrap\",\n FORA_ESTADO: \"bg-purple-50 text-purple-600 whitespace-nowrap\",\n};\n"],"names":[],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E_URL = '/compras/api/item-ordem-compra'
2
2
 
3
3
  const itemOrdemCompra = {
4
- cancelar: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/cancelar`, httpMethod: 'post' }
4
+ cancelar: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/cancelar`, httpMethod: 'post' },
5
+ findHistoricoItensCanceladosByOrdemCompraId: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/ordem-compra/{idOrdemCompra}/historico-cancelados`, httpMethod: 'get' },
6
+ encerrar: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/encerrar`, httpMethod: 'post' },
7
+ findHistoricoItensEncerradosByOrdemCompraId: { endpoint: `${ITEM_ORDEM_COMPRA_BASE_URL}/ordem-compra/{idOrdemCompra}/historico-encerrados`, httpMethod: 'get' }
5
8
  }
6
9
 
7
10
  export default itemOrdemCompra
@@ -7,6 +7,7 @@ const ordemCompra = {
7
7
  executeAcaoOrdemCompra: { endpoint: `${ORDEM_COMPRA_BASE_URL}/execute-acao`, httpMethod: 'post' },
8
8
  findOrdensComprasNfeByIdsFornecedores: { endpoint: `${ORDEM_COMPRA_BASE_URL}/find-ordens-compras-by-ids-fornecedores`, httpMethod: 'post' },
9
9
  editarValor: { endpoint: ORDEM_COMPRA_BASE_URL, httpMethod: 'patch' },
10
+ encerrar: { endpoint: `${ORDEM_COMPRA_BASE_URL}/encerrar`, httpMethod: 'post' },
10
11
  }
11
12
 
12
13
  export default ordemCompra
@@ -10,3 +10,25 @@ export async function apiCancelar(body) {
10
10
  data: body,
11
11
  })
12
12
  }
13
+
14
+ export async function apiEncerrarItemOrdemCompra(body: { id: number; justificativa: string }) {
15
+ return ApiService.fetchDataWithAxios<any>({
16
+ url: ITEM_ORDEM_COMPRA_ENDPOINT.encerrar.endpoint,
17
+ method: ITEM_ORDEM_COMPRA_ENDPOINT.encerrar.httpMethod,
18
+ data: body,
19
+ })
20
+ }
21
+
22
+ export async function apiFindHistoricoItensEncerradosByOrdemCompraId(idOrdemCompra: number) {
23
+ return ApiService.fetchDataWithAxios<any>({
24
+ url: ITEM_ORDEM_COMPRA_ENDPOINT.findHistoricoItensEncerradosByOrdemCompraId.endpoint.replace("{idOrdemCompra}", idOrdemCompra.toString()),
25
+ method: ITEM_ORDEM_COMPRA_ENDPOINT.findHistoricoItensEncerradosByOrdemCompraId.httpMethod,
26
+ })
27
+ }
28
+
29
+ export async function apiFindHistoricoItensCanceladosByOrdemCompraId(idOrdemCompra: number) {
30
+ return ApiService.fetchDataWithAxios<any>({
31
+ url: ITEM_ORDEM_COMPRA_ENDPOINT.findHistoricoItensCanceladosByOrdemCompraId.endpoint.replace("{idOrdemCompra}", idOrdemCompra.toString()),
32
+ method: ITEM_ORDEM_COMPRA_ENDPOINT.findHistoricoItensCanceladosByOrdemCompraId.httpMethod,
33
+ })
34
+ }
@@ -42,6 +42,14 @@ export async function apiEditarValorOrdemCompra(id: number, itens: { idItem: num
42
42
  })
43
43
  }
44
44
 
45
+ export async function apiEncerrarOrdemCompra(body: { id: number; justificativa: string }) {
46
+ return ApiService.fetchDataWithAxios<any>({
47
+ url: ORDEM_COMPRA_ENDPOINT.encerrar.endpoint,
48
+ method: ORDEM_COMPRA_ENDPOINT.encerrar.httpMethod,
49
+ data: body,
50
+ })
51
+ }
52
+
45
53
  export async function apiFindOrdensComprasNfeByIdsFornecedores(data) {
46
54
  return ApiService.fetchDataWithAxios<any>({
47
55
  url: ORDEM_COMPRA_ENDPOINT.findOrdensComprasNfeByIdsFornecedores.endpoint,
@@ -31,6 +31,8 @@ export const statusBadgeClasses: Record<string, string> = {
31
31
  CONCLUIDA: "bg-green-50 text-green-600 whitespace-nowrap",
32
32
  CONCLUIDO: "bg-blue-50 text-blue-600 whitespace-nowrap",
33
33
  EM_PROCESSAMENTO: "bg-indigo-50 text-indigo-600 whitespace-nowrap",
34
+ ENCERRADA: "bg-amber-50 text-amber-700 whitespace-nowrap",
35
+ ENCERRADO: "bg-amber-50 text-amber-700 whitespace-nowrap",
34
36
  ENTREGUE: 'bg-green-50 text-green-600 whitespace-nowrap',
35
37
  ERRO: 'bg-red-50 text-red-500 whitespace-nowrap',
36
38
  ERRO_INTEGRACAO: 'bg-red-50 text-red-500 whitespace-nowrap',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.6.340",
3
+ "version": "5.6.341",
4
4
  "description": "Biblioteca principal de componentes e utilidades para os microfrontends do Orbe Agro.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",