diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 9e0ad7c9b..f79c3c157 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -656,6 +656,7 @@ export default { summary: 'Summary', basicData: 'Basic Data', log: 'Logs', + parkingList: 'Parking list', }, list: { parking: 'Parking', @@ -676,6 +677,32 @@ export default { recyclable: 'Recyclable', }, }, + parking: { + pageTitles: { + parking: 'Parking', + parkingList: 'Parkings list', + summary: 'Summary', + basicData: 'Basic data', + log: 'Logs', + }, + list: { + pickingOrder: 'Picking order', + }, + searchBar: { + info: 'You can search by parking code', + label: 'Search parking...', + }, + summary: { + code: 'Code', + pickingOrder: 'Picking order', + sector: 'Sector', + }, + basicData: { + code: 'Code', + pickingOrder: 'Picking order', + sector: 'Sector', + }, + }, invoiceIn: { pageTitles: { invoiceIns: 'Invoices In', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 6083dfad7..fd9aafef6 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -715,6 +715,7 @@ export default { summary: 'Resumen', basicData: 'Datos básicos', log: 'Registros de auditoría', + parkingList: 'Listado de parkings', }, list: { parking: 'Parking', @@ -735,6 +736,30 @@ export default { recyclable: 'Reciclable', }, }, + parking: { + pageTitles: { + parking: 'Parking', + parkingList: 'Listado de parkings', + summary: 'Resumen', + basicData: 'Datos básicos', + log: 'Registros de auditoría', + }, + list: { + pickingOrder: 'Orden de recogida', + }, + searchBar: { + info: 'Puedes buscar por código de parking', + label: 'Buscar parking...', + }, + summary: { + code: 'Código', + pickingOrder: 'Orden de recogida', + }, + basicData: { + code: 'Código', + pickingOrder: 'Orden de recogida', + }, + }, invoiceIn: { pageTitles: { invoiceIns: 'Fact. recibidas', diff --git a/src/pages/Shelving/Parking/Card/ParkingBasicData.vue b/src/pages/Shelving/Parking/Card/ParkingBasicData.vue new file mode 100644 index 000000000..e5b886eff --- /dev/null +++ b/src/pages/Shelving/Parking/Card/ParkingBasicData.vue @@ -0,0 +1,59 @@ + + diff --git a/src/pages/Shelving/Parking/Card/ParkingCard.vue b/src/pages/Shelving/Parking/Card/ParkingCard.vue new file mode 100644 index 000000000..1dfc51173 --- /dev/null +++ b/src/pages/Shelving/Parking/Card/ParkingCard.vue @@ -0,0 +1,56 @@ + + diff --git a/src/pages/Shelving/Parking/Card/ParkingDescriptor.vue b/src/pages/Shelving/Parking/Card/ParkingDescriptor.vue new file mode 100644 index 000000000..1805b5af0 --- /dev/null +++ b/src/pages/Shelving/Parking/Card/ParkingDescriptor.vue @@ -0,0 +1,52 @@ + + + diff --git a/src/pages/Shelving/Parking/Card/ParkingLog.vue b/src/pages/Shelving/Parking/Card/ParkingLog.vue new file mode 100644 index 000000000..f25abd2e4 --- /dev/null +++ b/src/pages/Shelving/Parking/Card/ParkingLog.vue @@ -0,0 +1,6 @@ + + diff --git a/src/pages/Shelving/Parking/Card/ParkingSummary.vue b/src/pages/Shelving/Parking/Card/ParkingSummary.vue new file mode 100644 index 000000000..e94fa8d9e --- /dev/null +++ b/src/pages/Shelving/Parking/Card/ParkingSummary.vue @@ -0,0 +1,50 @@ + + + diff --git a/src/pages/Shelving/Parking/ParkingFilter.vue b/src/pages/Shelving/Parking/ParkingFilter.vue new file mode 100644 index 000000000..2e559a879 --- /dev/null +++ b/src/pages/Shelving/Parking/ParkingFilter.vue @@ -0,0 +1,77 @@ + + + + + +en: + params: + code: Code + sectorFk: Sector + search: General Search +es: + params: + code: Código + search: Búsqueda general + + diff --git a/src/pages/Shelving/Parking/ParkingList.vue b/src/pages/Shelving/Parking/ParkingList.vue new file mode 100644 index 000000000..4fff9b3cb --- /dev/null +++ b/src/pages/Shelving/Parking/ParkingList.vue @@ -0,0 +1,100 @@ + + + diff --git a/src/pages/Shelving/Parking/ParkingMain.vue b/src/pages/Shelving/Parking/ParkingMain.vue new file mode 100644 index 000000000..66ce78f23 --- /dev/null +++ b/src/pages/Shelving/Parking/ParkingMain.vue @@ -0,0 +1,17 @@ + + + diff --git a/src/router/modules/index.js b/src/router/modules/index.js index 84a26798d..770941b23 100644 --- a/src/router/modules/index.js +++ b/src/router/modules/index.js @@ -13,6 +13,7 @@ import Travel from './travel'; import Order from './order'; import Department from './department'; import Entry from './entry'; +import Parking from './parking'; export default [ Item, @@ -30,4 +31,5 @@ export default [ invoiceIn, Department, Entry, + Parking, ]; diff --git a/src/router/modules/parking.js b/src/router/modules/parking.js new file mode 100644 index 000000000..b6868cc22 --- /dev/null +++ b/src/router/modules/parking.js @@ -0,0 +1,63 @@ +import { RouterView } from 'vue-router'; + +export default { + path: '/parking', + name: 'Parking', + meta: { + title: 'parking', + icon: 'garage_home', + }, + component: RouterView, + redirect: { name: 'ParkingMain' }, + menus: { + main: ['ParkingList'], + card: ['ParkingBasicData', 'ParkingLog'], + }, + children: [ + { + path: '', + name: 'ParkingMain', + component: () => import('src/pages/Shelving/Parking/ParkingMain.vue'), + redirect: { name: 'ParkingList' }, + children: [ + { + path: 'list', + name: 'ParkingList', + meta: { + title: 'parkingList', + icon: 'view_list', + }, + component: () => import('src/pages/Shelving/Parking/ParkingList.vue'), + }, + ], + }, + { + path: ':id', + name: 'ParkingCard', + component: () => import('src/pages/Shelving/Parking/Card/ParkingCard.vue'), + redirect: { name: 'ParkingSummary' }, + children: [ + { + name: 'ParkingSummary', + path: 'summary', + meta: { + title: 'summary', + icon: 'view_list', + }, + component: () => + import('src/pages/Shelving/Parking/Card/ParkingSummary.vue'), + }, + { + name: 'ShelvingBasicData', + path: 'basic-data', + meta: { + title: 'basicData', + icon: 'vn:settings', + roles: ['salesPerson'], + }, + component: () => import('pages/Shelving/Card/ShelvingForm.vue'), + }, + ], + }, + ], +}; diff --git a/src/router/modules/shelving.js b/src/router/modules/shelving.js index 494f286c3..92e479f27 100644 --- a/src/router/modules/shelving.js +++ b/src/router/modules/shelving.js @@ -1,17 +1,17 @@ -import {RouterView} from "vue-router"; +import { RouterView } from 'vue-router'; export default { path: '/shelving', name: 'Shelving', meta: { title: 'shelving', - icon: 'vn:inventory' + icon: 'vn:inventory', }, component: RouterView, redirect: { name: 'ShelvingMain' }, menus: { - main: ['ShelvingList'], - card: ['ShelvingBasicData', 'ShelvingLog'] + main: ['ShelvingList', 'ParkingList'], + card: ['ShelvingBasicData', 'ShelvingLog'], }, children: [ { @@ -51,8 +51,7 @@ export default { meta: { title: 'summary', }, - component: () => - import('pages/Shelving/Card/ShelvingSummary.vue'), + component: () => import('pages/Shelving/Card/ShelvingSummary.vue'), }, { name: 'ShelvingBasicData', @@ -75,6 +74,14 @@ export default { }, ], }, - ] + { + path: 'parking', + name: 'ParkingList', + meta: { + title: 'parkingList', + icon: 'view_list', + }, + component: () => import('src/pages/Shelving/Parking/ParkingMain.vue'), + }, + ], }; - diff --git a/src/router/routes.js b/src/router/routes.js index d1027955f..a8ca03377 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -13,6 +13,7 @@ import department from './modules/department'; import shelving from 'src/router/modules/shelving'; import order from 'src/router/modules/order'; import entry from 'src/router/modules/entry'; +import parking from 'src/router/modules/parking'; const routes = [ { @@ -67,6 +68,7 @@ const routes = [ travel, department, entry, + parking, { path: '/:catchAll(.*)*', name: 'NotFound',