Merge branch 'dev' into 7587-addClaimedTicketRefToRefundTicket
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
commit
b633aae9fe
|
@ -123,7 +123,7 @@ pipeline {
|
||||||
sh "docker-compose ${env.COMPOSE_PARAMS} up -d"
|
sh "docker-compose ${env.COMPOSE_PARAMS} up -d"
|
||||||
|
|
||||||
image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ --init") {
|
image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ --init") {
|
||||||
sh 'sh test/cypress/cypressParallel.sh 2'
|
sh 'sh test/cypress/cypressParallel.sh 3'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ const makeInvoice = async () => {
|
||||||
(data) => (
|
(data) => (
|
||||||
(rectificativeTypeOptions = data),
|
(rectificativeTypeOptions = data),
|
||||||
(transferInvoiceParams.cplusRectificationTypeFk = data.filter(
|
(transferInvoiceParams.cplusRectificationTypeFk = data.filter(
|
||||||
(type) => type.description == 'I – Por diferencias'
|
(type) => type.description == 'I – Por diferencias',
|
||||||
)[0].id)
|
)[0].id)
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
|
@ -100,7 +100,7 @@ const makeInvoice = async () => {
|
||||||
(data) => (
|
(data) => (
|
||||||
(siiTypeInvoiceOutsOptions = data),
|
(siiTypeInvoiceOutsOptions = data),
|
||||||
(transferInvoiceParams.siiTypeInvoiceOutFk = data.filter(
|
(transferInvoiceParams.siiTypeInvoiceOutFk = data.filter(
|
||||||
(type) => type.code == 'R4'
|
(type) => type.code == 'R4',
|
||||||
)[0].id)
|
)[0].id)
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
|
@ -122,7 +122,6 @@ const makeInvoice = async () => {
|
||||||
<VnRow>
|
<VnRow>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:label="t('Client')"
|
:label="t('Client')"
|
||||||
:options="clientsOptions"
|
|
||||||
hide-selected
|
hide-selected
|
||||||
option-label="name"
|
option-label="name"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
|
|
|
@ -33,6 +33,10 @@ const props = defineProps({
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
userFilter: {
|
||||||
|
type: Object,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
filter: {
|
filter: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: null,
|
default: null,
|
||||||
|
|
|
@ -148,8 +148,7 @@ export function useArrayData(key, userOptions) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function applyFilter({ filter, params }, fetchOptions = {}) {
|
async function applyFilter({ filter, params }, fetchOptions = {}) {
|
||||||
if (filter) store.userFilter = filter;
|
if (filter) store.filter = filter;
|
||||||
store.filter = {};
|
|
||||||
if (params) store.userParams = { ...params };
|
if (params) store.userParams = { ...params };
|
||||||
|
|
||||||
const response = await fetch(fetchOptions);
|
const response = await fetch(fetchOptions);
|
||||||
|
|
|
@ -337,5 +337,5 @@ input::-webkit-inner-spin-button {
|
||||||
}
|
}
|
||||||
|
|
||||||
.containerShrinked {
|
.containerShrinked {
|
||||||
width: 80%;
|
width: 70%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -185,7 +185,7 @@ watchEffect(selectedRows);
|
||||||
prefix="invoiceOut"
|
prefix="invoiceOut"
|
||||||
:array-data-props="{
|
:array-data-props="{
|
||||||
url: 'InvoiceOuts/filter',
|
url: 'InvoiceOuts/filter',
|
||||||
order: ['id DESC'],
|
order: 'id DESC',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template #advanced-menu>
|
<template #advanced-menu>
|
||||||
|
@ -396,7 +396,6 @@ watchEffect(selectedRows);
|
||||||
:label="
|
:label="
|
||||||
t('invoiceOutList.tableVisibleColumns.taxArea')
|
t('invoiceOutList.tableVisibleColumns.taxArea')
|
||||||
"
|
"
|
||||||
:options="taxAreasOptions"
|
|
||||||
option-label="code"
|
option-label="code"
|
||||||
option-value="code"
|
option-value="code"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -20,7 +20,7 @@ const props = defineProps({
|
||||||
<VnFilterPanel
|
<VnFilterPanel
|
||||||
:data-key="props.dataKey"
|
:data-key="props.dataKey"
|
||||||
:search-button="true"
|
:search-button="true"
|
||||||
:un-removable-params="['from', 'to']"
|
:unremovable-params="['from', 'to']"
|
||||||
:hidden-tags="['from', 'to']"
|
:hidden-tags="['from', 'to']"
|
||||||
>
|
>
|
||||||
<template #tags="{ tag, formatFn }">
|
<template #tags="{ tag, formatFn }">
|
||||||
|
|
|
@ -27,12 +27,16 @@ const getZone = async () => {
|
||||||
const filter = {
|
const filter = {
|
||||||
where: { routeFk: $props.id ? $props.id : route.params.id },
|
where: { routeFk: $props.id ? $props.id : route.params.id },
|
||||||
};
|
};
|
||||||
const { data } = await axios.get('Tickets/findOne', {
|
const { data } = await axios.get('Tickets/filter', {
|
||||||
params: {
|
params: {
|
||||||
filter: JSON.stringify(filter),
|
filter: JSON.stringify(filter),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
zoneId.value = data.zoneFk;
|
|
||||||
|
if (!data.length) return;
|
||||||
|
const firstRecord = data[0];
|
||||||
|
|
||||||
|
zoneId.value = firstRecord.zoneFk;
|
||||||
const { data: zoneData } = await axios.get(`Zones/${zoneId.value}`);
|
const { data: zoneData } = await axios.get(`Zones/${zoneId.value}`);
|
||||||
zone.value = zoneData.name;
|
zone.value = zoneData.name;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,38 +1,7 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useRoute } from 'vue-router';
|
import VnCardBeta from 'src/components/common/VnCardBeta.vue';
|
||||||
import { computed } from 'vue';
|
|
||||||
|
|
||||||
import VnCard from 'components/common/VnCard.vue';
|
|
||||||
import ZoneDescriptor from './ZoneDescriptor.vue';
|
import ZoneDescriptor from './ZoneDescriptor.vue';
|
||||||
import ZoneFilterPanel from '../ZoneFilterPanel.vue';
|
|
||||||
import filter from './ZoneFilter.js';
|
|
||||||
|
|
||||||
const route = useRoute();
|
|
||||||
const routeName = computed(() => route.name);
|
|
||||||
|
|
||||||
function notIsLocations(ifIsFalse, ifIsTrue) {
|
|
||||||
if (routeName.value != 'ZoneLocations') return ifIsFalse;
|
|
||||||
return ifIsTrue;
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VnCard
|
<VnCardBeta data-key="Zone" url="Zones" :descriptor="ZoneDescriptor" />
|
||||||
data-key="Zone"
|
|
||||||
:url="notIsLocations('Zones', undefined)"
|
|
||||||
:descriptor="ZoneDescriptor"
|
|
||||||
:filter="filter"
|
|
||||||
:filter-panel="notIsLocations(ZoneFilterPanel, undefined)"
|
|
||||||
:search-data-key="notIsLocations('ZoneList', undefined)"
|
|
||||||
:searchbar-props="{
|
|
||||||
url: notIsLocations('Zones', 'ZoneLocations'),
|
|
||||||
label: notIsLocations($t('list.searchZone'), $t('list.searchLocation')),
|
|
||||||
info: $t('list.searchInfo'),
|
|
||||||
whereFilter: notIsLocations((value) => {
|
|
||||||
return /^\d+$/.test(value)
|
|
||||||
? { id: value }
|
|
||||||
: { name: { like: `%${value}%` } };
|
|
||||||
}),
|
|
||||||
}"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -171,9 +171,10 @@ onMounted(() => {
|
||||||
openConfirmationModal(
|
openConfirmationModal(
|
||||||
t('eventsPanel.deleteTitle'),
|
t('eventsPanel.deleteTitle'),
|
||||||
t('eventsPanel.deleteSubtitle'),
|
t('eventsPanel.deleteSubtitle'),
|
||||||
() => deleteEvent()
|
() => deleteEvent(),
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
|
data-cy="ZoneEventExclusionDeleteBtn"
|
||||||
/>
|
/>
|
||||||
<QBtn
|
<QBtn
|
||||||
:label="isNew ? t('globals.add') : t('globals.save')"
|
:label="isNew ? t('globals.add') : t('globals.save')"
|
||||||
|
|
|
@ -18,7 +18,6 @@ import axios from 'axios';
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
date: {
|
date: {
|
||||||
type: Date,
|
type: Date,
|
||||||
required: true,
|
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
event: {
|
event: {
|
||||||
|
@ -159,12 +158,10 @@ onMounted(() => {
|
||||||
<VnInputDate
|
<VnInputDate
|
||||||
:label="t('eventsInclusionForm.from')"
|
:label="t('eventsInclusionForm.from')"
|
||||||
v-model="eventInclusionFormData.started"
|
v-model="eventInclusionFormData.started"
|
||||||
data-cy="ZoneEventsFromDate"
|
|
||||||
/>
|
/>
|
||||||
<VnInputDate
|
<VnInputDate
|
||||||
:label="t('eventsInclusionForm.to')"
|
:label="t('eventsInclusionForm.to')"
|
||||||
v-model="eventInclusionFormData.ended"
|
v-model="eventInclusionFormData.ended"
|
||||||
data-cy="ZoneEventsToDate"
|
|
||||||
/>
|
/>
|
||||||
</VnRow>
|
</VnRow>
|
||||||
<VnRow>
|
<VnRow>
|
||||||
|
|
|
@ -1,18 +1,14 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref, reactive } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
import ZoneEventsPanel from './ZoneEventsPanel.vue';
|
import ZoneEventsPanel from './ZoneEventsPanel.vue';
|
||||||
import ZoneCalendarGrid from '../ZoneCalendarGrid.vue';
|
import ZoneCalendarGrid from '../ZoneCalendarGrid.vue';
|
||||||
import ZoneEventInclusionForm from './ZoneEventInclusionForm.vue';
|
import ZoneEventInclusionForm from './ZoneEventInclusionForm.vue';
|
||||||
import ZoneEventExclusionForm from './ZoneEventExclusionForm.vue';
|
import ZoneEventExclusionForm from './ZoneEventExclusionForm.vue';
|
||||||
|
import RightMenu from 'src/components/common/RightMenu.vue';
|
||||||
import { useStateStore } from 'stores/useStateStore';
|
|
||||||
import { reactive } from 'vue';
|
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const stateStore = useStateStore();
|
|
||||||
|
|
||||||
const firstDay = ref();
|
const firstDay = ref();
|
||||||
const lastDay = ref();
|
const lastDay = ref();
|
||||||
|
|
||||||
|
@ -43,14 +39,16 @@ const onZoneEventFormClose = () => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Teleport to="#right-panel" v-if="stateStore.isHeaderMounted()">
|
<RightMenu>
|
||||||
<ZoneEventsPanel
|
<template #right-panel>
|
||||||
:first-day="firstDay"
|
<ZoneEventsPanel
|
||||||
:last-day="lastDay"
|
:first-day="firstDay"
|
||||||
:events="events"
|
:last-day="lastDay"
|
||||||
v-model:formModeName="formModeName"
|
:events="events"
|
||||||
/>
|
v-model:formModeName="formModeName"
|
||||||
</Teleport>
|
/>
|
||||||
|
</template>
|
||||||
|
</RightMenu>
|
||||||
<QPage class="q-pa-md flex justify-center">
|
<QPage class="q-pa-md flex justify-center">
|
||||||
<ZoneCalendarGrid
|
<ZoneCalendarGrid
|
||||||
v-model:events="events"
|
v-model:events="events"
|
||||||
|
|
|
@ -14,12 +14,10 @@ import { useVnConfirm } from 'composables/useVnConfirm';
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
firstDay: {
|
firstDay: {
|
||||||
type: Date,
|
type: Date,
|
||||||
required: true,
|
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
lastDay: {
|
lastDay: {
|
||||||
type: Date,
|
type: Date,
|
||||||
required: true,
|
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
events: {
|
events: {
|
||||||
|
@ -67,7 +65,7 @@ watch(
|
||||||
async () => {
|
async () => {
|
||||||
await fetchData();
|
await fetchData();
|
||||||
},
|
},
|
||||||
{ immediate: true, deep: true }
|
{ immediate: true, deep: true },
|
||||||
);
|
);
|
||||||
|
|
||||||
const formatWdays = (event) => {
|
const formatWdays = (event) => {
|
||||||
|
@ -178,9 +176,10 @@ onMounted(async () => {
|
||||||
openConfirmationModal(
|
openConfirmationModal(
|
||||||
t('zone.deleteTitle'),
|
t('zone.deleteTitle'),
|
||||||
t('zone.deleteSubtitle'),
|
t('zone.deleteSubtitle'),
|
||||||
() => deleteEvent(event.id)
|
() => deleteEvent(event.id),
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
|
data-cy="ZoneEventsPanelDeleteBtn"
|
||||||
>
|
>
|
||||||
<QTooltip>{{ t('eventsPanel.delete') }}</QTooltip>
|
<QTooltip>{{ t('eventsPanel.delete') }}</QTooltip>
|
||||||
</QBtn>
|
</QBtn>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { onMounted, ref, computed, watch, onUnmounted } from 'vue';
|
import { onMounted, ref, computed, watch, onUnmounted } from 'vue';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
import { useStateStore } from 'stores/useStateStore';
|
||||||
import VnInput from 'src/components/common/VnInput.vue';
|
import VnInput from 'src/components/common/VnInput.vue';
|
||||||
import { useState } from 'src/composables/useState';
|
import { useState } from 'src/composables/useState';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
@ -30,7 +31,7 @@ const emit = defineEmits(['update:tickedNodes']);
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const state = useState();
|
const state = useState();
|
||||||
|
const stateStore = useStateStore();
|
||||||
const treeRef = ref();
|
const treeRef = ref();
|
||||||
const expanded = ref([]);
|
const expanded = ref([]);
|
||||||
|
|
||||||
|
@ -82,7 +83,7 @@ const onNodeExpanded = async (nodeKeysArray) => {
|
||||||
await fetchNodeLeaves(lastNodeKey, true);
|
await fetchNodeLeaves(lastNodeKey, true);
|
||||||
} else {
|
} else {
|
||||||
const difference = new Set(
|
const difference = new Set(
|
||||||
[...previousExpandedNodes.value].filter((x) => !nodeKeysSet.has(x))
|
[...previousExpandedNodes.value].filter((x) => !nodeKeysSet.has(x)),
|
||||||
);
|
);
|
||||||
const collapsedNode = Array.from(difference).pop();
|
const collapsedNode = Array.from(difference).pop();
|
||||||
const node = treeRef.value?.getNodeByKey(collapsedNode);
|
const node = treeRef.value?.getNodeByKey(collapsedNode);
|
||||||
|
@ -135,7 +136,7 @@ watch(
|
||||||
}
|
}
|
||||||
previousExpandedNodes.value = new Set(expanded.value);
|
previousExpandedNodes.value = new Set(expanded.value);
|
||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true },
|
||||||
);
|
);
|
||||||
|
|
||||||
const reFetch = async () => {
|
const reFetch = async () => {
|
||||||
|
@ -153,6 +154,17 @@ onUnmounted(() => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<Teleport to="#section-searchbar" v-if="stateStore.isHeaderMounted()">
|
||||||
|
<VnSearchbar
|
||||||
|
v-if="!showSearchBar"
|
||||||
|
:data-key="datakey"
|
||||||
|
:url="url"
|
||||||
|
:redirect="false"
|
||||||
|
:search-remove-params="false"
|
||||||
|
:label="$t('zone.searchLocations')"
|
||||||
|
:info="$t('zone.searchLocationsInfo')"
|
||||||
|
/>
|
||||||
|
</Teleport>
|
||||||
<VnInput
|
<VnInput
|
||||||
v-if="showSearchBar"
|
v-if="showSearchBar"
|
||||||
v-model="store.userParams.search"
|
v-model="store.userParams.search"
|
||||||
|
@ -163,13 +175,6 @@ onUnmounted(() => {
|
||||||
<QBtn color="primary" icon="search" dense flat @click="reFetch()" />
|
<QBtn color="primary" icon="search" dense flat @click="reFetch()" />
|
||||||
</template>
|
</template>
|
||||||
</VnInput>
|
</VnInput>
|
||||||
<VnSearchbar
|
|
||||||
v-if="!showSearchBar"
|
|
||||||
:data-key="datakey"
|
|
||||||
:url="url"
|
|
||||||
:redirect="false"
|
|
||||||
:search-remove-params="false"
|
|
||||||
/>
|
|
||||||
<QTree
|
<QTree
|
||||||
ref="treeRef"
|
ref="treeRef"
|
||||||
:nodes="nodes"
|
:nodes="nodes"
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
import VnLog from 'src/components/common/VnLog.vue';
|
import VnLog from 'src/components/common/VnLog.vue';
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<VnLog model="Zone" url="/ZoneLogs"></VnLog>
|
<VnLog model="Zone" />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,74 +0,0 @@
|
||||||
<script setup>
|
|
||||||
import { useI18n } from 'vue-i18n';
|
|
||||||
import VnSearchbar from 'components/ui/VnSearchbar.vue';
|
|
||||||
|
|
||||||
const { t } = useI18n();
|
|
||||||
|
|
||||||
const exprBuilder = (param, value) => {
|
|
||||||
switch (param) {
|
|
||||||
case 'name':
|
|
||||||
return {
|
|
||||||
name: { like: `%${value}%` },
|
|
||||||
};
|
|
||||||
case 'code':
|
|
||||||
return {
|
|
||||||
code: { like: `%${value}%` },
|
|
||||||
};
|
|
||||||
case 'agencyModeFk':
|
|
||||||
return {
|
|
||||||
agencyModeFk: value,
|
|
||||||
};
|
|
||||||
case 'search':
|
|
||||||
return /^\d+$/.test(value) ? { id: value } : { name: { like: `%${value}%` } };
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const tableFilter = {
|
|
||||||
include: [
|
|
||||||
{
|
|
||||||
relation: 'agencyMode',
|
|
||||||
scope: {
|
|
||||||
fields: ['id', 'name'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
relation: 'address',
|
|
||||||
scope: {
|
|
||||||
fields: ['id', 'nickname', 'provinceFk', 'postalCode'],
|
|
||||||
include: [
|
|
||||||
{
|
|
||||||
relation: 'province',
|
|
||||||
scope: {
|
|
||||||
fields: ['id', 'name'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
relation: 'postcode',
|
|
||||||
scope: {
|
|
||||||
fields: ['code', 'townFk'],
|
|
||||||
include: {
|
|
||||||
relation: 'town',
|
|
||||||
scope: {
|
|
||||||
fields: ['id', 'name'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<VnSearchbar
|
|
||||||
data-key="ZonesList"
|
|
||||||
url="Zones"
|
|
||||||
:filter="tableFilter"
|
|
||||||
:expr-builder="exprBuilder"
|
|
||||||
:label="t('list.searchZone')"
|
|
||||||
:info="t('list.searchInfo')"
|
|
||||||
custom-route-redirect-name="ZoneSummary"
|
|
||||||
/>
|
|
||||||
</template>
|
|
|
@ -60,10 +60,11 @@ onMounted(async () => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<CardSummary
|
<CardSummary
|
||||||
data-key="Zone"
|
data-key="ZoneSummary"
|
||||||
ref="summary"
|
ref="summary"
|
||||||
:url="`Zones/${entityId}`"
|
:url="`Zones/${entityId}`"
|
||||||
:filter="filter"
|
:filter="filter"
|
||||||
|
:entity-id="entityId"
|
||||||
>
|
>
|
||||||
<template #header="{ entity }">
|
<template #header="{ entity }">
|
||||||
<div>#{{ entity.id }} - {{ entity.name }}</div>
|
<div>#{{ entity.id }} - {{ entity.name }}</div>
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ref } from 'vue';
|
||||||
import ZoneDeliveryPanel from './ZoneDeliveryPanel.vue';
|
import ZoneDeliveryPanel from './ZoneDeliveryPanel.vue';
|
||||||
import ZoneCalendarGrid from './ZoneCalendarGrid.vue';
|
import ZoneCalendarGrid from './ZoneCalendarGrid.vue';
|
||||||
import RightMenu from 'src/components/common/RightMenu.vue';
|
import RightMenu from 'src/components/common/RightMenu.vue';
|
||||||
import ZoneSearchbar from './Card/ZoneSearchbar.vue';
|
|
||||||
|
|
||||||
const firstDay = ref(null);
|
const firstDay = ref(null);
|
||||||
const lastDay = ref(null);
|
const lastDay = ref(null);
|
||||||
|
@ -11,7 +10,6 @@ const events = ref([]);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ZoneSearchbar />
|
|
||||||
<RightMenu>
|
<RightMenu>
|
||||||
<template #right-panel>
|
<template #right-panel>
|
||||||
<ZoneDeliveryPanel />
|
<ZoneDeliveryPanel />
|
||||||
|
|
|
@ -89,7 +89,7 @@ watch(
|
||||||
v-model="formData.geoFk"
|
v-model="formData.geoFk"
|
||||||
url="Postcodes/location"
|
url="Postcodes/location"
|
||||||
:fields="['geoFk', 'code', 'townFk', 'countryFk']"
|
:fields="['geoFk', 'code', 'townFk', 'countryFk']"
|
||||||
:sort-by="['code ASC']"
|
:sort-by="'code ASC'"
|
||||||
option-value="geoFk"
|
option-value="geoFk"
|
||||||
option-label="code"
|
option-label="code"
|
||||||
:filter-options="['code']"
|
:filter-options="['code']"
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
<script setup>
|
|
||||||
import { ref } from 'vue';
|
|
||||||
import { useI18n } from 'vue-i18n';
|
|
||||||
import VnInput from 'components/common/VnInput.vue';
|
|
||||||
import FetchData from 'components/FetchData.vue';
|
|
||||||
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
|
|
||||||
import VnSelect from 'components/common/VnSelect.vue';
|
|
||||||
import order from 'src/router/modules/order';
|
|
||||||
|
|
||||||
const { t } = useI18n();
|
|
||||||
const props = defineProps({
|
|
||||||
dataKey: {
|
|
||||||
type: String,
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
exprBuilder: {
|
|
||||||
type: Function,
|
|
||||||
default: null,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const agencies = ref([]);
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<FetchData
|
|
||||||
url="AgencyModes"
|
|
||||||
:filter="{ fields: ['id', 'name'], order: ['name ASC'] }"
|
|
||||||
@on-fetch="(data) => (agencies = data)"
|
|
||||||
auto-load
|
|
||||||
/>
|
|
||||||
<VnFilterPanel :data-key="props.dataKey" :search-button="true">
|
|
||||||
<template #tags="{ tag }">
|
|
||||||
<div class="q-gutter-x-xs">
|
|
||||||
<strong>{{ t(`filterPanel.${tag.label}`) }}: </strong>
|
|
||||||
<span>{{ tag.value }}</span>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<template #body="{ params, searchFn }">
|
|
||||||
<QItem>
|
|
||||||
<QItemSection>
|
|
||||||
<VnInput
|
|
||||||
:label="t('list.name')"
|
|
||||||
v-model="params.name"
|
|
||||||
is-outlined
|
|
||||||
data-cy="zoneFilterPanelNameInput"
|
|
||||||
/>
|
|
||||||
</QItemSection>
|
|
||||||
</QItem>
|
|
||||||
<QItem>
|
|
||||||
<QItemSection>
|
|
||||||
<VnSelect
|
|
||||||
:label="t('filterPanel.agencyModeFk')"
|
|
||||||
v-model="params.agencyModeFk"
|
|
||||||
:options="agencies"
|
|
||||||
option-value="id"
|
|
||||||
option-label="name"
|
|
||||||
@update:model-value="searchFn()"
|
|
||||||
dense
|
|
||||||
outlined
|
|
||||||
rounded
|
|
||||||
data-cy="zoneFilterPanelAgencySelect"
|
|
||||||
>
|
|
||||||
</VnSelect>
|
|
||||||
</QItemSection>
|
|
||||||
</QItem>
|
|
||||||
</template>
|
|
||||||
</VnFilterPanel>
|
|
||||||
</template>
|
|
|
@ -14,9 +14,7 @@ import VnTable from 'src/components/VnTable/VnTable.vue';
|
||||||
import VnSelect from 'src/components/common/VnSelect.vue';
|
import VnSelect from 'src/components/common/VnSelect.vue';
|
||||||
import VnInput from 'src/components/common/VnInput.vue';
|
import VnInput from 'src/components/common/VnInput.vue';
|
||||||
import VnInputTime from 'src/components/common/VnInputTime.vue';
|
import VnInputTime from 'src/components/common/VnInputTime.vue';
|
||||||
import RightMenu from 'src/components/common/RightMenu.vue';
|
import VnSection from 'src/components/common/VnSection.vue';
|
||||||
import ZoneFilterPanel from './ZoneFilterPanel.vue';
|
|
||||||
import ZoneSearchbar from './Card/ZoneSearchbar.vue';
|
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
@ -25,7 +23,7 @@ const { viewSummary } = useSummaryDialog();
|
||||||
const { openConfirmationModal } = useVnConfirm();
|
const { openConfirmationModal } = useVnConfirm();
|
||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
const warehouseOptions = ref([]);
|
const warehouseOptions = ref([]);
|
||||||
|
const dataKey = 'ZoneList';
|
||||||
const tableFilter = {
|
const tableFilter = {
|
||||||
include: [
|
include: [
|
||||||
{
|
{
|
||||||
|
@ -114,6 +112,7 @@ const columns = computed(() => [
|
||||||
columnFilter: {
|
columnFilter: {
|
||||||
inWhere: true,
|
inWhere: true,
|
||||||
},
|
},
|
||||||
|
columnClass: 'shrink-column',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
@ -169,77 +168,128 @@ function formatRow(row) {
|
||||||
return dashIfEmpty(`${row?.address?.nickname},
|
return dashIfEmpty(`${row?.address?.nickname},
|
||||||
${row?.address?.postcode?.town?.name} (${row?.address?.province?.name})`);
|
${row?.address?.postcode?.town?.name} (${row?.address?.province?.name})`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const exprBuilder = (param, value) => {
|
||||||
|
switch (param) {
|
||||||
|
case 'name':
|
||||||
|
return {
|
||||||
|
name: { like: `%${value}%` },
|
||||||
|
};
|
||||||
|
case 'code':
|
||||||
|
return {
|
||||||
|
code: { like: `%${value}%` },
|
||||||
|
};
|
||||||
|
case 'agencyModeFk':
|
||||||
|
return {
|
||||||
|
agencyModeFk: value,
|
||||||
|
};
|
||||||
|
case 'search':
|
||||||
|
return /^\d+$/.test(value) ? { id: value } : { name: { like: `%${value}%` } };
|
||||||
|
case 'price':
|
||||||
|
return {
|
||||||
|
price: value,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ZoneSearchbar />
|
<VnSection
|
||||||
<RightMenu>
|
:data-key="dataKey"
|
||||||
<template #right-panel>
|
|
||||||
<ZoneFilterPanel data-key="ZonesList" />
|
|
||||||
</template>
|
|
||||||
</RightMenu>
|
|
||||||
<VnTable
|
|
||||||
ref="tableRef"
|
|
||||||
data-key="ZonesList"
|
|
||||||
url="Zones"
|
|
||||||
:create="{
|
|
||||||
urlCreate: 'Zones',
|
|
||||||
title: t('list.createZone'),
|
|
||||||
onDataSaved: ({ id }) => tableRef.redirect(`${id}/location`),
|
|
||||||
formInitialData: {},
|
|
||||||
}"
|
|
||||||
:user-filter="tableFilter"
|
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
redirect="zone"
|
prefix="zone"
|
||||||
:right-search="false"
|
:array-data-props="{
|
||||||
|
url: 'Zones',
|
||||||
|
order: ['id ASC'],
|
||||||
|
userFilter: tableFilter,
|
||||||
|
exprBuilder,
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<template #column-addressFk="{ row }">
|
<template #body>
|
||||||
{{ dashIfEmpty(formatRow(row)) }}
|
<div class="table-container">
|
||||||
|
<div class="column items-center">
|
||||||
|
<VnTable
|
||||||
|
ref="tableRef"
|
||||||
|
:data-key="dataKey"
|
||||||
|
:columns="columns"
|
||||||
|
redirect="Zone"
|
||||||
|
:create="{
|
||||||
|
urlCreate: 'Zones',
|
||||||
|
title: t('list.createZone'),
|
||||||
|
onDataSaved: ({ id }) => tableRef.redirect(`${id}/location`),
|
||||||
|
formInitialData: {},
|
||||||
|
}"
|
||||||
|
table-height="85vh"
|
||||||
|
>
|
||||||
|
<template #column-addressFk="{ row }">
|
||||||
|
{{ dashIfEmpty(formatRow(row)) }}
|
||||||
|
</template>
|
||||||
|
<template #more-create-dialog="{ data }">
|
||||||
|
<VnSelect
|
||||||
|
url="AgencyModes"
|
||||||
|
v-model="data.agencyModeFk"
|
||||||
|
option-value="id"
|
||||||
|
option-label="name"
|
||||||
|
:label="t('list.agency')"
|
||||||
|
/>
|
||||||
|
<VnInput
|
||||||
|
v-model="data.price"
|
||||||
|
:label="t('list.price')"
|
||||||
|
min="0"
|
||||||
|
type="number"
|
||||||
|
required="true"
|
||||||
|
/>
|
||||||
|
<VnInput
|
||||||
|
v-model="data.bonus"
|
||||||
|
:label="t('zone.bonus')"
|
||||||
|
min="0"
|
||||||
|
type="number"
|
||||||
|
/>
|
||||||
|
<VnInput
|
||||||
|
v-model="data.travelingDays"
|
||||||
|
:label="t('zone.travelingDays')"
|
||||||
|
type="number"
|
||||||
|
min="0"
|
||||||
|
/>
|
||||||
|
<VnInputTime v-model="data.hour" :label="t('list.close')" />
|
||||||
|
<VnSelect
|
||||||
|
url="Warehouses"
|
||||||
|
v-model="data.warehouseFK"
|
||||||
|
option-value="id"
|
||||||
|
option-label="name"
|
||||||
|
:label="t('list.warehouse')"
|
||||||
|
:options="warehouseOptions"
|
||||||
|
/>
|
||||||
|
<QCheckbox
|
||||||
|
v-model="data.isVolumetric"
|
||||||
|
:label="t('list.isVolumetric')"
|
||||||
|
:toggle-indeterminate="false"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</VnTable>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #more-create-dialog="{ data }">
|
</VnSection>
|
||||||
<VnSelect
|
|
||||||
url="AgencyModes"
|
|
||||||
sort-by="name ASC"
|
|
||||||
v-model="data.agencyModeFk"
|
|
||||||
:label="t('list.agency')"
|
|
||||||
/>
|
|
||||||
<VnInput
|
|
||||||
v-model="data.price"
|
|
||||||
:label="t('list.price')"
|
|
||||||
min="0"
|
|
||||||
type="number"
|
|
||||||
required="true"
|
|
||||||
/>
|
|
||||||
<VnInput
|
|
||||||
v-model="data.bonus"
|
|
||||||
:label="t('zone.bonus')"
|
|
||||||
min="0"
|
|
||||||
type="number"
|
|
||||||
/>
|
|
||||||
<VnInput
|
|
||||||
v-model="data.travelingDays"
|
|
||||||
:label="t('zone.travelingDays')"
|
|
||||||
type="number"
|
|
||||||
min="0"
|
|
||||||
/>
|
|
||||||
<VnInputTime v-model="data.hour" :label="t('list.close')" />
|
|
||||||
<VnSelect
|
|
||||||
url="Warehouses"
|
|
||||||
v-model="data.warehouseFK"
|
|
||||||
option-value="id"
|
|
||||||
option-label="name"
|
|
||||||
:label="t('list.warehouse')"
|
|
||||||
:options="warehouseOptions"
|
|
||||||
/>
|
|
||||||
<QCheckbox
|
|
||||||
v-model="data.isVolumetric"
|
|
||||||
:label="t('list.isVolumetric')"
|
|
||||||
:toggle-indeterminate="false"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</VnTable>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.table-container {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.column {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
min-width: 70%;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.shrink-column) {
|
||||||
|
width: 8%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
es:
|
es:
|
||||||
Search zone: Buscar zona
|
Search zone: Buscar zona
|
||||||
|
|
|
@ -7,7 +7,6 @@ import FetchData from 'components/FetchData.vue';
|
||||||
|
|
||||||
import { toDateFormat } from 'src/filters/date.js';
|
import { toDateFormat } from 'src/filters/date.js';
|
||||||
import { useWeekdayStore } from 'src/stores/useWeekdayStore';
|
import { useWeekdayStore } from 'src/stores/useWeekdayStore';
|
||||||
import ZoneSearchbar from './Card/ZoneSearchbar.vue';
|
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const weekdayStore = useWeekdayStore();
|
const weekdayStore = useWeekdayStore();
|
||||||
|
@ -31,7 +30,7 @@ const columns = computed(() => [
|
||||||
label: t('list.id'),
|
label: t('list.id'),
|
||||||
name: 'id',
|
name: 'id',
|
||||||
field: 'zoneFk',
|
field: 'zoneFk',
|
||||||
align: 'left',
|
align: 'center',
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -53,7 +52,6 @@ onMounted(() => weekdayStore.initStore());
|
||||||
@on-fetch="(data) => (details = data)"
|
@on-fetch="(data) => (details = data)"
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
<ZoneSearchbar />
|
|
||||||
<VnSubToolbar />
|
<VnSubToolbar />
|
||||||
<QPage class="column items-center q-pa-md">
|
<QPage class="column items-center q-pa-md">
|
||||||
<QCard class="containerShrinked q-pa-md">
|
<QCard class="containerShrinked q-pa-md">
|
||||||
|
|
|
@ -11,10 +11,13 @@ zone:
|
||||||
m3Max: Max m³
|
m3Max: Max m³
|
||||||
deleteTitle: This item will be deleted
|
deleteTitle: This item will be deleted
|
||||||
deleteSubtitle: Are you sure you want to continue?
|
deleteSubtitle: Are you sure you want to continue?
|
||||||
volumetric: Volumetric
|
|
||||||
bonus: Bonus
|
bonus: Bonus
|
||||||
closing: Closing
|
closing: Closing
|
||||||
travelingDays: Traveling days
|
travelingDays: Traveling days
|
||||||
|
search: Search zone
|
||||||
|
searchInfo: Search zone by id or name
|
||||||
|
searchLocations: Search locations
|
||||||
|
searchLocationsInfo: Search locations by post code
|
||||||
list:
|
list:
|
||||||
clone: Clone
|
clone: Clone
|
||||||
id: Id
|
id: Id
|
||||||
|
@ -30,6 +33,7 @@ list:
|
||||||
confirmCloneTitle: All it's properties will be copied
|
confirmCloneTitle: All it's properties will be copied
|
||||||
confirmCloneSubtitle: Do you want to clone this zone?
|
confirmCloneSubtitle: Do you want to clone this zone?
|
||||||
warehouse: Warehouse
|
warehouse: Warehouse
|
||||||
|
isVolumetric: Volumetric
|
||||||
createZone: Create zone
|
createZone: Create zone
|
||||||
zoneSummary: Summary
|
zoneSummary: Summary
|
||||||
addressFk: Address
|
addressFk: Address
|
||||||
|
|
|
@ -15,6 +15,10 @@ zone:
|
||||||
bonus: Bonificación
|
bonus: Bonificación
|
||||||
closing: Cierre
|
closing: Cierre
|
||||||
travelingDays: Días de viaje
|
travelingDays: Días de viaje
|
||||||
|
search: Buscar zona
|
||||||
|
searchInfo: Buscar zona por Id o nombre
|
||||||
|
searchLocations: Buscar localización
|
||||||
|
searchLocationsInfo: Buscar localización por código postal
|
||||||
list:
|
list:
|
||||||
clone: Clonar
|
clone: Clonar
|
||||||
id: Id
|
id: Id
|
||||||
|
|
|
@ -1,24 +1,12 @@
|
||||||
import { RouterView } from 'vue-router';
|
import { RouterView } from 'vue-router';
|
||||||
|
|
||||||
export default {
|
const zoneCard = {
|
||||||
path: '/zone',
|
name: 'ZoneCard',
|
||||||
name: 'Zone',
|
path: ':id',
|
||||||
|
component: () => import('src/pages/Zone/Card/ZoneCard.vue'),
|
||||||
|
redirect: { name: 'ZoneSummary' },
|
||||||
meta: {
|
meta: {
|
||||||
title: 'zones',
|
menu: [
|
||||||
icon: 'vn:zone',
|
|
||||||
moduleName: 'Zone',
|
|
||||||
keyBinding: 'z',
|
|
||||||
},
|
|
||||||
component: RouterView,
|
|
||||||
redirect: { name: 'ZoneMain' },
|
|
||||||
menus: {
|
|
||||||
main: [
|
|
||||||
'ZoneList',
|
|
||||||
'ZoneDeliveryDays',
|
|
||||||
'ZoneUpcomingList',
|
|
||||||
'ZoneUpcomingDeliveries',
|
|
||||||
],
|
|
||||||
card: [
|
|
||||||
'ZoneBasicData',
|
'ZoneBasicData',
|
||||||
'ZoneWarehouses',
|
'ZoneWarehouses',
|
||||||
'ZoneHistory',
|
'ZoneHistory',
|
||||||
|
@ -28,19 +16,102 @@ export default {
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/zone',
|
name: 'ZoneSummary',
|
||||||
|
path: 'summary',
|
||||||
|
meta: {
|
||||||
|
title: 'summary',
|
||||||
|
icon: 'launch',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Zone/Card/ZoneSummary.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'basic-data',
|
||||||
|
name: 'ZoneBasicData',
|
||||||
|
meta: {
|
||||||
|
title: 'basicData',
|
||||||
|
icon: 'vn:settings',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Zone/Card/ZoneBasicData.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'location',
|
||||||
|
name: 'ZoneLocations',
|
||||||
|
meta: {
|
||||||
|
title: 'locations',
|
||||||
|
icon: 'my_location',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Zone/Card/ZoneLocations.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'warehouses',
|
||||||
|
name: 'ZoneWarehouses',
|
||||||
|
meta: {
|
||||||
|
title: 'warehouses',
|
||||||
|
icon: 'home',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Zone/Card/ZoneWarehouses.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'log',
|
||||||
|
name: 'ZoneHistory',
|
||||||
|
meta: {
|
||||||
|
title: 'log',
|
||||||
|
icon: 'history',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Zone/Card/ZoneLog.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'events',
|
||||||
|
name: 'ZoneEvents',
|
||||||
|
meta: {
|
||||||
|
title: 'calendar',
|
||||||
|
icon: 'vn:calendar',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Zone/Card/ZoneEvents.vue'),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Zone',
|
||||||
|
path: '/zone',
|
||||||
|
meta: {
|
||||||
|
title: 'zones',
|
||||||
|
icon: 'vn:zone',
|
||||||
|
moduleName: 'Zone',
|
||||||
|
keyBinding: 'z',
|
||||||
|
menu: [
|
||||||
|
'ZoneList',
|
||||||
|
'ZoneDeliveryDays',
|
||||||
|
'ZoneUpcomingList',
|
||||||
|
'ZoneUpcomingDeliveries',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
component: RouterView,
|
||||||
|
redirect: { name: 'ZoneMain' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
name: 'ZoneMain',
|
name: 'ZoneMain',
|
||||||
|
path: '',
|
||||||
component: () => import('src/components/common/VnModule.vue'),
|
component: () => import('src/components/common/VnModule.vue'),
|
||||||
redirect: { name: 'ZoneList' },
|
redirect: { name: 'ZoneIndexMain' },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'list',
|
path: '',
|
||||||
name: 'ZoneList',
|
name: 'ZoneIndexMain',
|
||||||
meta: {
|
redirect: { name: 'ZoneList' },
|
||||||
title: 'zonesList',
|
|
||||||
icon: 'view_list',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Zone/ZoneList.vue'),
|
component: () => import('src/pages/Zone/ZoneList.vue'),
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
name: 'ZoneList',
|
||||||
|
path: 'list',
|
||||||
|
meta: {
|
||||||
|
title: 'list',
|
||||||
|
icon: 'view_list',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
zoneCard,
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'delivery-days',
|
path: 'delivery-days',
|
||||||
|
@ -62,67 +133,5 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'ZoneCard',
|
|
||||||
path: ':id',
|
|
||||||
component: () => import('src/pages/Zone/Card/ZoneCard.vue'),
|
|
||||||
redirect: { name: 'ZoneSummary' },
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
name: 'ZoneSummary',
|
|
||||||
path: 'summary',
|
|
||||||
meta: {
|
|
||||||
title: 'summary',
|
|
||||||
icon: 'launch',
|
|
||||||
},
|
|
||||||
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',
|
|
||||||
meta: {
|
|
||||||
title: 'locations',
|
|
||||||
icon: 'my_location',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Zone/Card/ZoneLocations.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'ZoneWarehouses',
|
|
||||||
path: 'warehouses',
|
|
||||||
meta: {
|
|
||||||
title: 'warehouses',
|
|
||||||
icon: 'home',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Zone/Card/ZoneWarehouses.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'ZoneHistory',
|
|
||||||
path: 'log',
|
|
||||||
meta: {
|
|
||||||
title: 'log',
|
|
||||||
icon: 'history',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Zone/Card/ZoneLog.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'ZoneEvents',
|
|
||||||
path: 'events',
|
|
||||||
meta: {
|
|
||||||
title: 'calendar',
|
|
||||||
icon: 'vn:calendar',
|
|
||||||
},
|
|
||||||
component: () => import('src/pages/Zone/Card/ZoneEvents.vue'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('OrderList', () => {
|
describe('OrderList', () => {
|
||||||
|
const clientCreateSelect = '#formModel [data-cy="Client_select"]';
|
||||||
|
const addressCreateSelect = '#formModel [data-cy="Address_select"]';
|
||||||
|
const agencyCreateSelect = '#formModel [data-cy="Agency_select"]';
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.viewport(1920, 1080);
|
cy.viewport(1920, 1080);
|
||||||
|
@ -8,15 +12,14 @@ describe('OrderList', () => {
|
||||||
|
|
||||||
it('create order', () => {
|
it('create order', () => {
|
||||||
cy.get('[data-cy="vnTableCreateBtn"]').click();
|
cy.get('[data-cy="vnTableCreateBtn"]').click();
|
||||||
cy.selectOption('[data-cy="Client_select"]', 1101);
|
cy.selectOption(clientCreateSelect, 1101);
|
||||||
cy.get('[data-cy="Address_select"]').click();
|
cy.get(addressCreateSelect).click();
|
||||||
cy.get(
|
cy.get(
|
||||||
'.q-menu > div> div.q-item:nth-child(1) >div.q-item__section--avatar > i',
|
'.q-menu > div> div.q-item:nth-child(1) >div.q-item__section--avatar > i',
|
||||||
).should('have.text', 'star');
|
).should('have.text', 'star');
|
||||||
cy.get('.q-menu > div> .q-item:nth-child(1)').click();
|
|
||||||
cy.dataCy('landedDate').find('input').type('06/01/2001');
|
cy.dataCy('landedDate').find('input').type('06/01/2001');
|
||||||
cy.get('.q-card [data-cy="Agency_select"]').click();
|
cy.selectOption(agencyCreateSelect, 1);
|
||||||
cy.get('.q-menu > div> .q-item:nth-child(1)').click();
|
|
||||||
cy.intercept('GET', /\/api\/Orders\/\d/).as('orderSale');
|
cy.intercept('GET', /\/api\/Orders\/\d/).as('orderSale');
|
||||||
cy.get('[data-cy="FormModelPopup_save"] > .q-btn__content > .block').click();
|
cy.get('[data-cy="FormModelPopup_save"] > .q-btn__content > .block').click();
|
||||||
cy.wait('@orderSale');
|
cy.wait('@orderSale');
|
||||||
|
@ -31,7 +34,7 @@ describe('OrderList', () => {
|
||||||
cy.dataCy('Customer ID_input').type('1101{enter}');
|
cy.dataCy('Customer ID_input').type('1101{enter}');
|
||||||
cy.dataCy('vnTableCreateBtn').click();
|
cy.dataCy('vnTableCreateBtn').click();
|
||||||
cy.dataCy('landedDate').find('input').type('06/01/2001');
|
cy.dataCy('landedDate').find('input').type('06/01/2001');
|
||||||
cy.get('.q-card [data-cy="Agency_select"]').click();
|
cy.get(agencyCreateSelect).click();
|
||||||
cy.get('.q-menu > div> .q-item:nth-child(1)').click();
|
cy.get('.q-menu > div> .q-item:nth-child(1)').click();
|
||||||
cy.intercept('GET', /\/api\/Orders\/\d/).as('orderSale');
|
cy.intercept('GET', /\/api\/Orders\/\d/).as('orderSale');
|
||||||
cy.get('[data-cy="FormModelPopup_save"] > .q-btn__content > .block').click();
|
cy.get('[data-cy="FormModelPopup_save"] > .q-btn__content > .block').click();
|
||||||
|
@ -53,10 +56,11 @@ describe('OrderList', () => {
|
||||||
`[href="#/order/list?createForm={%22clientFk%22:${clientId},%22addressId%22:1}"] > .q-btn__content > .q-icon`,
|
`[href="#/order/list?createForm={%22clientFk%22:${clientId},%22addressId%22:1}"] > .q-btn__content > .q-icon`,
|
||||||
).click();
|
).click();
|
||||||
cy.dataCy('vnTableCreateBtn').click();
|
cy.dataCy('vnTableCreateBtn').click();
|
||||||
cy.get('[data-cy="Client_select"]').should('have.value', 'Bruce Wayne');
|
|
||||||
cy.get('[data-cy="Address_select"]').should('have.value', 'Bruce Wayne');
|
cy.get(clientCreateSelect).should('have.value', 'Bruce Wayne');
|
||||||
|
cy.get(addressCreateSelect).should('have.value', 'Bruce Wayne');
|
||||||
cy.dataCy('landedDate').find('input').type('06/01/2001');
|
cy.dataCy('landedDate').find('input').type('06/01/2001');
|
||||||
cy.get('.q-card [data-cy="Agency_select"]').click();
|
cy.get(agencyCreateSelect).click();
|
||||||
cy.get('.q-menu > div> .q-item:nth-child(1)').click();
|
cy.get('.q-menu > div> .q-item:nth-child(1)').click();
|
||||||
cy.intercept('GET', /\/api\/Orders\/\d/).as('orderSale');
|
cy.intercept('GET', /\/api\/Orders\/\d/).as('orderSale');
|
||||||
cy.get('[data-cy="FormModelPopup_save"] > .q-btn__content > .block').click();
|
cy.get('[data-cy="FormModelPopup_save"] > .q-btn__content > .block').click();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
describe.skip('Route extended list', () => {
|
describe('Route extended list', () => {
|
||||||
const getSelector = (colField) => `tr:last-child > [data-col-field="${colField}"]`;
|
const getSelector = (colField) => `tr:last-child > [data-col-field="${colField}"]`;
|
||||||
|
|
||||||
const selectors = {
|
const selectors = {
|
||||||
|
@ -32,18 +32,18 @@ describe.skip('Route extended list', () => {
|
||||||
|
|
||||||
const originalFields = [
|
const originalFields = [
|
||||||
{ selector: selectors.worker, type: 'select', value: 'logistic' },
|
{ selector: selectors.worker, type: 'select', value: 'logistic' },
|
||||||
{ selector: selectors.agency, type: 'select', value: 'Super-Man delivery' },
|
{ selector: selectors.agency, type: 'select', value: 'inhouse pickup' },
|
||||||
{ selector: selectors.vehicle, type: 'select', value: '3333-IMK' },
|
{ selector: selectors.vehicle, type: 'select', value: '3333-IMK' },
|
||||||
{ selector: selectors.date, type: 'date', value: '01/02/2024' },
|
{ selector: selectors.date, type: 'date', value: '01/01/2001' },
|
||||||
{ selector: selectors.description, type: 'input', value: 'Test route' },
|
{ selector: selectors.description, type: 'input', value: 'Test route' },
|
||||||
{ selector: selectors.served, type: 'checkbox', value: checkboxState.uncheck },
|
{ selector: selectors.served, type: 'checkbox', value: checkboxState.uncheck },
|
||||||
];
|
];
|
||||||
|
|
||||||
const updateFields = [
|
const updateFields = [
|
||||||
{ selector: selectors.worker, type: 'select', value: 'salesperson' },
|
{ selector: selectors.worker, type: 'select', value: 'salesperson' },
|
||||||
{ selector: selectors.agency, type: 'select', value: 'inhouse pickup' },
|
{ selector: selectors.agency, type: 'select', value: 'Super-Man delivery' },
|
||||||
{ selector: selectors.vehicle, type: 'select', value: '1111-IMK' },
|
{ selector: selectors.vehicle, type: 'select', value: '1111-IMK' },
|
||||||
{ selector: selectors.date, type: 'date', value: '01/01/2001' },
|
{ selector: selectors.date, type: 'date', value: '11/01/2001' },
|
||||||
{ selector: selectors.description, type: 'input', value: 'Description updated' },
|
{ selector: selectors.description, type: 'input', value: 'Description updated' },
|
||||||
{ selector: selectors.served, type: 'checkbox', value: checkboxState.check },
|
{ selector: selectors.served, type: 'checkbox', value: checkboxState.check },
|
||||||
];
|
];
|
||||||
|
@ -57,11 +57,11 @@ describe.skip('Route extended list', () => {
|
||||||
break;
|
break;
|
||||||
case 'input':
|
case 'input':
|
||||||
cy.get(selector).should('be.visible').click();
|
cy.get(selector).should('be.visible').click();
|
||||||
cy.dataCy('null_input').clear().type(`${value}{enter}`);
|
cy.dataCy('null_input').clear().type(`${value}`);
|
||||||
break;
|
break;
|
||||||
case 'date':
|
case 'date':
|
||||||
cy.get(selector).should('be.visible').click();
|
cy.get(selector).should('be.visible').click();
|
||||||
cy.dataCy('null_inputDate').clear().type(`${value}{enter}`);
|
cy.dataCy('null_inputDate').clear().type(`${value}`);
|
||||||
break;
|
break;
|
||||||
case 'checkbox':
|
case 'checkbox':
|
||||||
cy.get(selector).should('be.visible').click().click();
|
cy.get(selector).should('be.visible').click().click();
|
||||||
|
@ -76,15 +76,6 @@ describe.skip('Route extended list', () => {
|
||||||
cy.typeSearchbar('{enter}');
|
cy.typeSearchbar('{enter}');
|
||||||
});
|
});
|
||||||
|
|
||||||
after(() => {
|
|
||||||
cy.visit(url);
|
|
||||||
cy.typeSearchbar('{enter}');
|
|
||||||
cy.get(selectors.lastRowSelectCheckBox).click();
|
|
||||||
|
|
||||||
cy.get(selectors.removeBtn).click();
|
|
||||||
cy.dataCy(selectors.confirmBtn).click();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('Should list routes', () => {
|
it('Should list routes', () => {
|
||||||
cy.get('.q-table')
|
cy.get('.q-table')
|
||||||
.children()
|
.children()
|
||||||
|
@ -97,9 +88,9 @@ describe.skip('Route extended list', () => {
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
Worker: { val: 'logistic', type: 'select' },
|
Worker: { val: 'logistic', type: 'select' },
|
||||||
Agency: { val: 'Super-Man delivery', type: 'select' },
|
Agency: { val: 'inhouse pickup', type: 'select' },
|
||||||
Vehicle: { val: '3333-IMK', type: 'select' },
|
Vehicle: { val: '3333-IMK', type: 'select' },
|
||||||
Date: { val: '02-01-2024', type: 'date' },
|
Date: { val: '01-01-2001', type: 'date' },
|
||||||
From: { val: '01-01-2024', type: 'date' },
|
From: { val: '01-01-2024', type: 'date' },
|
||||||
To: { val: '10-01-2024', type: 'date' },
|
To: { val: '10-01-2024', type: 'date' },
|
||||||
'Km start': { val: 1000 },
|
'Km start': { val: 1000 },
|
||||||
|
@ -129,7 +120,7 @@ describe.skip('Route extended list', () => {
|
||||||
it('Should clone selected route', () => {
|
it('Should clone selected route', () => {
|
||||||
cy.get(selectors.lastRowSelectCheckBox).click();
|
cy.get(selectors.lastRowSelectCheckBox).click();
|
||||||
cy.get(selectors.cloneBtn).click();
|
cy.get(selectors.cloneBtn).click();
|
||||||
cy.dataCy('route.Starting date_inputDate').type('10-05-2001{enter}');
|
cy.dataCy('route.Starting date_inputDate').type('10-05-2001').click();
|
||||||
cy.get('.q-card__actions > .q-btn--standard > .q-btn__content').click();
|
cy.get('.q-card__actions > .q-btn--standard > .q-btn__content').click();
|
||||||
cy.validateContent(selectors.date, '05/10/2001');
|
cy.validateContent(selectors.date, '05/10/2001');
|
||||||
});
|
});
|
||||||
|
@ -142,10 +133,6 @@ describe.skip('Route extended list', () => {
|
||||||
|
|
||||||
const fileName = 'download.zip';
|
const fileName = 'download.zip';
|
||||||
cy.readFile(`${downloadsFolder}/${fileName}`).should('exist');
|
cy.readFile(`${downloadsFolder}/${fileName}`).should('exist');
|
||||||
|
|
||||||
cy.task('deleteFile', `${downloadsFolder}/${fileName}`).then((deleted) => {
|
|
||||||
expect(deleted).to.be.true;
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Should mark as served the selected route', () => {
|
it('Should mark as served the selected route', () => {
|
||||||
|
@ -165,6 +152,13 @@ describe.skip('Route extended list', () => {
|
||||||
cy.checkNotification(dataSaved);
|
cy.checkNotification(dataSaved);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('Should add ticket to route', () => {
|
||||||
|
cy.dataCy('tableAction-0').last().click();
|
||||||
|
cy.get(selectors.firstTicketsRowSelectCheckBox).click();
|
||||||
|
cy.get('.q-card__actions > .q-btn--standard > .q-btn__content').click();
|
||||||
|
cy.checkNotification(dataSaved);
|
||||||
|
});
|
||||||
|
|
||||||
it('Should save changes in route', () => {
|
it('Should save changes in route', () => {
|
||||||
updateFields.forEach(({ selector, type, value }) => {
|
updateFields.forEach(({ selector, type, value }) => {
|
||||||
fillField(selector, type, value);
|
fillField(selector, type, value);
|
||||||
|
@ -175,18 +169,15 @@ describe.skip('Route extended list', () => {
|
||||||
|
|
||||||
cy.typeSearchbar('{enter}');
|
cy.typeSearchbar('{enter}');
|
||||||
|
|
||||||
updateFields.forEach(({ selector, value }) => {
|
updateFields.forEach(({ selector, value, type }) => {
|
||||||
|
if (type === 'date') {
|
||||||
|
const [month, day, year] = value.split('/');
|
||||||
|
value = `${day}/${month}/${year}`;
|
||||||
|
}
|
||||||
cy.validateContent(selector, value);
|
cy.validateContent(selector, value);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Should add ticket to route', () => {
|
|
||||||
cy.dataCy('tableAction-0').last().click();
|
|
||||||
cy.get(selectors.firstTicketsRowSelectCheckBox).click();
|
|
||||||
cy.get('.q-card__actions > .q-btn--standard > .q-btn__content').click();
|
|
||||||
cy.checkNotification(dataSaved);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('Should open summary pop-up when click summuary icon', () => {
|
it('Should open summary pop-up when click summuary icon', () => {
|
||||||
cy.dataCy('tableAction-1').last().click();
|
cy.dataCy('tableAction-1').last().click();
|
||||||
cy.get('.summaryHeader > :nth-child(2').should('contain', updateFields[4].value);
|
cy.get('.summaryHeader > :nth-child(2').should('contain', updateFields[4].value);
|
||||||
|
|
|
@ -1,20 +1,18 @@
|
||||||
describe('ZoneCalendar', () => {
|
describe('ZoneCalendar', () => {
|
||||||
const addEventBtn = '.q-page-sticky > div > .q-btn';
|
const addEventBtn = '.q-page-sticky > div > .q-btn';
|
||||||
const submitBtn = '.q-mt-lg > .q-btn--standard';
|
const submitBtn = '.q-mt-lg > .q-btn--standard';
|
||||||
const deleteBtn = '.q-item__section--side > .q-btn';
|
const deleteBtn = '[data-cy="ZoneEventsPanelDeleteBtn"]';
|
||||||
const from = '.q-field__control-container > [data-cy="ZoneEventsFromDate"]';
|
|
||||||
const to = '.q-field__control-container > [data-cy="ZoneEventsToDate"]';
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.viewport(1920, 1080);
|
cy.viewport(1920, 1080);
|
||||||
cy.visit(`/#/zone/11/events`);
|
cy.visit(`/#/zone/13/events`);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should include a one day event, then delete it', () => {
|
it('should include a one day event, then delete it', () => {
|
||||||
cy.get(addEventBtn).click();
|
cy.get(addEventBtn).click();
|
||||||
cy.dataCy('ZoneEventInclusionDayRadio').click();
|
cy.dataCy('ZoneEventInclusionDayRadio').click();
|
||||||
cy.get('.q-card > :nth-child(5)').type('02/04/2001');
|
cy.get('.q-card > :nth-child(5)').type('01/01/2001');
|
||||||
cy.get(submitBtn).click();
|
cy.get(submitBtn).click();
|
||||||
cy.get(deleteBtn).click();
|
cy.get(deleteBtn).click();
|
||||||
cy.dataCy('VnConfirm_confirm').click();
|
cy.dataCy('VnConfirm_confirm').click();
|
||||||
|
@ -47,7 +45,7 @@ describe('ZoneCalendar', () => {
|
||||||
cy.get(
|
cy.get(
|
||||||
'.q-current-day > .q-calendar-month__day--content > [data-cy="ZoneCalendarDay"]',
|
'.q-current-day > .q-calendar-month__day--content > [data-cy="ZoneCalendarDay"]',
|
||||||
).click();
|
).click();
|
||||||
cy.get('.q-mt-lg > :nth-child(2)').click();
|
cy.dataCy('ZoneEventExclusionDeleteBtn').click();
|
||||||
cy.dataCy('VnConfirm_confirm').click();
|
cy.dataCy('VnConfirm_confirm').click();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
describe.skip('ZoneCreate', () => {
|
describe('ZoneCreate', () => {
|
||||||
const data = {
|
const data = {
|
||||||
Name: { val: 'Zone pickup D' },
|
Name: { val: 'Zone pickup D' },
|
||||||
Price: { val: '3' },
|
Price: { val: '3' },
|
||||||
|
|
|
@ -1,26 +1,18 @@
|
||||||
describe('ZoneList', () => {
|
describe('ZoneList', () => {
|
||||||
const agency = 'inhouse pickup';
|
const agency = 'inhouse pickup';
|
||||||
|
const firstSummaryIcon =
|
||||||
|
':nth-child(1) > .q-table--col-auto-width > [data-cy="tableAction-0"]';
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.visit('/#/zone/list');
|
cy.visit('/#/zone/list');
|
||||||
});
|
cy.typeSearchbar('{enter}');
|
||||||
|
|
||||||
it('should filter by agency', () => {
|
|
||||||
cy.dataCy('zoneFilterPanelAgencySelect').type(agency);
|
|
||||||
cy.get('.q-menu .q-item').contains(agency).click();
|
|
||||||
cy.get(':nth-child(1) > [data-col-field="agencyModeFk"]').should(
|
|
||||||
'include.text',
|
|
||||||
agency,
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should open the zone summary', () => {
|
it('should open the zone summary', () => {
|
||||||
cy.dataCy('zoneFilterPanelAgencySelect').type(agency);
|
cy.get(firstSummaryIcon).click();
|
||||||
cy.get('.q-menu .q-item').contains(agency).click();
|
|
||||||
cy.dataCy('tableAction-0').eq(1).click();
|
|
||||||
cy.get('.header > .q-icon').click();
|
cy.get('.header > .q-icon').click();
|
||||||
cy.url().should('include', 'zone/2/summary');
|
cy.url().should('include', 'zone/1/summary');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should clone the zone', () => {
|
it('should clone the zone', () => {
|
||||||
|
@ -29,7 +21,5 @@ describe('ZoneList', () => {
|
||||||
cy.dataCy('VnConfirm_confirm').click();
|
cy.dataCy('VnConfirm_confirm').click();
|
||||||
cy.url().should('not.include', 'zone/2/');
|
cy.url().should('not.include', 'zone/2/');
|
||||||
cy.url().should('match', /zone\/\d+\/basic-data/);
|
cy.url().should('match', /zone\/\d+\/basic-data/);
|
||||||
cy.get('.list-box > :nth-child(1)').should('include.text', agency);
|
|
||||||
cy.get('.title > span').should('include.text', 'Zone pickup B');
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -3,7 +3,8 @@ describe('ZoneLocations', () => {
|
||||||
Warehouse: { val: 'Warehouse One', type: 'select' },
|
Warehouse: { val: 'Warehouse One', type: 'select' },
|
||||||
};
|
};
|
||||||
|
|
||||||
const postalCode = '[style=""] > :nth-child(1) > :nth-child(1) > :nth-child(2) > :nth-child(1) > :nth-child(1) > :nth-child(2) > :nth-child(1) > .q-tree__node--parent > .q-tree__node-collapsible > .q-tree__children'
|
const postalCode =
|
||||||
|
'[style=""] > :nth-child(1) > :nth-child(1) > :nth-child(2) > :nth-child(1) > :nth-child(1) > :nth-child(2) > :nth-child(1) > .q-tree__node--parent > .q-tree__node-collapsible > .q-tree__children';
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.viewport(1280, 720);
|
cy.viewport(1280, 720);
|
||||||
|
@ -12,12 +13,14 @@ describe('ZoneLocations', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should show all locations on entry', () => {
|
it('should show all locations on entry', () => {
|
||||||
cy.get('.q-tree > :nth-child(1) > :nth-child(2) > :nth-child(1)').children().should('have.length', 9);
|
cy.get('.q-tree > :nth-child(1) > :nth-child(2) > :nth-child(1)')
|
||||||
|
.children()
|
||||||
|
.should('have.length', 9);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should be able to search by postal code', () => {
|
it('should be able to search by postal code', () => {
|
||||||
cy.get('#searchbarForm').type('46680');
|
cy.get('#searchbarForm').type('46680');
|
||||||
cy.get('.router-link-active > .q-icon').click();
|
cy.get('.router-link-active > .q-icon').click();
|
||||||
cy.get(postalCode).should('include.text', '46680')
|
cy.get(postalCode).should('include.text', '46680');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
describe.skip('ZoneWarehouse', () => {
|
describe('ZoneWarehouse', () => {
|
||||||
const data = {
|
const data = {
|
||||||
Warehouse: { val: 'Warehouse Two', type: 'select' },
|
Warehouse: { val: 'Warehouse Two', type: 'select' },
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue