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
0335b83e
Commit
0335b83e
authored
Apr 20, 2022
by
lxd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修复问
parent
e43e1931
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
11 deletions
+56
-11
index.jsx
src/pages/PaymentMange/index.jsx
+3
-11
index.jsx
src/pages/ReconciliationQuery/index.jsx
+26
-0
index.jsx
src/pages/SettlementSheet/index.jsx
+27
-0
No files found.
src/pages/PaymentMange/index.jsx
View file @
0335b83e
...
...
@@ -25,7 +25,6 @@ const PaymentMange = () => {
const
[
loading
,
setloading
]
=
useState
(
false
);
const
[
status
,
setstatus
]
=
useState
(
1
);
const
[
pages
,
setpages
]
=
useState
({});
const
[
rest
,
setrest
]
=
useState
(
1
);
const
[
toExamineModalVisibel
,
setToExamineModalVisibel
]
=
useState
(
false
);
const
reload
=
()
=>
{
...
...
@@ -133,8 +132,8 @@ const PaymentMange = () => {
onClick=
{
()
=>
{
// eslint-disable-next-line no-unused-expressions
form
?.
resetFields
();
setrest
(
2
);
reload
();
// eslint-disable-next-line no-unused-expressions
form
?.
submit
();
}
}
>
{
resetText
}
...
...
@@ -161,14 +160,7 @@ const PaymentMange = () => {
request=
{
params
=>
{
const
{
current
,
pageSize
}
=
params
;
setpages
({
current
,
pageSize
});
let
param
=
{};
if
(
rest
===
2
)
{
param
=
{
current
,
pageSize
};
}
else
{
param
=
params
;
}
setrest
(
1
);
return
query
({
...
param
});
return
query
({
...
params
});
}
}
columns=
{
columns
(
res
,
pages
)
}
rowKey=
{
r
=>
r
.
id
}
...
...
src/pages/ReconciliationQuery/index.jsx
View file @
0335b83e
...
...
@@ -103,6 +103,31 @@ const ReconciliationQuery = () => {
selectedRowKeys
,
onChange
:
onSelectChange
,
};
const
searchRender
=
({
searchText
,
resetText
},
{
form
})
=>
[
<
Button
key=
"search"
type=
"primary"
style=
{
{
marginRight
:
'
10px
'
}
}
onClick=
{
()
=>
{
// eslint-disable-next-line no-unused-expressions
form
?.
submit
();
}
}
>
{
searchText
}
</
Button
>,
<
Button
key=
"rest"
style=
{
{
marginRight
:
'
10px
'
}
}
onClick=
{
()
=>
{
// eslint-disable-next-line no-unused-expressions
form
?.
resetFields
();
// eslint-disable-next-line no-unused-expressions
form
?.
submit
();
}
}
>
{
resetText
}
</
Button
>,
];
return
(
<
Spin
tip=
"处理中..."
spinning=
{
loading
}
delay=
{
100
}
>
...
...
@@ -118,6 +143,7 @@ const ReconciliationQuery = () => {
rowKey=
{
r
=>
r
.
id
}
search=
{
{
collapsed
:
false
,
optionRender
:
searchRender
,
}
}
rowSelection=
{
rowSelection
}
bordered
...
...
src/pages/SettlementSheet/index.jsx
View file @
0335b83e
...
...
@@ -109,6 +109,32 @@ const SettlementSheet = () => {
disabled
:
!
(
record
.
settleState
===
1
&&
!
record
.
payBatchNo
),
// Column configuration not to be checked
}),
};
const
searchRender
=
({
searchText
,
resetText
},
{
form
})
=>
[
<
Button
key=
"search"
type=
"primary"
style=
{
{
marginRight
:
'
10px
'
}
}
onClick=
{
()
=>
{
// eslint-disable-next-line no-unused-expressions
form
?.
submit
();
}
}
>
{
searchText
}
</
Button
>,
<
Button
key=
"rest"
style=
{
{
marginRight
:
'
10px
'
}
}
onClick=
{
()
=>
{
// eslint-disable-next-line no-unused-expressions
form
?.
resetFields
();
// eslint-disable-next-line no-unused-expressions
form
?.
submit
();
}
}
>
{
resetText
}
</
Button
>,
];
return
(
<
Spin
tip=
"处理中..."
spinning=
{
loading
}
delay=
{
100
}
>
<
PageHeaderWrapper
>
...
...
@@ -123,6 +149,7 @@ const SettlementSheet = () => {
rowKey=
{
r
=>
r
.
settleBatchNo
}
search=
{
{
collapsed
:
false
,
optionRender
:
searchRender
,
}
}
rowSelection=
{
rowSelection
}
bordered
...
...
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