feat(orderFulfill): 增强订单发货逻辑与界面

- 新增无需配送场景及发货模式相关工具函数
- 更新订单详情与订单管理页,支持整单发货、分包裹发货、无需配送
- 优化物流信息与订单日志展示
- 重构订单发货 API 以适配新逻辑
- 增强订单列表与详情页的发货选项与操作展示
This commit is contained in:
田香琪
2026-08-13 17:19:06 +08:00
parent d4cd6e0936
commit 3b665f6d8c
8 changed files with 549 additions and 258 deletions

View File

@@ -104,9 +104,11 @@ export const getOrderLog = (sn, params) => {
return getRequest(`/orderLog/${sn}`, params);
};
// 订单发货
export const orderDelivery = (sn, params) => {
return postRequest(`/order/order/${sn}/delivery`, params);
// 订单发货(整单 / 拆单 / 无需配送)
export const orderFulfill = (orderSn, params) => {
return postRequest(`/order/order/${orderSn}/fulfill`, params, {
"Content-type": "application/json",
});
};
// 订单发货
@@ -212,13 +214,6 @@ export const getPackage = (orderSn) => {
return getRequest(`/order/order/getPackage/${orderSn}`);
}
//分包裹发货
export const partDelivery = (orderSn,params) => {
return postRequest(`/order/order/${orderSn}/partDelivery`,params,{
"Content-type": "application/json"
})
}
//查询物流
export const getTracesList = (sn) => {
return getRequest(`/order/order/getTracesList/${sn}`);