From 71e2cdebe4411664b46d1296beb72f01fb7cde71 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Thu, 18 Jan 2024 11:19:23 -0300 Subject: [PATCH 01/16] WIP --- src/i18n/en/index.js | 12 ++- src/i18n/es/index.js | 10 ++ src/pages/Travel/Card/TravelBasicData.vue | 104 ++++++++++++++++++++ src/pages/Travel/Card/TravelLog.vue | 6 ++ src/pages/Travel/Card/TravelTermographs.vue | 1 + src/router/modules/travel.js | 10 +- 6 files changed, 136 insertions(+), 7 deletions(-) create mode 100644 src/pages/Travel/Card/TravelBasicData.vue create mode 100644 src/pages/Travel/Card/TravelLog.vue create mode 100644 src/pages/Travel/Card/TravelTermographs.vue diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 152c5e644..99d1b532c 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -1077,7 +1077,7 @@ export default { extraCommunity: 'Extra community', travelCreate: 'New travel', basicData: 'Basic data', - history: 'History', + history: 'Log', thermographs: 'Termographs', }, summary: { @@ -1102,6 +1102,16 @@ export default { continent: 'Continent out', totalEntries: 'Total entries', }, + basicData: { + reference: 'Reference', + agency: 'Agency', + shipped: 'Shipped', + landed: 'Landed', + warehouseOut: 'Warehouse Out', + warehouseIn: 'Warehouse In', + delivered: 'Delivered', + received: 'Received', + }, }, item: { pageTitles: { diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index d0c2731a9..b96fe3a6b 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -1102,6 +1102,16 @@ export default { continent: 'Cont. Salida', totalEntries: 'Ent. totales', }, + basicData: { + reference: 'Referencia', + agency: 'Agencia', + shipped: 'F. Envío', + landed: 'F. entrega', + warehouseOut: 'Alm. salida', + warehouseIn: 'Alm. entrada', + delivered: 'Enviada', + received: 'Recibida', + }, }, item: { pageTitles: { diff --git a/src/pages/Travel/Card/TravelBasicData.vue b/src/pages/Travel/Card/TravelBasicData.vue new file mode 100644 index 000000000..2edaac853 --- /dev/null +++ b/src/pages/Travel/Card/TravelBasicData.vue @@ -0,0 +1,104 @@ + + diff --git a/src/pages/Travel/Card/TravelLog.vue b/src/pages/Travel/Card/TravelLog.vue new file mode 100644 index 000000000..1a2667ff7 --- /dev/null +++ b/src/pages/Travel/Card/TravelLog.vue @@ -0,0 +1,6 @@ + + diff --git a/src/pages/Travel/Card/TravelTermographs.vue b/src/pages/Travel/Card/TravelTermographs.vue new file mode 100644 index 000000000..c86c49242 --- /dev/null +++ b/src/pages/Travel/Card/TravelTermographs.vue @@ -0,0 +1 @@ + diff --git a/src/router/modules/travel.js b/src/router/modules/travel.js index 43c444ae2..f9b2153da 100644 --- a/src/router/modules/travel.js +++ b/src/router/modules/travel.js @@ -69,9 +69,8 @@ export default { meta: { title: 'basicData', icon: 'vn:settings', - // roles: [], }, - // component: () => import(), + component: () => import('src/pages/Travel/Card/TravelBasicData.vue'), }, { name: 'TravelHistory', @@ -79,9 +78,8 @@ export default { meta: { title: 'history', icon: 'history', - // roles: [], }, - // component: () => import(), + component: () => import('src/pages/Travel/Card/TravelLog.vue'), }, { name: 'TravelThermographs', @@ -89,9 +87,9 @@ export default { meta: { title: 'thermographs', icon: 'vn:thermometer', - // roles: [], }, - // component: () => import(), + component: () => + import('src/pages/Travel/Card/TravelTermographs.vue'), }, ], }, From c9bd3d413a069a306b46374f6cf0c2d888966ed1 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Fri, 19 Jan 2024 09:24:57 -0300 Subject: [PATCH 02/16] Travel termographs WIP --- src/i18n/en/index.js | 7 + src/i18n/es/index.js | 7 + src/pages/Travel/Card/TravelTermographs.vue | 134 +++++++++++++++++++- 3 files changed, 147 insertions(+), 1 deletion(-) diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 99d1b532c..aa1a4946d 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -1112,6 +1112,13 @@ export default { delivered: 'Delivered', received: 'Received', }, + termographs: { + code: 'Code', + temperature: 'Temperature', + state: 'State', + destination: 'Destination', + created: 'Created', + }, }, item: { pageTitles: { diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index b96fe3a6b..4ff78e6e1 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -1112,6 +1112,13 @@ export default { delivered: 'Enviada', received: 'Recibida', }, + termographs: { + code: 'Código', + temperature: 'Temperatura', + state: 'Estado', + destination: 'Destino', + created: 'Fecha creación', + }, }, item: { pageTitles: { diff --git a/src/pages/Travel/Card/TravelTermographs.vue b/src/pages/Travel/Card/TravelTermographs.vue index c86c49242..0d43843e7 100644 --- a/src/pages/Travel/Card/TravelTermographs.vue +++ b/src/pages/Travel/Card/TravelTermographs.vue @@ -1 +1,133 @@ - + + + + + +es: + Add termograph: Añadir termógrafo + + From 7b542dc3bb9ba7e36cf607c5961d9407f31a23da Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 22 Jan 2024 11:22:22 -0300 Subject: [PATCH 03/16] WIP --- src/composables/useState.js | 1 + src/i18n/en/index.js | 11 +- src/i18n/es/index.js | 9 +- src/pages/Travel/Card/TravelCard.vue | 1 - src/pages/Travel/Card/TravelTermographs.vue | 133 --------- src/pages/Travel/Card/TravelThermographs.vue | 188 ++++++++++++ .../Travel/Card/TravelThermographsForm.vue | 271 ++++++++++++++++++ src/router/modules/travel.js | 31 +- 8 files changed, 506 insertions(+), 139 deletions(-) delete mode 100644 src/pages/Travel/Card/TravelTermographs.vue create mode 100644 src/pages/Travel/Card/TravelThermographs.vue create mode 100644 src/pages/Travel/Card/TravelThermographsForm.vue diff --git a/src/composables/useState.js b/src/composables/useState.js index 6ad8eb22c..e0b742a73 100644 --- a/src/composables/useState.js +++ b/src/composables/useState.js @@ -9,6 +9,7 @@ const user = ref({ lang: '', darkMode: null, companyFk: null, + warehouseFk: null, }); const roles = ref([]); diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index aa1a4946d..424976df4 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -1078,7 +1078,7 @@ export default { travelCreate: 'New travel', basicData: 'Basic data', history: 'Log', - thermographs: 'Termographs', + thermographs: 'Thermograph', }, summary: { confirmed: 'Confirmed', @@ -1112,12 +1112,19 @@ export default { delivered: 'Delivered', received: 'Received', }, - termographs: { + thermographs: { code: 'Code', temperature: 'Temperature', state: 'State', destination: 'Destination', created: 'Created', + thermograph: 'Thermograph', + reference: 'Reference', + type: 'Type', + company: 'Company', + warehouse: 'Warehouse', + travelFileDescription: 'Travel id { travelId }', + file: 'File', }, }, item: { diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 4ff78e6e1..f726dbd4e 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -1112,12 +1112,19 @@ export default { delivered: 'Enviada', received: 'Recibida', }, - termographs: { + thermographs: { code: 'Código', temperature: 'Temperatura', state: 'Estado', destination: 'Destino', created: 'Fecha creación', + thermograph: 'Termógrafo', + reference: 'Referencia', + type: 'Tipo', + company: 'Empresa', + warehouse: 'Almacén', + travelFileDescription: 'Id envío { travelId }', + file: 'Fichero', }, }, item: { diff --git a/src/pages/Travel/Card/TravelCard.vue b/src/pages/Travel/Card/TravelCard.vue index 34ecc25ee..1b185592b 100644 --- a/src/pages/Travel/Card/TravelCard.vue +++ b/src/pages/Travel/Card/TravelCard.vue @@ -17,7 +17,6 @@ const stateStore = useStateStore(); -
diff --git a/src/pages/Travel/Card/TravelTermographs.vue b/src/pages/Travel/Card/TravelTermographs.vue deleted file mode 100644 index 0d43843e7..000000000 --- a/src/pages/Travel/Card/TravelTermographs.vue +++ /dev/null @@ -1,133 +0,0 @@ - - - - - -es: - Add termograph: Añadir termógrafo - - diff --git a/src/pages/Travel/Card/TravelThermographs.vue b/src/pages/Travel/Card/TravelThermographs.vue new file mode 100644 index 000000000..33160f2b5 --- /dev/null +++ b/src/pages/Travel/Card/TravelThermographs.vue @@ -0,0 +1,188 @@ + + + + + +es: + Add thermograph: Añadir termógrafo + Download file: Descargar fichero + Edit file: Editar fichero + Remove thermograph: Eliminar termógrafo + Thermograph removed: Termógrafo eliminado + Are you sure you want to remove the thermograph?: ¿Seguro que quieres quitar el termógrafo? + diff --git a/src/pages/Travel/Card/TravelThermographsForm.vue b/src/pages/Travel/Card/TravelThermographsForm.vue new file mode 100644 index 000000000..da0a4ee2b --- /dev/null +++ b/src/pages/Travel/Card/TravelThermographsForm.vue @@ -0,0 +1,271 @@ + + + + + +es: + Select files: Selecciona ficheros + Thermograph created: Termógrafo creado + diff --git a/src/router/modules/travel.js b/src/router/modules/travel.js index f9b2153da..5d9884dc2 100644 --- a/src/router/modules/travel.js +++ b/src/router/modules/travel.js @@ -88,8 +88,35 @@ export default { title: 'thermographs', icon: 'vn:thermometer', }, - component: () => - import('src/pages/Travel/Card/TravelTermographs.vue'), + redirect: { + name: 'TravelThermographsIndex', + }, + children: [ + { + name: 'TravelThermographsIndex', + path: 'index', + component: () => + import('src/pages/Travel/Card/TravelThermographs.vue'), + }, + { + name: 'TravelThermographsCreate', + path: 'create', + props: { viewAction: 'create' }, + component: () => + import( + 'src/pages/Travel/Card/TravelThermographsForm.vue' + ), + }, + { + name: 'TravelThermographsEdit', + path: 'edit', + props: { viewAction: 'edit' }, + component: () => + import( + 'src/pages/Travel/Card/TravelThermographsForm.vue' + ), + }, + ], }, ], }, From 2459e32f00469c8dbc68ca945a6bf0c1f0882ddb Mon Sep 17 00:00:00 2001 From: wbuezas Date: Sat, 27 Jan 2024 10:49:49 -0300 Subject: [PATCH 04/16] In TravelList show warehouses name instead warehouseFk --- src/pages/Travel/TravelList.vue | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/src/pages/Travel/TravelList.vue b/src/pages/Travel/TravelList.vue index dbbdaca93..2ce6349a6 100644 --- a/src/pages/Travel/TravelList.vue +++ b/src/pages/Travel/TravelList.vue @@ -1,5 +1,5 @@