refactor: refs #6897 clean up imports, update labels, and enhance localization entries in Entry components
This commit is contained in:
parent
ece705b0ae
commit
84c92b8a98
|
@ -12,9 +12,6 @@ import TravelDescriptorProxy from 'src/pages/Travel/Card/TravelDescriptorProxy.v
|
||||||
import EntryBuys from './EntryBuys.vue';
|
import EntryBuys from './EntryBuys.vue';
|
||||||
import VnTitle from 'src/components/common/VnTitle.vue';
|
import VnTitle from 'src/components/common/VnTitle.vue';
|
||||||
import VnToSummary from 'src/components/ui/VnToSummary.vue';
|
import VnToSummary from 'src/components/ui/VnToSummary.vue';
|
||||||
import EntryDescriptorMenu from './EntryDescriptorMenu.vue';
|
|
||||||
import VnRow from 'src/components/ui/VnRow.vue';
|
|
||||||
import VnTitle from 'src/components/common/VnTitle.vue';
|
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
@ -197,7 +194,6 @@ onMounted(async () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
es:
|
es:
|
||||||
Travel data: Datos envío
|
Travel data: Datos envío
|
||||||
|
|
|
@ -171,7 +171,7 @@ const entryFilterPanel = ref();
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput
|
||||||
v-model="params.reference"
|
v-model="params.reference"
|
||||||
:label="t('entryFilter.filter.reference')"
|
:label="t('entry.list.tableVisibleColumns.reference')"
|
||||||
is-outlined
|
is-outlined
|
||||||
/>
|
/>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
import VnSection from 'src/components/common/VnSection.vue';
|
||||||
import { ref, computed } from 'vue';
|
import { ref, computed } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useState } from 'src/composables/useState';
|
import { useState } from 'src/composables/useState';
|
||||||
import { onBeforeMount } from 'vue';
|
import { onBeforeMount } from 'vue';
|
||||||
|
|
||||||
import EntryFilter from './EntryFilter.vue';
|
import EntryFilter from './EntryFilter.vue';
|
||||||
import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
|
|
||||||
import VnTable from 'components/VnTable/VnTable.vue';
|
import VnTable from 'components/VnTable/VnTable.vue';
|
||||||
import RightMenu from 'src/components/common/RightMenu.vue';
|
|
||||||
import { toDate } from 'src/filters';
|
|
||||||
import SupplierDescriptorProxy from 'src/pages/Supplier/Card/SupplierDescriptorProxy.vue';
|
import SupplierDescriptorProxy from 'src/pages/Supplier/Card/SupplierDescriptorProxy.vue';
|
||||||
|
import { toDate } from 'src/filters';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
const defaultEntry = ref({});
|
const defaultEntry = ref({});
|
||||||
const state = useState();
|
const state = useState();
|
||||||
const user = state.getUser();
|
const user = state.getUser();
|
||||||
|
const dataKey = 'EntryList';
|
||||||
|
|
||||||
const entryQueryFilter = {
|
const entryQueryFilter = {
|
||||||
include: [
|
include: [
|
||||||
|
@ -268,17 +268,17 @@ onBeforeMount(async () => {
|
||||||
:array-data-props="{
|
:array-data-props="{
|
||||||
url: 'Entries/filter',
|
url: 'Entries/filter',
|
||||||
order: 'id DESC',
|
order: 'id DESC',
|
||||||
userFilter: entryFilter,
|
userFilter: entryQueryFilter,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template #advanced-menu>
|
<template #advanced-menu>
|
||||||
<EntryFilter data-key="EntryList" />
|
<EntryFilter :data-key="dataKey" />
|
||||||
</template>
|
</template>
|
||||||
</RightMenu>
|
</VnSection>
|
||||||
<VnTable
|
<VnTable
|
||||||
v-if="defaultEntry.defaultSupplierFk"
|
v-if="defaultEntry.defaultSupplierFk"
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
data-key="EntryList"
|
:data-key="dataKey"
|
||||||
url="Entries/filter"
|
url="Entries/filter"
|
||||||
:filter="entryQueryFilter"
|
:filter="entryQueryFilter"
|
||||||
:create="{
|
:create="{
|
||||||
|
|
|
@ -2,15 +2,24 @@ entry:
|
||||||
list:
|
list:
|
||||||
newEntry: New entry
|
newEntry: New entry
|
||||||
tableVisibleColumns:
|
tableVisibleColumns:
|
||||||
created: Creation
|
isExcludedFromAvailable: Exclude from inventory
|
||||||
supplierFk: Supplier
|
|
||||||
isBooked: Booked
|
|
||||||
isConfirmed: Confirmed
|
|
||||||
isOrdered: Ordered
|
isOrdered: Ordered
|
||||||
|
isConfirmed: Ready to label
|
||||||
|
isReceived: Received
|
||||||
|
isRaid: Raid
|
||||||
|
landed: Date
|
||||||
|
supplierFk: Supplier
|
||||||
|
reference: Ref/Alb/Guide
|
||||||
|
invoiceNumber: Invoice
|
||||||
|
agencyModeId: Agency
|
||||||
|
isBooked: Booked
|
||||||
companyFk: Company
|
companyFk: Company
|
||||||
travelFk: Travel
|
evaNotes: Notes
|
||||||
isExcludedFromAvailable: Inventory
|
warehouseOutFk: Origin
|
||||||
|
warehouseInFk: Destiny
|
||||||
|
entryTypeDescription: Entry type
|
||||||
invoiceAmount: Import
|
invoiceAmount: Import
|
||||||
|
travelFk: Travel
|
||||||
inventoryEntry: Inventory entry
|
inventoryEntry: Inventory entry
|
||||||
summary:
|
summary:
|
||||||
commission: Commission
|
commission: Commission
|
||||||
|
|
|
@ -2,14 +2,23 @@ entry:
|
||||||
list:
|
list:
|
||||||
newEntry: Nueva entrada
|
newEntry: Nueva entrada
|
||||||
tableVisibleColumns:
|
tableVisibleColumns:
|
||||||
created: Creación
|
isExcludedFromAvailable: Excluir del inventario
|
||||||
supplierFk: Proveedor
|
|
||||||
isBooked: Asentado
|
|
||||||
isConfirmed: Confirmado
|
|
||||||
isOrdered: Pedida
|
isOrdered: Pedida
|
||||||
|
isConfirmed: Lista para etiquetar
|
||||||
|
isReceived: Recibida
|
||||||
|
isRaid: Redada
|
||||||
|
landed: Fecha
|
||||||
|
supplierFk: Proveedor
|
||||||
|
invoiceNumber: Nº Factura
|
||||||
|
reference: Ref/Alb/Guía
|
||||||
|
agencyModeId: Agencia
|
||||||
|
isBooked: Asentado
|
||||||
companyFk: Empresa
|
companyFk: Empresa
|
||||||
travelFk: Envio
|
travelFk: Envio
|
||||||
isExcludedFromAvailable: Inventario
|
evaNotes: Notas
|
||||||
|
warehouseOutFk: Origen
|
||||||
|
warehouseInFk: Destino
|
||||||
|
entryTypeDescription: Tipo entrada
|
||||||
invoiceAmount: Importe
|
invoiceAmount: Importe
|
||||||
inventoryEntry: Es inventario
|
inventoryEntry: Es inventario
|
||||||
summary:
|
summary:
|
||||||
|
|
Loading…
Reference in New Issue