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
53033218
Commit
53033218
authored
Apr 11, 2022
by
lxd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 对账单
parent
4d1040b0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
data.js
src/pages/PaymentMange/data.js
+1
-1
index.jsx
src/pages/PaymentMange/index.jsx
+10
-4
No files found.
src/pages/PaymentMange/data.js
View file @
53033218
...
@@ -39,7 +39,7 @@ export function columns(res) {
...
@@ -39,7 +39,7 @@ export function columns(res) {
width
:
'
160px
'
,
width
:
'
160px
'
,
},
},
{
{
title
:
'
结算
单生成日期
'
,
title
:
'
付款
单生成日期
'
,
key
:
'
dateTimeRange
'
,
key
:
'
dateTimeRange
'
,
dataIndex
:
'
createdAtRange
'
,
dataIndex
:
'
createdAtRange
'
,
valueType
:
'
dateRange
'
,
valueType
:
'
dateRange
'
,
...
...
src/pages/PaymentMange/index.jsx
View file @
53033218
...
@@ -36,8 +36,12 @@ const PaymentMange = () => {
...
@@ -36,8 +36,12 @@ 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
)
{
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
{
notification
.
error
({
message
:
'
下载失败
'
});
}
setloading
(
false
);
setloading
(
false
);
};
};
// 申请结算
// 申请结算
...
@@ -94,8 +98,10 @@ const PaymentMange = () => {
...
@@ -94,8 +98,10 @@ const PaymentMange = () => {
const
params
=
formRef
.
current
.
getFieldsValue
();
const
params
=
formRef
.
current
.
getFieldsValue
();
setloading
(
true
);
setloading
(
true
);
const
data
=
await
selfPaymentExport
(
params
);
const
data
=
await
selfPaymentExport
(
params
);
if
(
data
.
businessCode
===
'
0000
'
)
{
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
);
};
};
...
...
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