diff --git a/src/components/AddOrderRouteFilterOptions.vue b/src/components/AddOrderRouteFilterOptions.vue index 405231d..938d3b4 100644 --- a/src/components/AddOrderRouteFilterOptions.vue +++ b/src/components/AddOrderRouteFilterOptions.vue @@ -23,8 +23,8 @@ -
- +
+ {{ sort.description || sort.enumCode }}
@@ -79,6 +79,16 @@ onMounted(() => { routingFilters.value = props.orderRoutingFilters ? JSON.parse(JSON.stringify(props.orderRoutingFilters)) : {} }) +function getOptions() { + if(props.conditionTypeEnumId === "ENTCT_FILTER") { + const excludeOptions = Object.values(enums.value[props.parentEnumId]).filter((enumeration: any) => enumeration.enumId.includes('_EXCLUDED')) + const includeOptions = Object.values(enums.value[props.parentEnumId]).filter((enumeration: any) => !enumeration.enumId.includes('_EXCLUDED')) + return segmentSelected.value === "excluded" ? excludeOptions : includeOptions + } + + return Object.values(enums.value[props.parentEnumId]) +} + function checkFilters() { areFiltersUpdated.value = false; areFiltersUpdated.value = Object.keys(routingFilters.value).some((options: string) => { @@ -125,7 +135,6 @@ function isSortOptionSelected(code: string) { } function closeModal(action = "close") { - console.log('routingFilters.value',routingFilters.value) modalController.dismiss({ dismissed: true, filters: routingFilters.value }, action) }