|
@@ -241,7 +241,7 @@ function getList(item: PageInfo) {
|
|
|
//导出
|
|
//导出
|
|
|
const downloadFile = async () => {
|
|
const downloadFile = async () => {
|
|
|
let query = { ...queryFormRes.value };
|
|
let query = { ...queryFormRes.value };
|
|
|
- const { data, msg } = await api.manageApi.feeAuditSummaryToTask({
|
|
|
|
|
|
|
+ api.manageApi.feeAuditSummaryToTask({
|
|
|
pageNo: pageInfo.value.pageNum,
|
|
pageNo: pageInfo.value.pageNum,
|
|
|
pageSize: pageInfo.value.pageSize,
|
|
pageSize: pageInfo.value.pageSize,
|
|
|
routerKey: routerKey.value,
|
|
routerKey: routerKey.value,
|
|
@@ -250,12 +250,22 @@ const downloadFile = async () => {
|
|
|
? globalSortKey.value + " " + globalSortOrder.value
|
|
? globalSortKey.value + " " + globalSortOrder.value
|
|
|
: "",
|
|
: "",
|
|
|
...query,
|
|
...query,
|
|
|
- });
|
|
|
|
|
- ElMessage({
|
|
|
|
|
- message: msg,
|
|
|
|
|
- type: "success",
|
|
|
|
|
- });
|
|
|
|
|
- userStore.count++;
|
|
|
|
|
|
|
+ }).then((res: any) => {
|
|
|
|
|
+ const blob = new Blob([res], { type: 'application/vnd.ms-excel' });
|
|
|
|
|
+ const fileName = '订单审核汇总报表' + new Date().getTime() + '.xlsx';
|
|
|
|
|
+ if ('download' in document.createElement('a')) {
|
|
|
|
|
+ const elink = document.createElement('a');
|
|
|
|
|
+ elink.download = fileName;
|
|
|
|
|
+ elink.style.display = 'none';
|
|
|
|
|
+ elink.href = URL.createObjectURL(blob);
|
|
|
|
|
+ document.body.appendChild(elink);
|
|
|
|
|
+ elink.click();
|
|
|
|
|
+ URL.revokeObjectURL(elink.href);
|
|
|
|
|
+ document.body.removeChild(elink);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ navigator.msSaveBlob(blob, fileName);
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const agreementEdit = (id) => {
|
|
const agreementEdit = (id) => {
|