2024-04-29 18:14:58 +08:00
|
|
|
import request from '@/utils/request';
|
|
|
|
|
2024-05-06 14:54:47 +08:00
|
|
|
//提交零售订单(支付一起)
|
2024-06-05 18:45:30 +08:00
|
|
|
export const createOrderApi = (data) => {
|
|
|
|
return request.post('/order/order/createOrder', data);
|
2024-04-30 16:24:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
//订单列表
|
2024-06-05 18:45:30 +08:00
|
|
|
export const orderListApi = (data) => {
|
|
|
|
return request.get('/order/order/order_list', data);
|
2024-04-30 16:24:55 +08:00
|
|
|
}
|
2024-08-13 18:03:39 +08:00
|
|
|
//门店订单列表
|
|
|
|
export const storeOrderListApi = (data) => {
|
|
|
|
return request.get('/order/order/store_order_list', data);
|
|
|
|
}
|
2024-04-30 16:24:55 +08:00
|
|
|
|
|
|
|
//订单详情
|
2024-06-05 18:45:30 +08:00
|
|
|
export const orderDetailApi = (data) => {
|
|
|
|
return request.get('/order/order/detail', data);
|
2024-05-06 14:54:47 +08:00
|
|
|
}
|
|
|
|
|
2024-05-06 15:32:45 +08:00
|
|
|
//重新发起支付
|
2024-06-05 18:45:30 +08:00
|
|
|
export const rePaymentApi = (data) => {
|
2024-06-08 17:57:40 +08:00
|
|
|
return request.post('/order/order/pay', data);
|
2024-05-06 15:32:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
//订单数量统计
|
2024-06-05 18:45:30 +08:00
|
|
|
export const orderCountApi = (data) => {
|
|
|
|
return request.post('/order/order/order_count', data);
|
2024-05-07 13:39:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
//取消订单
|
2024-06-05 18:45:30 +08:00
|
|
|
export const cancelOrderApi = (data) => {
|
|
|
|
return request.post('/order/order/cancel_order', data);
|
2024-05-08 14:50:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
//订单确认收货
|
2024-06-05 18:45:30 +08:00
|
|
|
export const confirmReceiptApi = (data) => {
|
|
|
|
return request.post('/order/order/confirm_receipt', data);
|
2024-05-08 15:25:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
//订单再次购买
|
2024-06-05 18:45:30 +08:00
|
|
|
export const purchaseAgainApi = (data) => {
|
|
|
|
return request.get('/order/order/purchase_again', data);
|
|
|
|
}
|
|
|
|
|
|
|
|
// 核销
|
|
|
|
// 核销订单列表
|
|
|
|
export const writeListApi = (data) => {
|
|
|
|
return request.post('/order/order/write_list', data);
|
|
|
|
}
|
|
|
|
|
|
|
|
// 单个订单核销
|
|
|
|
export const writeOrderApi = (data) => {
|
|
|
|
return request.post('/order/order/writeoff_order', data);
|
|
|
|
}
|
|
|
|
|
|
|
|
// 核销数量统计
|
|
|
|
export const writeCountApi = (data) => {
|
|
|
|
return request.post('/order/order/write_count', data);
|
2024-06-06 17:50:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 根据核销码查询记录
|
|
|
|
export const writeCodeApi = (data) => {
|
|
|
|
return request.post('/order/order/write_code', data);
|
2024-06-08 13:42:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 取消售后
|
|
|
|
export const cancelSaleApi = (data) => {
|
|
|
|
return request.get('/order/order/cancel_sale', data);
|
|
|
|
}
|
|
|
|
|
|
|
|
// 订单退款原因
|
|
|
|
export const refundReasonListApi = (data) => {
|
|
|
|
return request.post('/order/order/refund_reason', data);
|
|
|
|
}
|
|
|
|
|
|
|
|
// 订单退款申请
|
|
|
|
export const applyRefundApi = (data) => {
|
|
|
|
return request.post('/order/order/apply_refund', data);
|
2024-07-10 16:03:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export const UserProductStorageLogApi = (data) => {
|
|
|
|
return request.get('/user_product_storage_log/UserProductStorageLog/lists', data);
|
2024-04-29 18:14:58 +08:00
|
|
|
}
|