Commit ad6307e9 authored by FE-安焕焕's avatar FE-安焕焕 👣

修改下载问题

parent c83d3ab8
......@@ -25,14 +25,14 @@ const TableList = props => {
const actionRef = useRef();
const renderContent = (record, key) =>
record.mchOrderSkuVoList.map((item, index) => (
<td
<p
className={[
'tableContent',
index < record?.mchOrderSkuVoList?.length - 1 ? 'border' : null,
].join(' ')}
>
{item[key]}
</td>
</p>
));
const columns = [
{
......
......@@ -61,11 +61,15 @@ export async function uploadFile(file) {
return data;
}
export function downTemplate() {
window.location.href = `${config.kdspApi}/api/kdsp/op/mch-order/import-mould-download`;
window.location.href =
'https://kdspstatic.q-gp.com/%E8%AE%A2%E5%8D%95%E7%89%A9%E6%B5%81%E4%BF%A1%E6%81%AF%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF-v1.xlsx';
}
export async function downOrder(params) {
const data = await request.post('/api/kdsp/op/mch-order/order-export', {
data: params,
data: stringify(params),
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
prefix: config.kdspApi,
responseType: 'arrayBuffer',
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment