Commit 5a776636 authored by lxd's avatar lxd

feat: 修改下载文件名称

parent 56f814d4
...@@ -32,13 +32,13 @@ const PaymentMange = () => { ...@@ -32,13 +32,13 @@ const PaymentMange = () => {
} }
}; };
// 下载账单 // 下载账单付款单明细
const exportDetail = async params => { const exportDetail = async params => {
setloading(true); setloading(true);
const data = await selfPaymentexportDetail(params); const data = await selfPaymentexportDetail(params);
if (data) { if (data) {
const blob = new Blob([data]); const blob = new Blob([data]);
saveAs(blob, `账单明细-${format(new Date(), 'yyyyMMddHHmmss')}.xlsx`); saveAs(blob, `账单付款单明细-${format(new Date(), 'yyyyMMddHHmmss')}.xlsx`);
} else { } else {
notification.error({ message: '下载失败' }); notification.error({ message: '下载失败' });
} }
...@@ -71,7 +71,7 @@ const PaymentMange = () => { ...@@ -71,7 +71,7 @@ const PaymentMange = () => {
setToExamineModalVisibel(true); setToExamineModalVisibel(true);
} }
}; };
// 0申请结算 1上传发票 2查看发票 3下载账单 // 0申请结算 1上传发票 2查看发票 3下载账单付款单明细
const edit = async (status, { id }) => { const edit = async (status, { id }) => {
if (status === 0) { if (status === 0) {
showConfirm(id); showConfirm(id);
...@@ -100,7 +100,7 @@ const PaymentMange = () => { ...@@ -100,7 +100,7 @@ const PaymentMange = () => {
const data = await selfPaymentExport(params); const data = await selfPaymentExport(params);
if (!data) { if (!data) {
const blob = new Blob([data]); const blob = new Blob([data]);
saveAs(blob, `账单明细-${format(new Date(), 'yyyyMMddHHmmss')}.xlsx`); saveAs(blob, `付款单导出数据-${format(new Date(), 'yyyyMMddHHmmss')}.xlsx`);
} }
setloading(false); setloading(false);
}; };
......
...@@ -77,7 +77,7 @@ const ReconciliationQuery = () => { ...@@ -77,7 +77,7 @@ const ReconciliationQuery = () => {
setloading(true); setloading(true);
const data = await downloadSelfBillDetail(selectedRowKeys); const data = await downloadSelfBillDetail(selectedRowKeys);
const blob = new Blob([data]); const blob = new Blob([data]);
saveAs(blob, `账单明细-${format(new Date(), 'yyyyMMddHHmmss')}.xlsx`); saveAs(blob, `付款单导出数据-${format(new Date(), 'yyyyMMddHHmmss')}.xlsx`);
setloading(false); setloading(false);
setselectedRowKeys([]); setselectedRowKeys([]);
setselectedRows([]); setselectedRows([]);
......
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