diff --git a/src/components/AttachmentsModal.vue b/src/components/AttachmentsModal.vue
index 3dd62cb..5f3fee6 100644
--- a/src/components/AttachmentsModal.vue
+++ b/src/components/AttachmentsModal.vue
@@ -83,17 +83,24 @@
}
.attachment p {
- font-size: 1rem;
- font-weight: 900;
- color: black;
+ font-size: 1rem;
+ font-weight: 900;
+ color: black;
}
.attachment img {
- width: 50%;
+ width: 33%;
justify-content: center;
align-items: center;
margin: 0 auto;
align-content: center;
}
+ @media (max-width: 568px) {
+ .attachment img {
+ width: 50%;
+ }
+
+ }
+
\ No newline at end of file
diff --git a/src/components/CardLoad.vue b/src/components/CardLoad.vue
index ffaa02d..09a0c92 100644
--- a/src/components/CardLoad.vue
+++ b/src/components/CardLoad.vue
@@ -19,13 +19,17 @@
type: Boolean,
required: false,
default: false
+ },
+ tracking: {
+ type: Boolean,
+ required: false,
+ default: true
}
});
const { t } = useI18n()
defineEmits(['set-load'])
-
const openAttachmentsModal = () => {
loadsStore.currentLoad = props.load;
loadsStore.openAttachmentsModal = true;
@@ -94,32 +98,32 @@
{{t('loads.origin')}}:
- {{ load.origin.company_name }},
- {{ load.origin.street_address1 }},
- {{ load.origin.city }},
- {{ load.origin.state }},
- {{ load.origin.country }},
- {{ load.origin.zipcode }}
+ {{ load.origin?.company_name }},
+ {{ load.origin?.street_address1 }},
+ {{ load.origin?.city }},
+ {{ load.origin?.state }},
+ {{ load.origin?.country }},
+ {{ load.origin?.zipcode }}
{{t('loads.destination')}}:
- {{ load.destination.company_name }},
- {{ load.destination.street_address1 }},
- {{ load.destination.city }},
- {{ load.destination.state }},
- {{ load.destination.country }},
- {{ load.destination.zipcode }}
+ {{ load.destination?.company_name }},
+ {{ load.destination?.street_address1 }},
+ {{ load.destination?.city }},
+ {{ load.destination?.state }},
+ {{ load.destination?.country }},
+ {{ load.destination?.zipcode }}
-
-
+
+
{{t('loads.company')}}:
- {{ load.company.company_name }}
+ {{ load.company?.company_name }}
-
-
-
{{t('loads.postStatus')}}: {{ getStatusPublished(load) }}
-
{{t('loads.loadStatus')}}: {{ getStatusLoad(load).status }}
+
+
{{t('loads.postStatus')}}: {{ getStatusPublished(load) }}
+
{{t('loads.loadStatus')}}: {{ getStatusLoad(load).status }}
+
@@ -139,7 +143,7 @@
{{t('global.segment')}}: {{ load.categories?.map((e) => e.name).join(', ') }}
{{t('loads.loadCode')}}: {{ load.shipment_code?.toUpperCase() }}
{{ load.notes }}
-
+
#{{ load.no_of_proposals }} {{t('loads.offers')}}
-
+
import Swal from 'sweetalert2';
- import { getDateMonthDay } from '../helpers/date_formats';
+ import { getDateOnly } from '../helpers/date_formats';
import { getStatusLoad } from '../helpers/status';
import { useCompanyStore } from '../stores/company';
import { useAuthStore } from '../stores/auth';
@@ -87,10 +87,10 @@
{{ t('labels.codeId') }}: {{proposal.vehicle.vehicle_code?.toUpperCase()}}
{{ t('global.segment') }}: {{proposal.load.categories?.map((e) => e.name).join(', ')}}
{{ t('directory.typeTruck') }}: {{proposal.vehicle.truck_type}}
- {{ t('labels.datePublished') }}: {{ getDateMonthDay(proposal.vehicle.published_date) }}
- {{ t('labels.dateAvailable') }}: {{ getDateMonthDay(proposal.vehicle.available_date) }}
- {{ t('vehicles.availableIn') }}: {{proposal.vehicle.city}}, {{proposal.vehicle.state}}
- {{ t('loads.destination') }}: {{proposal.vehicle.destino}}
+ {{ t('labels.datePublished') }}: {{ getDateOnly(proposal.vehicle.published_date) }}
+ {{ t('labels.dateAvailable') }}: {{ getDateOnly(proposal.vehicle.available_date) }}
+ {{ t('vehicles.availableIn') }}: {{proposal.vehicle.city}}, {{proposal.vehicle.state}}
+ {{ t('loads.destination') }}: {{proposal.vehicle?.destino.replace(';', ', ')}}
{{ t('vehicles.truckPlates') }}: {{ proposal.vehicle.circulation_serial_number }}
{{ t('vehicles.trailerPlates') }} 1: {{proposal.vehicle.trailer_plate_1}}
{{ t('vehicles.trailerPlates') }} 2: {{proposal.vehicle.trailer_plate_2}}
@@ -103,7 +103,7 @@
@click="$emit('set-proposal', {proposal: proposal, modal: 'detail'})"
data-toggle="modal" data-target="#loadDetailModal"
>{{proposal.load.shipment_code.toUpperCase()}}
- {{ t('loads.loadStatus') }}: {{ getStatusLoad(proposal.load, locale).status}}
+ {{ t('loads.loadStatus') }}: {{ getStatusLoad(proposal.load, locale).status}}
{{ t('labels.operator') }}: {{proposal._driver}}
@@ -222,4 +222,5 @@
gap: 0.2rem;
}
}
+
\ No newline at end of file
diff --git a/src/components/CardVehicle.vue b/src/components/CardVehicle.vue
index f7ee93f..c22f5dd 100644
--- a/src/components/CardVehicle.vue
+++ b/src/components/CardVehicle.vue
@@ -1,6 +1,6 @@
+
+
+ {{ t('vehicles.search') }}
+
+
+
+
+ {{ t('buttons.search') }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/TrackingLoadView.vue b/src/views/TrackingLoadView.vue
index 3efa5af..1a5f4af 100644
--- a/src/views/TrackingLoadView.vue
+++ b/src/views/TrackingLoadView.vue
@@ -94,7 +94,7 @@