Merge branch 'dev' of https://gitea.verdnatura.es/hyervoni/salix-front-mindshore into dev
This commit is contained in:
commit
3bb4a75df7
|
@ -15,8 +15,6 @@
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
},
|
},
|
||||||
"cSpell.words": ["axios"],
|
"cSpell.words": ["axios"],
|
||||||
|
|
||||||
"editor.tabSize": 2,
|
|
||||||
"files.autoSave": "onFocusChange",
|
"files.autoSave": "onFocusChange",
|
||||||
"files.trimTrailingWhitespace": true,
|
"files.trimTrailingWhitespace": true,
|
||||||
"editor.hover.enabled": true,
|
"editor.hover.enabled": true,
|
||||||
|
|
|
@ -57,20 +57,6 @@ async function getData() {
|
||||||
emit('onFetch', data);
|
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']);
|
const emit = defineEmits(['onFetch']);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -110,15 +96,21 @@ const emit = defineEmits(['onFetch']);
|
||||||
</QBtn>
|
</QBtn>
|
||||||
</RouterLink>
|
</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>
|
<QTooltip>
|
||||||
{{ t('components.cardDescriptor.moreOptions') }}
|
{{ t('components.cardDescriptor.moreOptions') }}
|
||||||
</QTooltip>
|
</QTooltip>
|
||||||
<QMenu>
|
<QMenu>
|
||||||
<QList dense v-for="option in options" :key="option">
|
<QList>
|
||||||
<QItem v-ripple clickable>
|
<slot name="menu" :entity="entity" />
|
||||||
{{ option }}
|
|
||||||
</QItem>
|
|
||||||
</QList>
|
</QList>
|
||||||
</QMenu>
|
</QMenu>
|
||||||
</QBtn>
|
</QBtn>
|
||||||
|
|
|
@ -7,6 +7,7 @@ import CardDescriptor from 'components/ui/CardDescriptor.vue';
|
||||||
import CustomerDescriptorProxy from 'pages/Customer/Card/CustomerDescriptorProxy.vue';
|
import CustomerDescriptorProxy from 'pages/Customer/Card/CustomerDescriptorProxy.vue';
|
||||||
import VnLv from 'src/components/ui/VnLv.vue';
|
import VnLv from 'src/components/ui/VnLv.vue';
|
||||||
import useCardDescription from 'src/composables/useCardDescription';
|
import useCardDescription from 'src/composables/useCardDescription';
|
||||||
|
import InvoiceOutDescriptorMenu from './InvoiceOutDescriptorMenu.vue';
|
||||||
|
|
||||||
const $props = defineProps({
|
const $props = defineProps({
|
||||||
id: {
|
id: {
|
||||||
|
@ -59,6 +60,9 @@ const setData = (entity) => (data.value = useCardDescription(entity.ref, entity.
|
||||||
@on-fetch="setData"
|
@on-fetch="setData"
|
||||||
data-key="invoiceOutData"
|
data-key="invoiceOutData"
|
||||||
>
|
>
|
||||||
|
<template #menu="{ entity }">
|
||||||
|
<InvoiceOutDescriptorMenu :invoiceOut="entity" />
|
||||||
|
</template>
|
||||||
<template #body="{ entity }">
|
<template #body="{ entity }">
|
||||||
<VnLv :label="t('invoiceOut.card.issued')" :value="toDate(entity.issued)" />
|
<VnLv :label="t('invoiceOut.card.issued')" :value="toDate(entity.issued)" />
|
||||||
<VnLv
|
<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>
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { onMounted, onUnmounted, ref } from 'vue';
|
import { onMounted, onUnmounted, ref, watch } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { exportFile, useQuasar } from 'quasar';
|
import { exportFile, useQuasar } from 'quasar';
|
||||||
|
@ -55,6 +55,12 @@ const addElement = (element) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
watch(manageCheckboxes, (current, prev) => {
|
||||||
|
if (!current) {
|
||||||
|
arrayElements.value = [];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
const downloadCsv = (rows) => {
|
const downloadCsv = (rows) => {
|
||||||
const data = arrayElements.value.length ? arrayElements.value : rows;
|
const data = arrayElements.value.length ? arrayElements.value : rows;
|
||||||
let file;
|
let file;
|
||||||
|
@ -244,13 +250,6 @@ const downloadCsv = (rows) => {
|
||||||
.dark_icon {
|
.dark_icon {
|
||||||
color: #121212;
|
color: #121212;
|
||||||
}
|
}
|
||||||
|
|
||||||
.disabled,
|
|
||||||
.disabled *,
|
|
||||||
[disabled],
|
|
||||||
[disabled] * {
|
|
||||||
cursor: default !important;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
|
|
Loading…
Reference in New Issue