Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($('.candidateGroups').eq(0).text().indexOf('_tn_') != -1) {
- var data_entrada_area2_formatada = moment(formData.data_entrada_area2);
- var data_ola_formatada = moment(formData.data_ola);
- if (moment(data_ola_formatada).isBefore(data_entrada_area2_formatada)) {
- //$('fieldset:eq(0)').before('<div class="alert alert-danger-dark bs-alert-old-docs" style="font-weight: bold; text-align: center;">Atividade recebida fora do prazo com vencimento em: <strong>' + moment(dataOla).format('DD/MM/YYYY HH:mm') + '</strong></div>');
- if (formData.retornos > 1) {
- if (Qtdreincidente > 0) {
- view.$el.find("#solicitacaoReincidente").hide();
- view.$el.find("#atividadeRecebida").hide();
- view.$el.find("#solicitacaoPctMenor60").hide();
- view.$el.find("#solicitacaoPctMenorIgual100").hide();
- // $('fieldset:eq(0)').before('<div class="alert bs-alert-old-docs id"atividadeRecebida" style="float: left font-weight: bold; text-align: center; color:#000000; background-color: yellow;">Atividade recebida fora do prazo</div>');
- // $('fieldset:eq(0)').before('<div class="alert alert-success bs-alert-old-docs" style="float: right font-weight: bold; text-align: center;">Solicitação do cliente precisa ser tratada até: <strong>' + moment(dataOla).format('DD/MM/YYYY HH:mm') + '</strong></div>');
- $('fieldset:eq(0)').before('<div class="alert bs-alert-old-docs" style="float: left; font-weight: bold; text-align: center; color: #000000; width: 45%; background-color: yellow;">Atividade recebida fora do prazo</div>');
- $('fieldset:eq(0)').before('<div class="alert alert-danger-dark bs-alert-old-docs" style="float: right; font-weight: bold; text-align: center; width: 45%;">SOLICITAÇÃO REINCIDENTE</div>');
- $('fieldset:eq(0)').before('<div style="clear: both; margin-bottom: 5px;"></div>');
- $('fieldset:eq(0)').before('<div class="solicitacaoPrecisaTatar alert alert-success bs-alert-old-docs" style="font-weight: bold; text-align: center;">Solicitação do cliente precisa ser tratada até: <strong>' + moment(dataOla).format('DD/MM/YYYY HH:mm') + '</strong></div>');
- $('fieldset:eq(0)').before('<div style="clear: both; margin-bottom: 5px;"></div>');
- } else {
- $('fieldset:eq(0)').before('<div class="alert bs-alert-old-docs id"atividadeRecebida" style="font-weight: bold; text-align: center; color:#000000; background-color: yellow;">Atividade recebida fora do prazo</div>');
- view.$el.find(".classAtividadeExpirada").hide();
- }
- }
- if (($('#historicoTratativaTable td').size() > 1) && ($('#historicoTratativaTable td').eq(3).text() == "Direcionada para BKO TN" || $('#historicoTratativaTable td').eq(3).text() == "Direcionada para BKO SAC")) {} else {
- view.$el.find(".solicitacaoPrecisaTatar").hide();
- view.$el.find("#pendenteUrgente").hide();
- $('fieldset:eq(0)').before('<div class="alert alert-danger-dark bs-alert-old-docs" style="font-weight: bold; color: red; text-align: center; background: #ffffff;">(URGENTE) PENDENTE FORA DO PRAZO DESDE: <strong>' + moment(dataSla).format('DD/MM/YYYY HH:mm') + '</strong></div>');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement