forked from verdnatura/salix-front
Merge pull request 'Correcciones post PR' (#21) from features/ms_32_correcciones_post_pr_2 into dev
Reviewed-on: hyervoni/salix-front-mindshore#21
This commit is contained in:
commit
49dfac3fcb
|
@ -57,20 +57,6 @@ async function getData() {
|
|||
emit('onFetch', data);
|
||||
}
|
||||
|
||||
// watch($props, async () => {
|
||||
// entity.value = null;
|
||||
// await fetch();
|
||||
// });
|
||||
|
||||
const options = [
|
||||
'Transferir factura a ...',
|
||||
'Ver factura ...',
|
||||
'Enviar factura ...',
|
||||
'Eliminar factura',
|
||||
'Asentar factura',
|
||||
'Regenerar PDF factura',
|
||||
'Abono ...',
|
||||
];
|
||||
const emit = defineEmits(['onFetch']);
|
||||
</script>
|
||||
|
||||
|
@ -110,15 +96,21 @@ const emit = defineEmits(['onFetch']);
|
|||
</QBtn>
|
||||
</RouterLink>
|
||||
|
||||
<QBtn color="white" dense flat icon="more_vert" round size="md">
|
||||
<QBtn
|
||||
color="white"
|
||||
dense
|
||||
flat
|
||||
icon="more_vert"
|
||||
round
|
||||
size="md"
|
||||
v-if="slots.menu"
|
||||
>
|
||||
<QTooltip>
|
||||
{{ t('components.cardDescriptor.moreOptions') }}
|
||||
</QTooltip>
|
||||
<QMenu>
|
||||
<QList dense v-for="option in options" :key="option">
|
||||
<QItem v-ripple clickable>
|
||||
{{ option }}
|
||||
</QItem>
|
||||
<QList>
|
||||
<slot name="menu" :entity="entity" />
|
||||
</QList>
|
||||
</QMenu>
|
||||
</QBtn>
|
||||
|
|
|
@ -7,6 +7,7 @@ import CardDescriptor from 'components/ui/CardDescriptor.vue';
|
|||
import CustomerDescriptorProxy from 'pages/Customer/Card/CustomerDescriptorProxy.vue';
|
||||
import VnLv from 'src/components/ui/VnLv.vue';
|
||||
import useCardDescription from 'src/composables/useCardDescription';
|
||||
import InvoiceOutDescriptorMenu from './InvoiceOutDescriptorMenu.vue';
|
||||
|
||||
const $props = defineProps({
|
||||
id: {
|
||||
|
@ -59,6 +60,9 @@ const setData = (entity) => (data.value = useCardDescription(entity.ref, entity.
|
|||
@on-fetch="setData"
|
||||
data-key="invoiceOutData"
|
||||
>
|
||||
<template #menu="{ entity }">
|
||||
<InvoiceOutDescriptorMenu :invoiceOut="entity" />
|
||||
</template>
|
||||
<template #body="{ entity }">
|
||||
<VnLv :label="t('invoiceOut.card.issued')" :value="toDate(entity.issued)" />
|
||||
<VnLv
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
<template>
|
||||
<QItem v-ripple clickable>
|
||||
<QItemSection>Transferir factura a ...</QItemSection>
|
||||
</QItem>
|
||||
<QItem v-ripple clickable>
|
||||
<QItemSection>Ver factura ...</QItemSection>
|
||||
</QItem>
|
||||
<QItem v-ripple clickable>
|
||||
<QItemSection>Enviar factura ...</QItemSection>
|
||||
</QItem>
|
||||
<QItem v-ripple clickable>
|
||||
<QItemSection>Eliminar factura</QItemSection>
|
||||
</QItem>
|
||||
<QItem v-ripple clickable>
|
||||
<QItemSection>Asentar factura</QItemSection>
|
||||
</QItem>
|
||||
<QItem v-ripple clickable>
|
||||
<QItemSection>Regenerar PDF factura</QItemSection>
|
||||
</QItem>
|
||||
<QItem v-ripple clickable>
|
||||
<QItemSection>Abono ...</QItemSection>
|
||||
</QItem>
|
||||
</template>
|
Loading…
Reference in New Issue