-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented: details page for pre-order catalog (#85zt0m4qc)
- Loading branch information
Showing
27 changed files
with
884 additions
and
102 deletions.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,97 @@ | ||
import { api } from '@/adapter'; | ||
|
||
const findOrder = async (payload: any): Promise <any> => { | ||
return api({ | ||
url: "searchOrders", | ||
method: "post", | ||
data: payload | ||
}); | ||
const findOrder = async (payload: any): Promise<any> => { | ||
return api({ | ||
url: "searchOrders", | ||
method: "post", | ||
data: payload | ||
}); | ||
} | ||
|
||
const fetchBrokeringCountByProducts = async (payload: any): Promise <any> => { | ||
const fetchBrokeringCountByProducts = async (payload: any): Promise<any> => { | ||
return api({ | ||
url: "searchOrders", | ||
method: "post", | ||
data: payload | ||
}); | ||
url: "searchOrders", | ||
method: "post", | ||
data: payload | ||
}); | ||
} | ||
|
||
const releaseItems = async (payload: any): Promise <any> => { | ||
return api({ | ||
url: "uploadJsonFile", | ||
method: "post", | ||
data: payload.data, | ||
headers: payload.headers | ||
}); | ||
const releaseItems = async (payload: any): Promise<any> => { | ||
return api({ | ||
url: "uploadJsonFile", | ||
method: "post", | ||
data: payload.data, | ||
headers: payload.headers | ||
}); | ||
} | ||
|
||
const cancelItems = async (payload: any): Promise <any> => { | ||
return api({ | ||
url: "uploadJsonFile", | ||
method: "post", | ||
data: payload.data, | ||
headers: payload.headers | ||
}); | ||
const cancelItems = async (payload: any): Promise<any> => { | ||
return api({ | ||
url: "uploadJsonFile", | ||
method: "post", | ||
data: payload.data, | ||
headers: payload.headers | ||
}); | ||
} | ||
|
||
const updatePromiseDateItems = async (payload: any): Promise <any> => { | ||
return api({ | ||
url: "uploadJsonFile", | ||
method: "post", | ||
data: payload.data, | ||
headers: payload.headers | ||
}); | ||
const updatePromiseDateItems = async (payload: any): Promise<any> => { | ||
return api({ | ||
url: "uploadJsonFile", | ||
method: "post", | ||
data: payload.data, | ||
headers: payload.headers | ||
}); | ||
} | ||
|
||
const releaseItem = async (payload: any): Promise <any> => { | ||
return api({ | ||
url: "releaseOrderItem", | ||
method: "post", | ||
data: payload | ||
}); | ||
const releaseItem = async (payload: any): Promise<any> => { | ||
return api({ | ||
url: "releaseOrderItem", | ||
method: "post", | ||
data: payload | ||
}); | ||
} | ||
|
||
const cancelItem = async (payload: any): Promise <any> => { | ||
return api({ | ||
url: "cancelOrderItem", | ||
method: "post", | ||
data: payload | ||
}); | ||
const cancelItem = async (payload: any): Promise<any> => { | ||
return api({ | ||
url: "cancelOrderItem", | ||
method: "post", | ||
data: payload | ||
}); | ||
} | ||
|
||
const updatePromiseDateItem = async (payload: any): Promise <any> => { | ||
return api({ | ||
url: "updateOrderItem", | ||
method: "post", | ||
data: payload | ||
}); | ||
const updatePromiseDateItem = async (payload: any): Promise<any> => { | ||
return api({ | ||
url: "updateOrderItem", | ||
method: "post", | ||
data: payload | ||
}); | ||
} | ||
|
||
const getPODeliveryDate = async (query: any): Promise <any> => { | ||
return api({ | ||
url: 'performFind', | ||
method: 'POST', | ||
data: query | ||
}); | ||
} | ||
|
||
const getPOItemAndATPDetails = async (payload: any): Promise<any> => { | ||
return api({ | ||
url: "solr-query", | ||
method: "POST", | ||
data: payload | ||
}) | ||
} | ||
|
||
export const OrderService = { | ||
fetchBrokeringCountByProducts, | ||
findOrder, | ||
releaseItem, | ||
cancelItem, | ||
updatePromiseDateItem, | ||
releaseItems, | ||
cancelItems, | ||
updatePromiseDateItems | ||
fetchBrokeringCountByProducts, | ||
findOrder, | ||
releaseItem, | ||
cancelItem, | ||
updatePromiseDateItem, | ||
releaseItems, | ||
cancelItems, | ||
updatePromiseDateItems, | ||
getPODeliveryDate, | ||
getPOItemAndATPDetails | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { api } from '@/adapter'; | ||
|
||
const getServiceStatusDesc = async (payload: any): Promise<any> => { | ||
return api({ | ||
url: "performFind", | ||
method: "get", | ||
params: payload, | ||
cache: true | ||
}); | ||
} | ||
|
||
export const UtilService = { | ||
getServiceStatusDesc | ||
} |
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
Oops, something went wrong.