Commit d2e9d3e7 authored by sherlock's avatar sherlock

导出bug

parent 2431427f
......@@ -54,7 +54,7 @@ public class InputInvoiceImportController {
try {
response.addHeader("Content-Disposition", "attachment;filename="
+ UUID.randomUUID() + ".xls");
response.addHeader("x-file-name", fileName + ".xlsx");
response.addHeader("x-file-name", fileName + ".xls");
os = response.getOutputStream();
int count = getDownloadFilePath(paras, os, projectId);
......
......@@ -60,7 +60,7 @@ public class OutputInvoiceController {
try {
response.addHeader("Content-Disposition", "attachment;filename="
+ UUID.randomUUID() + ".xls");
response.addHeader("x-file-name", fileName + ".xlsx");
response.addHeader("x-file-name", fileName + ".xls");
os = response.getOutputStream();
int count = getDownloadFilePath(paras, projectId, os);
......
......@@ -529,7 +529,7 @@
SweetAlert.warning("没有数据可以下载");
return;
}
vatExportService.exportToExcel(data, status, headers, '进项发票信息.xlsx');
vatExportService.exportToExcel(data, status, headers, '进项发票信息.xls');
});
};
......
......@@ -465,7 +465,7 @@
SweetAlert.warning("没有数据可以下载");
return;
}
vatExportService.exportToExcel(data, status, headers, '销项发票信息.xlsx');
vatExportService.exportToExcel(data, status, headers, '销项发票信息.xls');
}).error(function () {
SweetAlert.error($translate.instant('PleaseContactAdministrator'));
});
......
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