mdz-enum 1.7.9 → 1.7.12
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/checkout/index.d.ts +33 -33
- package/dist/checkout/index.js +97 -97
- package/dist/commercial/index.d.ts +254 -254
- package/dist/commercial/index.js +627 -627
- package/dist/common/index.d.ts +71 -71
- package/dist/common/index.js +205 -205
- package/dist/config/index.d.ts +217 -217
- package/dist/config/index.js +669 -669
- package/dist/eva/index.d.ts +164 -164
- package/dist/eva/index.js +233 -233
- package/dist/finance/index.d.ts +241 -241
- package/dist/finance/index.js +731 -731
- package/dist/fiscal/index.d.ts +612 -578
- package/dist/fiscal/index.js +1593 -1494
- package/dist/functions.d.ts +11 -11
- package/dist/functions.js +74 -74
- package/dist/general/index.d.ts +265 -265
- package/dist/general/index.js +512 -512
- package/dist/home/index.d.ts +88 -88
- package/dist/home/index.js +268 -268
- package/dist/index.d.ts +17 -17
- package/dist/index.js +311 -297
- package/dist/integration/index.d.ts +37 -37
- package/dist/integration/index.js +109 -109
- package/dist/logistics/index.d.ts +281 -281
- package/dist/logistics/index.js +807 -807
- package/dist/marketplace/templates/components/index.d.ts +352 -352
- package/dist/marketplace/templates/components/index.js +383 -383
- package/dist/marketplace/templates/elements/index.d.ts +32 -32
- package/dist/marketplace/templates/elements/index.js +35 -35
- package/dist/marketplace/templates/index.d.ts +592 -589
- package/dist/marketplace/templates/index.js +49 -49
- package/dist/marketplace/templates/pages/index.d.ts +254 -254
- package/dist/marketplace/templates/pages/index.js +443 -443
- package/dist/marketplace/templates/reference/index.d.ts +24 -24
- package/dist/marketplace/templates/reference/index.js +26 -26
- package/dist/people/index.d.ts +66 -66
- package/dist/people/index.js +192 -192
- package/dist/platform/index.d.ts +321 -221
- package/dist/platform/index.js +936 -641
- package/dist/reports/index.d.ts +107 -107
- package/dist/reports/index.js +313 -313
- package/dist/service/index.d.ts +28 -28
- package/dist/service/index.js +97 -97
- package/package.json +31 -31
package/dist/logistics/index.js
CHANGED
|
@@ -1,807 +1,807 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SituacaoAjusteConferencia = exports.TratamentoDivergenciaConferencia = exports.SituacaoLeituraConferencia = exports.SituacaoItemConferencia = exports.TipoDocumentoConferencia = exports.SituacaoConferencia = exports.ModoConferencia = exports.OperacaoConferencia = exports.TipoCombustivel = exports.TipoVeiculo = exports.TiposAtributoVinculavelMarketplace = exports.TiposAtributo = exports.TipoCampoAtributo = exports.TipoAtributo = exports.ModoPreco = exports.SituacaoColecao = exports.SituacaoImagemProduto = exports.TipoCodigoEtiquetaProduto = exports.TipoDesdobramentoProduto = exports.TipoMovimentacaoItemInventario = exports.TipoAjusteInventario = exports.SituacaoItemInventario = exports.SituacaoInventario = exports.TipoItem = exports.TipoQuantidadeInfoNutricional = exports.TipoLeiRotulagem = exports.TipoAtualizacaoEstoque = exports.TipoImagemGaleria = exports.TipoCategoria = exports.SituacaoQuantidadeEstoque = exports.OperacaoMovimentacaoEstoque = exports.OrigemMovimentacaoEstoque = exports.SituacaoMovimentacaoEstoque = exports.TipoValoracao = exports.TipoDataOrdemProducao = exports.SituacaoProducaoPedido = exports.SituacaoOrdemProducao = exports.ModoProducao = exports.TipoProduto = void 0;
|
|
4
|
-
exports.TipoProduto = {
|
|
5
|
-
Simples: '0',
|
|
6
|
-
ComGrade: '1',
|
|
7
|
-
Kit: '2',
|
|
8
|
-
Conjunto: '3',
|
|
9
|
-
Composicao: '4',
|
|
10
|
-
description(val) {
|
|
11
|
-
switch (val) {
|
|
12
|
-
case this.Simples:
|
|
13
|
-
return 'Simples';
|
|
14
|
-
case this.ComGrade:
|
|
15
|
-
return 'Com Grade';
|
|
16
|
-
case this.Kit:
|
|
17
|
-
return 'Kit';
|
|
18
|
-
case this.Conjunto:
|
|
19
|
-
return 'Conjunto';
|
|
20
|
-
case this.Composicao:
|
|
21
|
-
return 'Composição';
|
|
22
|
-
default:
|
|
23
|
-
return 'enum not found';
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
isDesmembradoNaVenda(val) {
|
|
27
|
-
return val === this.Kit || val === this.Conjunto;
|
|
28
|
-
},
|
|
29
|
-
isSemEstoqueProprio(tipoProduto, modoProducao) {
|
|
30
|
-
return tipoProduto === this.Composicao && modoProducao === exports.ModoProducao.BaixaNaVenda;
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
exports.ModoProducao = {
|
|
34
|
-
Producao: '0',
|
|
35
|
-
BaixaNaVenda: '1',
|
|
36
|
-
description(val) {
|
|
37
|
-
switch (val) {
|
|
38
|
-
case this.Producao:
|
|
39
|
-
return 'Produção com estoque próprio';
|
|
40
|
-
case this.BaixaNaVenda:
|
|
41
|
-
return 'Baixa dos insumos na venda';
|
|
42
|
-
default:
|
|
43
|
-
return 'enum not found';
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
exports.SituacaoOrdemProducao = {
|
|
48
|
-
Pendente: '0',
|
|
49
|
-
Produzida: '1',
|
|
50
|
-
Estornada: '2',
|
|
51
|
-
EmProducao: '3',
|
|
52
|
-
description(val) {
|
|
53
|
-
switch (val) {
|
|
54
|
-
case this.Pendente:
|
|
55
|
-
return 'Pendente';
|
|
56
|
-
case this.Produzida:
|
|
57
|
-
return 'Produzida';
|
|
58
|
-
case this.Estornada:
|
|
59
|
-
return 'Estornada';
|
|
60
|
-
case this.EmProducao:
|
|
61
|
-
return 'Em produção';
|
|
62
|
-
default:
|
|
63
|
-
return 'enum not found';
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
isAberta(val) {
|
|
67
|
-
return val === this.Pendente || val === this.EmProducao;
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
exports.SituacaoProducaoPedido = {
|
|
71
|
-
AguardandoProducao: '0',
|
|
72
|
-
EmProducao: '1',
|
|
73
|
-
Produzido: '2',
|
|
74
|
-
description(val) {
|
|
75
|
-
switch (val) {
|
|
76
|
-
case this.AguardandoProducao:
|
|
77
|
-
return 'Aguardando produção';
|
|
78
|
-
case this.EmProducao:
|
|
79
|
-
return 'Em produção';
|
|
80
|
-
case this.Produzido:
|
|
81
|
-
return 'Produzido';
|
|
82
|
-
default:
|
|
83
|
-
return 'enum not found';
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
};
|
|
87
|
-
exports.TipoDataOrdemProducao = {
|
|
88
|
-
Cadastro: '0',
|
|
89
|
-
PrevisaoConclusao: '1',
|
|
90
|
-
Producao: '2',
|
|
91
|
-
description(val) {
|
|
92
|
-
switch (val) {
|
|
93
|
-
case this.Cadastro:
|
|
94
|
-
return 'Cadastro';
|
|
95
|
-
case this.PrevisaoConclusao:
|
|
96
|
-
return 'Previsão de conclusão';
|
|
97
|
-
case this.Producao:
|
|
98
|
-
return 'Produção';
|
|
99
|
-
default:
|
|
100
|
-
return 'enum not found';
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
};
|
|
104
|
-
exports.TipoValoracao = {
|
|
105
|
-
PrecoCompra: '0',
|
|
106
|
-
PrecoCusto: '1',
|
|
107
|
-
PrecoVenda: '2',
|
|
108
|
-
PrecoAtacado: '3',
|
|
109
|
-
description(val) {
|
|
110
|
-
switch (val) {
|
|
111
|
-
case this.PrecoCompra:
|
|
112
|
-
return 'Preço de Compra';
|
|
113
|
-
case this.PrecoCusto:
|
|
114
|
-
return 'Preço de Custo';
|
|
115
|
-
case this.PrecoVenda:
|
|
116
|
-
return 'Preço de Venda';
|
|
117
|
-
case this.PrecoAtacado:
|
|
118
|
-
return 'Preço de Atacado';
|
|
119
|
-
default:
|
|
120
|
-
return 'enum not found';
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
exports.SituacaoMovimentacaoEstoque = {
|
|
125
|
-
EmEdicao: '0',
|
|
126
|
-
Processado: '1',
|
|
127
|
-
Estornado: '2',
|
|
128
|
-
description(val) {
|
|
129
|
-
switch (val) {
|
|
130
|
-
case this.EmEdicao:
|
|
131
|
-
return 'Em Edição';
|
|
132
|
-
case this.Processado:
|
|
133
|
-
return 'Processado';
|
|
134
|
-
case this.Estornado:
|
|
135
|
-
return 'Estornado';
|
|
136
|
-
default:
|
|
137
|
-
return 'enum not found';
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
};
|
|
141
|
-
exports.OrigemMovimentacaoEstoque = {
|
|
142
|
-
Manual: '1',
|
|
143
|
-
NotaFiscal: '2',
|
|
144
|
-
Pedido: '3',
|
|
145
|
-
Inventario: '4',
|
|
146
|
-
Conferencia: '5',
|
|
147
|
-
Producao: '6',
|
|
148
|
-
description(val) {
|
|
149
|
-
switch (val) {
|
|
150
|
-
case this.Manual:
|
|
151
|
-
return 'Manual';
|
|
152
|
-
case this.NotaFiscal:
|
|
153
|
-
return 'Nota Fiscal';
|
|
154
|
-
case this.Pedido:
|
|
155
|
-
return 'Pedido';
|
|
156
|
-
case this.Inventario:
|
|
157
|
-
return 'Inventário';
|
|
158
|
-
case this.Conferencia:
|
|
159
|
-
return 'Conferência';
|
|
160
|
-
case this.Producao:
|
|
161
|
-
return 'Produção';
|
|
162
|
-
default:
|
|
163
|
-
return 'enum not found';
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
};
|
|
167
|
-
exports.OperacaoMovimentacaoEstoque = {
|
|
168
|
-
Entrada: '0',
|
|
169
|
-
Saida: '1',
|
|
170
|
-
Transferencia: '2',
|
|
171
|
-
description(val) {
|
|
172
|
-
switch (val) {
|
|
173
|
-
case this.Entrada:
|
|
174
|
-
return 'Entrada';
|
|
175
|
-
case this.Saida:
|
|
176
|
-
return 'Saída';
|
|
177
|
-
case this.Transferencia:
|
|
178
|
-
return 'Transferência';
|
|
179
|
-
default:
|
|
180
|
-
return 'enum not found';
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
};
|
|
184
|
-
exports.SituacaoQuantidadeEstoque = {
|
|
185
|
-
Negativo: '0',
|
|
186
|
-
Positivo: '1',
|
|
187
|
-
description(val) {
|
|
188
|
-
switch (val) {
|
|
189
|
-
case this.Negativo:
|
|
190
|
-
return 'Negativo';
|
|
191
|
-
case this.Positivo:
|
|
192
|
-
return 'Positivo';
|
|
193
|
-
default:
|
|
194
|
-
return 'enum not found';
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
};
|
|
198
|
-
exports.TipoCategoria = {
|
|
199
|
-
Beleza: '0',
|
|
200
|
-
Bolsa: '1',
|
|
201
|
-
Calçado: '2',
|
|
202
|
-
Celular: '3',
|
|
203
|
-
Decoracao: '4',
|
|
204
|
-
Eletrodomestico: '5',
|
|
205
|
-
Eletronico: '6',
|
|
206
|
-
Esporte: '7',
|
|
207
|
-
Ferramenta: '8',
|
|
208
|
-
Game: '9',
|
|
209
|
-
Movel: '10',
|
|
210
|
-
Vestuario: '11',
|
|
211
|
-
Saude: '12',
|
|
212
|
-
Automotivo: '13',
|
|
213
|
-
MateriaisConstrucao: '14',
|
|
214
|
-
description(val) {
|
|
215
|
-
switch (val) {
|
|
216
|
-
case this.Beleza:
|
|
217
|
-
return 'Beleza';
|
|
218
|
-
case this.Bolsa:
|
|
219
|
-
return 'Bolsas';
|
|
220
|
-
case this.Calçado:
|
|
221
|
-
return 'Calçados';
|
|
222
|
-
case this.Celular:
|
|
223
|
-
return 'Celular';
|
|
224
|
-
case this.Decoracao:
|
|
225
|
-
return 'Decoração';
|
|
226
|
-
case this.Eletrodomestico:
|
|
227
|
-
return 'Eletrodomésticos';
|
|
228
|
-
case this.Eletronico:
|
|
229
|
-
return 'Eletrônicos';
|
|
230
|
-
case this.Esporte:
|
|
231
|
-
return 'Esportes';
|
|
232
|
-
case this.Ferramenta:
|
|
233
|
-
return 'Ferramentas';
|
|
234
|
-
case this.Game:
|
|
235
|
-
return 'Games';
|
|
236
|
-
case this.Movel:
|
|
237
|
-
return 'Móveis';
|
|
238
|
-
case this.Vestuario:
|
|
239
|
-
return 'Vestuário';
|
|
240
|
-
case this.Saude:
|
|
241
|
-
return 'Saúde';
|
|
242
|
-
case this.Automotivo:
|
|
243
|
-
return 'Automotivo';
|
|
244
|
-
case this.MateriaisConstrucao:
|
|
245
|
-
return 'Materiais de Construção';
|
|
246
|
-
default:
|
|
247
|
-
break;
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
};
|
|
251
|
-
exports.TipoImagemGaleria = {
|
|
252
|
-
Geral: '0',
|
|
253
|
-
PorGrade: '1',
|
|
254
|
-
description(val) {
|
|
255
|
-
switch (val) {
|
|
256
|
-
case this.Geral:
|
|
257
|
-
return 'Geral';
|
|
258
|
-
case this.PorGrade:
|
|
259
|
-
return 'Por Grade';
|
|
260
|
-
default:
|
|
261
|
-
return 'enum not found';
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
};
|
|
265
|
-
exports.TipoAtualizacaoEstoque = {
|
|
266
|
-
NotaFiscal: '0',
|
|
267
|
-
MovimentacaoEstoque: '1',
|
|
268
|
-
description(val) {
|
|
269
|
-
switch (val) {
|
|
270
|
-
case this.NotaFiscal:
|
|
271
|
-
return 'Nota Fiscal';
|
|
272
|
-
case this.MovimentacaoEstoque:
|
|
273
|
-
return 'Movimentaçaõ de Estoque';
|
|
274
|
-
default:
|
|
275
|
-
return 'enum not found';
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
};
|
|
279
|
-
exports.TipoLeiRotulagem = {
|
|
280
|
-
Lei_360: '0',
|
|
281
|
-
Lei_429: '1',
|
|
282
|
-
description(val) {
|
|
283
|
-
switch (val) {
|
|
284
|
-
case this.Lei_360:
|
|
285
|
-
return 'RDC 359/360';
|
|
286
|
-
case this.Lei_429:
|
|
287
|
-
return 'RDC 429';
|
|
288
|
-
default:
|
|
289
|
-
return 'enum not found';
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
};
|
|
293
|
-
exports.TipoQuantidadeInfoNutricional = {
|
|
294
|
-
Grama: '0',
|
|
295
|
-
Mililitro: '1',
|
|
296
|
-
description(val) {
|
|
297
|
-
switch (val) {
|
|
298
|
-
case this.Grama:
|
|
299
|
-
return '100 G (100 gramas)';
|
|
300
|
-
case this.Mililitro:
|
|
301
|
-
return '100 ML (100 mililitros)';
|
|
302
|
-
default:
|
|
303
|
-
return 'enum not found';
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
};
|
|
307
|
-
exports.TipoItem = {
|
|
308
|
-
MercadoriaRevenda: '00',
|
|
309
|
-
MateriaPrima: '01',
|
|
310
|
-
Embalagem: '02',
|
|
311
|
-
ProdutoProcesso: '03',
|
|
312
|
-
ProdutoAcabado: '04',
|
|
313
|
-
Subproduto: '05',
|
|
314
|
-
ProdutoIntermediario: '06',
|
|
315
|
-
MaterialUsoConsumo: '07',
|
|
316
|
-
AtivoImobilizado: '08',
|
|
317
|
-
Servicos: '09',
|
|
318
|
-
OutrosInsumos: '10',
|
|
319
|
-
Outras: '99',
|
|
320
|
-
description(val) {
|
|
321
|
-
switch (val) {
|
|
322
|
-
case this.MercadoriaRevenda:
|
|
323
|
-
return 'Mercadoria para revenda';
|
|
324
|
-
case this.MateriaPrima:
|
|
325
|
-
return 'Matéria-prima';
|
|
326
|
-
case this.MateriaPrima:
|
|
327
|
-
return 'Matéria-prima';
|
|
328
|
-
case this.Embalagem:
|
|
329
|
-
return 'Embalagem';
|
|
330
|
-
case this.ProdutoProcesso:
|
|
331
|
-
return 'Produto em processo';
|
|
332
|
-
case this.ProdutoAcabado:
|
|
333
|
-
return 'Produto acabado';
|
|
334
|
-
case this.Subproduto:
|
|
335
|
-
return 'Subproduto';
|
|
336
|
-
case this.ProdutoIntermediario:
|
|
337
|
-
return 'Produto intermediário';
|
|
338
|
-
case this.MaterialUsoConsumo:
|
|
339
|
-
return 'Material de uso e consumo';
|
|
340
|
-
case this.AtivoImobilizado:
|
|
341
|
-
return 'Ativo imobilizado';
|
|
342
|
-
case this.Servicos:
|
|
343
|
-
return 'Serviços';
|
|
344
|
-
case this.OutrosInsumos:
|
|
345
|
-
return 'Outros insumos';
|
|
346
|
-
case this.Outras:
|
|
347
|
-
return 'Outras';
|
|
348
|
-
default:
|
|
349
|
-
return 'enum not found';
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
};
|
|
353
|
-
exports.SituacaoInventario = {
|
|
354
|
-
EmAndamento: '0',
|
|
355
|
-
Concluido: '1',
|
|
356
|
-
Cancelado: '2',
|
|
357
|
-
description(val) {
|
|
358
|
-
switch (val) {
|
|
359
|
-
case this.EmAndamento:
|
|
360
|
-
return 'Em Andamento';
|
|
361
|
-
case this.Concluido:
|
|
362
|
-
return 'Concluído';
|
|
363
|
-
case this.Cancelado:
|
|
364
|
-
return 'Cancelado';
|
|
365
|
-
default:
|
|
366
|
-
return 'enum not found';
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
};
|
|
370
|
-
exports.SituacaoItemInventario = {
|
|
371
|
-
Excluido: '0',
|
|
372
|
-
Atualizado: '1',
|
|
373
|
-
AtualizacaoPendente: '2',
|
|
374
|
-
InclusaoPendente: '3',
|
|
375
|
-
description(val) {
|
|
376
|
-
switch (val) {
|
|
377
|
-
case this.Atualizado:
|
|
378
|
-
return 'Atualizado';
|
|
379
|
-
case this.Excluido:
|
|
380
|
-
return 'Excluído';
|
|
381
|
-
case this.AtualizacaoPendente:
|
|
382
|
-
return 'Atualização Pendente';
|
|
383
|
-
case this.InclusaoPendente:
|
|
384
|
-
return 'Inclusão Pendente';
|
|
385
|
-
default:
|
|
386
|
-
return 'enum not found';
|
|
387
|
-
}
|
|
388
|
-
},
|
|
389
|
-
};
|
|
390
|
-
exports.TipoAjusteInventario = {
|
|
391
|
-
Ajuste: '0',
|
|
392
|
-
ApenasEntrada: '1',
|
|
393
|
-
ApenasSaida: '2',
|
|
394
|
-
description(val) {
|
|
395
|
-
switch (val) {
|
|
396
|
-
case this.Ajuste:
|
|
397
|
-
return 'Ajuste';
|
|
398
|
-
case this.ApenasEntrada:
|
|
399
|
-
return 'Apenas Entrada';
|
|
400
|
-
case this.ApenasSaida:
|
|
401
|
-
return 'Apenas Saída';
|
|
402
|
-
default:
|
|
403
|
-
return 'enum not found';
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
};
|
|
407
|
-
exports.TipoMovimentacaoItemInventario = {
|
|
408
|
-
Entrada: '0',
|
|
409
|
-
Saida: '1',
|
|
410
|
-
SemMov: '3',
|
|
411
|
-
description(val) {
|
|
412
|
-
switch (val) {
|
|
413
|
-
case this.Entrada:
|
|
414
|
-
return 'Entrada';
|
|
415
|
-
case this.Saida:
|
|
416
|
-
return 'Saída';
|
|
417
|
-
case this.SemMov:
|
|
418
|
-
return 'Não Mov.';
|
|
419
|
-
default:
|
|
420
|
-
return 'enum not found';
|
|
421
|
-
}
|
|
422
|
-
},
|
|
423
|
-
};
|
|
424
|
-
exports.TipoDesdobramentoProduto = {
|
|
425
|
-
EmProduto: '0',
|
|
426
|
-
EmGrade: '1',
|
|
427
|
-
description(val) {
|
|
428
|
-
switch (val) {
|
|
429
|
-
case this.EmProduto:
|
|
430
|
-
return 'Produtos';
|
|
431
|
-
case this.EmGrade:
|
|
432
|
-
return 'Grades';
|
|
433
|
-
default:
|
|
434
|
-
return 'enum not found';
|
|
435
|
-
}
|
|
436
|
-
},
|
|
437
|
-
};
|
|
438
|
-
exports.TipoCodigoEtiquetaProduto = {
|
|
439
|
-
SkuProduto: '0',
|
|
440
|
-
Ean13: '1',
|
|
441
|
-
CodigoBarra: '2',
|
|
442
|
-
description(val) {
|
|
443
|
-
switch (val) {
|
|
444
|
-
case this.SkuProduto:
|
|
445
|
-
return 'SKU do Produto';
|
|
446
|
-
case this.Ean13:
|
|
447
|
-
return 'EAN13';
|
|
448
|
-
case this.CodigoBarra:
|
|
449
|
-
return 'Cód. de Barras';
|
|
450
|
-
default:
|
|
451
|
-
return 'enum not found';
|
|
452
|
-
}
|
|
453
|
-
},
|
|
454
|
-
};
|
|
455
|
-
exports.SituacaoImagemProduto = {
|
|
456
|
-
ComImagem: '0',
|
|
457
|
-
SemImagem: '1',
|
|
458
|
-
description(val) {
|
|
459
|
-
switch (val) {
|
|
460
|
-
case this.ComImagem:
|
|
461
|
-
return 'Com Imagem';
|
|
462
|
-
case this.SemImagem:
|
|
463
|
-
return 'Sem Imagem';
|
|
464
|
-
default:
|
|
465
|
-
return 'enum not found';
|
|
466
|
-
}
|
|
467
|
-
},
|
|
468
|
-
};
|
|
469
|
-
exports.SituacaoColecao = {
|
|
470
|
-
Encerrada: '0',
|
|
471
|
-
EmAndamento: '1',
|
|
472
|
-
description(val) {
|
|
473
|
-
switch (val) {
|
|
474
|
-
case this.Encerrada:
|
|
475
|
-
return 'Encerrada';
|
|
476
|
-
case this.EmAndamento:
|
|
477
|
-
return 'Em Andamento';
|
|
478
|
-
default:
|
|
479
|
-
return 'enum not found';
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
};
|
|
483
|
-
exports.ModoPreco = {
|
|
484
|
-
Pai: '0',
|
|
485
|
-
Filho: '1',
|
|
486
|
-
description(val) {
|
|
487
|
-
switch (val) {
|
|
488
|
-
case this.Pai:
|
|
489
|
-
return 'Pai';
|
|
490
|
-
case this.Filho:
|
|
491
|
-
return 'Filho';
|
|
492
|
-
default:
|
|
493
|
-
return 'enum not found';
|
|
494
|
-
}
|
|
495
|
-
},
|
|
496
|
-
};
|
|
497
|
-
exports.TipoAtributo = {
|
|
498
|
-
Cor: '0',
|
|
499
|
-
Tamanho: '1',
|
|
500
|
-
Material: '2',
|
|
501
|
-
FaixaEtaria: '3',
|
|
502
|
-
Genero: '4',
|
|
503
|
-
Sabor: '5',
|
|
504
|
-
Voltagem: '6',
|
|
505
|
-
Potencia: '7',
|
|
506
|
-
description(val) {
|
|
507
|
-
switch (val) {
|
|
508
|
-
case this.Cor:
|
|
509
|
-
return 'Cor';
|
|
510
|
-
case this.Tamanho:
|
|
511
|
-
return 'Tamanho';
|
|
512
|
-
case this.Material:
|
|
513
|
-
return 'Material';
|
|
514
|
-
case this.FaixaEtaria:
|
|
515
|
-
return 'Faixa etária';
|
|
516
|
-
case this.Genero:
|
|
517
|
-
return 'Gênero';
|
|
518
|
-
case this.Sabor:
|
|
519
|
-
return 'Sabores';
|
|
520
|
-
case this.Voltagem:
|
|
521
|
-
return 'Voltagens';
|
|
522
|
-
case this.Potencia:
|
|
523
|
-
return 'Potencias';
|
|
524
|
-
default:
|
|
525
|
-
return 'enum not found';
|
|
526
|
-
}
|
|
527
|
-
},
|
|
528
|
-
};
|
|
529
|
-
exports.TipoCampoAtributo = {
|
|
530
|
-
Cor: 'color',
|
|
531
|
-
Texto: 'text',
|
|
532
|
-
Selecao: 'select',
|
|
533
|
-
description(val) {
|
|
534
|
-
switch (val) {
|
|
535
|
-
case this.Cor:
|
|
536
|
-
return 'Cor';
|
|
537
|
-
case this.Texto:
|
|
538
|
-
return 'Texto';
|
|
539
|
-
case this.Selecao:
|
|
540
|
-
return 'Seleção';
|
|
541
|
-
default:
|
|
542
|
-
return 'enum not found';
|
|
543
|
-
}
|
|
544
|
-
},
|
|
545
|
-
};
|
|
546
|
-
exports.TiposAtributo = [
|
|
547
|
-
{ tipo: exports.TipoAtributo.Cor, tipo_campo: exports.TipoCampoAtributo.Cor, values: null },
|
|
548
|
-
{ tipo: exports.TipoAtributo.Tamanho, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
|
|
549
|
-
{ tipo: exports.TipoAtributo.Material, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
|
|
550
|
-
{
|
|
551
|
-
tipo: exports.TipoAtributo.FaixaEtaria,
|
|
552
|
-
tipo_campo: exports.TipoCampoAtributo.Selecao,
|
|
553
|
-
values: [
|
|
554
|
-
{ label: 'Recém nascido', value: 'recem_nascido' },
|
|
555
|
-
{ label: 'Infantil', value: 'infantil' },
|
|
556
|
-
{ label: 'Criança', value: 'crianca' },
|
|
557
|
-
{ label: 'Adulto', value: 'adulto' },
|
|
558
|
-
],
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
tipo: exports.TipoAtributo.Genero,
|
|
562
|
-
tipo_campo: exports.TipoCampoAtributo.Selecao,
|
|
563
|
-
values: [
|
|
564
|
-
{ label: 'Masculino', value: 'masculino' },
|
|
565
|
-
{ label: 'Feminino', value: 'feminino' },
|
|
566
|
-
{ label: 'Unissex', value: 'unissex' },
|
|
567
|
-
],
|
|
568
|
-
},
|
|
569
|
-
{ tipo: exports.TipoAtributo.Sabor, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
|
|
570
|
-
{ tipo: exports.TipoAtributo.Voltagem, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
|
|
571
|
-
{ tipo: exports.TipoAtributo.Potencia, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
|
|
572
|
-
].map((item) => ({ ...item, descricao: exports.TipoAtributo.description(item.tipo) }));
|
|
573
|
-
exports.TiposAtributoVinculavelMarketplace = [
|
|
574
|
-
exports.TipoAtributo.Cor,
|
|
575
|
-
exports.TipoAtributo.Tamanho,
|
|
576
|
-
exports.TipoAtributo.Sabor,
|
|
577
|
-
exports.TipoAtributo.Voltagem,
|
|
578
|
-
exports.TipoAtributo.Potencia,
|
|
579
|
-
];
|
|
580
|
-
exports.TipoVeiculo = {
|
|
581
|
-
Carro: '0',
|
|
582
|
-
Moto: '1',
|
|
583
|
-
Van: '2',
|
|
584
|
-
Caminhao: '3',
|
|
585
|
-
Utilitario: '4',
|
|
586
|
-
Bicicleta: '5',
|
|
587
|
-
Outro: '6',
|
|
588
|
-
description(val) {
|
|
589
|
-
switch (val) {
|
|
590
|
-
case this.Carro:
|
|
591
|
-
return 'Carro';
|
|
592
|
-
case this.Moto:
|
|
593
|
-
return 'Moto';
|
|
594
|
-
case this.Van:
|
|
595
|
-
return 'Van';
|
|
596
|
-
case this.Caminhao:
|
|
597
|
-
return 'Caminhão';
|
|
598
|
-
case this.Utilitario:
|
|
599
|
-
return 'Utilitário';
|
|
600
|
-
case this.Bicicleta:
|
|
601
|
-
return 'Bicicleta';
|
|
602
|
-
case this.Outro:
|
|
603
|
-
return 'Outro';
|
|
604
|
-
default:
|
|
605
|
-
return 'enum not found';
|
|
606
|
-
}
|
|
607
|
-
},
|
|
608
|
-
};
|
|
609
|
-
exports.TipoCombustivel = {
|
|
610
|
-
Gasolina: '0',
|
|
611
|
-
Etanol: '1',
|
|
612
|
-
Flex: '2',
|
|
613
|
-
Diesel: '3',
|
|
614
|
-
Gnv: '4',
|
|
615
|
-
Eletrico: '5',
|
|
616
|
-
Hibrido: '6',
|
|
617
|
-
NaoSeAplica: '7',
|
|
618
|
-
description(val) {
|
|
619
|
-
switch (val) {
|
|
620
|
-
case this.Gasolina:
|
|
621
|
-
return 'Gasolina';
|
|
622
|
-
case this.Etanol:
|
|
623
|
-
return 'Etanol';
|
|
624
|
-
case this.Flex:
|
|
625
|
-
return 'Flex';
|
|
626
|
-
case this.Diesel:
|
|
627
|
-
return 'Diesel';
|
|
628
|
-
case this.Gnv:
|
|
629
|
-
return 'GNV';
|
|
630
|
-
case this.Eletrico:
|
|
631
|
-
return 'Elétrico';
|
|
632
|
-
case this.Hibrido:
|
|
633
|
-
return 'Híbrido';
|
|
634
|
-
case this.NaoSeAplica:
|
|
635
|
-
return 'Não se aplica';
|
|
636
|
-
default:
|
|
637
|
-
return 'enum not found';
|
|
638
|
-
}
|
|
639
|
-
},
|
|
640
|
-
};
|
|
641
|
-
exports.OperacaoConferencia = {
|
|
642
|
-
Entrada: '0',
|
|
643
|
-
Saida: '1',
|
|
644
|
-
description(val) {
|
|
645
|
-
switch (val) {
|
|
646
|
-
case this.Entrada:
|
|
647
|
-
return 'Entrada';
|
|
648
|
-
case this.Saida:
|
|
649
|
-
return 'Saída';
|
|
650
|
-
default:
|
|
651
|
-
return 'enum not found';
|
|
652
|
-
}
|
|
653
|
-
},
|
|
654
|
-
};
|
|
655
|
-
exports.ModoConferencia = {
|
|
656
|
-
Cega: '0',
|
|
657
|
-
Aberta: '1',
|
|
658
|
-
description(val) {
|
|
659
|
-
switch (val) {
|
|
660
|
-
case this.Cega:
|
|
661
|
-
return 'Cega';
|
|
662
|
-
case this.Aberta:
|
|
663
|
-
return 'Aberta';
|
|
664
|
-
default:
|
|
665
|
-
return 'enum not found';
|
|
666
|
-
}
|
|
667
|
-
},
|
|
668
|
-
};
|
|
669
|
-
exports.SituacaoConferencia = {
|
|
670
|
-
EmAndamento: '0',
|
|
671
|
-
Concluida: '1',
|
|
672
|
-
Finalizada: '2',
|
|
673
|
-
Cancelada: '3',
|
|
674
|
-
description(val) {
|
|
675
|
-
switch (val) {
|
|
676
|
-
case this.EmAndamento:
|
|
677
|
-
return 'Em Andamento';
|
|
678
|
-
case this.Concluida:
|
|
679
|
-
return 'Concluída';
|
|
680
|
-
case this.Finalizada:
|
|
681
|
-
return 'Finalizada';
|
|
682
|
-
case this.Cancelada:
|
|
683
|
-
return 'Cancelada';
|
|
684
|
-
default:
|
|
685
|
-
return 'enum not found';
|
|
686
|
-
}
|
|
687
|
-
},
|
|
688
|
-
};
|
|
689
|
-
exports.TipoDocumentoConferencia = {
|
|
690
|
-
Pedido: '0',
|
|
691
|
-
EnvioConsignacao: '1',
|
|
692
|
-
RetornoConsignacao: '2',
|
|
693
|
-
Compra: '3',
|
|
694
|
-
NotaFiscalEntrada: '4',
|
|
695
|
-
NotaFiscalSaida: '5',
|
|
696
|
-
Entrega: '6',
|
|
697
|
-
description(val) {
|
|
698
|
-
switch (val) {
|
|
699
|
-
case this.Pedido:
|
|
700
|
-
return 'Pedido de Venda';
|
|
701
|
-
case this.EnvioConsignacao:
|
|
702
|
-
return 'Envio de Consignação';
|
|
703
|
-
case this.RetornoConsignacao:
|
|
704
|
-
return 'Retorno de Consignação';
|
|
705
|
-
case this.Compra:
|
|
706
|
-
return 'Pedido de Compra';
|
|
707
|
-
case this.NotaFiscalEntrada:
|
|
708
|
-
return 'Nota Fiscal de Entrada';
|
|
709
|
-
case this.NotaFiscalSaida:
|
|
710
|
-
return 'Nota Fiscal de Saída';
|
|
711
|
-
case this.Entrega:
|
|
712
|
-
return 'Entrega';
|
|
713
|
-
default:
|
|
714
|
-
return 'enum not found';
|
|
715
|
-
}
|
|
716
|
-
},
|
|
717
|
-
operacao(val) {
|
|
718
|
-
switch (val) {
|
|
719
|
-
case this.RetornoConsignacao:
|
|
720
|
-
case this.Compra:
|
|
721
|
-
case this.NotaFiscalEntrada:
|
|
722
|
-
return exports.OperacaoConferencia.Entrada;
|
|
723
|
-
default:
|
|
724
|
-
return exports.OperacaoConferencia.Saida;
|
|
725
|
-
}
|
|
726
|
-
},
|
|
727
|
-
};
|
|
728
|
-
exports.SituacaoItemConferencia = {
|
|
729
|
-
Pendente: '0',
|
|
730
|
-
Conferido: '1',
|
|
731
|
-
Falta: '2',
|
|
732
|
-
Sobra: '3',
|
|
733
|
-
NaoPrevisto: '4',
|
|
734
|
-
description(val) {
|
|
735
|
-
switch (val) {
|
|
736
|
-
case this.Pendente:
|
|
737
|
-
return 'Pendente';
|
|
738
|
-
case this.Conferido:
|
|
739
|
-
return 'Conferido';
|
|
740
|
-
case this.Falta:
|
|
741
|
-
return 'Falta';
|
|
742
|
-
case this.Sobra:
|
|
743
|
-
return 'Sobra';
|
|
744
|
-
case this.NaoPrevisto:
|
|
745
|
-
return 'Não Previsto';
|
|
746
|
-
default:
|
|
747
|
-
return 'enum not found';
|
|
748
|
-
}
|
|
749
|
-
},
|
|
750
|
-
};
|
|
751
|
-
exports.SituacaoLeituraConferencia = {
|
|
752
|
-
Valida: '0',
|
|
753
|
-
Estornada: '1',
|
|
754
|
-
CodigoNaoEncontrado: '2',
|
|
755
|
-
Rejeitada: '3',
|
|
756
|
-
description(val) {
|
|
757
|
-
switch (val) {
|
|
758
|
-
case this.Valida:
|
|
759
|
-
return 'Válida';
|
|
760
|
-
case this.Estornada:
|
|
761
|
-
return 'Estornada';
|
|
762
|
-
case this.CodigoNaoEncontrado:
|
|
763
|
-
return 'Código não encontrado';
|
|
764
|
-
case this.Rejeitada:
|
|
765
|
-
return 'Rejeitada';
|
|
766
|
-
default:
|
|
767
|
-
return 'enum not found';
|
|
768
|
-
}
|
|
769
|
-
},
|
|
770
|
-
};
|
|
771
|
-
exports.TratamentoDivergenciaConferencia = {
|
|
772
|
-
EntradaComplementar: '0',
|
|
773
|
-
AjusteEntradaEstoque: '1',
|
|
774
|
-
AjusteSaidaEstoque: '2',
|
|
775
|
-
AjusteDocumento: '3',
|
|
776
|
-
AceiteDivergencia: '4',
|
|
777
|
-
description(val) {
|
|
778
|
-
switch (val) {
|
|
779
|
-
case this.EntradaComplementar:
|
|
780
|
-
return 'Entrada Complementar';
|
|
781
|
-
case this.AjusteEntradaEstoque:
|
|
782
|
-
return 'Ajuste de Entrada no Estoque';
|
|
783
|
-
case this.AjusteSaidaEstoque:
|
|
784
|
-
return 'Ajuste de Saída no Estoque';
|
|
785
|
-
case this.AjusteDocumento:
|
|
786
|
-
return 'Ajuste do Documento';
|
|
787
|
-
case this.AceiteDivergencia:
|
|
788
|
-
return 'Aceite da Divergência';
|
|
789
|
-
default:
|
|
790
|
-
return 'enum not found';
|
|
791
|
-
}
|
|
792
|
-
},
|
|
793
|
-
};
|
|
794
|
-
exports.SituacaoAjusteConferencia = {
|
|
795
|
-
Ativo: '0',
|
|
796
|
-
Estornado: '1',
|
|
797
|
-
description(val) {
|
|
798
|
-
switch (val) {
|
|
799
|
-
case this.Ativo:
|
|
800
|
-
return 'Ativo';
|
|
801
|
-
case this.Estornado:
|
|
802
|
-
return 'Estornado';
|
|
803
|
-
default:
|
|
804
|
-
return 'enum not found';
|
|
805
|
-
}
|
|
806
|
-
},
|
|
807
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SituacaoAjusteConferencia = exports.TratamentoDivergenciaConferencia = exports.SituacaoLeituraConferencia = exports.SituacaoItemConferencia = exports.TipoDocumentoConferencia = exports.SituacaoConferencia = exports.ModoConferencia = exports.OperacaoConferencia = exports.TipoCombustivel = exports.TipoVeiculo = exports.TiposAtributoVinculavelMarketplace = exports.TiposAtributo = exports.TipoCampoAtributo = exports.TipoAtributo = exports.ModoPreco = exports.SituacaoColecao = exports.SituacaoImagemProduto = exports.TipoCodigoEtiquetaProduto = exports.TipoDesdobramentoProduto = exports.TipoMovimentacaoItemInventario = exports.TipoAjusteInventario = exports.SituacaoItemInventario = exports.SituacaoInventario = exports.TipoItem = exports.TipoQuantidadeInfoNutricional = exports.TipoLeiRotulagem = exports.TipoAtualizacaoEstoque = exports.TipoImagemGaleria = exports.TipoCategoria = exports.SituacaoQuantidadeEstoque = exports.OperacaoMovimentacaoEstoque = exports.OrigemMovimentacaoEstoque = exports.SituacaoMovimentacaoEstoque = exports.TipoValoracao = exports.TipoDataOrdemProducao = exports.SituacaoProducaoPedido = exports.SituacaoOrdemProducao = exports.ModoProducao = exports.TipoProduto = void 0;
|
|
4
|
+
exports.TipoProduto = {
|
|
5
|
+
Simples: '0',
|
|
6
|
+
ComGrade: '1',
|
|
7
|
+
Kit: '2',
|
|
8
|
+
Conjunto: '3',
|
|
9
|
+
Composicao: '4',
|
|
10
|
+
description(val) {
|
|
11
|
+
switch (val) {
|
|
12
|
+
case this.Simples:
|
|
13
|
+
return 'Simples';
|
|
14
|
+
case this.ComGrade:
|
|
15
|
+
return 'Com Grade';
|
|
16
|
+
case this.Kit:
|
|
17
|
+
return 'Kit';
|
|
18
|
+
case this.Conjunto:
|
|
19
|
+
return 'Conjunto';
|
|
20
|
+
case this.Composicao:
|
|
21
|
+
return 'Composição';
|
|
22
|
+
default:
|
|
23
|
+
return 'enum not found';
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
isDesmembradoNaVenda(val) {
|
|
27
|
+
return val === this.Kit || val === this.Conjunto;
|
|
28
|
+
},
|
|
29
|
+
isSemEstoqueProprio(tipoProduto, modoProducao) {
|
|
30
|
+
return tipoProduto === this.Composicao && modoProducao === exports.ModoProducao.BaixaNaVenda;
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
exports.ModoProducao = {
|
|
34
|
+
Producao: '0',
|
|
35
|
+
BaixaNaVenda: '1',
|
|
36
|
+
description(val) {
|
|
37
|
+
switch (val) {
|
|
38
|
+
case this.Producao:
|
|
39
|
+
return 'Produção com estoque próprio';
|
|
40
|
+
case this.BaixaNaVenda:
|
|
41
|
+
return 'Baixa dos insumos na venda';
|
|
42
|
+
default:
|
|
43
|
+
return 'enum not found';
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
exports.SituacaoOrdemProducao = {
|
|
48
|
+
Pendente: '0',
|
|
49
|
+
Produzida: '1',
|
|
50
|
+
Estornada: '2',
|
|
51
|
+
EmProducao: '3',
|
|
52
|
+
description(val) {
|
|
53
|
+
switch (val) {
|
|
54
|
+
case this.Pendente:
|
|
55
|
+
return 'Pendente';
|
|
56
|
+
case this.Produzida:
|
|
57
|
+
return 'Produzida';
|
|
58
|
+
case this.Estornada:
|
|
59
|
+
return 'Estornada';
|
|
60
|
+
case this.EmProducao:
|
|
61
|
+
return 'Em produção';
|
|
62
|
+
default:
|
|
63
|
+
return 'enum not found';
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
isAberta(val) {
|
|
67
|
+
return val === this.Pendente || val === this.EmProducao;
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
exports.SituacaoProducaoPedido = {
|
|
71
|
+
AguardandoProducao: '0',
|
|
72
|
+
EmProducao: '1',
|
|
73
|
+
Produzido: '2',
|
|
74
|
+
description(val) {
|
|
75
|
+
switch (val) {
|
|
76
|
+
case this.AguardandoProducao:
|
|
77
|
+
return 'Aguardando produção';
|
|
78
|
+
case this.EmProducao:
|
|
79
|
+
return 'Em produção';
|
|
80
|
+
case this.Produzido:
|
|
81
|
+
return 'Produzido';
|
|
82
|
+
default:
|
|
83
|
+
return 'enum not found';
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
exports.TipoDataOrdemProducao = {
|
|
88
|
+
Cadastro: '0',
|
|
89
|
+
PrevisaoConclusao: '1',
|
|
90
|
+
Producao: '2',
|
|
91
|
+
description(val) {
|
|
92
|
+
switch (val) {
|
|
93
|
+
case this.Cadastro:
|
|
94
|
+
return 'Cadastro';
|
|
95
|
+
case this.PrevisaoConclusao:
|
|
96
|
+
return 'Previsão de conclusão';
|
|
97
|
+
case this.Producao:
|
|
98
|
+
return 'Produção';
|
|
99
|
+
default:
|
|
100
|
+
return 'enum not found';
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
exports.TipoValoracao = {
|
|
105
|
+
PrecoCompra: '0',
|
|
106
|
+
PrecoCusto: '1',
|
|
107
|
+
PrecoVenda: '2',
|
|
108
|
+
PrecoAtacado: '3',
|
|
109
|
+
description(val) {
|
|
110
|
+
switch (val) {
|
|
111
|
+
case this.PrecoCompra:
|
|
112
|
+
return 'Preço de Compra';
|
|
113
|
+
case this.PrecoCusto:
|
|
114
|
+
return 'Preço de Custo';
|
|
115
|
+
case this.PrecoVenda:
|
|
116
|
+
return 'Preço de Venda';
|
|
117
|
+
case this.PrecoAtacado:
|
|
118
|
+
return 'Preço de Atacado';
|
|
119
|
+
default:
|
|
120
|
+
return 'enum not found';
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
exports.SituacaoMovimentacaoEstoque = {
|
|
125
|
+
EmEdicao: '0',
|
|
126
|
+
Processado: '1',
|
|
127
|
+
Estornado: '2',
|
|
128
|
+
description(val) {
|
|
129
|
+
switch (val) {
|
|
130
|
+
case this.EmEdicao:
|
|
131
|
+
return 'Em Edição';
|
|
132
|
+
case this.Processado:
|
|
133
|
+
return 'Processado';
|
|
134
|
+
case this.Estornado:
|
|
135
|
+
return 'Estornado';
|
|
136
|
+
default:
|
|
137
|
+
return 'enum not found';
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
exports.OrigemMovimentacaoEstoque = {
|
|
142
|
+
Manual: '1',
|
|
143
|
+
NotaFiscal: '2',
|
|
144
|
+
Pedido: '3',
|
|
145
|
+
Inventario: '4',
|
|
146
|
+
Conferencia: '5',
|
|
147
|
+
Producao: '6',
|
|
148
|
+
description(val) {
|
|
149
|
+
switch (val) {
|
|
150
|
+
case this.Manual:
|
|
151
|
+
return 'Manual';
|
|
152
|
+
case this.NotaFiscal:
|
|
153
|
+
return 'Nota Fiscal';
|
|
154
|
+
case this.Pedido:
|
|
155
|
+
return 'Pedido';
|
|
156
|
+
case this.Inventario:
|
|
157
|
+
return 'Inventário';
|
|
158
|
+
case this.Conferencia:
|
|
159
|
+
return 'Conferência';
|
|
160
|
+
case this.Producao:
|
|
161
|
+
return 'Produção';
|
|
162
|
+
default:
|
|
163
|
+
return 'enum not found';
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
exports.OperacaoMovimentacaoEstoque = {
|
|
168
|
+
Entrada: '0',
|
|
169
|
+
Saida: '1',
|
|
170
|
+
Transferencia: '2',
|
|
171
|
+
description(val) {
|
|
172
|
+
switch (val) {
|
|
173
|
+
case this.Entrada:
|
|
174
|
+
return 'Entrada';
|
|
175
|
+
case this.Saida:
|
|
176
|
+
return 'Saída';
|
|
177
|
+
case this.Transferencia:
|
|
178
|
+
return 'Transferência';
|
|
179
|
+
default:
|
|
180
|
+
return 'enum not found';
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
};
|
|
184
|
+
exports.SituacaoQuantidadeEstoque = {
|
|
185
|
+
Negativo: '0',
|
|
186
|
+
Positivo: '1',
|
|
187
|
+
description(val) {
|
|
188
|
+
switch (val) {
|
|
189
|
+
case this.Negativo:
|
|
190
|
+
return 'Negativo';
|
|
191
|
+
case this.Positivo:
|
|
192
|
+
return 'Positivo';
|
|
193
|
+
default:
|
|
194
|
+
return 'enum not found';
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
};
|
|
198
|
+
exports.TipoCategoria = {
|
|
199
|
+
Beleza: '0',
|
|
200
|
+
Bolsa: '1',
|
|
201
|
+
Calçado: '2',
|
|
202
|
+
Celular: '3',
|
|
203
|
+
Decoracao: '4',
|
|
204
|
+
Eletrodomestico: '5',
|
|
205
|
+
Eletronico: '6',
|
|
206
|
+
Esporte: '7',
|
|
207
|
+
Ferramenta: '8',
|
|
208
|
+
Game: '9',
|
|
209
|
+
Movel: '10',
|
|
210
|
+
Vestuario: '11',
|
|
211
|
+
Saude: '12',
|
|
212
|
+
Automotivo: '13',
|
|
213
|
+
MateriaisConstrucao: '14',
|
|
214
|
+
description(val) {
|
|
215
|
+
switch (val) {
|
|
216
|
+
case this.Beleza:
|
|
217
|
+
return 'Beleza';
|
|
218
|
+
case this.Bolsa:
|
|
219
|
+
return 'Bolsas';
|
|
220
|
+
case this.Calçado:
|
|
221
|
+
return 'Calçados';
|
|
222
|
+
case this.Celular:
|
|
223
|
+
return 'Celular';
|
|
224
|
+
case this.Decoracao:
|
|
225
|
+
return 'Decoração';
|
|
226
|
+
case this.Eletrodomestico:
|
|
227
|
+
return 'Eletrodomésticos';
|
|
228
|
+
case this.Eletronico:
|
|
229
|
+
return 'Eletrônicos';
|
|
230
|
+
case this.Esporte:
|
|
231
|
+
return 'Esportes';
|
|
232
|
+
case this.Ferramenta:
|
|
233
|
+
return 'Ferramentas';
|
|
234
|
+
case this.Game:
|
|
235
|
+
return 'Games';
|
|
236
|
+
case this.Movel:
|
|
237
|
+
return 'Móveis';
|
|
238
|
+
case this.Vestuario:
|
|
239
|
+
return 'Vestuário';
|
|
240
|
+
case this.Saude:
|
|
241
|
+
return 'Saúde';
|
|
242
|
+
case this.Automotivo:
|
|
243
|
+
return 'Automotivo';
|
|
244
|
+
case this.MateriaisConstrucao:
|
|
245
|
+
return 'Materiais de Construção';
|
|
246
|
+
default:
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
};
|
|
251
|
+
exports.TipoImagemGaleria = {
|
|
252
|
+
Geral: '0',
|
|
253
|
+
PorGrade: '1',
|
|
254
|
+
description(val) {
|
|
255
|
+
switch (val) {
|
|
256
|
+
case this.Geral:
|
|
257
|
+
return 'Geral';
|
|
258
|
+
case this.PorGrade:
|
|
259
|
+
return 'Por Grade';
|
|
260
|
+
default:
|
|
261
|
+
return 'enum not found';
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
};
|
|
265
|
+
exports.TipoAtualizacaoEstoque = {
|
|
266
|
+
NotaFiscal: '0',
|
|
267
|
+
MovimentacaoEstoque: '1',
|
|
268
|
+
description(val) {
|
|
269
|
+
switch (val) {
|
|
270
|
+
case this.NotaFiscal:
|
|
271
|
+
return 'Nota Fiscal';
|
|
272
|
+
case this.MovimentacaoEstoque:
|
|
273
|
+
return 'Movimentaçaõ de Estoque';
|
|
274
|
+
default:
|
|
275
|
+
return 'enum not found';
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
};
|
|
279
|
+
exports.TipoLeiRotulagem = {
|
|
280
|
+
Lei_360: '0',
|
|
281
|
+
Lei_429: '1',
|
|
282
|
+
description(val) {
|
|
283
|
+
switch (val) {
|
|
284
|
+
case this.Lei_360:
|
|
285
|
+
return 'RDC 359/360';
|
|
286
|
+
case this.Lei_429:
|
|
287
|
+
return 'RDC 429';
|
|
288
|
+
default:
|
|
289
|
+
return 'enum not found';
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
};
|
|
293
|
+
exports.TipoQuantidadeInfoNutricional = {
|
|
294
|
+
Grama: '0',
|
|
295
|
+
Mililitro: '1',
|
|
296
|
+
description(val) {
|
|
297
|
+
switch (val) {
|
|
298
|
+
case this.Grama:
|
|
299
|
+
return '100 G (100 gramas)';
|
|
300
|
+
case this.Mililitro:
|
|
301
|
+
return '100 ML (100 mililitros)';
|
|
302
|
+
default:
|
|
303
|
+
return 'enum not found';
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
};
|
|
307
|
+
exports.TipoItem = {
|
|
308
|
+
MercadoriaRevenda: '00',
|
|
309
|
+
MateriaPrima: '01',
|
|
310
|
+
Embalagem: '02',
|
|
311
|
+
ProdutoProcesso: '03',
|
|
312
|
+
ProdutoAcabado: '04',
|
|
313
|
+
Subproduto: '05',
|
|
314
|
+
ProdutoIntermediario: '06',
|
|
315
|
+
MaterialUsoConsumo: '07',
|
|
316
|
+
AtivoImobilizado: '08',
|
|
317
|
+
Servicos: '09',
|
|
318
|
+
OutrosInsumos: '10',
|
|
319
|
+
Outras: '99',
|
|
320
|
+
description(val) {
|
|
321
|
+
switch (val) {
|
|
322
|
+
case this.MercadoriaRevenda:
|
|
323
|
+
return 'Mercadoria para revenda';
|
|
324
|
+
case this.MateriaPrima:
|
|
325
|
+
return 'Matéria-prima';
|
|
326
|
+
case this.MateriaPrima:
|
|
327
|
+
return 'Matéria-prima';
|
|
328
|
+
case this.Embalagem:
|
|
329
|
+
return 'Embalagem';
|
|
330
|
+
case this.ProdutoProcesso:
|
|
331
|
+
return 'Produto em processo';
|
|
332
|
+
case this.ProdutoAcabado:
|
|
333
|
+
return 'Produto acabado';
|
|
334
|
+
case this.Subproduto:
|
|
335
|
+
return 'Subproduto';
|
|
336
|
+
case this.ProdutoIntermediario:
|
|
337
|
+
return 'Produto intermediário';
|
|
338
|
+
case this.MaterialUsoConsumo:
|
|
339
|
+
return 'Material de uso e consumo';
|
|
340
|
+
case this.AtivoImobilizado:
|
|
341
|
+
return 'Ativo imobilizado';
|
|
342
|
+
case this.Servicos:
|
|
343
|
+
return 'Serviços';
|
|
344
|
+
case this.OutrosInsumos:
|
|
345
|
+
return 'Outros insumos';
|
|
346
|
+
case this.Outras:
|
|
347
|
+
return 'Outras';
|
|
348
|
+
default:
|
|
349
|
+
return 'enum not found';
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
};
|
|
353
|
+
exports.SituacaoInventario = {
|
|
354
|
+
EmAndamento: '0',
|
|
355
|
+
Concluido: '1',
|
|
356
|
+
Cancelado: '2',
|
|
357
|
+
description(val) {
|
|
358
|
+
switch (val) {
|
|
359
|
+
case this.EmAndamento:
|
|
360
|
+
return 'Em Andamento';
|
|
361
|
+
case this.Concluido:
|
|
362
|
+
return 'Concluído';
|
|
363
|
+
case this.Cancelado:
|
|
364
|
+
return 'Cancelado';
|
|
365
|
+
default:
|
|
366
|
+
return 'enum not found';
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
};
|
|
370
|
+
exports.SituacaoItemInventario = {
|
|
371
|
+
Excluido: '0',
|
|
372
|
+
Atualizado: '1',
|
|
373
|
+
AtualizacaoPendente: '2',
|
|
374
|
+
InclusaoPendente: '3',
|
|
375
|
+
description(val) {
|
|
376
|
+
switch (val) {
|
|
377
|
+
case this.Atualizado:
|
|
378
|
+
return 'Atualizado';
|
|
379
|
+
case this.Excluido:
|
|
380
|
+
return 'Excluído';
|
|
381
|
+
case this.AtualizacaoPendente:
|
|
382
|
+
return 'Atualização Pendente';
|
|
383
|
+
case this.InclusaoPendente:
|
|
384
|
+
return 'Inclusão Pendente';
|
|
385
|
+
default:
|
|
386
|
+
return 'enum not found';
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
};
|
|
390
|
+
exports.TipoAjusteInventario = {
|
|
391
|
+
Ajuste: '0',
|
|
392
|
+
ApenasEntrada: '1',
|
|
393
|
+
ApenasSaida: '2',
|
|
394
|
+
description(val) {
|
|
395
|
+
switch (val) {
|
|
396
|
+
case this.Ajuste:
|
|
397
|
+
return 'Ajuste';
|
|
398
|
+
case this.ApenasEntrada:
|
|
399
|
+
return 'Apenas Entrada';
|
|
400
|
+
case this.ApenasSaida:
|
|
401
|
+
return 'Apenas Saída';
|
|
402
|
+
default:
|
|
403
|
+
return 'enum not found';
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
};
|
|
407
|
+
exports.TipoMovimentacaoItemInventario = {
|
|
408
|
+
Entrada: '0',
|
|
409
|
+
Saida: '1',
|
|
410
|
+
SemMov: '3',
|
|
411
|
+
description(val) {
|
|
412
|
+
switch (val) {
|
|
413
|
+
case this.Entrada:
|
|
414
|
+
return 'Entrada';
|
|
415
|
+
case this.Saida:
|
|
416
|
+
return 'Saída';
|
|
417
|
+
case this.SemMov:
|
|
418
|
+
return 'Não Mov.';
|
|
419
|
+
default:
|
|
420
|
+
return 'enum not found';
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
};
|
|
424
|
+
exports.TipoDesdobramentoProduto = {
|
|
425
|
+
EmProduto: '0',
|
|
426
|
+
EmGrade: '1',
|
|
427
|
+
description(val) {
|
|
428
|
+
switch (val) {
|
|
429
|
+
case this.EmProduto:
|
|
430
|
+
return 'Produtos';
|
|
431
|
+
case this.EmGrade:
|
|
432
|
+
return 'Grades';
|
|
433
|
+
default:
|
|
434
|
+
return 'enum not found';
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
};
|
|
438
|
+
exports.TipoCodigoEtiquetaProduto = {
|
|
439
|
+
SkuProduto: '0',
|
|
440
|
+
Ean13: '1',
|
|
441
|
+
CodigoBarra: '2',
|
|
442
|
+
description(val) {
|
|
443
|
+
switch (val) {
|
|
444
|
+
case this.SkuProduto:
|
|
445
|
+
return 'SKU do Produto';
|
|
446
|
+
case this.Ean13:
|
|
447
|
+
return 'EAN13';
|
|
448
|
+
case this.CodigoBarra:
|
|
449
|
+
return 'Cód. de Barras';
|
|
450
|
+
default:
|
|
451
|
+
return 'enum not found';
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
};
|
|
455
|
+
exports.SituacaoImagemProduto = {
|
|
456
|
+
ComImagem: '0',
|
|
457
|
+
SemImagem: '1',
|
|
458
|
+
description(val) {
|
|
459
|
+
switch (val) {
|
|
460
|
+
case this.ComImagem:
|
|
461
|
+
return 'Com Imagem';
|
|
462
|
+
case this.SemImagem:
|
|
463
|
+
return 'Sem Imagem';
|
|
464
|
+
default:
|
|
465
|
+
return 'enum not found';
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
};
|
|
469
|
+
exports.SituacaoColecao = {
|
|
470
|
+
Encerrada: '0',
|
|
471
|
+
EmAndamento: '1',
|
|
472
|
+
description(val) {
|
|
473
|
+
switch (val) {
|
|
474
|
+
case this.Encerrada:
|
|
475
|
+
return 'Encerrada';
|
|
476
|
+
case this.EmAndamento:
|
|
477
|
+
return 'Em Andamento';
|
|
478
|
+
default:
|
|
479
|
+
return 'enum not found';
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
};
|
|
483
|
+
exports.ModoPreco = {
|
|
484
|
+
Pai: '0',
|
|
485
|
+
Filho: '1',
|
|
486
|
+
description(val) {
|
|
487
|
+
switch (val) {
|
|
488
|
+
case this.Pai:
|
|
489
|
+
return 'Pai';
|
|
490
|
+
case this.Filho:
|
|
491
|
+
return 'Filho';
|
|
492
|
+
default:
|
|
493
|
+
return 'enum not found';
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
};
|
|
497
|
+
exports.TipoAtributo = {
|
|
498
|
+
Cor: '0',
|
|
499
|
+
Tamanho: '1',
|
|
500
|
+
Material: '2',
|
|
501
|
+
FaixaEtaria: '3',
|
|
502
|
+
Genero: '4',
|
|
503
|
+
Sabor: '5',
|
|
504
|
+
Voltagem: '6',
|
|
505
|
+
Potencia: '7',
|
|
506
|
+
description(val) {
|
|
507
|
+
switch (val) {
|
|
508
|
+
case this.Cor:
|
|
509
|
+
return 'Cor';
|
|
510
|
+
case this.Tamanho:
|
|
511
|
+
return 'Tamanho';
|
|
512
|
+
case this.Material:
|
|
513
|
+
return 'Material';
|
|
514
|
+
case this.FaixaEtaria:
|
|
515
|
+
return 'Faixa etária';
|
|
516
|
+
case this.Genero:
|
|
517
|
+
return 'Gênero';
|
|
518
|
+
case this.Sabor:
|
|
519
|
+
return 'Sabores';
|
|
520
|
+
case this.Voltagem:
|
|
521
|
+
return 'Voltagens';
|
|
522
|
+
case this.Potencia:
|
|
523
|
+
return 'Potencias';
|
|
524
|
+
default:
|
|
525
|
+
return 'enum not found';
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
};
|
|
529
|
+
exports.TipoCampoAtributo = {
|
|
530
|
+
Cor: 'color',
|
|
531
|
+
Texto: 'text',
|
|
532
|
+
Selecao: 'select',
|
|
533
|
+
description(val) {
|
|
534
|
+
switch (val) {
|
|
535
|
+
case this.Cor:
|
|
536
|
+
return 'Cor';
|
|
537
|
+
case this.Texto:
|
|
538
|
+
return 'Texto';
|
|
539
|
+
case this.Selecao:
|
|
540
|
+
return 'Seleção';
|
|
541
|
+
default:
|
|
542
|
+
return 'enum not found';
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
};
|
|
546
|
+
exports.TiposAtributo = [
|
|
547
|
+
{ tipo: exports.TipoAtributo.Cor, tipo_campo: exports.TipoCampoAtributo.Cor, values: null },
|
|
548
|
+
{ tipo: exports.TipoAtributo.Tamanho, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
|
|
549
|
+
{ tipo: exports.TipoAtributo.Material, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
|
|
550
|
+
{
|
|
551
|
+
tipo: exports.TipoAtributo.FaixaEtaria,
|
|
552
|
+
tipo_campo: exports.TipoCampoAtributo.Selecao,
|
|
553
|
+
values: [
|
|
554
|
+
{ label: 'Recém nascido', value: 'recem_nascido' },
|
|
555
|
+
{ label: 'Infantil', value: 'infantil' },
|
|
556
|
+
{ label: 'Criança', value: 'crianca' },
|
|
557
|
+
{ label: 'Adulto', value: 'adulto' },
|
|
558
|
+
],
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
tipo: exports.TipoAtributo.Genero,
|
|
562
|
+
tipo_campo: exports.TipoCampoAtributo.Selecao,
|
|
563
|
+
values: [
|
|
564
|
+
{ label: 'Masculino', value: 'masculino' },
|
|
565
|
+
{ label: 'Feminino', value: 'feminino' },
|
|
566
|
+
{ label: 'Unissex', value: 'unissex' },
|
|
567
|
+
],
|
|
568
|
+
},
|
|
569
|
+
{ tipo: exports.TipoAtributo.Sabor, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
|
|
570
|
+
{ tipo: exports.TipoAtributo.Voltagem, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
|
|
571
|
+
{ tipo: exports.TipoAtributo.Potencia, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
|
|
572
|
+
].map((item) => ({ ...item, descricao: exports.TipoAtributo.description(item.tipo) }));
|
|
573
|
+
exports.TiposAtributoVinculavelMarketplace = [
|
|
574
|
+
exports.TipoAtributo.Cor,
|
|
575
|
+
exports.TipoAtributo.Tamanho,
|
|
576
|
+
exports.TipoAtributo.Sabor,
|
|
577
|
+
exports.TipoAtributo.Voltagem,
|
|
578
|
+
exports.TipoAtributo.Potencia,
|
|
579
|
+
];
|
|
580
|
+
exports.TipoVeiculo = {
|
|
581
|
+
Carro: '0',
|
|
582
|
+
Moto: '1',
|
|
583
|
+
Van: '2',
|
|
584
|
+
Caminhao: '3',
|
|
585
|
+
Utilitario: '4',
|
|
586
|
+
Bicicleta: '5',
|
|
587
|
+
Outro: '6',
|
|
588
|
+
description(val) {
|
|
589
|
+
switch (val) {
|
|
590
|
+
case this.Carro:
|
|
591
|
+
return 'Carro';
|
|
592
|
+
case this.Moto:
|
|
593
|
+
return 'Moto';
|
|
594
|
+
case this.Van:
|
|
595
|
+
return 'Van';
|
|
596
|
+
case this.Caminhao:
|
|
597
|
+
return 'Caminhão';
|
|
598
|
+
case this.Utilitario:
|
|
599
|
+
return 'Utilitário';
|
|
600
|
+
case this.Bicicleta:
|
|
601
|
+
return 'Bicicleta';
|
|
602
|
+
case this.Outro:
|
|
603
|
+
return 'Outro';
|
|
604
|
+
default:
|
|
605
|
+
return 'enum not found';
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
};
|
|
609
|
+
exports.TipoCombustivel = {
|
|
610
|
+
Gasolina: '0',
|
|
611
|
+
Etanol: '1',
|
|
612
|
+
Flex: '2',
|
|
613
|
+
Diesel: '3',
|
|
614
|
+
Gnv: '4',
|
|
615
|
+
Eletrico: '5',
|
|
616
|
+
Hibrido: '6',
|
|
617
|
+
NaoSeAplica: '7',
|
|
618
|
+
description(val) {
|
|
619
|
+
switch (val) {
|
|
620
|
+
case this.Gasolina:
|
|
621
|
+
return 'Gasolina';
|
|
622
|
+
case this.Etanol:
|
|
623
|
+
return 'Etanol';
|
|
624
|
+
case this.Flex:
|
|
625
|
+
return 'Flex';
|
|
626
|
+
case this.Diesel:
|
|
627
|
+
return 'Diesel';
|
|
628
|
+
case this.Gnv:
|
|
629
|
+
return 'GNV';
|
|
630
|
+
case this.Eletrico:
|
|
631
|
+
return 'Elétrico';
|
|
632
|
+
case this.Hibrido:
|
|
633
|
+
return 'Híbrido';
|
|
634
|
+
case this.NaoSeAplica:
|
|
635
|
+
return 'Não se aplica';
|
|
636
|
+
default:
|
|
637
|
+
return 'enum not found';
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
};
|
|
641
|
+
exports.OperacaoConferencia = {
|
|
642
|
+
Entrada: '0',
|
|
643
|
+
Saida: '1',
|
|
644
|
+
description(val) {
|
|
645
|
+
switch (val) {
|
|
646
|
+
case this.Entrada:
|
|
647
|
+
return 'Entrada';
|
|
648
|
+
case this.Saida:
|
|
649
|
+
return 'Saída';
|
|
650
|
+
default:
|
|
651
|
+
return 'enum not found';
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
};
|
|
655
|
+
exports.ModoConferencia = {
|
|
656
|
+
Cega: '0',
|
|
657
|
+
Aberta: '1',
|
|
658
|
+
description(val) {
|
|
659
|
+
switch (val) {
|
|
660
|
+
case this.Cega:
|
|
661
|
+
return 'Cega';
|
|
662
|
+
case this.Aberta:
|
|
663
|
+
return 'Aberta';
|
|
664
|
+
default:
|
|
665
|
+
return 'enum not found';
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
};
|
|
669
|
+
exports.SituacaoConferencia = {
|
|
670
|
+
EmAndamento: '0',
|
|
671
|
+
Concluida: '1',
|
|
672
|
+
Finalizada: '2',
|
|
673
|
+
Cancelada: '3',
|
|
674
|
+
description(val) {
|
|
675
|
+
switch (val) {
|
|
676
|
+
case this.EmAndamento:
|
|
677
|
+
return 'Em Andamento';
|
|
678
|
+
case this.Concluida:
|
|
679
|
+
return 'Concluída';
|
|
680
|
+
case this.Finalizada:
|
|
681
|
+
return 'Finalizada';
|
|
682
|
+
case this.Cancelada:
|
|
683
|
+
return 'Cancelada';
|
|
684
|
+
default:
|
|
685
|
+
return 'enum not found';
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
};
|
|
689
|
+
exports.TipoDocumentoConferencia = {
|
|
690
|
+
Pedido: '0',
|
|
691
|
+
EnvioConsignacao: '1',
|
|
692
|
+
RetornoConsignacao: '2',
|
|
693
|
+
Compra: '3',
|
|
694
|
+
NotaFiscalEntrada: '4',
|
|
695
|
+
NotaFiscalSaida: '5',
|
|
696
|
+
Entrega: '6',
|
|
697
|
+
description(val) {
|
|
698
|
+
switch (val) {
|
|
699
|
+
case this.Pedido:
|
|
700
|
+
return 'Pedido de Venda';
|
|
701
|
+
case this.EnvioConsignacao:
|
|
702
|
+
return 'Envio de Consignação';
|
|
703
|
+
case this.RetornoConsignacao:
|
|
704
|
+
return 'Retorno de Consignação';
|
|
705
|
+
case this.Compra:
|
|
706
|
+
return 'Pedido de Compra';
|
|
707
|
+
case this.NotaFiscalEntrada:
|
|
708
|
+
return 'Nota Fiscal de Entrada';
|
|
709
|
+
case this.NotaFiscalSaida:
|
|
710
|
+
return 'Nota Fiscal de Saída';
|
|
711
|
+
case this.Entrega:
|
|
712
|
+
return 'Entrega';
|
|
713
|
+
default:
|
|
714
|
+
return 'enum not found';
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
operacao(val) {
|
|
718
|
+
switch (val) {
|
|
719
|
+
case this.RetornoConsignacao:
|
|
720
|
+
case this.Compra:
|
|
721
|
+
case this.NotaFiscalEntrada:
|
|
722
|
+
return exports.OperacaoConferencia.Entrada;
|
|
723
|
+
default:
|
|
724
|
+
return exports.OperacaoConferencia.Saida;
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
};
|
|
728
|
+
exports.SituacaoItemConferencia = {
|
|
729
|
+
Pendente: '0',
|
|
730
|
+
Conferido: '1',
|
|
731
|
+
Falta: '2',
|
|
732
|
+
Sobra: '3',
|
|
733
|
+
NaoPrevisto: '4',
|
|
734
|
+
description(val) {
|
|
735
|
+
switch (val) {
|
|
736
|
+
case this.Pendente:
|
|
737
|
+
return 'Pendente';
|
|
738
|
+
case this.Conferido:
|
|
739
|
+
return 'Conferido';
|
|
740
|
+
case this.Falta:
|
|
741
|
+
return 'Falta';
|
|
742
|
+
case this.Sobra:
|
|
743
|
+
return 'Sobra';
|
|
744
|
+
case this.NaoPrevisto:
|
|
745
|
+
return 'Não Previsto';
|
|
746
|
+
default:
|
|
747
|
+
return 'enum not found';
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
};
|
|
751
|
+
exports.SituacaoLeituraConferencia = {
|
|
752
|
+
Valida: '0',
|
|
753
|
+
Estornada: '1',
|
|
754
|
+
CodigoNaoEncontrado: '2',
|
|
755
|
+
Rejeitada: '3',
|
|
756
|
+
description(val) {
|
|
757
|
+
switch (val) {
|
|
758
|
+
case this.Valida:
|
|
759
|
+
return 'Válida';
|
|
760
|
+
case this.Estornada:
|
|
761
|
+
return 'Estornada';
|
|
762
|
+
case this.CodigoNaoEncontrado:
|
|
763
|
+
return 'Código não encontrado';
|
|
764
|
+
case this.Rejeitada:
|
|
765
|
+
return 'Rejeitada';
|
|
766
|
+
default:
|
|
767
|
+
return 'enum not found';
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
};
|
|
771
|
+
exports.TratamentoDivergenciaConferencia = {
|
|
772
|
+
EntradaComplementar: '0',
|
|
773
|
+
AjusteEntradaEstoque: '1',
|
|
774
|
+
AjusteSaidaEstoque: '2',
|
|
775
|
+
AjusteDocumento: '3',
|
|
776
|
+
AceiteDivergencia: '4',
|
|
777
|
+
description(val) {
|
|
778
|
+
switch (val) {
|
|
779
|
+
case this.EntradaComplementar:
|
|
780
|
+
return 'Entrada Complementar';
|
|
781
|
+
case this.AjusteEntradaEstoque:
|
|
782
|
+
return 'Ajuste de Entrada no Estoque';
|
|
783
|
+
case this.AjusteSaidaEstoque:
|
|
784
|
+
return 'Ajuste de Saída no Estoque';
|
|
785
|
+
case this.AjusteDocumento:
|
|
786
|
+
return 'Ajuste do Documento';
|
|
787
|
+
case this.AceiteDivergencia:
|
|
788
|
+
return 'Aceite da Divergência';
|
|
789
|
+
default:
|
|
790
|
+
return 'enum not found';
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
};
|
|
794
|
+
exports.SituacaoAjusteConferencia = {
|
|
795
|
+
Ativo: '0',
|
|
796
|
+
Estornado: '1',
|
|
797
|
+
description(val) {
|
|
798
|
+
switch (val) {
|
|
799
|
+
case this.Ativo:
|
|
800
|
+
return 'Ativo';
|
|
801
|
+
case this.Estornado:
|
|
802
|
+
return 'Estornado';
|
|
803
|
+
default:
|
|
804
|
+
return 'enum not found';
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
};
|