Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
5a776636
Commit
5a776636
authored
Apr 12, 2022
by
lxd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改下载文件名称
parent
56f814d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
index.jsx
src/pages/PaymentMange/index.jsx
+4
-4
index.jsx
src/pages/ReconciliationQuery/index.jsx
+1
-1
No files found.
src/pages/PaymentMange/index.jsx
View file @
5a776636
...
@@ -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
);
};
};
...
...
src/pages/ReconciliationQuery/index.jsx
View file @
5a776636
...
@@ -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
([]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment