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()"
|
@click="stateStore.toggleRightDrawer()"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #top>
|
<!--TODO: este slot se carga los botones de mostrar tabla/card y columnas visibles-->
|
||||||
|
<!-- <template #top>
|
||||||
<div class="full-width-slot">
|
<div class="full-width-slot">
|
||||||
<slot name="before-header" />
|
<slot name="before-header" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template> -->
|
||||||
<template #header-cell="{ col }">
|
<template #header-cell="{ col }">
|
||||||
<QTh v-if="col.visible ?? true">
|
<QTh v-if="col.visible ?? true">
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -4,7 +4,6 @@ import { useI18n } from 'vue-i18n';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
|
||||||
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
|
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 VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
||||||
import ExpeditionNewTicket from './ExpeditionNewTicket.vue';
|
import ExpeditionNewTicket from './ExpeditionNewTicket.vue';
|
||||||
import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue';
|
import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue';
|
||||||
|
@ -28,7 +27,6 @@ const tableRef = ref();
|
||||||
const expeditionsLogsData = ref([]);
|
const expeditionsLogsData = ref([]);
|
||||||
const selectedExpeditions = ref([]);
|
const selectedExpeditions = ref([]);
|
||||||
const allColumnNames = ref([]);
|
const allColumnNames = ref([]);
|
||||||
const visibleColumns = ref([]);
|
|
||||||
const newTicketWithRoute = ref(false);
|
const newTicketWithRoute = ref(false);
|
||||||
const selectedRows = ref([]);
|
const selectedRows = ref([]);
|
||||||
const hasSelectedRows = computed(() => selectedRows.value.length > 0);
|
const hasSelectedRows = computed(() => selectedRows.value.length > 0);
|
||||||
|
@ -245,14 +243,6 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VnSubToolbar>
|
<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>
|
<template #st-actions>
|
||||||
<QBtnGroup push class="q-gutter-x-sm" flat>
|
<QBtnGroup push class="q-gutter-x-sm" flat>
|
||||||
<QBtnDropdown
|
<QBtnDropdown
|
||||||
|
@ -303,7 +293,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<QTooltip>{{ t('Delete expedition') }}</QTooltip>
|
<QTooltip>{{ t('expedition.removeExpedition') }}</QTooltip>
|
||||||
</QBtn>
|
</QBtn>
|
||||||
</QBtnGroup>
|
</QBtnGroup>
|
||||||
</template>
|
</template>
|
||||||
|
@ -320,7 +310,6 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
'row-key': 'id',
|
'row-key': 'id',
|
||||||
selection: 'multiple',
|
selection: 'multiple',
|
||||||
}"
|
}"
|
||||||
default-mode="table"
|
|
||||||
auto-load
|
auto-load
|
||||||
order="created DESC"
|
order="created DESC"
|
||||||
>
|
>
|
||||||
|
@ -366,8 +355,3 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
</QTable>
|
</QTable>
|
||||||
</QDialog>
|
</QDialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<i18n>
|
|
||||||
es:
|
|
||||||
Delete expedition: Eliminar expedición
|
|
||||||
</i18n>
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ expedition:
|
||||||
name: Name
|
name: Name
|
||||||
packageType: Package type
|
packageType: Package type
|
||||||
counter: Counter
|
counter: Counter
|
||||||
externalId: externalId
|
externalId: external Id
|
||||||
created: Created
|
created: Created
|
||||||
state: State
|
state: State
|
||||||
historyAction: Status log
|
historyAction: Status log
|
||||||
|
@ -122,6 +122,7 @@ expedition:
|
||||||
isScanned: Is scanned
|
isScanned: Is scanned
|
||||||
yes: Yes
|
yes: Yes
|
||||||
no: No
|
no: No
|
||||||
|
removeExpedition: Delete expedition
|
||||||
basicData:
|
basicData:
|
||||||
next: Next
|
next: Next
|
||||||
back: Back
|
back: Back
|
||||||
|
|
|
@ -193,9 +193,9 @@ expedition:
|
||||||
id: Expedición
|
id: Expedición
|
||||||
item: Artículo
|
item: Artículo
|
||||||
name: Nombre
|
name: Nombre
|
||||||
packageType: Package type
|
packageType: Embalaje
|
||||||
counter: Contador
|
counter: Contador
|
||||||
externalId: externalId
|
externalId: ID externo
|
||||||
created: Fecha creación
|
created: Fecha creación
|
||||||
state: Estado
|
state: Estado
|
||||||
historyAction: Historial de estados
|
historyAction: Historial de estados
|
||||||
|
@ -211,6 +211,7 @@ expedition:
|
||||||
isScanned: Escaneado
|
isScanned: Escaneado
|
||||||
yes: Sí
|
yes: Sí
|
||||||
no: No
|
no: No
|
||||||
|
removeExpedition: Eliminar expedición
|
||||||
package:
|
package:
|
||||||
package: Embalaje
|
package: Embalaje
|
||||||
quantity: Cantidad
|
quantity: Cantidad
|
||||||
|
|
Loading…
Reference in New Issue