diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 7bcf90793..351d5376d 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -340,6 +340,7 @@ globals: operator: Operator parking: Parking vehicleList: Vehicles + parkingCreate: New parking vehicle: Vehicle unsavedPopup: title: Unsaved changes will be lost diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index b2512193d..c0ff72e91 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -344,6 +344,7 @@ globals: parking: Parking vehicleList: Vehículos vehicle: Vehículo + parkingCreate: Nuevo parking unsavedPopup: title: Los cambios que no haya guardado se perderán subtitle: ¿Seguro que quiere salir sin guardar? diff --git a/src/pages/Shelving/Parking/ParkingCreate.vue b/src/pages/Shelving/Parking/ParkingCreate.vue new file mode 100644 index 000000000..855b0660a --- /dev/null +++ b/src/pages/Shelving/Parking/ParkingCreate.vue @@ -0,0 +1,92 @@ + + + diff --git a/src/pages/Shelving/Parking/ParkingList.vue b/src/pages/Shelving/Parking/ParkingList.vue index 7c5058a74..dfd853e06 100644 --- a/src/pages/Shelving/Parking/ParkingList.vue +++ b/src/pages/Shelving/Parking/ParkingList.vue @@ -1,18 +1,25 @@ - + + + + + {{ $t('shelving.list.newShelving') }} + + + + \ No newline at end of file diff --git a/src/pages/Shelving/Parking/locale/en.yml b/src/pages/Shelving/Parking/locale/en.yml index 2076f38b4..fbc53704e 100644 --- a/src/pages/Shelving/Parking/locale/en.yml +++ b/src/pages/Shelving/Parking/locale/en.yml @@ -2,4 +2,9 @@ parking: pickingOrder: Picking order sector: Sector search: Search parking - searchInfo: You can search by parking code \ No newline at end of file + searchInfo: You can search by parking code + block: Block + streetFrom: Street from + streetTo: Street to + numberFrom: Number from + numberTo: Number to diff --git a/src/pages/Shelving/Parking/locale/es.yml b/src/pages/Shelving/Parking/locale/es.yml index 17fe3af53..51596a6ee 100644 --- a/src/pages/Shelving/Parking/locale/es.yml +++ b/src/pages/Shelving/Parking/locale/es.yml @@ -2,4 +2,9 @@ parking: pickingOrder: Orden de recogida sector: Sector search: Buscar parking - searchInfo: Puedes buscar por código de parking \ No newline at end of file + searchInfo: Puedes buscar por código de parking + block: Bloque + streetFrom: Calle desde + streetTo: Calle hasta + numberFrom: Número desde + numberTo: Número hasta diff --git a/src/router/modules/shelving.js b/src/router/modules/shelving.js index 94ff274dc..a328beb7b 100644 --- a/src/router/modules/shelving.js +++ b/src/router/modules/shelving.js @@ -128,6 +128,16 @@ export default { parkingCard, ], }, + { + path: 'parking/create', + name: 'ParkingCreate', + meta: { + title: 'parkingCreate', + icon: 'add', + + }, + component: () => import('src/pages/Shelving/Parking/ParkingCreate.vue'), + }, ], }, ], diff --git a/test/cypress/back/datasources.json b/test/cypress/back/datasources.json index fa7b81e1c..afdc3134a 100644 --- a/test/cypress/back/datasources.json +++ b/test/cypress/back/datasources.json @@ -145,5 +145,16 @@ "allowedContentTypes": [ "application/x-7z-compressed" ] + }, + "parkingStorage": { + "name": "parkingStorage", + "connector": "loopback-component-storage", + "provider": "filesystem", + "root": "./storage/pdfs/parking", + "maxFileSize": "52428800", + "allowedContentTypes": [ + "application/octet-stream", + "application/pdf" + ] } } \ No newline at end of file