Compare commits
3 Commits
0.1.3
...
a4dd8f98d8
| Author | SHA1 | Date | |
|---|---|---|---|
| a4dd8f98d8 | |||
| ed482542a4 | |||
| 8652e4778f |
@@ -10,7 +10,8 @@
|
||||
</v-form>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-btn type="submit" form="code-form">Aceptar</v-btn>
|
||||
<v-btn type="submit" form="code-form" color="green">Aceptar</v-btn>
|
||||
<v-btn :to="{ path: '/' }" color="red">Cancelar</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
|
||||
@@ -39,8 +39,26 @@
|
||||
{{ currencyFormat(calculateSubtotal(item.unit_price, item.quantity)) }}
|
||||
</template>
|
||||
</v-data-table-virtual>
|
||||
<v-alert type="info" class="my-4">
|
||||
Recuerda adicionar a la planilla física lo siguiente
|
||||
<v-data-table
|
||||
:headers="headersTemplate"
|
||||
:items="[purchase]"
|
||||
item-key="id"
|
||||
hide-default-footer
|
||||
>
|
||||
<template v-slot:item="{ item }">
|
||||
<tr>
|
||||
<td>{{ item.id }}</td>
|
||||
<td>{{ item.date }}</td>
|
||||
<td><span v-if="item.customer">{{ item.customer.name }}</span></td>
|
||||
<td><span v-if="item.lines">{{ currencyFormat(calculateTotal(item.lines)) }}</span></td>
|
||||
</tr>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-alert>
|
||||
<div class="text-center">
|
||||
<v-btn :to="{ path: 'comprar' }" color="green">Ir a Comprar</v-btn>
|
||||
<v-btn :to="{ path: '/' }" color="green">Ir al inicio</v-btn>
|
||||
</div>
|
||||
</v-container>
|
||||
</v-container>
|
||||
@@ -65,6 +83,12 @@
|
||||
{ title: 'Cantidad', value: 'quantity' },
|
||||
{ title: 'Subtotal', value: 'subtotal' },
|
||||
],
|
||||
headersTemplate: [
|
||||
{title: 'Compra', value: 'id'},
|
||||
{title: 'Fecha', value: 'date'},
|
||||
{title: 'Nombre', value: 'customer.name'},
|
||||
{title: 'Valor', value: ''},
|
||||
],
|
||||
};
|
||||
},
|
||||
created() {
|
||||
|
||||
Reference in New Issue
Block a user