0
0
Fork 0

fix: refs #5186 add all fields basic data & summary

This commit is contained in:
Jorge Penadés 2024-03-01 12:12:44 +01:00
parent 37985d853b
commit b5edc98732
4 changed files with 17 additions and 3 deletions

View File

@ -706,11 +706,15 @@ export default {
code: 'Code', code: 'Code',
pickingOrder: 'Picking order', pickingOrder: 'Picking order',
sector: 'Sector', sector: 'Sector',
row: 'Row',
column: 'Column',
}, },
basicData: { basicData: {
code: 'Code', code: 'Code',
pickingOrder: 'Picking order', pickingOrder: 'Picking order',
sector: 'Sector', sector: 'Sector',
row: 'Row',
column: 'Column',
}, },
}, },
invoiceIn: { invoiceIn: {

View File

@ -763,10 +763,14 @@ export default {
summary: { summary: {
code: 'Código', code: 'Código',
pickingOrder: 'Orden de recogida', pickingOrder: 'Orden de recogida',
row: 'Fila',
column: 'Columna',
}, },
basicData: { basicData: {
code: 'Código', code: 'Código',
pickingOrder: 'Orden de recogida', pickingOrder: 'Orden de recogida',
row: 'Fila',
column: 'Columna',
}, },
}, },
invoiceIn: { invoiceIn: {

View File

@ -15,7 +15,7 @@ const parkingId = route.params?.id || null;
const sectors = ref([]); const sectors = ref([]);
const filter = { const filter = {
fields: ['sectorFk', 'code', 'pickingOrder'], fields: ['sectorFk', 'code', 'pickingOrder', 'row', 'column'],
include: [{ relation: 'sector', scope: { fields: ['id', 'description'] } }], include: [{ relation: 'sector', scope: { fields: ['id', 'description'] } }],
}; };
</script> </script>
@ -28,7 +28,7 @@ const filter = {
auto-load auto-load
/> />
<VnSubToolbar /> <VnSubToolbar />
<FormModel :url="`Parkings/${parkingId}`" model="parking" :filter="filter"> <FormModel :url="`Parkings/${parkingId}`" model="parking" :filter="filter" auto-load>
<template #form="{ data }"> <template #form="{ data }">
<VnRow> <VnRow>
<VnInput v-model="data.code" :label="t('parking.basicData.code')" /> <VnInput v-model="data.code" :label="t('parking.basicData.code')" />
@ -37,6 +37,10 @@ const filter = {
:label="t('parking.basicData.pickingOrder')" :label="t('parking.basicData.pickingOrder')"
/> />
</VnRow> </VnRow>
<VnRow>
<VnInput v-model="data.row" :label="t('parking.basicData.row')" />
<VnInput v-model="data.column" :label="t('parking.basicData.column')" />
</VnRow>
<VnRow> <VnRow>
<VnSelectFilter <VnSelectFilter
v-model="data.sectorFk" v-model="data.sectorFk"

View File

@ -17,7 +17,7 @@ const { t } = useI18n();
const entityId = computed(() => $props.id || route.params.id); const entityId = computed(() => $props.id || route.params.id);
const filter = { const filter = {
fields: ['sectorFk', 'code', 'pickingOrder'], fields: ['sectorFk', 'code', 'pickingOrder', 'row', 'column'],
include: [{ relation: 'sector', scope: { fields: ['id', 'description'] } }], include: [{ relation: 'sector', scope: { fields: ['id', 'description'] } }],
}; };
</script> </script>
@ -43,6 +43,8 @@ const filter = {
:label="t('parking.summary.sector')" :label="t('parking.summary.sector')"
:value="parking.sector?.description" :value="parking.sector?.description"
/> />
<VnLv :label="t('parking.summary.row')" :value="parking.row" />
<VnLv :label="t('parking.summary.column')" :value="parking.column" />
</QCard> </QCard>
</template> </template>
</CardSummary> </CardSummary>