✏️ 正在编辑: oportunidade.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/callcenter/oportunidade.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php $count = 0; $nsLogin = new Zend_Session_Namespace(); ?> <div id="printable"> <table class="table-container"> <thead> <tr class="top_list"> <td class="table-title" colspan="12" >Resumo cliente</td> </tr> <tr class="top_list"> <th>Nº Benefício</th> <th>Espécie Benefício</th> <th>Margem Livre</th> <th>Margem Cartão</th> <th>Cartão RMC</th> <th>Bens Duráveis</th> </tr> </thead> <tbody> <?php if( !empty($this->beneficios) ): $style = ''; ?> <?php foreach ( $this->beneficios as $beneficio ): ?> <tr> <td><?php echo $beneficio['beneficio']; ?></td></td> <td><?php echo "{$beneficio['especie']} - {$beneficio['descricao']}" ?></td> <td>R$ <?php echo number_format($beneficio['margem_livre'], 2, ',', '.'); ?></td> <td>R$ <?php echo number_format($beneficio['margem_cartao'], 2, ',', '.'); ?></td> <td>R$ <?php echo number_format($beneficio['margem_cartao_rmc'], 2, ',', '.'); ?></td> <td>R$ <?php echo number_format($beneficio['margem_bens_duraveis'], 2, ',', '.'); ?></td> </tr> <?php endforeach; endif;?> </tbody> </table> <?php if( !empty($this->beneficios) ): ?> <table id="lista_emprestimos" class="table-container"> <thead> <tr class="top_list"> <td class="table-title" colspan="12">Simulação de Novo Empréstimo / Cartão</td> </tr> <tr class="top_list ui-tabs-nav"> <td class="table-title"> Filtros:</td> <td colspan="2">Banco: <select name="banco" id="banco"> <?php foreach ( $this->bancos as $id => $banco ): ?> <option value="<?php echo $id ?>"><?php echo $banco; ?></option> <?php endforeach; ?> </select> </td> <td colspan="2">Convênio: <select name="convenio" id="convenio" onchange="populateComboTabelaFatores(this.id, 'fatores_options', 'banco', 'prazo', 'novo')"> <?php foreach ( $this->convenios as $id => $convenio ): ?> <option value="<?php echo $id ?>"><?php echo $convenio; ?></option> <?php endforeach; ?> </select> </td> <td colspan="2">Prazo: <select name="prazo" id="prazo" onchange="populateComboTabelaFatores('convenio', 'fatores_options', 'banco', 'prazo', 'novo')"> <option value=""></option> <option value="12">12</option> <option value="24">24</option> <option value="36">36</option> <option value="48">48</option> <option value="60">60</option> <option value="72">72</option> <option value="84">84</option> <option value="96">96</option> </select> </td> <td colspan="10"></td> </tr> <tr class="top_list"> <th>Nº Benefício</th> <th>Margem Livre</th> <th>Valor Parcela</th> <th>Tabela</th> <th>Valor Liquido</th> <th>Comissão</th> <th colspan="3" class="ui-tabs-nav"></th> </tr> </thead> <tbody> <?php echo $this->render('callcenter/_oportunidades-beneficios.phtml') ?> </tbody> </table> <?php endif;?> <?php if( !empty($this->emprestimos) > 0 ): $emprestimosRefinPort = array(); $emprestimosCartao = array(); $count = 1; foreach($this->emprestimos as $emprestimo): switch ( $emprestimo['tipo'] ) : case 'RESERVA CARTAO': $emprestimosCartao[$emprestimo['beneficio']][] = $emprestimo; break; default: $emprestimosRefinPort[$emprestimo['beneficio']][] = $emprestimo; break; endswitch; endforeach; ?> <table id="lista_emprestimos-refin" class="table-container"> <thead> <tr class="top_list"> <td class="table-title" colspan="13">Simulação de Refin e Portabilidade</td> </tr> <tr class="top_list"> <td class="table-title" colspan="2"> Filtros:</td> <td colspan="3">Banco: <select name="banco_refin" id="banco_refin"> <?php foreach ( $this->bancos as $id => $banco ): ?> <option value="<?php echo $id ?>"><?php echo $banco; ?></option> <?php endforeach; ?> </select> </td> <td colspan="3">Convênio: <select name="convenio" id="convenio" onchange="populateComboTabelaFatores(this.id, 'fatores_options_refin', 'banco_refin', 'prazo', 'refin')"> <?php foreach ( $this->convenios as $id => $convenio ): ?> <option value="<?php echo $id ?>"><?php echo $convenio; ?></option> <?php endforeach; ?> </select> </td> <td colspan="2">Prazo: <select name="prazo" id="prazo" onchange="populateComboTabelaFatores(this.id, 'fatores_options_refin', 'banco_refin', 'prazo', 'refin')"> <option value=""></option> <option value="12">12</option> <option value="24">24</option> <option value="36">36</option> <option value="48">48</option> <option value="60">60</option> <option value="72">72</option> <option value="84">84</option> <option value="96">96</option> </select> </td> <td colspan="9"></td> </tr> <tr class="top_list"> <th>Banco</th> <th>Nº Contrato</th> <th>Prazo</th> <th>Valor Parcela</th> <th>Vl. Empréstimo</th> <th>Tabela</th> <th>Quitação</th> <th>Valor Liquido</th> <th>Comissão</th> <th>Bônus</th> <th>Total Comissão</th> <th colspan="2" class="ui-tabs-nav"></th> </tr> </thead> <?php foreach ( $emprestimosRefinPort as $beneficio => $emprestimos ): ?> <tr class="top_list"> <td colspan="13">Benefício: <?php echo $beneficio ?></td> </tr> <?php foreach ( $emprestimos as $emprestimo ): ?> <tr class="line"> <input type="hidden" value="<?= $beneficio ?>" id="beneficio" /> <td class="selecionar"><span class="banco"><?php echo $emprestimo['numero_banco'] . " - " . $emprestimo['banco']; ?></span></td> <td><span class="numero_contrato"><?php echo $emprestimo['numero_contrato']; ?></span></td> <td nowrap> <span class="parcelas"><?php echo (int)$emprestimo['parcelas_pagas']; ?> de <?php echo (int)$emprestimo['qtd_parcelas']; ?></span> </td> <td nowrap> <span id="valor_parcela_refin" value="<?php echo $emprestimo['valor_parcela']; ?>"> R$ <span class="valor_parcela"><?php echo number_format($emprestimo['valor_parcela'], 2, ',', '.'); ?> </span> </td> <td>R$ <?php echo number_format($emprestimo['valor_emprestimo'], 2, ',', '.'); ?></td> <td> <select name="fatores_refin" class="fatores_options_refin" rel="<?php echo $count; ?>" id="fatores_refin_<?php echo $count; ?>"> <?php if(!empty($this->fatoresRefin)): ?> <?php foreach($this->fatoresRefin as $fator): ?> <option value='<?php echo $fator['id']; ?>'><?php echo "{$fator['banco']} - {$fator['tabela']} - {$fator['prazo']}"; ?></option> <?php endforeach; ?> <?php endif; ?> </select> <input type="hidden" name="quitacao_refin" id="quitacao_refin" value="<?php echo $emprestimo['quitacao']; ?>"> </td> <td nowrap> <span id="saldo_refin" data-value="<?php echo !empty($emprestimo['quitacao'])? $emprestimo['quitacao'] : 0;?>" value="<?php echo !empty($emprestimo['quitacao'])? $emprestimo['quitacao'] : 0;?>">R$ <?php echo number_format($emprestimo['quitacao'], 2, ',', '.'); ?></span> </td> <td nowrap> <?php $liquido = 0; $fatoresRefin = reset($this->fatoresRefin); if(!empty($fatoresRefin)){ $liquido = ($emprestimo['valor_parcela']/$fatoresRefin['fator']) - $emprestimo['quitacao']; $bruto = ($emprestimo['valor_parcela']/$fatoresRefin['fator']); } ?> R$ <input type="text" disabled name="valor_liquido" value="<?php echo number_format($liquido, 2, ',', '.'); ?>" id="valor_liquido" size="9" /> <input type="hidden" id="valor_bruto_refin" value="<?php echo number_format($bruto, 2, ',', '.'); ?>"> </td> <td class="value"> <?php $comissao = 0; $bonus = 0; $percentualComissao = 0.00 . "%"; $percentualComissaoBonus = 0 . "%"; if(!empty($fatoresRefin['comissao'])): $percentualComissao = number_format($fatoresRefin['comissao'], 2, ',', '.') . "%"; $percentualComissaoBonus = number_format($fatoresRefin['bonus'], 2, ',', '.') . "%"; if($fatoresRefin['base_comissao_valor'] == "VALOR LIQUIDO"): $comissao = ($liquido * $fatoresRefin['comissao']) / 100; if(!empty($fatoresRefin['bonus']) && $fatoresRefin['bonus'] != '0.00'): $bonus = ($liquido * $fatoresRefin['bonus'])/100; endif; endif; if($fatoresRefin['base_comissao_valor'] == "VALOR BRUTO"): $comissao = ($emprestimo['quitacao'] * $fatoresRefin['comissao']) / 100; if(!empty($fatoresRefin['bonus']) && $fatoresRefin['bonus'] != '0.00'): $bonus = ($emprestimo['quitacao'] * $fatoresRefin['bonus'])/100; endif; endif; endif; ?> R$ <input type="<?php echo $this->type; ?>" disabled name="comissao_refin" id="comissao_refin" value="<?php echo number_format($comissao, 2, ',', '.') . " (" . $percentualComissao . ")"; ?>" size="15" /> </td> <td class="value"> R$ <input type="<?php echo $this->type; ?>" disabled name="comissao_bonus_refin" id="comissao_bonus_refin" value="<?php echo number_format($bonus, 2, ',', '.') . " (" . $percentualComissaoBonus . ")"; ?>" size="15" /> </td> <td class="value"> R$ <input type="<?php echo $this->type; ?>" disabled name="total_comissao_refin" id="total_comissao_refin" value="<?php echo number_format(($comissao + $bonus), 2, ',', '.'); ?>" size="9" /> </td> <td style="text-align: right; padding-right: 20px; width: 230px" class="no-print"> <button class="bt_money" title="Simular" onclick="simularEmprestimo(this, 'refin')">Simular</button> <?php if ($nsLogin->acl->isAllowed(Yuppie_Auth::getIdentity()->grupo, 'callcenter', 'enviar-oportunidade')): ?> <button class="send" id="enviar-oportunidade-refin" >Enviar</button> <input type="hidden" name="simulado" id="simulado" value="1" /> <?php endif; ?> <button class="bt_new_contrato" title="Digitar Proposta" onclick="digitarProposta(this, 'refin')">Digitar</button> </td> <td align="center"><input type="checkbox" class="check-oportunidade" name="refin[]" id="checks[]" value="<?php echo $liquido; ?>" data-bruto="<?php echo $bruto; ?>" /></td> </tr> <?php $count++; endforeach; endforeach;?> <tr> <td colspan="4"></td> <td style="text-align: right">Valor Bruto: </td> <td id="total_valor_bruto">R$ 0,00</td> <td style="text-align: right">Valor Líquido: </td> <td id="total_valor_liquido">R$ 0,00</td> <td colspan="5"></td> </tr> </table> <?php endif; ?> <button class="no-print" onclick="window.print()">Imprimir</button> </div> <div id="exibir-modal" style="display: none;"> <div id="modal-enviar-proposta"> <div class="clear"></div> </div> </div>
💾 保存文件
← 返回文件管理器