mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-05-07 08:04:42 +08:00
- 在会员API中添加获取发票详情的接口 - 更新发票模态框,支持电子普通发票和增值税专用发票的详细信息展示 - 在订单详情页和支付页面优化发票信息的显示逻辑 - 增加发票信息的校验和格式化处理
186 lines
5.1 KiB
JavaScript
186 lines
5.1 KiB
JavaScript
// 统一请求路径前缀在libs/axios.js中修改
|
|
import { getRequest, postRequest, putRequest ,postRequestWithNoForm } from "@/libs/axios";
|
|
|
|
import { baseUrl } from "@/libs/axios.js";
|
|
|
|
// 下载待发货的订单列表
|
|
export const verificationCode = verificationCode => {
|
|
return getRequest(`/order/order/getOrderByVerificationCode/${verificationCode}`);
|
|
};
|
|
|
|
// 下载待发货的订单列表
|
|
export const downLoadDeliverExcel = params => {
|
|
return getRequest(`/order/order/downLoadDeliverExcel`, params, 'blob');
|
|
};
|
|
// 导出待发货订单
|
|
export const queryExportOrder = params => {
|
|
return getRequest(`/order/order/queryExportOrder`, params);
|
|
};
|
|
|
|
//获取电子面单
|
|
export const getOrderFaceSheet= (orderSn,params) =>{
|
|
return postRequest(`/order/order/${orderSn}/createElectronicsFaceSheet`,params)
|
|
}
|
|
|
|
// 上传待发货的订单列表
|
|
export const uploadDeliverExcel = params => {
|
|
return postRequestWithNoForm(`/order/order/batchDeliver`, params );
|
|
};
|
|
|
|
// 获取普通订单列表
|
|
export const getOrderList = params => {
|
|
return getRequest(`/order/order`, params);
|
|
};
|
|
|
|
// 导出订单列表
|
|
export const exportOrder = (params) => {
|
|
return getRequest(`/order/order/queryExportOrder`, params,'blob')
|
|
};
|
|
|
|
// 获取普通订单详细信息
|
|
export const getOrderDetail = sn => {
|
|
return getRequest(`/order/order/${sn}`);
|
|
};
|
|
|
|
// 调整订单金额
|
|
export const modifyOrderPrice = (sn, params) => {
|
|
return putRequest(`/order/order/update/${sn}/price`, params);
|
|
};
|
|
|
|
// 修改订单备注
|
|
export const modifyOrderRemark = (sn, params) => {
|
|
return putRequest(`/order/order/${sn}/sellerRemark`, params);
|
|
};
|
|
|
|
// 取消订单
|
|
export const cancelOrder = (sn, params) => {
|
|
return postRequest(`/order/order/${sn}/cancel`, params);
|
|
};
|
|
|
|
// 修改收货地址
|
|
export const editOrderConsignee = (sn, params) => {
|
|
return postRequest(`/order/order/update/${sn}/consignee`, params);
|
|
};
|
|
//获取投诉列表
|
|
export const getComplainPage = params => {
|
|
return getRequest(`/order/complain`, params);
|
|
};
|
|
|
|
//获取投诉详情
|
|
export const getComplainDetail = id => {
|
|
return getRequest(`/order/complain/${id}`);
|
|
};
|
|
|
|
//添加交易投诉对话
|
|
export const addOrderComplaint = params => {
|
|
return postRequest(`/order/complain/communication/`, params);
|
|
};
|
|
|
|
//添加交易投诉对话
|
|
export const appeal = params => {
|
|
return putRequest(`/order/complain/appeal`, params);
|
|
};
|
|
|
|
//获取订单日志
|
|
export const getOrderLog = (sn, params) => {
|
|
return getRequest(`/orderLog/${sn}`, params);
|
|
};
|
|
|
|
// 订单发货
|
|
export const orderDelivery = (sn, params) => {
|
|
return postRequest(`/order/order/${sn}/delivery`, params);
|
|
};
|
|
|
|
// 订单发货
|
|
export const orderShunFengDelivery = (sn) => {
|
|
return postRequest(`/order/order/${sn}/shunfeng/delivery`);
|
|
};
|
|
|
|
// 获取商家选中的物流公司
|
|
export const getLogisticsChecked = () => {
|
|
return getRequest(`/other/logistics/getChecked`);
|
|
};
|
|
|
|
// 订单核验
|
|
export const orderTake = (sn, verificationCode) => {
|
|
return putRequest(`/order/order/take/${sn}/${verificationCode}`);
|
|
};
|
|
|
|
// 售后服务单
|
|
export const afterSaleOrderPage = params => {
|
|
return getRequest(`/order/afterSale/page`, params);
|
|
};
|
|
|
|
// 售后服务单详情
|
|
export const afterSaleOrderDetail = sn => {
|
|
return getRequest(`/order/afterSale/${sn}`);
|
|
};
|
|
|
|
// 商家审核
|
|
export const afterSaleSellerReview = (sn, params) => {
|
|
return putRequest(`/order/afterSale/review/${sn}`, params);
|
|
};
|
|
|
|
// 商家确认收货
|
|
export const afterSaleSellerConfirm = (sn, params) => {
|
|
return putRequest(`/order/afterSale/confirm/${sn}`, params);
|
|
};
|
|
|
|
// 商家换货业务发货
|
|
export const afterSaleSellerDelivery = (sn, params) => {
|
|
return postRequest(`/order/afterSale/${sn}/delivery`, params);
|
|
};
|
|
//查询物流
|
|
export const getTraces = (sn, params) => {
|
|
return getRequest(`/order/order/getTraces/${sn}`, params);
|
|
};
|
|
//售后单查询物流
|
|
export const getSellerDeliveryTraces = (sn, params) => {
|
|
return getRequest(`/order/afterSale/getSellerDeliveryTraces/${sn}`, params);
|
|
};
|
|
//售后单查询物流
|
|
export const getAfterSaleTraces = (sn, params) => {
|
|
return getRequest(`/order/afterSale/getDeliveryTraces/${sn}`, params);
|
|
};
|
|
//获取发票列表
|
|
export const getReceiptPage = params => {
|
|
return getRequest(`/trade/receipt`, params);
|
|
};
|
|
|
|
//获取发票详情
|
|
export const getReceiptDetail = id => {
|
|
return getRequest(`/trade/receipt/get/${id}`);
|
|
};
|
|
|
|
//开发票
|
|
export const invoicing = (id, params) => {
|
|
return postRequest(`/trade/receipt/${id}/invoicing`, params);
|
|
};
|
|
|
|
//查询包裹列表
|
|
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}`);
|
|
}
|
|
|
|
// 获取订单数量统计
|
|
export const getOrderNum = (params) => {
|
|
return getRequest(`/order/order/orderNum`, params);
|
|
}
|
|
|
|
// 获取售后数量统计
|
|
export const getAfterSaleNumVO = (params) => {
|
|
return getRequest(`/order/afterSale/afterSaleNumVO`, params);
|
|
}
|