diff --git a/src/store/modules/order/actions.ts b/src/store/modules/order/actions.ts index d8604487..28ca347f 100644 --- a/src/store/modules/order/actions.ts +++ b/src/store/modules/order/actions.ts @@ -347,6 +347,22 @@ const actions: ActionTree = { total = resp.data.grouped.orderId.ngroups orders = resp.data.grouped.orderId.groups this.dispatch('product/getProductInformation', { orders }) + + orders = orders.map((order: any) => { + const orderItem = order.doclist.docs[0]; + return { + customerId: orderItem.customerId, + customerName: orderItem.customerName, + orderId: orderItem.orderId, + orderDate: orderItem.orderDate, + orderName: orderItem.orderName, + groupValue: order.groupValue, + items: order.doclist.docs, + shipmentMethodTypeId: orderItem.shipmentMethodTypeId, + shipmentMethodTypeDesc: orderItem.shipmentMethodTypeDesc, + reservedDatetime: orderItem.reservedDatetime + } + }) } else { throw resp.data } @@ -486,9 +502,11 @@ const actions: ActionTree = { await dispatch('fetchInProgressOrdersAdditionalInformation', { viewIndex: payload.viewIndex}); commit(types.ORDER_INPROGRESS_QUERY_UPDATED, payload) }, + async updateCompletedOrderIndex({ commit }, payload) { commit(types.ORDER_COMPLETED_QUERY_UPDATED, payload) }, + async updateOpenOrderIndex({ commit }, payload) { commit(types.ORDER_OPEN_QUERY_UPDATED, payload) } diff --git a/src/views/AssignPickerModal.vue b/src/views/AssignPickerModal.vue index 51bbade2..3ab3cb29 100644 --- a/src/views/AssignPickerModal.vue +++ b/src/views/AssignPickerModal.vue @@ -133,10 +133,10 @@ export default defineComponent({ const orderItems = [] if(this.order) { - this.order.doclist.docs.map((item) => orderItems.push(item)) + this.order.items.map((item) => orderItems.push(item)) } else { this.openOrders.list.map((order) => { - order.doclist.docs.map((item) => orderItems.push(item)) + order.items.map((item) => orderItems.push(item)) }); } diff --git a/src/views/OpenOrders.vue b/src/views/OpenOrders.vue index fd0536ab..6b2382d9 100644 --- a/src/views/OpenOrders.vue +++ b/src/views/OpenOrders.vue @@ -35,49 +35,49 @@
{{ translate("Print Picksheet") }} - +
- {{ orders.doclist.docs[0].customerName }} -

{{ translate("Ordered") }} {{ formatUtcDate(orders.doclist.docs[0].orderDate, 'dd MMMM yyyy t a ZZZZ') }}

+ {{ order.customerName }} +

{{ translate("Ordered") }} {{ formatUtcDate(order.orderDate, 'dd MMMM yyyy t a ZZZZ') }}

- + - {{ orders.doclist.docs[0].orderName }} + {{ order.orderName }}
-
+
- + -

{{ order.productSku }}

- {{ order.virtualProductName }} -

{{ getFeature(getProduct(order.productId).featureHierarchy, '1/COLOR/')}} {{ getFeature(getProduct(order.productId).featureHierarchy, '1/SIZE/')}}

+

{{ item.productSku }}

+ {{ item.virtualProductName }} +

{{ getFeature(getProduct(item.productId).featureHierarchy, '1/COLOR/')}} {{ getFeature(getProduct(item.productId).featureHierarchy, '1/SIZE/')}}