@@ -278,7 +278,7 @@ const actions: ActionTree<OrderState , RootState> ={
278
278
entityName : "OrderItemShipGroupAndFacility"
279
279
} ]
280
280
281
- const [ orderHeader , orderContactMech , orderIdentifications , orderAttributes , orderStatusInfo , orderPaymentPreference , orderShipGroups ] = await Promise . allSettled ( apiPayload . map ( ( payload : any ) => OrderService . performFind ( payload ) ) )
281
+ const [ orderHeader , orderContactMech , orderIdentifications , orderAttributes , orderStatusInfo , orderPaymentPreference ] = await Promise . allSettled ( apiPayload . map ( ( payload : any ) => OrderService . performFind ( payload ) ) )
282
282
283
283
if ( orderHeader . status === "fulfilled" && ! hasError ( orderHeader . value ) && orderHeader . value . data . count > 0 ) {
284
284
order = {
@@ -392,28 +392,14 @@ const actions: ActionTree<OrderState , RootState> ={
392
392
order [ "picklistDate" ] = picklistInfo . data . docs [ 0 ] . picklistDate
393
393
}
394
394
}
395
-
396
- const shipGroupSeqIds : Array < string > = [ ] ;
397
- const shipmentMethodIds : Array < string > = [ ]
398
-
399
- const carrierPartyIds = [ ] as any ;
400
-
401
- // TODO: fetch carrier info
402
- // const carrierInfo = await dispatch("fetchCarriersTrackingInfo", Array.from(new Set(carrierPartyIds)));
403
- // Object.keys(order["shipGroups"]).map((shipGroupId: any) => {
404
- // const shipGroup = order["shipGroups"][shipGroupId]
405
- // shipGroup.map((item: any) => item["carrierPartyName"] = carrierInfo[item.carrierPartyId]?.carrierName || "")
406
- // })
407
-
408
- // this.dispatch("util/fetchShipmentMethodTypeDesc", shipmentMethodIds)
409
395
} catch ( err ) {
410
396
logger . error ( err )
411
397
}
412
398
413
399
await dispatch ( 'updateCurrent' , { order } )
414
400
} ,
415
401
416
- async getOrderDetail ( { dispatch, state } , { payload, orderType } ) {
402
+ async getOrderDetail ( { dispatch } , { payload, orderType } ) {
417
403
if ( orderType === 'open' ) {
418
404
payload [ 'orderStatusId' ] = "ORDER_APPROVED"
419
405
payload [ '-shipmentStatusId' ] = "(SHIPMENT_PACKED OR SHIPMENT_SHIPPED)"
0 commit comments