Commit 0836f582 authored by yanglilong's avatar yanglilong

'修改'

parent c0e1c161
......@@ -51,7 +51,7 @@ const RECEIPTSETTLEMENT= function (data) {
};
// 寄送关联账单导出
const SENDRECEIPTLISTEXPORT= function (data) {
return req.post(apis.sendReceipListExport, data);
return req.post(apis.sendReceipListExport, data, { responseType: "blob" });
};
......
......@@ -63,9 +63,9 @@ service.interceptors.response.use(
const { config } = response
if (config && config.responseType === 'blob') {
resolve(response)
return true
}else{
resolve(response.data);
}
resolve(response.data);
}
}
}).catch(() => {
......
......@@ -350,7 +350,7 @@ export default {
sendBatchNo: this.sendBatchNo
})
.then(res => {
let blob = new Blob([res.content], {
let blob = new Blob([res.data], {
type:"application/vnd.ms-excel;charset=utf-8"
});
let url=window.URL.createObjectURL(blob);
......
......@@ -326,7 +326,7 @@ export default {
eobNo: this.eobNo
})
.then(res => {
let blob = new Blob([res.content], {
let blob = new Blob([res.data], {
type:"application/vnd.ms-excel;charset=utf-8"
});
let url=window.URL.createObjectURL(blob);
......
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