ludu-cloud/admin-web/src/services/order.js
sin 2bcaaf2027 - 优化订单列表
- 添加订单发货流程
2019-04-05 17:54:19 +08:00

67 lines
1.6 KiB
Java

import { stringify } from '@/utils/request.qs';
import request from '@/utils/request';
// order
export async function orderPage(params) {
return request(`/order-api/admins/order/page?${stringify(params)}`, {
method: 'GET',
});
}
export async function orderItems(params) {
return request(`/order-api/admins/order/order_items?${stringify(params)}`, {
method: 'GET',
});
}
export async function getOrderRecipientInfo(params) {
return request(`/order-api/admins/order/order_recipient_info?${stringify(params)}`, {
method: 'GET',
});
}
export async function orderDeliver(params) {
return request(`/order-api/admins/order/order_deliver`, {
method: 'POST',
body: {
...params,
},
});
}
export async function updateOrderItemPayAmount(params) {
return request(`/order-api/admins/order/order_item/update_pay_amount?${stringify(params)}`, {
method: 'PUT',
});
}
export async function updateRemark(params) {
return request(`/order-api/admins/order/update_remark?${stringify(params)}`, {
method: 'PUT',
});
}
export async function cancelOrder(params) {
return request(`/order-api/admins/order/cancel_order?${stringify(params)}`, {
method: 'PUT',
});
}
export async function updateOrderItem(params) {
return request(`/order-api/admins/order_item/update?${stringify(params)}`, {
method: 'PUT',
body: {
...params,
},
});
}
export async function getLogistics(params) {
return request(`/order-api/admins/order_item/update?${stringify(params)}`, {
method: 'PUT',
body: {
...params,
},
});
}