Advertisement
Guest User

Untitled

a guest
Nov 9th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.25 KB | None | 0 0
  1. export const INVEST_FIELDS_DETAIL = [
  2.   {
  3.     order: 1,
  4.     value: 'SALDO_MINIMO_PERMANENCIA',
  5.     description: 'Saldo mínimo',
  6.     pipe: 'currency',
  7.     transformData: (data) => Helper.strToDoubleCurrency(data, true)
  8.   },
  9.   {
  10.     order: 2,
  11.     value: 'MOVIMENT_MINIMA',
  12.     description: 'Movimentação mínima',
  13.     pipe: 'currency',
  14.     transformData: (data) => Helper.strToDoubleCurrency(data, true)
  15.   },
  16.   {
  17.     order: 3,
  18.     value: 'LIQUIDEZ_APLICACAO',
  19.     description: 'Liquidez de aplicação',
  20.     pipe: 'string',
  21.   },
  22.   {
  23.     order: 4,
  24.     value: 'LIQUIDEZ_RESGATE',
  25.     description: 'Liquidez de resgate',
  26.     pipe: 'string',
  27.   },
  28.   {
  29.     order: 5,
  30.     /*     value: 'VALOR_MIN_APLICACAO', */
  31.     value: 'VALOR_INICIAL_APLICACAO',
  32.     description: 'Aplicação mínima',
  33.     pipe: 'currency',
  34.     transformData: (data) => Helper.strToDoubleCurrency(data, true)
  35.   },
  36.   {
  37.     order: 6,
  38.     value: 'PUBLICO_ALVO',
  39.     description: 'Público alvo',
  40.     pipe: 'string',
  41.     transformData: (data) => {
  42.       if (data && data.length <= 2)
  43.         switch (data) {
  44.           case '0': return 'Qualificado';
  45.           default: return 'Profissional';
  46.         }
  47.       return data;
  48.     }
  49.     /*,
  50.     sufix: (value) => {
  51.       if (value === 'Qualificado')
  52.         return '<svg class="icon-qualificado" style="padding-left: 5px; margin-bottom: -2px;" width="20" height="19" viewBox="0 1 15 15"><use xlink:href="/assets/images/svg/icons.svg#award" /></svg>';
  53.       if (value === 'Profissional')
  54.         return '<svg class="icon-profissional" style="padding-left: 5px; margin-bottom: -1px;" width="20" height="15" viewBox="11 11 15 15"><use xlink:href="/assets/images/svg/icons.svg#doctor" /></svg>';
  55.  
  56.       return '';
  57.     }
  58.     */
  59.   },
  60.   {
  61.     order: 7,
  62.     value: 'TAXA_SAIDA',
  63.     description: 'Taxa de saída',
  64.     pipe: 'percent'
  65.   },
  66.   {
  67.     order: 8,
  68.     value: 'RISCO_ATIVO',
  69.     description: 'Grau de risco',
  70.     pipe: 'string',
  71.     transformData: (data) => {
  72.       switch (data) {
  73.         case '0': return 'Muito baixo';
  74.         case '1': return 'Baixo';
  75.         case '2': return 'Médio';
  76.         case '3': return 'Alto';
  77.         case '4': return 'Muito alto';
  78.         default: return data;
  79.       }
  80.     }
  81.   }
  82. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement