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
5920501f
Commit
5920501f
authored
Apr 13, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查看附件按钮状态
parent
59abf309
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
index.jsx
src/pages/settleManage/index.jsx
+11
-3
No files found.
src/pages/settleManage/index.jsx
View file @
5920501f
import
React
,
{
useState
,
useRef
}
from
'
react
'
;
import
ProTable
from
'
@ant-design/pro-table
'
;
import
{
Input
,
Button
,
Popconfirm
,
N
otification
}
from
'
antd
'
;
import
{
Input
,
Button
,
Popconfirm
,
n
otification
}
from
'
antd
'
;
import
{
PageHeaderWrapper
}
from
'
@ant-design/pro-layout
'
;
import
{
actionStatus
,
settleStatus
}
from
'
./data
'
;
import
style
from
'
./style.less
'
;
...
...
@@ -23,13 +23,17 @@ export default () => {
};
const
confirmText
=
'
您是否已确认结算金额是否正确?确认后无法撤回
'
;
const
confirmAction
=
async
(
r
,
isRefuse
)
=>
{
if
(
isRefuse
&&
!
refuse
)
{
notification
.
error
({
message
:
'
请输入拒绝原因
'
});
return
;
}
const
data
=
await
updateStatus
({
id
:
r
.
id
,
status
:
isRefuse
?
4
:
3
,
remarks
:
isRefuse
&&
refuse
,
});
if
(
data
.
businessCode
===
'
0000
'
)
{
N
otification
.
success
({
message
:
'
操作成功
'
});
n
otification
.
success
({
message
:
'
操作成功
'
});
reload
();
}
};
...
...
@@ -91,7 +95,11 @@ export default () => {
<
Button
type=
"primary"
onClick=
{
()
=>
downDetail
(
r
)
}
className=
"mr20"
>
下载明细
</
Button
>
<
Button
type=
"primary"
onClick=
{
()
=>
viewAccessory
(
r
)
}
>
<
Button
type=
"primary"
onClick=
{
()
=>
viewAccessory
(
r
)
}
disabled=
{
r
.
settleStatus
===
2
||
(
r
.
settleStatus
===
6
&&
!
r
.
isUploadDoc
)
}
>
查看附件
</
Button
>
</
div
>
...
...
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