-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Implemented: support for fetching the rules for orderRouting, creating a new rule and make the actions dynamic(#24)
- Loading branch information
Showing
21 changed files
with
582 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<ion-page> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-title>{{ "Inventory Filters" }}</ion-title> | ||
<ion-buttons slot="end"> | ||
<ion-button @click="closeModal">{{ $t('Close') }}</ion-button> | ||
</ion-buttons> | ||
</ion-toolbar> | ||
</ion-header> | ||
<ion-content> | ||
<ion-list> | ||
<ion-item v-for="filter in Object.values(inventoryFilterOptions['INV_FILTER_PRM_TYPE'])" :key="filter.enumId"> | ||
<ion-checkbox>{{ filter.description || filter.enumCode }}</ion-checkbox> | ||
</ion-item> | ||
</ion-list> | ||
</ion-content> | ||
</ion-page> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { IonButton, IonButtons, IonCheckbox, IonContent, IonHeader, IonItem, IonList, IonPage, IonTitle, IonToolbar, modalController } from "@ionic/vue"; | ||
import { useRouter } from "vue-router"; | ||
Check warning on line 23 in src/components/AddInventoryFilterOptionsModal.vue GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (18.x)
Check warning on line 23 in src/components/AddInventoryFilterOptionsModal.vue GitHub Actions / call-workflow-in-another-repo / build_and_deploy
|
||
import { useStore } from "vuex"; | ||
import { computed } from "vue"; | ||
const store = useStore(); | ||
const inventoryFilterOptions = computed(() => store.getters["util/getEnums"]) | ||
function closeModal() { | ||
modalController.dismiss({ dismissed: true }) | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<ion-page> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-title>{{ "Inventory Sort" }}</ion-title> | ||
<ion-buttons slot="end"> | ||
<ion-button @click="closeModal">{{ $t('Close') }}</ion-button> | ||
</ion-buttons> | ||
</ion-toolbar> | ||
</ion-header> | ||
<ion-content> | ||
<ion-list> | ||
<ion-item v-for="filter in Object.values(inventoryFilterOptions['INV_SORT_PARAM_TYPE'])" :key="filter.enumId"> | ||
<ion-checkbox>{{ filter.description || filter.enumCode }}</ion-checkbox> | ||
</ion-item> | ||
</ion-list> | ||
</ion-content> | ||
</ion-page> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { IonButton, IonButtons, IonCheckbox, IonContent, IonHeader, IonItem, IonList, IonPage, IonTitle, IonToolbar, modalController } from "@ionic/vue"; | ||
import { useStore } from "vuex"; | ||
import { computed } from "vue"; | ||
const store = useStore(); | ||
const inventoryFilterOptions = computed(() => store.getters["util/getEnums"]) | ||
function closeModal() { | ||
modalController.dismiss({ dismissed: true }) | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import { RouteFilter } from "@/types"; | ||
|
||
export default interface OrderRoutingState { | ||
groups: Array<any>; // runs | ||
routes: Array<any>; | ||
rule: Array<any>; | ||
rules: Array<any>; | ||
currentGroupId: string; | ||
currentRouteId: string; | ||
currentRouteFilters: { | ||
[key: string]: { // conditionTypeEnumId as key | ||
[key: string]: RouteFilter // enumCode/fieldName as key | ||
} | ||
}; | ||
ruleConditions: {}; | ||
ruleActions: {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.