mdz-enum 1.7.54 → 1.7.56
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/README.MD +7 -7
- package/dist/checkout/index.d.ts +33 -33
- package/dist/checkout/index.js +97 -97
- package/dist/commercial/index.d.ts +286 -286
- package/dist/commercial/index.js +726 -726
- package/dist/common/index.d.ts +75 -75
- package/dist/common/index.js +217 -217
- package/dist/config/index.d.ts +238 -238
- package/dist/config/index.js +734 -734
- package/dist/eva/index.d.ts +198 -198
- package/dist/eva/index.js +330 -330
- package/dist/finance/index.d.ts +251 -251
- package/dist/finance/index.js +760 -760
- package/dist/fiscal/index.d.ts +612 -612
- package/dist/fiscal/index.js +1593 -1593
- package/dist/functions.d.ts +11 -11
- package/dist/functions.js +74 -74
- package/dist/general/index.d.ts +266 -266
- package/dist/general/index.js +515 -515
- 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 +344 -341
- package/dist/integration/index.d.ts +37 -37
- package/dist/integration/index.js +109 -109
- package/dist/logistics/index.d.ts +322 -322
- package/dist/logistics/index.js +920 -920
- 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 +597 -600
- package/dist/marketplace/templates/index.js +49 -49
- package/dist/marketplace/templates/pages/index.d.ts +268 -268
- package/dist/marketplace/templates/pages/index.js +457 -457
- package/dist/marketplace/templates/reference/index.d.ts +29 -29
- package/dist/marketplace/templates/reference/index.js +31 -31
- package/dist/people/index.d.ts +66 -66
- package/dist/people/index.js +192 -192
- package/dist/platform/index.d.ts +395 -395
- package/dist/platform/index.js +1226 -1226
- package/dist/reports/index.d.ts +135 -135
- package/dist/reports/index.js +394 -394
- package/dist/service/index.d.ts +96 -73
- package/dist/service/index.js +313 -225
- package/package.json +1 -1
package/dist/service/index.js
CHANGED
|
@@ -1,225 +1,313 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResultadoAcionamentoGarantia = exports.InicioGarantia = exports.OrigemGarantia = exports.StatusGarantia = exports.SituacaoGarantia = exports.EscopoCampoObjeto = exports.TipoCampoObjeto = exports.GradesAgenda = exports.DiaSemana = exports.TipoAgendaHorario = exports.TransicoesSituacaoAgendamento = exports.SituacoesAgendamentoEditaveis = exports.SituacoesAgendamentoOcupamAgenda = exports.SituacaoAgendamento = void 0;
|
|
4
|
-
exports.SituacaoAgendamento = {
|
|
5
|
-
Agendado: '1',
|
|
6
|
-
Confirmado: '2',
|
|
7
|
-
EmAtendimento: '3',
|
|
8
|
-
Concluido: '4',
|
|
9
|
-
Cancelado: '5',
|
|
10
|
-
NaoCompareceu: '6',
|
|
11
|
-
description(val) {
|
|
12
|
-
switch (val) {
|
|
13
|
-
case this.Agendado:
|
|
14
|
-
return 'Agendado';
|
|
15
|
-
case this.Confirmado:
|
|
16
|
-
return 'Confirmado';
|
|
17
|
-
case this.EmAtendimento:
|
|
18
|
-
return 'Em atendimento';
|
|
19
|
-
case this.Concluido:
|
|
20
|
-
return 'Concluído';
|
|
21
|
-
case this.Cancelado:
|
|
22
|
-
return 'Cancelado';
|
|
23
|
-
case this.NaoCompareceu:
|
|
24
|
-
return 'Não compareceu';
|
|
25
|
-
default:
|
|
26
|
-
return '';
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
exports.SituacoesAgendamentoOcupamAgenda = [
|
|
31
|
-
exports.SituacaoAgendamento.Agendado,
|
|
32
|
-
exports.SituacaoAgendamento.Confirmado,
|
|
33
|
-
exports.SituacaoAgendamento.EmAtendimento,
|
|
34
|
-
exports.SituacaoAgendamento.Concluido,
|
|
35
|
-
];
|
|
36
|
-
exports.SituacoesAgendamentoEditaveis = [exports.SituacaoAgendamento.Agendado, exports.SituacaoAgendamento.Confirmado];
|
|
37
|
-
exports.TransicoesSituacaoAgendamento = {
|
|
38
|
-
[exports.SituacaoAgendamento.Agendado]: [
|
|
39
|
-
exports.SituacaoAgendamento.Confirmado,
|
|
40
|
-
exports.SituacaoAgendamento.EmAtendimento,
|
|
41
|
-
exports.SituacaoAgendamento.Cancelado,
|
|
42
|
-
exports.SituacaoAgendamento.NaoCompareceu,
|
|
43
|
-
],
|
|
44
|
-
[exports.SituacaoAgendamento.Confirmado]: [
|
|
45
|
-
exports.SituacaoAgendamento.EmAtendimento,
|
|
46
|
-
exports.SituacaoAgendamento.Cancelado,
|
|
47
|
-
exports.SituacaoAgendamento.NaoCompareceu,
|
|
48
|
-
],
|
|
49
|
-
[exports.SituacaoAgendamento.EmAtendimento]: [exports.SituacaoAgendamento.Concluido, exports.SituacaoAgendamento.Cancelado],
|
|
50
|
-
[exports.SituacaoAgendamento.Concluido]: [],
|
|
51
|
-
[exports.SituacaoAgendamento.Cancelado]: [],
|
|
52
|
-
[exports.SituacaoAgendamento.NaoCompareceu]: [],
|
|
53
|
-
};
|
|
54
|
-
exports.TipoAgendaHorario = {
|
|
55
|
-
Funcionamento: '1',
|
|
56
|
-
Bloqueio: '2',
|
|
57
|
-
description(val) {
|
|
58
|
-
switch (val) {
|
|
59
|
-
case this.Funcionamento:
|
|
60
|
-
return 'Funcionamento';
|
|
61
|
-
case this.Bloqueio:
|
|
62
|
-
return 'Bloqueio';
|
|
63
|
-
default:
|
|
64
|
-
return '';
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
exports.DiaSemana = {
|
|
69
|
-
Domingo: 0,
|
|
70
|
-
Segunda: 1,
|
|
71
|
-
Terca: 2,
|
|
72
|
-
Quarta: 3,
|
|
73
|
-
Quinta: 4,
|
|
74
|
-
Sexta: 5,
|
|
75
|
-
Sabado: 6,
|
|
76
|
-
description(val) {
|
|
77
|
-
switch (val) {
|
|
78
|
-
case this.Domingo:
|
|
79
|
-
return 'Dom';
|
|
80
|
-
case this.Segunda:
|
|
81
|
-
return 'Seg';
|
|
82
|
-
case this.Terca:
|
|
83
|
-
return 'Ter';
|
|
84
|
-
case this.Quarta:
|
|
85
|
-
return 'Qua';
|
|
86
|
-
case this.Quinta:
|
|
87
|
-
return 'Qui';
|
|
88
|
-
case this.Sexta:
|
|
89
|
-
return 'Sex';
|
|
90
|
-
case this.Sabado:
|
|
91
|
-
return 'Sáb';
|
|
92
|
-
default:
|
|
93
|
-
return '';
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
};
|
|
97
|
-
exports.GradesAgenda = [10, 15, 20, 30, 45, 60];
|
|
98
|
-
exports.TipoCampoObjeto = {
|
|
99
|
-
Texto: '1',
|
|
100
|
-
Numero: '2',
|
|
101
|
-
Data: '3',
|
|
102
|
-
Lista: '4',
|
|
103
|
-
SimNao: '5',
|
|
104
|
-
Placa: '6',
|
|
105
|
-
description(val) {
|
|
106
|
-
switch (val) {
|
|
107
|
-
case this.Texto:
|
|
108
|
-
return 'Texto';
|
|
109
|
-
case this.Numero:
|
|
110
|
-
return 'Número';
|
|
111
|
-
case this.Data:
|
|
112
|
-
return 'Data';
|
|
113
|
-
case this.Lista:
|
|
114
|
-
return 'Lista de opções';
|
|
115
|
-
case this.SimNao:
|
|
116
|
-
return 'Sim ou não';
|
|
117
|
-
case this.Placa:
|
|
118
|
-
return 'Placa de veículo';
|
|
119
|
-
default:
|
|
120
|
-
return '';
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
exports.EscopoCampoObjeto = {
|
|
125
|
-
Cadastro: '1',
|
|
126
|
-
Atendimento: '2',
|
|
127
|
-
description(val) {
|
|
128
|
-
switch (val) {
|
|
129
|
-
case this.Cadastro:
|
|
130
|
-
return 'Cadastro do objeto';
|
|
131
|
-
case this.Atendimento:
|
|
132
|
-
return 'A cada atendimento';
|
|
133
|
-
default:
|
|
134
|
-
return '';
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
};
|
|
138
|
-
exports.SituacaoGarantia = {
|
|
139
|
-
Ativa: '1',
|
|
140
|
-
Cancelada: '2',
|
|
141
|
-
Anulada: '3',
|
|
142
|
-
description(val) {
|
|
143
|
-
switch (val) {
|
|
144
|
-
case this.Ativa:
|
|
145
|
-
return 'Ativa';
|
|
146
|
-
case this.Cancelada:
|
|
147
|
-
return 'Cancelada';
|
|
148
|
-
case this.Anulada:
|
|
149
|
-
return 'Anulada';
|
|
150
|
-
default:
|
|
151
|
-
return '';
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
};
|
|
155
|
-
exports.StatusGarantia = {
|
|
156
|
-
AguardandoInicio: '1',
|
|
157
|
-
Vigente: '2',
|
|
158
|
-
AVencer: '3',
|
|
159
|
-
Vencida: '4',
|
|
160
|
-
Cancelada: '5',
|
|
161
|
-
Anulada: '6',
|
|
162
|
-
description(val) {
|
|
163
|
-
switch (val) {
|
|
164
|
-
case this.AguardandoInicio:
|
|
165
|
-
return 'Aguardando início';
|
|
166
|
-
case this.Vigente:
|
|
167
|
-
return 'Vigente';
|
|
168
|
-
case this.AVencer:
|
|
169
|
-
return 'A vencer';
|
|
170
|
-
case this.Vencida:
|
|
171
|
-
return 'Vencida';
|
|
172
|
-
case this.Cancelada:
|
|
173
|
-
return 'Cancelada';
|
|
174
|
-
case this.Anulada:
|
|
175
|
-
return 'Anulada';
|
|
176
|
-
default:
|
|
177
|
-
return '';
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
};
|
|
181
|
-
exports.OrigemGarantia = {
|
|
182
|
-
Servico: '1',
|
|
183
|
-
Peca: '2',
|
|
184
|
-
description(val) {
|
|
185
|
-
switch (val) {
|
|
186
|
-
case this.Servico:
|
|
187
|
-
return 'Serviço';
|
|
188
|
-
case this.Peca:
|
|
189
|
-
return 'Peça';
|
|
190
|
-
default:
|
|
191
|
-
return '';
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
};
|
|
195
|
-
exports.InicioGarantia = {
|
|
196
|
-
Faturamento: '1',
|
|
197
|
-
Entrega: '2',
|
|
198
|
-
description(val) {
|
|
199
|
-
switch (val) {
|
|
200
|
-
case this.Faturamento:
|
|
201
|
-
return 'No faturamento da OS';
|
|
202
|
-
case this.Entrega:
|
|
203
|
-
return 'Na entrega ao cliente';
|
|
204
|
-
default:
|
|
205
|
-
return '';
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
};
|
|
209
|
-
exports.ResultadoAcionamentoGarantia = {
|
|
210
|
-
EmAnalise: '1',
|
|
211
|
-
Procedente: '2',
|
|
212
|
-
Improcedente: '3',
|
|
213
|
-
description(val) {
|
|
214
|
-
switch (val) {
|
|
215
|
-
case this.EmAnalise:
|
|
216
|
-
return 'Em análise';
|
|
217
|
-
case this.Procedente:
|
|
218
|
-
return 'Procedente';
|
|
219
|
-
case this.Improcedente:
|
|
220
|
-
return 'Improcedente';
|
|
221
|
-
default:
|
|
222
|
-
return '';
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatusScheduleSuporte = exports.TipoPlantao = exports.StatusSuporte = exports.ResultadoAcionamentoGarantia = exports.InicioGarantia = exports.OrigemGarantia = exports.StatusGarantia = exports.SituacaoGarantia = exports.EscopoCampoObjeto = exports.TipoCampoObjeto = exports.GradesAgenda = exports.DiaSemana = exports.TipoAgendaHorario = exports.TransicoesSituacaoAgendamento = exports.SituacoesAgendamentoEditaveis = exports.SituacoesAgendamentoOcupamAgenda = exports.SituacaoAgendamento = void 0;
|
|
4
|
+
exports.SituacaoAgendamento = {
|
|
5
|
+
Agendado: '1',
|
|
6
|
+
Confirmado: '2',
|
|
7
|
+
EmAtendimento: '3',
|
|
8
|
+
Concluido: '4',
|
|
9
|
+
Cancelado: '5',
|
|
10
|
+
NaoCompareceu: '6',
|
|
11
|
+
description(val) {
|
|
12
|
+
switch (val) {
|
|
13
|
+
case this.Agendado:
|
|
14
|
+
return 'Agendado';
|
|
15
|
+
case this.Confirmado:
|
|
16
|
+
return 'Confirmado';
|
|
17
|
+
case this.EmAtendimento:
|
|
18
|
+
return 'Em atendimento';
|
|
19
|
+
case this.Concluido:
|
|
20
|
+
return 'Concluído';
|
|
21
|
+
case this.Cancelado:
|
|
22
|
+
return 'Cancelado';
|
|
23
|
+
case this.NaoCompareceu:
|
|
24
|
+
return 'Não compareceu';
|
|
25
|
+
default:
|
|
26
|
+
return '';
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
exports.SituacoesAgendamentoOcupamAgenda = [
|
|
31
|
+
exports.SituacaoAgendamento.Agendado,
|
|
32
|
+
exports.SituacaoAgendamento.Confirmado,
|
|
33
|
+
exports.SituacaoAgendamento.EmAtendimento,
|
|
34
|
+
exports.SituacaoAgendamento.Concluido,
|
|
35
|
+
];
|
|
36
|
+
exports.SituacoesAgendamentoEditaveis = [exports.SituacaoAgendamento.Agendado, exports.SituacaoAgendamento.Confirmado];
|
|
37
|
+
exports.TransicoesSituacaoAgendamento = {
|
|
38
|
+
[exports.SituacaoAgendamento.Agendado]: [
|
|
39
|
+
exports.SituacaoAgendamento.Confirmado,
|
|
40
|
+
exports.SituacaoAgendamento.EmAtendimento,
|
|
41
|
+
exports.SituacaoAgendamento.Cancelado,
|
|
42
|
+
exports.SituacaoAgendamento.NaoCompareceu,
|
|
43
|
+
],
|
|
44
|
+
[exports.SituacaoAgendamento.Confirmado]: [
|
|
45
|
+
exports.SituacaoAgendamento.EmAtendimento,
|
|
46
|
+
exports.SituacaoAgendamento.Cancelado,
|
|
47
|
+
exports.SituacaoAgendamento.NaoCompareceu,
|
|
48
|
+
],
|
|
49
|
+
[exports.SituacaoAgendamento.EmAtendimento]: [exports.SituacaoAgendamento.Concluido, exports.SituacaoAgendamento.Cancelado],
|
|
50
|
+
[exports.SituacaoAgendamento.Concluido]: [],
|
|
51
|
+
[exports.SituacaoAgendamento.Cancelado]: [],
|
|
52
|
+
[exports.SituacaoAgendamento.NaoCompareceu]: [],
|
|
53
|
+
};
|
|
54
|
+
exports.TipoAgendaHorario = {
|
|
55
|
+
Funcionamento: '1',
|
|
56
|
+
Bloqueio: '2',
|
|
57
|
+
description(val) {
|
|
58
|
+
switch (val) {
|
|
59
|
+
case this.Funcionamento:
|
|
60
|
+
return 'Funcionamento';
|
|
61
|
+
case this.Bloqueio:
|
|
62
|
+
return 'Bloqueio';
|
|
63
|
+
default:
|
|
64
|
+
return '';
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
exports.DiaSemana = {
|
|
69
|
+
Domingo: 0,
|
|
70
|
+
Segunda: 1,
|
|
71
|
+
Terca: 2,
|
|
72
|
+
Quarta: 3,
|
|
73
|
+
Quinta: 4,
|
|
74
|
+
Sexta: 5,
|
|
75
|
+
Sabado: 6,
|
|
76
|
+
description(val) {
|
|
77
|
+
switch (val) {
|
|
78
|
+
case this.Domingo:
|
|
79
|
+
return 'Dom';
|
|
80
|
+
case this.Segunda:
|
|
81
|
+
return 'Seg';
|
|
82
|
+
case this.Terca:
|
|
83
|
+
return 'Ter';
|
|
84
|
+
case this.Quarta:
|
|
85
|
+
return 'Qua';
|
|
86
|
+
case this.Quinta:
|
|
87
|
+
return 'Qui';
|
|
88
|
+
case this.Sexta:
|
|
89
|
+
return 'Sex';
|
|
90
|
+
case this.Sabado:
|
|
91
|
+
return 'Sáb';
|
|
92
|
+
default:
|
|
93
|
+
return '';
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
exports.GradesAgenda = [10, 15, 20, 30, 45, 60];
|
|
98
|
+
exports.TipoCampoObjeto = {
|
|
99
|
+
Texto: '1',
|
|
100
|
+
Numero: '2',
|
|
101
|
+
Data: '3',
|
|
102
|
+
Lista: '4',
|
|
103
|
+
SimNao: '5',
|
|
104
|
+
Placa: '6',
|
|
105
|
+
description(val) {
|
|
106
|
+
switch (val) {
|
|
107
|
+
case this.Texto:
|
|
108
|
+
return 'Texto';
|
|
109
|
+
case this.Numero:
|
|
110
|
+
return 'Número';
|
|
111
|
+
case this.Data:
|
|
112
|
+
return 'Data';
|
|
113
|
+
case this.Lista:
|
|
114
|
+
return 'Lista de opções';
|
|
115
|
+
case this.SimNao:
|
|
116
|
+
return 'Sim ou não';
|
|
117
|
+
case this.Placa:
|
|
118
|
+
return 'Placa de veículo';
|
|
119
|
+
default:
|
|
120
|
+
return '';
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
exports.EscopoCampoObjeto = {
|
|
125
|
+
Cadastro: '1',
|
|
126
|
+
Atendimento: '2',
|
|
127
|
+
description(val) {
|
|
128
|
+
switch (val) {
|
|
129
|
+
case this.Cadastro:
|
|
130
|
+
return 'Cadastro do objeto';
|
|
131
|
+
case this.Atendimento:
|
|
132
|
+
return 'A cada atendimento';
|
|
133
|
+
default:
|
|
134
|
+
return '';
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
exports.SituacaoGarantia = {
|
|
139
|
+
Ativa: '1',
|
|
140
|
+
Cancelada: '2',
|
|
141
|
+
Anulada: '3',
|
|
142
|
+
description(val) {
|
|
143
|
+
switch (val) {
|
|
144
|
+
case this.Ativa:
|
|
145
|
+
return 'Ativa';
|
|
146
|
+
case this.Cancelada:
|
|
147
|
+
return 'Cancelada';
|
|
148
|
+
case this.Anulada:
|
|
149
|
+
return 'Anulada';
|
|
150
|
+
default:
|
|
151
|
+
return '';
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
exports.StatusGarantia = {
|
|
156
|
+
AguardandoInicio: '1',
|
|
157
|
+
Vigente: '2',
|
|
158
|
+
AVencer: '3',
|
|
159
|
+
Vencida: '4',
|
|
160
|
+
Cancelada: '5',
|
|
161
|
+
Anulada: '6',
|
|
162
|
+
description(val) {
|
|
163
|
+
switch (val) {
|
|
164
|
+
case this.AguardandoInicio:
|
|
165
|
+
return 'Aguardando início';
|
|
166
|
+
case this.Vigente:
|
|
167
|
+
return 'Vigente';
|
|
168
|
+
case this.AVencer:
|
|
169
|
+
return 'A vencer';
|
|
170
|
+
case this.Vencida:
|
|
171
|
+
return 'Vencida';
|
|
172
|
+
case this.Cancelada:
|
|
173
|
+
return 'Cancelada';
|
|
174
|
+
case this.Anulada:
|
|
175
|
+
return 'Anulada';
|
|
176
|
+
default:
|
|
177
|
+
return '';
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
exports.OrigemGarantia = {
|
|
182
|
+
Servico: '1',
|
|
183
|
+
Peca: '2',
|
|
184
|
+
description(val) {
|
|
185
|
+
switch (val) {
|
|
186
|
+
case this.Servico:
|
|
187
|
+
return 'Serviço';
|
|
188
|
+
case this.Peca:
|
|
189
|
+
return 'Peça';
|
|
190
|
+
default:
|
|
191
|
+
return '';
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
exports.InicioGarantia = {
|
|
196
|
+
Faturamento: '1',
|
|
197
|
+
Entrega: '2',
|
|
198
|
+
description(val) {
|
|
199
|
+
switch (val) {
|
|
200
|
+
case this.Faturamento:
|
|
201
|
+
return 'No faturamento da OS';
|
|
202
|
+
case this.Entrega:
|
|
203
|
+
return 'Na entrega ao cliente';
|
|
204
|
+
default:
|
|
205
|
+
return '';
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
};
|
|
209
|
+
exports.ResultadoAcionamentoGarantia = {
|
|
210
|
+
EmAnalise: '1',
|
|
211
|
+
Procedente: '2',
|
|
212
|
+
Improcedente: '3',
|
|
213
|
+
description(val) {
|
|
214
|
+
switch (val) {
|
|
215
|
+
case this.EmAnalise:
|
|
216
|
+
return 'Em análise';
|
|
217
|
+
case this.Procedente:
|
|
218
|
+
return 'Procedente';
|
|
219
|
+
case this.Improcedente:
|
|
220
|
+
return 'Improcedente';
|
|
221
|
+
default:
|
|
222
|
+
return '';
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
};
|
|
226
|
+
exports.StatusSuporte = {
|
|
227
|
+
Disponivel: '1',
|
|
228
|
+
Ocupado: '2',
|
|
229
|
+
Ausente: '3',
|
|
230
|
+
Pausa: '4',
|
|
231
|
+
description(val) {
|
|
232
|
+
switch (val) {
|
|
233
|
+
case this.Disponivel:
|
|
234
|
+
return 'Disponível';
|
|
235
|
+
case this.Ocupado:
|
|
236
|
+
return 'Ocupado';
|
|
237
|
+
case this.Ausente:
|
|
238
|
+
return 'Ausente';
|
|
239
|
+
case this.Pausa:
|
|
240
|
+
return 'Pausa';
|
|
241
|
+
default:
|
|
242
|
+
return '';
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
color(val) {
|
|
246
|
+
switch (val) {
|
|
247
|
+
case this.Disponivel:
|
|
248
|
+
return '#10b981';
|
|
249
|
+
case this.Ocupado:
|
|
250
|
+
return '#f59e0b';
|
|
251
|
+
case this.Ausente:
|
|
252
|
+
return '#ef4444';
|
|
253
|
+
case this.Pausa:
|
|
254
|
+
return '#6366f1';
|
|
255
|
+
default:
|
|
256
|
+
return '#gray';
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
};
|
|
260
|
+
exports.TipoPlantao = {
|
|
261
|
+
Comercial: '1',
|
|
262
|
+
Tecnico: '2',
|
|
263
|
+
Administrativo: '3',
|
|
264
|
+
Atendimento: '4',
|
|
265
|
+
description(val) {
|
|
266
|
+
switch (val) {
|
|
267
|
+
case this.Comercial:
|
|
268
|
+
return 'Comercial';
|
|
269
|
+
case this.Tecnico:
|
|
270
|
+
return 'Técnico';
|
|
271
|
+
case this.Administrativo:
|
|
272
|
+
return 'Administrativo';
|
|
273
|
+
case this.Atendimento:
|
|
274
|
+
return 'Atendimento';
|
|
275
|
+
default:
|
|
276
|
+
return '';
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
color(val) {
|
|
280
|
+
switch (val) {
|
|
281
|
+
case this.Comercial:
|
|
282
|
+
return '#3b82f6';
|
|
283
|
+
case this.Tecnico:
|
|
284
|
+
return '#8b5cf6';
|
|
285
|
+
case this.Administrativo:
|
|
286
|
+
return '#ec4899';
|
|
287
|
+
case this.Atendimento:
|
|
288
|
+
return '#06b6d4';
|
|
289
|
+
default:
|
|
290
|
+
return '#gray';
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
};
|
|
294
|
+
exports.StatusScheduleSuporte = {
|
|
295
|
+
Entrada: '1',
|
|
296
|
+
Saida: '2',
|
|
297
|
+
Pausa: '3',
|
|
298
|
+
Retorno: '4',
|
|
299
|
+
description(val) {
|
|
300
|
+
switch (val) {
|
|
301
|
+
case this.Entrada:
|
|
302
|
+
return 'Entrada';
|
|
303
|
+
case this.Saida:
|
|
304
|
+
return 'Saída';
|
|
305
|
+
case this.Pausa:
|
|
306
|
+
return 'Pausa';
|
|
307
|
+
case this.Retorno:
|
|
308
|
+
return 'Retorno';
|
|
309
|
+
default:
|
|
310
|
+
return '';
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
};
|