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
21851882
Commit
21851882
authored
Apr 19, 2022
by
lxd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 问题修复
parent
d15e1a3e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
53 deletions
+11
-53
data.js
src/pages/PaymentMange/data.js
+1
-1
index.jsx
src/pages/PaymentMange/index.jsx
+10
-1
index.jsx
src/pages/ReconciliationQuery/index.jsx
+0
-25
index.jsx
src/pages/SettlementSheet/index.jsx
+0
-26
No files found.
src/pages/PaymentMange/data.js
View file @
21851882
...
...
@@ -148,7 +148,7 @@ export function columns(res, pages) {
<
Button
type
=
"
primary
"
disabled
=
{
!
(
row
.
blueInvoiceState
===
1
||
row
.
blueInvoiceState
===
3
)
&&
row
.
payState
===
3
!
(
(
row
.
blueInvoiceState
===
1
||
row
.
blueInvoiceState
===
3
)
&&
row
.
payState
===
3
)
}
className
=
{
styles
.
button
}
onClick
=
{()
=>
res
.
edit
(
1
,
row
)}
...
...
src/pages/PaymentMange/index.jsx
View file @
21851882
...
...
@@ -25,6 +25,7 @@ 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
=
()
=>
{
...
...
@@ -132,6 +133,7 @@ const PaymentMange = () => {
onClick=
{
()
=>
{
// eslint-disable-next-line no-unused-expressions
form
?.
resetFields
();
setrest
(
2
);
reload
();
}
}
>
...
...
@@ -159,7 +161,14 @@ const PaymentMange = () => {
request=
{
params
=>
{
const
{
current
,
pageSize
}
=
params
;
setpages
({
current
,
pageSize
});
return
query
({
...
params
});
let
param
=
{};
if
(
rest
===
2
)
{
param
=
{
current
,
pageSize
};
}
else
{
param
=
params
;
}
setrest
(
1
);
return
query
({
...
param
});
}
}
columns=
{
columns
(
res
,
pages
)
}
rowKey=
{
r
=>
r
.
id
}
...
...
src/pages/ReconciliationQuery/index.jsx
View file @
21851882
...
...
@@ -104,30 +104,6 @@ const ReconciliationQuery = () => {
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
();
reload
();
}
}
>
{
resetText
}
</
Button
>,
];
return
(
<
Spin
tip=
"处理中..."
spinning=
{
loading
}
delay=
{
100
}
>
<
PageHeaderWrapper
>
...
...
@@ -142,7 +118,6 @@ const ReconciliationQuery = () => {
rowKey=
{
r
=>
r
.
id
}
search=
{
{
collapsed
:
false
,
optionRender
:
searchRender
,
}
}
rowSelection=
{
rowSelection
}
bordered
...
...
src/pages/SettlementSheet/index.jsx
View file @
21851882
...
...
@@ -109,31 +109,6 @@ 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
();
reload
();
}
}
>
{
resetText
}
</
Button
>,
];
return
(
<
Spin
tip=
"处理中..."
spinning=
{
loading
}
delay=
{
100
}
>
<
PageHeaderWrapper
>
...
...
@@ -148,7 +123,6 @@ 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