Commit b57023bc by qinjianhui

feat: 订单归档功能开发

parent e348948e
...@@ -156,9 +156,9 @@ export function cancelSuspendApi(ids: (number | string)[]) { ...@@ -156,9 +156,9 @@ export function cancelSuspendApi(ids: (number | string)[]) {
}) })
} }
export function archiveOrderApi(ids: (number | string)[]) { export function archiveOrderApi(ids: (number | string)) {
return axios.post<never, BaseRespData<void>>('factory/orderNew/archive', { return axios.get<never, BaseRespData<void>>('factory/podOrder/archiving', {
ids, params: { ids },
}) })
} }
......
...@@ -1788,7 +1788,7 @@ const handleWeightSort = () => { ...@@ -1788,7 +1788,7 @@ const handleWeightSort = () => {
const handleArchiveOrder = async () => { const handleArchiveOrder = async () => {
await executeBatchAction({ await executeBatchAction({
getIds: getSelectedIds, getIds: getSelectedIds,
api: archiveOrderApi, api: (ids) => archiveOrderApi(ids.join(',')),
confirmText: '确定订单归档吗?', confirmText: '确定订单归档吗?',
successText: '订单归档成功', successText: '订单归档成功',
refreshTree: true, 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