结算单详情调优
parent
4976b87c4e
commit
fb20cb32da
|
@ -81,3 +81,9 @@ export const getShopList = () => {
|
||||||
export const getShopByMemberId = (id) => {
|
export const getShopByMemberId = (id) => {
|
||||||
return getRequest(`/store/store/${id}/member`)
|
return getRequest(`/store/store/${id}/member`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//根据id获取店铺信息
|
||||||
|
export const downloadBill = (id) => {
|
||||||
|
return getRequest(`/order/bill/downLoad/${id}`, {}, 'blob')
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -171,18 +171,24 @@ function getTokenDebounce() {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getRequest = (url, params) => {
|
export const getRequest = (url, params, resBlob) => {
|
||||||
let accessToken = getStore("accessToken");
|
let accessToken = getStore("accessToken");
|
||||||
return service({
|
let data = {
|
||||||
method: "get",
|
method: "get",
|
||||||
url: `${url}`,
|
url: `${url}`,
|
||||||
params: params,
|
params: params,
|
||||||
headers: {
|
headers: {
|
||||||
accessToken: accessToken
|
accessToken: accessToken
|
||||||
|
},
|
||||||
|
responseType: "blob"
|
||||||
|
};
|
||||||
|
if (resBlob != "blob") {
|
||||||
|
delete data.responseType;
|
||||||
}
|
}
|
||||||
});
|
return service(data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export const postRequest = (url, params, headers) => {
|
export const postRequest = (url, params, headers) => {
|
||||||
let accessToken = getStore("accessToken");
|
let accessToken = getStore("accessToken");
|
||||||
return service({
|
return service({
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -26,6 +26,10 @@ export const getSellerFlow = (id, params) => {
|
||||||
export const reconciliation = (id, params) => {
|
export const reconciliation = (id, params) => {
|
||||||
return putRequest(`/order/bill/check/${id}/`, params)
|
return putRequest(`/order/bill/check/${id}/`, params)
|
||||||
}
|
}
|
||||||
|
//根据id获取店铺信息
|
||||||
|
export const downloadBill = (id) => {
|
||||||
|
return getRequest(`/order/bill/downLoad/${id}`, {}, 'blob')
|
||||||
|
}
|
||||||
|
|
||||||
// 获取商家分销订单流水分页
|
// 获取商家分销订单流水分页
|
||||||
export const getDistributionFlow = (id, params) => {
|
export const getDistributionFlow = (id, params) => {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue