feat: refs #7119 update VehicleSummary layout
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
39180c1b3a
commit
a53f41a0b7
|
@ -203,4 +203,13 @@ async function fetch() {
|
|||
.summaryHeader {
|
||||
color: $white;
|
||||
}
|
||||
|
||||
.cardSummary :deep(.q-card__section[content]) {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding: 0;
|
||||
> * {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -16,6 +16,7 @@ const links = {
|
|||
notes: `#/vehicle/${entityId.value}/notes`,
|
||||
dms: `#/vehicle/${entityId.value}/dms`,
|
||||
'invoice-in': `#/vehicle/${entityId.value}/invoice-in`,
|
||||
events: `#/vehicle/${entityId.value}/events`,
|
||||
};
|
||||
</script>
|
||||
<template>
|
||||
|
@ -31,54 +32,73 @@ const links = {
|
|||
:text="$t('globals.pageTitles.basicData')"
|
||||
/>
|
||||
</QCardSection>
|
||||
<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')">
|
||||
<template #value>
|
||||
<span class="link">
|
||||
{{ entity.supplier?.name }}
|
||||
<SupplierDescriptorProxy :id="entity.supplierFk" />
|
||||
</span>
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :label="$t('vehicle.supplierCooler')">
|
||||
<template #value>
|
||||
<span class="link">
|
||||
{{ entity.supplierCooler?.name }}
|
||||
<SupplierDescriptorProxy :id="entity.supplierCoolerFk" />
|
||||
</span>
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :label="$t('vehicle.vin')" :value="entity.vin" />
|
||||
</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" />
|
||||
</QCardSection>
|
||||
<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
|
||||
:label="$t('vehicle.isKmTruckRate')"
|
||||
:value="!!entity.isKmTruckRate"
|
||||
/>
|
||||
<VnLv :label="$t('vehicle.isActive')" :value="!!entity.isActive" />
|
||||
<QCardSection content>
|
||||
<QList 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')">
|
||||
<template #value>
|
||||
<span class="link">
|
||||
{{ entity.supplier?.name }}
|
||||
<SupplierDescriptorProxy :id="entity.supplierFk" />
|
||||
</span>
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :label="$t('vehicle.supplierCooler')">
|
||||
<template #value>
|
||||
<span class="link">
|
||||
{{ entity.supplierCooler?.name }}
|
||||
<SupplierDescriptorProxy
|
||||
:id="entity.supplierCoolerFk"
|
||||
/>
|
||||
</span>
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :label="$t('vehicle.vin')" :value="entity.vin" />
|
||||
</QList>
|
||||
<QList 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" />
|
||||
</QList>
|
||||
<QList 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
|
||||
:label="$t('vehicle.isKmTruckRate')"
|
||||
:value="!!entity.isKmTruckRate"
|
||||
/>
|
||||
<VnLv
|
||||
:label="$t('vehicle.isActive')"
|
||||
:value="!!entity.isActive"
|
||||
/>
|
||||
</QList>
|
||||
</QCardSection>
|
||||
</QCard>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue