xiangpei
2025-05-13 4c4995771ce83925a2d69dedc11c4404d9b77875
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
// 统一请求路径前缀在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 invoicing = id => {
  return postRequest(`/trade/receipt/${id}/invoicing`);
};
 
//查询包裹列表
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}`);
}