diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js
index 80bb80745..1314666c8 100644
--- a/src/i18n/en/index.js
+++ b/src/i18n/en/index.js
@@ -424,7 +424,7 @@ export default {
comercial: 'Comercial',
},
},
- shelving:{
+ shelving: {
pageTitles: {
shelving: 'Shelving',
shelvingList: 'Shelving List',
@@ -441,14 +441,14 @@ export default {
parking: 'Parking',
priority: 'Priority',
worker: 'Worker',
- recyclable: 'Recyclable'
+ recyclable: 'Recyclable',
},
basicData: {
code: 'Code',
parking: 'Parking',
priority: 'Priority',
- recyclable: 'Recyclable'
- }
+ recyclable: 'Recyclable',
+ },
},
worker: {
pageTitles: {
@@ -637,6 +637,9 @@ export default {
delivered: 'Delivered',
received: 'Received',
entries: 'Entries',
+ cloneShipping: 'Clone travel',
+ CloneTravelAndEntries: 'Clone travel and his entries',
+ AddEntry: 'Add entry',
},
},
components: {
diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js
index 6a01cc5a5..edb20feb7 100644
--- a/src/i18n/es/index.js
+++ b/src/i18n/es/index.js
@@ -426,7 +426,7 @@ export default {
comercial: 'Comercial',
},
},
- shelving:{
+ shelving: {
pageTitles: {
shelving: 'Carros',
shelvingList: 'Listado de carros',
@@ -443,14 +443,14 @@ export default {
parking: 'Parking',
priority: 'Prioridad',
worker: 'Trabajador',
- recyclable: 'Reciclable'
+ recyclable: 'Reciclable',
},
basicData: {
code: 'Código',
parking: 'Parking',
priority: 'Prioridad',
- recyclable: 'Reciclable'
- }
+ recyclable: 'Reciclable',
+ },
},
worker: {
pageTitles: {
@@ -639,6 +639,9 @@ export default {
delivered: 'Enviada',
received: 'Recibida',
entries: 'Entradas',
+ cloneShipping: 'Clonar envío',
+ CloneTravelAndEntries: 'Clonar travel y sus entradas',
+ AddEntry: 'Añadir entrada',
},
},
components: {
diff --git a/src/pages/Travel/Card/TravelSummary.vue b/src/pages/Travel/Card/TravelSummary.vue
index c476b6bc0..172b7a9dc 100644
--- a/src/pages/Travel/Card/TravelSummary.vue
+++ b/src/pages/Travel/Card/TravelSummary.vue
@@ -1,6 +1,6 @@
@@ -165,6 +181,21 @@ const entriesTableRows = computed(() => {
{{ travel.ref }} - {{ travel.id }}
+
+
+
+ {{ t('components.cardDescriptor.moreOptions') }}
+
+
+
+
+ {{ option.name }}
+
+
+
+
+
+
{
if (route.query.travelData) {
const travelData = JSON.parse(route.query.travelData);
- for (let key in travelData) {
- newTravelData[key] = travelData[key];
+ for (let key in newTravelDataForm) {
+ if (key === 'landed' || key === 'shipped') {
+ newTravelDataForm[key] = travelData[key].substring(0, 10);
+ } else {
+ newTravelDataForm[key] = travelData[key];
+ }
}
}
});
const createTravel = async () => {
- const response = await travelStore.createTravel(newTravelData);
+ const response = await travelStore.createTravel(newTravelDataForm);
if (response.status === 200) router.push({ path: `/travel/${response.data.id}` });
};
@@ -58,8 +63,8 @@ const onFetchWarehouses = (warehouses) => {
};
const canSubmit = computed(() => {
- for (const key in newTravelData) {
- if (!newTravelData[key]) return false;
+ for (const key in newTravelDataForm) {
+ if (!newTravelDataForm[key]) return false;
}
return true;
});
@@ -80,14 +85,14 @@ const redirectToTravelList = () => {
>
{
style="max-width: 100%"
/>
{
/>
{
/>
{
};
const cloneTravel = (travelData) => {
- const params = JSON.stringify({
- ref: travelData.ref,
- agencyModeFk: travelData.agencyModeFk,
- shipped: travelData.shipped,
- landed: travelData.landed,
- warehouseInFk: travelData.warehouseInFk,
- warehouseOutFk: travelData.warehouseOutFk,
- });
-
- redirectToCreateView(params);
+ const stringifiedTravelData = JSON.stringify(travelData);
+ console.log('clone data:: ', stringifiedTravelData);
+ redirectToCreateView(stringifiedTravelData);
};
const redirectToCreateView = (queryParams) => {