fix: date local
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup>
|
||||
import { getDateOnly } from '../helpers/date_formats';
|
||||
import { getDayMonthYear } from '../helpers/date_formats';
|
||||
import { getStatusPublished } from '../helpers/status';
|
||||
import { getStatusLoad } from '../helpers/status';
|
||||
import { useLoadsStore } from '../stores/loads';
|
||||
@@ -169,12 +169,12 @@
|
||||
<div class="col-lg-4 col-sm-12">
|
||||
<p><span>{{t('loads.truckType')}}: </span> {{ load.truck_type }}</p>
|
||||
<p><span>{{t('loads.weight')}}: </span> {{ load.weight }} KG</p>
|
||||
<p><span>{{t('loads.dateLoad')}}: </span> {{ getDateOnly(load.est_loading_date) }}</p>
|
||||
<p><span>{{t('loads.dateLoad')}}: </span> {{ getDayMonthYear(load.est_loading_date) }}</p>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-12">
|
||||
<p><span>{{t('loads.product')}}: </span> {{ load?.product?.name }}</p>
|
||||
<p><span>{{t('loads.cost')}}: </span> {{ load.actual_cost }}</p>
|
||||
<p><span>{{t('loads.dateDownload')}}: </span> {{getDateOnly(load.est_unloading_date) }}</p>
|
||||
<p><span>{{t('loads.dateDownload')}}: </span> {{getDayMonthYear(load.est_unloading_date) }}</p>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-12">
|
||||
<p><span>{{t('global.segment')}}: </span> {{ load.categories?.map((e) => e.name).join(', ') }}</p>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup>
|
||||
import Swal from 'sweetalert2';
|
||||
import { getDateOnly } from '../helpers/date_formats';
|
||||
import { getDayMonthYear } from '../helpers/date_formats';
|
||||
import { useVehiclesStore } from '../stores/vehicles';
|
||||
import { useAuthStore } from '../stores/auth';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
@@ -112,7 +112,7 @@
|
||||
</i>
|
||||
</span>
|
||||
</p>
|
||||
<p v-if="vehicle.is_available">{{ t('vehicles.availableDate') }}: <span>{{ getDateOnly(vehicle.available_date) }}</span></p>
|
||||
<p v-if="vehicle.is_available">{{ t('vehicles.availableDate') }}: <span>{{ getDayMonthYear(vehicle.available_date) }}</span></p>
|
||||
<p v-if="vehicle.active_load && !readOnly">
|
||||
{{ t('loads.loadCode') }}:
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user