Commit b57023bc by qinjianhui

feat: 订单归档功能开发

parent e348948e
......@@ -156,9 +156,9 @@ export function cancelSuspendApi(ids: (number | string)[]) {
})
}
export function archiveOrderApi(ids: (number | string)[]) {
return axios.post<never, BaseRespData<void>>('factory/orderNew/archive', {
ids,
export function archiveOrderApi(ids: (number | string)) {
return axios.get<never, BaseRespData<void>>('factory/podOrder/archiving', {
params: { ids },
})
}
......
......@@ -1788,7 +1788,7 @@ const handleWeightSort = () => {
const handleArchiveOrder = async () => {
await executeBatchAction({
getIds: getSelectedIds,
api: archiveOrderApi,
api: (ids) => archiveOrderApi(ids.join(',')),
confirmText: '确定订单归档吗?',
successText: '订单归档成功',
refreshTree: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment