2019-03-24 16:55:52 +08:00
|
|
|
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',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2019-04-05 17:54:19 +08:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2019-03-29 17:13:46 +08:00
|
|
|
export async function updateOrderItemPayAmount(params) {
|
|
|
|
return request(`/order-api/admins/order/order_item/update_pay_amount?${stringify(params)}`, {
|
|
|
|
method: 'PUT',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2019-03-31 14:46:05 +08:00
|
|
|
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',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2019-03-24 16:55:52 +08:00
|
|
|
export async function updateOrderItem(params) {
|
|
|
|
return request(`/order-api/admins/order_item/update?${stringify(params)}`, {
|
|
|
|
method: 'PUT',
|
|
|
|
body: {
|
|
|
|
...params,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
2019-03-31 14:46:05 +08:00
|
|
|
|
|
|
|
export async function getLogistics(params) {
|
|
|
|
return request(`/order-api/admins/order_item/update?${stringify(params)}`, {
|
|
|
|
method: 'PUT',
|
|
|
|
body: {
|
|
|
|
...params,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|