Commit 0836f582 authored by yanglilong's avatar yanglilong

'修改'

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