diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 03abb4a99..de3c92b37 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -492,21 +492,6 @@ invoiceOut: comercial: Comercial errors: downloadCsvFailed: CSV download failed -shelving: - list: - parking: Parking - priority: Priority - newShelving: New Shelving - summary: - recyclable: Recyclable -parking: - pickingOrder: Picking order - sector: Sector - row: Row - column: Column - searchBar: - info: You can search by parking code - label: Search parking... department: chat: Chat bossDepartment: Boss Department diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index b0f380c09..aa6dc69ec 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -491,20 +491,6 @@ invoiceOut: comercial: Comercial errors: downloadCsvFailed: Error al descargar CSV -shelving: - list: - parking: Parking - priority: Prioridad - newShelving: Nuevo Carro - summary: - recyclable: Reciclable -parking: - pickingOrder: Orden de recogida - row: Fila - column: Columna - searchBar: - info: Puedes buscar por código de parking - label: Buscar parking... department: chat: Chat bossDepartment: Jefe de departamento diff --git a/src/pages/Parking/Card/ParkingCard.vue b/src/pages/Parking/Card/ParkingCard.vue index 337106986..1cd2df7b7 100644 --- a/src/pages/Parking/Card/ParkingCard.vue +++ b/src/pages/Parking/Card/ParkingCard.vue @@ -1,19 +1,12 @@ + - diff --git a/src/pages/Parking/ParkingList.vue b/src/pages/Parking/ParkingList.vue index 109613383..bce87126e 100644 --- a/src/pages/Parking/ParkingList.vue +++ b/src/pages/Parking/ParkingList.vue @@ -5,17 +5,17 @@ import { useI18n } from 'vue-i18n'; import { useStateStore } from 'stores/useStateStore'; import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import VnPaginate from 'components/ui/VnPaginate.vue'; -import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; import CardList from 'components/ui/CardList.vue'; import VnLv from 'components/ui/VnLv.vue'; import ParkingFilter from './ParkingFilter.vue'; import ParkingSummary from './Card/ParkingSummary.vue'; -import RightMenu from 'src/components/common/RightMenu.vue'; +import VnSection from 'src/components/common/VnSection.vue'; const stateStore = useStateStore(); const { push } = useRouter(); const { t } = useI18n(); const { viewSummary } = useSummaryDialog(); +const dataKey = 'ParkingList'; onMounted(() => (stateStore.rightDrawer = true)); onUnmounted(() => (stateStore.rightDrawer = false)); @@ -37,58 +37,55 @@ function exprBuilder(param, value) { - - - - - + + - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - + + + + + - -es: - Search parking: Buscar parking - You can search by parking code: Puede buscar por el código del parking - diff --git a/src/pages/Parking/locale/en.yml b/src/pages/Parking/locale/en.yml new file mode 100644 index 000000000..72caba408 --- /dev/null +++ b/src/pages/Parking/locale/en.yml @@ -0,0 +1,7 @@ +parking: + pickingOrder: Picking order + sector: Sector + row: Row + column: Column + search: Search parking + searchInfo: You can search by parking code \ No newline at end of file diff --git a/src/pages/Parking/locale/es.yml b/src/pages/Parking/locale/es.yml new file mode 100644 index 000000000..ab23182a1 --- /dev/null +++ b/src/pages/Parking/locale/es.yml @@ -0,0 +1,7 @@ +parking: + pickingOrder: Orden de recogida + row: Fila + sector: Sector + column: Columna + search: Buscar parking + searchInfo: Puedes buscar por código de parking \ No newline at end of file diff --git a/src/pages/Shelving/Card/ShelvingCard.vue b/src/pages/Shelving/Card/ShelvingCard.vue index a501a7a99..41a0db33c 100644 --- a/src/pages/Shelving/Card/ShelvingCard.vue +++ b/src/pages/Shelving/Card/ShelvingCard.vue @@ -1,19 +1,12 @@ + - - - - - + /> diff --git a/src/pages/Shelving/ShelvingList.vue b/src/pages/Shelving/ShelvingList.vue index cd7c4bcf9..cf158e76b 100644 --- a/src/pages/Shelving/ShelvingList.vue +++ b/src/pages/Shelving/ShelvingList.vue @@ -6,13 +6,14 @@ import VnLv from 'components/ui/VnLv.vue'; import { useRouter } from 'vue-router'; import ShelvingFilter from 'pages/Shelving/Card/ShelvingFilter.vue'; import ShelvingSummary from 'pages/Shelving/Card/ShelvingSummary.vue'; -import ShelvingSearchbar from 'pages/Shelving/Card/ShelvingSearchbar.vue'; import { useSummaryDialog } from 'src/composables/useSummaryDialog'; -import RightMenu from 'src/components/common/RightMenu.vue'; +import VnSection from 'src/components/common/VnSection.vue'; const router = useRouter(); const { t } = useI18n(); const { viewSummary } = useSummaryDialog(); +const dataKey = 'ShelvingList'; + const filter = { include: [{ relation: 'parking' }], }; @@ -34,58 +35,62 @@ function exprBuilder(param, value) { - - - + + - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - {{ t('shelving.list.newShelving') }} - - - - + + + + + + + {{ t('shelving.list.newShelving') }} + + + + + + diff --git a/src/pages/Shelving/locale/en.yml b/src/pages/Shelving/locale/en.yml new file mode 100644 index 000000000..bd031f50c --- /dev/null +++ b/src/pages/Shelving/locale/en.yml @@ -0,0 +1,9 @@ +shelving: + list: + parking: Parking + priority: Priority + newShelving: New Shelving + summary: + recyclable: Recyclable + search: Search shelving + searchInfo: You can search by shelving reference \ No newline at end of file diff --git a/src/pages/Shelving/locale/es.yml b/src/pages/Shelving/locale/es.yml new file mode 100644 index 000000000..729485e70 --- /dev/null +++ b/src/pages/Shelving/locale/es.yml @@ -0,0 +1,9 @@ +shelving: + list: + parking: Parking + priority: Prioridad + newShelving: Nuevo Carro + summary: + recyclable: Reciclable + search: Buscar carro + searchInfo: Puedes buscar por referencia del carro \ No newline at end of file diff --git a/src/router/modules/index.js b/src/router/modules/index.js index f70c633e5..998009514 100644 --- a/src/router/modules/index.js +++ b/src/router/modules/index.js @@ -13,7 +13,6 @@ import Travel from './travel'; import Order from './order'; import Entry from './entry'; import roadmap from './roadmap'; -import Parking from './parking'; import Agency from './agency'; import Zone from './zone'; import Account from './account'; @@ -35,7 +34,6 @@ export default [ invoiceIn, Entry, roadmap, - Parking, Agency, Zone, Account, diff --git a/src/router/modules/parking.js b/src/router/modules/parking.js deleted file mode 100644 index 51ea200c6..000000000 --- a/src/router/modules/parking.js +++ /dev/null @@ -1,54 +0,0 @@ -import { RouterView } from 'vue-router'; - -export default { - path: '/parking', - name: 'Parking', - meta: { - title: 'parking', - icon: 'garage_home', - moduleName: 'Parking', - }, - component: RouterView, - redirect: { name: 'ParkingCard' }, - menus: { - main: [], - card: ['ParkingBasicData', 'ParkingLog'], - }, - children: [ - { - path: '/parking/:id', - name: 'ParkingCard', - component: () => import('src/pages/Parking/Card/ParkingCard.vue'), - redirect: { name: 'ParkingSummary' }, - children: [ - { - name: 'ParkingSummary', - path: 'summary', - meta: { - title: 'summary', - icon: 'view_list', - }, - component: () => import('src/pages/Parking/Card/ParkingSummary.vue'), - }, - { - name: 'ParkingBasicData', - path: 'basic-data', - meta: { - title: 'basicData', - icon: 'vn:settings', - }, - component: () => import('pages/Parking/Card/ParkingBasicData.vue'), - }, - { - name: 'ParkingLog', - path: 'log', - meta: { - title: 'log', - icon: 'history', - }, - component: () => import('src/pages/Parking/Card/ParkingLog.vue'), - }, - ], - }, - ], -}; diff --git a/src/router/modules/shelving.js b/src/router/modules/shelving.js index 9cc6bcef1..cd8a2bf15 100644 --- a/src/router/modules/shelving.js +++ b/src/router/modules/shelving.js @@ -1,5 +1,79 @@ import { RouterView } from 'vue-router'; +const parkingCard = { + name: 'ParkingCard', + path: ':id', + component: () => import('src/pages/Parking/Card/ParkingCard.vue'), + redirect: { name: 'ParkingSummary' }, + meta: { + menu: ['ParkingBasicData', 'ParkingLog'], + }, + children: [ + { + path: 'summary', + name: 'ParkingSummary', + meta: { + title: 'summary', + icon: 'launch', + }, + component: () => import('src/pages/Parking/Card/ParkingSummary.vue'), + }, + { + path: 'basic-data', + name: 'ParkingBasicData', + meta: { + title: 'basicData', + icon: 'vn:settings', + }, + component: () => import('src/pages/Parking/Card/ParkingBasicData.vue'), + }, + { + path: 'log', + name: 'ParkingLog', + meta: { + title: 'log', + icon: 'history', + }, + component: () => import('src/pages/Parking/Card/ParkingLog.vue'), + }, + ], +}; + +const shelvingCard = { + name: 'ShelvingLayout', + path: ':id', + component: () => import('pages/Shelving/Card/ShelvingCard.vue'), + redirect: { name: 'ShelvingSummary' }, + children: [ + { + name: 'ShelvingSummary', + path: 'summary', + meta: { + title: 'summary', + }, + component: () => import('pages/Shelving/Card/ShelvingSummary.vue'), + }, + { + name: 'ShelvingBasicData', + path: 'basic-data', + meta: { + title: 'basicData', + icon: 'vn:settings', + }, + component: () => import('pages/Shelving/Card/ShelvingForm.vue'), + }, + { + name: 'ShelvingLog', + path: 'log', + meta: { + title: 'log', + icon: 'history', + }, + component: () => import('src/pages/Shelving/Card/ShelvingLog.vue'), + }, + ], +}; + export default { path: '/shelving', name: 'Shelving', @@ -11,7 +85,7 @@ export default { component: RouterView, redirect: { name: 'ShelvingMain' }, menus: { - main: ['ShelvingList', 'ParkingList'], + main: ['ShelvingList', 'ParkingMain'], card: ['ShelvingBasicData', 'ShelvingLog'], }, children: [ @@ -19,16 +93,24 @@ export default { path: '', name: 'ShelvingMain', component: () => import('src/components/common/VnModule.vue'), - redirect: { name: 'ShelvingList' }, + redirect: { name: 'ShelvingSection' }, children: [ { - path: 'list', - name: 'ShelvingList', - meta: { - title: 'list', - icon: 'view_list', - }, + path: '', + name: 'ShelvingSection', + redirect: { name: 'ShelvingList' }, component: () => import('src/pages/Shelving/ShelvingList.vue'), + children: [ + { + path: 'list', + name: 'ShelvingList', + meta: { + title: 'list', + icon: 'view_list', + }, + }, + shelvingCard, + ], }, { path: 'create', @@ -40,55 +122,23 @@ export default { component: () => import('src/pages/Shelving/Card/ShelvingForm.vue'), }, { - path: '/parking', + path: 'parking', + name: 'ParkingMain', redirect: { name: 'ParkingList' }, + meta: { + title: 'parkingList', + icon: 'view_list', + }, + component: () => import('src/pages/Parking/ParkingList.vue'), children: [ { path: 'list', name: 'ParkingList', - meta: { - title: 'parkingList', - icon: 'view_list', - }, - component: () => import('src/pages/Parking/ParkingList.vue'), }, + parkingCard, ], }, ], }, - { - name: 'ShelvingLayout', - path: ':id', - component: () => import('pages/Shelving/Card/ShelvingCard.vue'), - redirect: { name: 'ShelvingSummary' }, - children: [ - { - name: 'ShelvingSummary', - path: 'summary', - meta: { - title: 'summary', - }, - component: () => import('pages/Shelving/Card/ShelvingSummary.vue'), - }, - { - name: 'ShelvingBasicData', - path: 'basic-data', - meta: { - title: 'basicData', - icon: 'vn:settings', - }, - component: () => import('pages/Shelving/Card/ShelvingForm.vue'), - }, - { - name: 'ShelvingLog', - path: 'log', - meta: { - title: 'log', - icon: 'history', - }, - component: () => import('src/pages/Shelving/Card/ShelvingLog.vue'), - }, - ], - }, ], }; diff --git a/src/router/routes.js b/src/router/routes.js index 4e5c58c6f..ddda2aa63 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -13,7 +13,6 @@ import shelving from 'src/router/modules/shelving'; import order from 'src/router/modules/order'; import entry from 'src/router/modules/entry'; import roadmap from 'src/router/modules/roadmap'; -import parking from 'src/router/modules/parking'; import agency from 'src/router/modules/agency'; import zone from 'src/router/modules/zone'; import account from './modules/account'; @@ -85,7 +84,6 @@ const routes = [ travel, roadmap, entry, - parking, agency, zone, account,