feat: refs #7119 update VehicleSummary layout
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2025-01-23 12:51:38 +01:00
parent 37d8cc1b49
commit 39180c1b3a
2 changed files with 50 additions and 47 deletions

View File

@ -212,6 +212,10 @@ select:-webkit-autofill {
justify-content: center;
}
.q-card__section[dense] {
padding: 0;
}
input[type='number'] {
-moz-appearance: textfield;
}

View File

@ -25,13 +25,17 @@ const links = {
</template>
<template #body="{ entity }">
<QCard class="vn-one">
<QCardSection class="q-pa-none">
<QCardSection dense>
<VnTitle
:url="links['basic-data']"
:text="$t('globals.pageTitles.basicData')"
/>
</QCardSection>
<VnLv :label="$t('globals.description')" :value="entity.description" />
<QCardSection dense>
<VnLv
:label="$t('globals.description')"
:value="entity.description"
/>
<VnLv :label="$t('vehicle.tradeMark')" :value="entity.tradeMark" />
<VnLv :label="$t('globals.model')" :value="entity.model" />
<VnLv :label="$t('globals.supplier')">
@ -51,29 +55,23 @@ const links = {
</template>
</VnLv>
<VnLv :label="$t('vehicle.vin')" :value="entity.vin" />
</QCard>
<QCard class="vn-one">
<QCardSection class="q-pa-none">
<VnTitle
:url="links['basic-data']"
:text="$t('globals.pageTitles.basicData')"
/>
</QCardSection>
<QCardSection dense>
<VnLv :label="$t('vehicle.chassis')" :value="entity.chassis" />
<VnLv :label="$t('globals.fuel')" :value="entity.fuelType?.name" />
<VnLv :label="$t('vehicle.ppe')" :value="entity.ppeFk" />
<VnLv :label="$t('vehicle.nLeasing')" :value="entity.leasing" />
<VnLv :label="$t('vehicle.leasing')" :value="entity.bankPolicy?.ref" />
<VnLv :label="$t('globals.amount')" :value="entity.import" />
</QCard>
<QCard class="vn-one">
<QCardSection class="q-pa-none">
<VnTitle
:url="links['basic-data']"
:text="$t('globals.pageTitles.basicData')"
<VnLv
:label="$t('vehicle.leasing')"
:value="entity.bankPolicy?.ref"
/>
<VnLv :label="$t('globals.amount')" :value="entity.import" />
</QCardSection>
<VnLv :label="$t('globals.warehouse')" :value="entity.warehouse?.name" />
<QCardSection dense>
<VnLv
:label="$t('globals.warehouse')"
:value="entity.warehouse?.name"
/>
<VnLv :label="$t('globals.company')" :value="entity.company?.code" />
<VnLv :label="$t('globals.country')" :value="entity.countryCodeFk" />
<VnLv
@ -81,6 +79,7 @@ const links = {
:value="!!entity.isKmTruckRate"
/>
<VnLv :label="$t('vehicle.isActive')" :value="!!entity.isActive" />
</QCardSection>
</QCard>
</template>
</CardSummary>