|
18 | 18 |
|
19 | 19 | <ion-content ref="contentRef" :scroll-events="true" @ionScroll="enableScrolling()" id="view-size-selector">
|
20 | 20 | <ion-searchbar class="searchbar" :value="completedOrders.query.queryString" :placeholder="translate('Search orders')" @keyup.enter="updateQueryString($event.target.value)" />
|
| 21 | + <div class="filters"> |
| 22 | + <ion-item lines="none" v-for="carrierPartyId in carrierPartyIds" :key="carrierPartyId.val"> |
| 23 | + <ion-checkbox label-placement="end" :checked="completedOrders.query.selectedCarrierPartyIds.includes(carrierPartyId.val)" @ionChange="updateSelectedCarrierPartyIds(carrierPartyId.val)"> |
| 24 | + <ion-label> |
| 25 | + {{ getPartyName(carrierPartyId.val.split('/')[0]) }} |
| 26 | + <p>{{ carrierPartyId.groups }} {{ carrierPartyId.groups === 1 ? translate('package') : translate("packages") }}</p> |
| 27 | + </ion-label> |
| 28 | + </ion-checkbox> |
| 29 | + <!-- TODO: make the print icon functional --> |
| 30 | + <!-- <ion-icon :icon="printOutline" /> --> |
| 31 | + </ion-item> |
| 32 | + |
| 33 | + <ion-item lines="none" v-for="shipmentMethod in shipmentMethods" :key="shipmentMethod.val"> |
| 34 | + <ion-checkbox label-placement="end" :checked="completedOrders.query.selectedShipmentMethods.includes(shipmentMethod.val)" @ionChange="updateSelectedShipmentMethods(shipmentMethod.val)"> |
| 35 | + <ion-label> |
| 36 | + {{ getShipmentMethodDesc(shipmentMethod.val) }} |
| 37 | + <p>{{ shipmentMethod.groups }} {{ shipmentMethod.groups > 1 ? translate('orders') : translate('order') }}, {{ shipmentMethod.itemCount }} {{ shipmentMethod.itemCount > 1 ? translate('items') : translate('item') }}</p> |
| 38 | + </ion-label> |
| 39 | + </ion-checkbox> |
| 40 | + </ion-item> |
| 41 | + </div> |
21 | 42 |
|
22 | 43 | <div v-if="completedOrders.total">
|
23 |
| - |
24 |
| - <div class="filters"> |
25 |
| - <ion-item lines="none" v-for="carrierPartyId in carrierPartyIds" :key="carrierPartyId.val"> |
26 |
| - <ion-checkbox label-placement="end" :checked="completedOrders.query.selectedCarrierPartyIds.includes(carrierPartyId.val)" @ionChange="updateSelectedCarrierPartyIds(carrierPartyId.val)"> |
27 |
| - <ion-label> |
28 |
| - {{ getPartyName(carrierPartyId.val.split('/')[0]) }} |
29 |
| - <p>{{ carrierPartyId.groups }} {{ carrierPartyId.groups === 1 ? translate('package') : translate("packages") }}</p> |
30 |
| - </ion-label> |
31 |
| - </ion-checkbox> |
32 |
| - <!-- TODO: make the print icon functional --> |
33 |
| - <!-- <ion-icon :icon="printOutline" /> --> |
34 |
| - </ion-item> |
35 |
| - |
36 |
| - <ion-item lines="none" v-for="shipmentMethod in shipmentMethods" :key="shipmentMethod.val"> |
37 |
| - <ion-checkbox label-placement="end" :checked="completedOrders.query.selectedShipmentMethods.includes(shipmentMethod.val)" @ionChange="updateSelectedShipmentMethods(shipmentMethod.val)"> |
38 |
| - <ion-label> |
39 |
| - {{ getShipmentMethodDesc(shipmentMethod.val) }} |
40 |
| - <p>{{ shipmentMethod.groups }} {{ shipmentMethod.groups > 1 ? translate('orders') : translate('order') }}, {{ shipmentMethod.itemCount }} {{ shipmentMethod.itemCount > 1 ? translate('items') : translate('item') }}</p> |
41 |
| - </ion-label> |
42 |
| - </ion-checkbox> |
43 |
| - </ion-item> |
44 |
| - </div> |
45 | 44 | <div class="results">
|
46 | 45 | <ion-button :disabled="isShipNowDisabled || !hasAnyPackedShipment() || hasAnyMissingInfo() || (hasAnyShipmentTrackingInfoMissing() && !hasPermission(Actions.APP_FORCE_SHIP_ORDER))" expand="block" class="bulk-action desktop-only" fill="outline" size="large" @click="bulkShipOrders()">{{ translate("Ship") }}</ion-button>
|
47 | 46 | <ion-card class="order" v-for="(order, index) in completedOrdersList" :key="index">
|
|
0 commit comments