forked from verdnatura/salix-front
refactor: refs #7553 deleted expedition code and slot in VnTable
This commit is contained in:
parent
5edea7cad1
commit
1889aa85b5
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -106,7 +106,7 @@ expedition:
|
|||
name: Name
|
||||
packageType: Package type
|
||||
counter: Counter
|
||||
externalId: externalId
|
||||
externalId: external Id
|
||||
created: Created
|
||||
state: State
|
||||
historyAction: Status log
|
||||
|
@ -122,6 +122,7 @@ expedition:
|
|||
isScanned: Is scanned
|
||||
yes: Yes
|
||||
no: No
|
||||
removeExpedition: Delete expedition
|
||||
basicData:
|
||||
next: Next
|
||||
back: Back
|
||||
|
|
|
@ -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: Sí
|
||||
no: No
|
||||
removeExpedition: Eliminar expedición
|
||||
package:
|
||||
package: Embalaje
|
||||
quantity: Cantidad
|
||||
|
|
Loading…
Reference in New Issue