-
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.
Implemented: support to display the routing history for each route in…
…side a group(#85)
- Loading branch information
1 parent
3c8b666
commit e7a7349
Showing
3 changed files
with
130 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<template> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-button @click="closeModal"> | ||
<ion-icon slot="icon-only" :icon="closeOutline" /> | ||
</ion-button> | ||
</ion-buttons> | ||
<ion-title>{{ translate("Routing history") }}</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<ion-list> | ||
<ion-item> | ||
<ion-label> | ||
<h1>{{ routingName }}</h1> | ||
<p>{{ groupName }}</p> | ||
</ion-label> | ||
<ion-label slot="end"> | ||
{{ currentEComStore.productStoreId }} | ||
</ion-label> | ||
</ion-item> | ||
<ion-item v-for="(history, index) in routingHistory" :key="index"> | ||
<ion-icon v-if="history.hasError === 'Y'" :icon="warningOutline" color="warning" slot="start" /> | ||
<ion-icon v-else :icon="checkmarkDoneOutline" slot="start"/> | ||
<ion-label>{{ history.routingResult }}</ion-label> | ||
<ion-label slot="end">{{ getDateAndTime(history.startDate) }}</ion-label> | ||
</ion-item> | ||
</ion-list> | ||
</ion-content> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { translate } from "@/i18n"; | ||
import store from "@/store"; | ||
import { getDateAndTime } from "@/utils"; | ||
import { | ||
IonButton, | ||
IonButtons, | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonItem, | ||
IonLabel, | ||
IonList, | ||
IonTitle, | ||
IonToolbar, | ||
modalController, | ||
} from "@ionic/vue"; | ||
import { checkmarkDoneOutline, closeOutline, warningOutline } from "ionicons/icons"; | ||
import { computed, defineProps } from "vue"; | ||
defineProps({ | ||
routingHistory: { | ||
type: Array<any>, | ||
required: true, | ||
default: [] | ||
}, | ||
routingName: { | ||
type: String, | ||
default: "routing name" | ||
}, | ||
groupName: { | ||
type: String, | ||
default: "group name" | ||
} | ||
}) | ||
const currentEComStore = computed(() => store.getters["user/getCurrentEComStore"]) | ||
function closeModal() { | ||
modalController.dismiss(); | ||
} | ||
</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