mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-09-21 20:32:03 +08:00
feat(orderFulfill): 增强订单发货逻辑与界面
- 新增无需配送场景及发货模式相关工具函数 - 更新订单详情与订单管理页,支持整单发货、分包裹发货、无需配送 - 优化物流信息与订单日志展示 - 重构订单发货 API 以适配新逻辑 - 增强订单列表与详情页的发货选项与操作展示
This commit is contained in:
@@ -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}`);
|
||||
|
||||
@@ -71,7 +71,7 @@ export const logisticsUnChecked = (id, params) => {
|
||||
}
|
||||
// 获取商家自提点
|
||||
export const getShopAddress = (id, params) => {
|
||||
return getRequest(`/member/storeAddress/`, params)
|
||||
return getRequest(`/member/storeAddress`, params)
|
||||
}
|
||||
|
||||
// 修改商家自提点
|
||||
@@ -81,7 +81,7 @@ export const editShopAddress = (id, params) => {
|
||||
|
||||
// 添加商品自提点
|
||||
export const addShopAddress = (params) => {
|
||||
return postRequest(`/member/storeAddress/`, params)
|
||||
return postRequest(`/member/storeAddress`, params)
|
||||
}
|
||||
|
||||
// 添加商品自提点
|
||||
|
||||
Reference in New Issue
Block a user