106 lines
2.5 KiB
TypeScript
106 lines
2.5 KiB
TypeScript
import { request } from '@umijs/max';
|
|
|
|
export async function orderPage(bodys) {
|
|
return request('/api/orders/page', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
},
|
|
data: bodys || {},
|
|
});
|
|
}
|
|
|
|
export async function orderExport(body) {
|
|
return request('/api/orders/export', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
},
|
|
data: body || {},
|
|
responseType: 'blob'
|
|
});
|
|
}
|
|
|
|
export async function orderList(id) {
|
|
return request(`/api/orders/orderIncomeList?id=${id}`, {
|
|
method: 'GET',
|
|
headers: {
|
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
},
|
|
});
|
|
}
|
|
|
|
// 退单
|
|
export async function orderRefund(bodys) {
|
|
return request('/api/orders/orderRefund', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
},
|
|
data: bodys || {},
|
|
});
|
|
}
|
|
|
|
|
|
export async function getWeiXinCollect(bodys) {
|
|
return request('/api/orders/getWeiXinCollect', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
},
|
|
data: bodys || {},
|
|
});
|
|
}
|
|
|
|
export async function getCollect(bodys) {
|
|
return request('/api/orders/getCollect', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
},
|
|
data: bodys || {},
|
|
});
|
|
}
|
|
|
|
export async function getBalance(bodys) {
|
|
return request('/api/orders/getBalance', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
},
|
|
data: bodys || {},
|
|
});
|
|
}
|
|
|
|
export async function getZhiFuBaoCollect(bodys) {
|
|
return request('/api/orders/getZhiFuBaoCollect', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
},
|
|
data: bodys || {},
|
|
});
|
|
}
|
|
|
|
export async function deliverGoods(bodys) {
|
|
return request('/api/orders/deliverGoods', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
},
|
|
data: bodys || {},
|
|
});
|
|
}
|
|
|
|
export async function orderExportTeam(bodys) {
|
|
return request('/api/orders/teamExport', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
},
|
|
data: bodys || {},
|
|
responseType: 'blob'
|
|
});
|
|
}
|
|
|