0
0
Fork 0

refactor: refs #7553 deleted expedition code and slot in VnTable

This commit is contained in:
Jon Elias 2024-09-04 11:49:49 +02:00
parent 5edea7cad1
commit 1889aa85b5
4 changed files with 9 additions and 22 deletions

View File

@ -408,11 +408,12 @@ defineExpose({
@click="stateStore.toggleRightDrawer()"
/>
</template>
<template #top>
<!--TODO: este slot se carga los botones de mostrar tabla/card y columnas visibles-->
<!-- <template #top>
<div class="full-width-slot">
<slot name="before-header" />
</div>
</template>
</template> -->
<template #header-cell="{ col }">
<QTh v-if="col.visible ?? true">
<div

View File

@ -4,7 +4,6 @@ import { useI18n } from 'vue-i18n';
import { useRoute } from 'vue-router';
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
import TableVisibleColumns from 'src/components/common/TableVisibleColumns.vue';
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
import ExpeditionNewTicket from './ExpeditionNewTicket.vue';
import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue';
@ -28,7 +27,6 @@ const tableRef = ref();
const expeditionsLogsData = ref([]);
const selectedExpeditions = ref([]);
const allColumnNames = ref([]);
const visibleColumns = ref([]);
const newTicketWithRoute = ref(false);
const selectedRows = ref([]);
const hasSelectedRows = computed(() => selectedRows.value.length > 0);
@ -245,14 +243,6 @@ onUnmounted(() => (stateStore.rightDrawer = false));
<template>
<VnSubToolbar>
<template #st-data>
<TableVisibleColumns
:all-columns="allColumnNames"
table-code="expeditionIndex"
labels-traductions-path="expedition"
@on-config-saved="visibleColumns = [...$event, 'history']"
/>
</template>
<template #st-actions>
<QBtnGroup push class="q-gutter-x-sm" flat>
<QBtnDropdown
@ -303,7 +293,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
)
"
>
<QTooltip>{{ t('Delete expedition') }}</QTooltip>
<QTooltip>{{ t('expedition.removeExpedition') }}</QTooltip>
</QBtn>
</QBtnGroup>
</template>
@ -320,7 +310,6 @@ onUnmounted(() => (stateStore.rightDrawer = false));
'row-key': 'id',
selection: 'multiple',
}"
default-mode="table"
auto-load
order="created DESC"
>
@ -366,8 +355,3 @@ onUnmounted(() => (stateStore.rightDrawer = false));
</QTable>
</QDialog>
</template>
<i18n>
es:
Delete expedition: Eliminar expedición
</i18n>

View File

@ -122,6 +122,7 @@ expedition:
isScanned: Is scanned
yes: Yes
no: No
removeExpedition: Delete expedition
basicData:
next: Next
back: Back

View File

@ -193,9 +193,9 @@ expedition:
id: Expedición
item: Artículo
name: Nombre
packageType: Package type
packageType: Embalaje
counter: Contador
externalId: externalId
externalId: ID externo
created: Fecha creación
state: Estado
historyAction: Historial de estados
@ -211,6 +211,7 @@ expedition:
isScanned: Escaneado
yes:
no: No
removeExpedition: Eliminar expedición
package:
package: Embalaje
quantity: Cantidad