+
-
-
-
-
-
- {{ t('Remove row') }}
-
-
+
+
+
+
+ {{ row.warehouse?.name }}
+
+
+ deleteWarehouse(row, rows, rowIndex)
+ )
+ "
+ >
+
+ {{ t('warehouses.delete') }}
+
+
+
+
-
+
+
+
+
+
+
+ {{ t('warehouses.add') }}
+
+
-
-
- es:
- Remove row: Eliminar fila
-
diff --git a/src/pages/Zone/locale/en.yml b/src/pages/Zone/locale/en.yml
index cda2daca7..dd79f6ac4 100644
--- a/src/pages/Zone/locale/en.yml
+++ b/src/pages/Zone/locale/en.yml
@@ -3,8 +3,10 @@ zone:
zones: Zone
zonesList: Zones
zoneCreate: Create zone
+ locations: Locations
deliveryDays: Delivery days
upcomingList: Upcoming deliveries
+ warehouses: Warehouses
list:
clone: Clone
id: Id
@@ -56,3 +58,9 @@ zoneClosingTable:
price: Price
preview: Preview
zones: Zones
+warehouses:
+ delete: Delete
+ deleteTitle: This item will be deleted
+ deleteSubtitle: Are you sure you want to continue?
+ warehouse: Warehouse
+ add: Add
diff --git a/src/pages/Zone/locale/es.yml b/src/pages/Zone/locale/es.yml
index 3b658ab02..43b636d4f 100644
--- a/src/pages/Zone/locale/es.yml
+++ b/src/pages/Zone/locale/es.yml
@@ -3,8 +3,10 @@ zone:
zones: Zonas
zonesList: Zonas
zoneCreate: Nueva zona
+ locations: Localizaciones
deliveryDays: Días de entrega
upcomingList: Próximos repartos
+ warehouses: Almacenes
list:
clone: Clonar
id: Id
@@ -58,3 +60,9 @@ zoneClosingTable:
zones: Zonas
Search zones: Buscar zonas
You can search by zone reference: Puedes buscar por referencia de la zona
+warehouses:
+ delete: Eliminar
+ deleteTitle: Este elemento será eliminado
+ deleteSubtitle: ¿Seguro que quieres continuar?
+ warehouse: Almacén
+ add: Añadir
diff --git a/src/router/modules/zone.js b/src/router/modules/zone.js
index a7dd1dbb5..b79c430e5 100644
--- a/src/router/modules/zone.js
+++ b/src/router/modules/zone.js
@@ -12,7 +12,7 @@ export default {
redirect: { name: 'ZoneMain' },
menus: {
main: ['ZoneList', 'ZoneDeliveryDays', 'ZoneUpcomingList'],
- card: ['ZoneBasicData', 'ZoneHistory', 'ZoneLocations'],
+ card: ['ZoneBasicData', 'ZoneWarehouses', 'ZoneHistory', 'ZoneLocations'],
},
children: [
{
@@ -57,15 +57,6 @@ export default {
},
component: () => import('src/pages/Zone/ZoneCreate.vue'),
},
- // {
- // path: 'counter',
- // name: 'ZoneCounter',
- // meta: {
- // title: 'zoneCounter',
- // icon: 'add_circle',
- // },
- // component: () => import('src/pages/Zone/ZoneCounter.vue'),
- // },
],
},
{
@@ -83,6 +74,15 @@ export default {
},
component: () => import('src/pages/Zone/Card/ZoneSummary.vue'),
},
+ {
+ name: 'ZoneBasicData',
+ path: 'basic-data',
+ meta: {
+ title: 'basicData',
+ icon: 'vn:settings',
+ },
+ component: () => import('src/pages/Zone/Card/ZoneBasicData.vue'),
+ },
{
name: 'ZoneLocations',
path: 'location',
@@ -93,13 +93,13 @@ export default {
component: () => import('src/pages/Zone/Card/ZoneLocations.vue'),
},
{
- name: 'ZoneBasicData',
- path: 'basic-data',
+ name: 'ZoneWarehouses',
+ path: 'warehouses',
meta: {
- title: 'basicData',
- icon: 'vn:settings',
+ title: 'warehouses',
+ icon: 'home',
},
- component: () => import('src/pages/Zone/Card/ZoneBasicData.vue'),
+ component: () => import('src/pages/Zone/Card/ZoneWarehouses.vue'),
},
{
name: 'ZoneHistory',
@@ -110,83 +110,6 @@ export default {
},
component: () => import('src/pages/Zone/Card/ZoneLog.vue'),
},
-
- // {
- // path: '/zone/delivery',
- // name: 'ZoneDeliveryMain',
- // component: () => import('src/pages/Zone/ZoneMain.vue'),
- // redirect: { name: 'ZoneDeliveryList' },
- // children: [
- // {
- // path: 'list',
- // name: 'ZoneDeliveryList',
- // meta: {
- // title: 'deliveryList',
- // icon: 'today',
- // },
- // component: () =>
- // import('src/pages/Zone/Delivery/ZoneDeliveryList.vue'),
- // },
- // {
- // path: 'create',
- // name: 'ZoneDeliveryCreate',
- // meta: {
- // title: 'deliveryCreate',
- // icon: 'create',
- // },
- // component: () =>
- // import('src/pages/Zone/Delivery/ZoneDeliveryCreate.vue'),
- // },
- // {
- // path: ':id/edit',
- // name: 'ZoneDeliveryEdit',
- // meta: {
- // title: 'deliveryEdit',
- // icon: 'edit',
- // },
- // component: () =>
- // import('src/pages/Zone/Delivery/ZoneDeliveryCreate.vue'),
- // },
- // ],
- // },
- // {
- // path: '/zone/upcoming',
- // name: 'ZoneUpcomingMain',
- // component: () => import('src/pages/Zone/ZoneMain.vue'),
- // redirect: { name: 'ZoneUpcomingList' },
- // children: [
- // {
- // path: 'list',
- // name: 'ZoneUpcomingList',
- // meta: {
- // title: 'upcomingList',
- // icon: 'today',
- // },
- // component: () =>
- // import('src/pages/Zone/Upcoming/ZoneUpcomingList.vue'),
- // },
- // {
- // path: 'create',
- // name: 'ZoneUpcomingCreate',
- // meta: {
- // title: 'upcomingCreate',
- // icon: 'create',
- // },
- // component: () =>
- // import('src/pages/Zone/Upcoming/ZoneUpcomingCreate.vue'),
- // },
- // {
- // path: ':id/edit',
- // name: 'ZoneUpcomingEdit',
- // meta: {
- // title: 'upcomingEdit',
- // icon: 'edit',
- // },
- // component: () =>
- // import('src/pages/Zone/Upcoming/ZoneUpcomingCreate.vue'),
- // },
- // ],
- // },
],
},
],
diff --git a/test/cypress/integration/worker/workerPda.spec.js b/test/cypress/integration/worker/workerPda.spec.js
new file mode 100644
index 000000000..9af994a70
--- /dev/null
+++ b/test/cypress/integration/worker/workerPda.spec.js
@@ -0,0 +1,24 @@
+describe('WorkerPda', () => {
+ const deviceProductionField =
+ '.vn-row > .q-field > .q-field__inner > .q-field__control > .q-field__control-container';
+ beforeEach(() => {
+ cy.viewport(1920, 1080);
+ cy.login('developer');
+ cy.visit(`/#/worker/1110/pda`);
+ });
+
+ it('assign pda', () => {
+ cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click();
+ cy.get(deviceProductionField).type('{downArrow}{enter}');
+ cy.get('.vn-row > #simSerialNumber').type('123{enter}');
+ cy.get('.q-notification__message').should('have.text', 'Data created');
+ });
+
+ it('delete pda', () => {
+ cy.get('.q-card > .q-item > .q-item__section--side > .q-icon').click();
+ cy.get(
+ '.q-card__actions > .q-btn--unelevated > .q-btn__content > .block'
+ ).click();
+ cy.get('.q-notification__message').should('have.text', 'PDA deallocated');
+ });
+});