DeliveryRoute
Follows the stops of a delivery round.
kor/ui/DeliveryRouteSource
When to use
- Use it for last mile delivery and field service.
Examples
Today's round
<k:DeliveryRoute title="34 KRG 72" driver="Mert Aksoy" stopPress=".onStop">
<k:DeliveryStop key="1" title="Moda Eczanesi" text="Caferağa Mah. 12" time="09:10" parcels="2" state="success"/>
<k:DeliveryStop key="2" title="Ada Yılmaz" text="Osmanağa Mah. 8" time="09:35" state="danger" statusText="Nobody home"/>
<k:DeliveryStop key="3" title="Deniz Tekstil" text="Rasimpaşa Mah. 44" time="10:00 – 10:30" parcels="6"/>
<k:DeliveryStop key="4" title="Atlas Kırtasiye" text="Hasanpaşa Mah. 3" time="11:00" parcels="3" state="wait"/>
</k:DeliveryRoute>
sap.ui.define(["sap/ui/core/mvc/Controller", "kor/ui/Toast"], (Controller, Toast) => Controller.extend("sample.Round", {
onStop(event) {
Toast.show(String(event.getParameter("key")));
}
}));
API
Properties
| Name | Type | Default | Description |
|---|
title | string | | Round name or license plate |
driver | string | | Driver |
mode | string | van | van, truck or bike |
collapseDone | boolean | false | Whether to hide finished stops |
Aggregations
| Name | Type | Description |
|---|
stops | DeliveryStop[] | Stops in order |
Events
| Name | Type | Description |
|---|
stopPress | key: string | A stop was pressed |
DeliveryStop
A delivery stop.
Properties
| Name | Type | Default | Description |
|---|
key | string | | Key |
title | string | | Recipient |
text | string | | Address |
time | string | | Time or time window |
parcels | int | 1 | Number of parcels |
state | string | none | success delivered, danger failed, wait late, none upcoming |
statusText | string | | Status text |
Related
ShipmentLoadPlan