Jspdf e Jspdf-autoTable como colocar uma tabela dentro de uma tr
Olá, eu tenho um sistema de pedidos onde em sua tabela a linha impar é os dados do produto e a impar é a grade de produtos, segue o código:
<table class="tabela-tab-produto">
<thead>
<tr>
<th width="43"></th>
<th>Código</th>
<th>Descrição</th>
<th>Qtde.</th>
<th>Preço Tab.</th>
<th>Desc.</th>
<th>Preço Líq.</th>
<th>Subtotal</th>
<th></th>
</tr>
</thead>
<tbody>
<tr id="5{1+2,2{4+1">
<td></td>
<td>LS</td>
<td>Cortinas Listradas</td>
<td class="text-right padding-right-15">3 <small>Un</small></td>
<td class="text-right"><small>R$</small> 119.9</td>
<td class="text-center"></td>
<td class="text-right"><small>R$</small> 150</td>
<td class="text-right"><small>R$</small> 450</td>
<td class="text-right">
<a class="button tiny btn-cinza btn_editar" id="1"><span class="icon icon-pencil"></span></a>
<a class="button tiny btn-cinza btn_excluir margin-right-15" data-open="container_excluir" id="86" aria-controls="container_excluir" aria-haspopup="true" tabindex="0"><span class="icon icon-bin"></span></a>
</td>
</tr>
<tr>
<td colspan="9">
<div class="medium-12 columns">
<table class="tab-produto">
<thead>
<tr>
<th></th><th>380x230</th><th>580x230</th>
</tr>
</thead>
<tbody>
<tr><td>Azul Claro</td><td>1</td><td>-</td></tr><tr><td>Azul</td><td>-</td><td>2</td></tr>
</tbody>
</table>
</div>
</td>
</tr><tr id="1{1+1">
<td></td>
<td>VLI</td>
<td>Cortinas Voil Liso</td>
<td class="text-right padding-right-15">1 <small>Un</small></td>
<td class="text-right"><small>R$</small> 79.9</td>
<td class="text-center"></td>
<td class="text-right"><small>R$</small> 79.9</td>
<td class="text-right"><small>R$</small> 79.9</td>
<td class="text-right">
<a class="button tiny btn-cinza btn_editar" id="3"><span class="icon icon-pencil"></span></a>
<a class="button tiny btn-cinza btn_excluir margin-right-15" data-open="container_excluir" id="94" aria-controls="container_excluir" aria-haspopup="true" tabindex="0"><span class="icon icon-bin"></span></a>
</td>
</tr>
<tr>
<td colspan="9">
<div class="medium-12 columns">
<table class="tab-produto">
<thead>
<tr>
<th></th><th>280x230</th>
</tr>
</thead>
<tbody>
<tr><td>Azul</td><td>1</td></tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
Quero saber como posso apresentar essa tabela com o jspdf e jspdf-autotable(se for necessário). Nos meus testes ele esta tirando a tabela que esta dentro da tabela principal.
Eu achei um artigo sobre isso([https://stackoverflow.com/questions/39386969/nested-tables-in-a-pdf-using-jspdf-and-jspdf-autotable](https://stackoverflow.com/questions/39386969/nested-tables-in-a-pdf-using-jspdf-and-jspdf-autotable)) mas não consegui aplicar no meu caso. ObgDiscussão (0)
Carregando comentários...