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
f5c9e729
Commit
f5c9e729
authored
Jun 21, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改审核的选项
parent
e6789170
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
auditModal.jsx
src/pages/AfterSaleManage/components/auditModal.jsx
+26
-3
No files found.
src/pages/AfterSaleManage/components/auditModal.jsx
View file @
f5c9e729
...
...
@@ -33,6 +33,10 @@ const AuditModal = props => {
label
:
'
影响二次销售
'
,
value
:
2
,
},
{
label
:
'
其他
'
,
value
:
3
,
},
],
},
];
...
...
@@ -58,8 +62,9 @@ const AuditModal = props => {
labelCol
:
{
span
:
6
},
wrapperCol
:
{
span
:
16
},
};
const
isAgree
=
()
=>
getFieldValue
(
'
auditResult
'
)?.[
0
]
===
1
;
const
isRefuse
=
()
=>
getFieldValue
(
'
auditResult
'
)
&&
getFieldValue
(
'
auditResult
'
)[
0
]
!==
1
;
const
auditResult
=
getFieldValue
(
'
auditResult
'
);
const
isAgree
=
()
=>
auditResult
?.[
0
]
===
1
;
const
isRefuse
=
()
=>
auditResult
&&
auditResult
[
0
]
!==
1
;
return
(
<
Modal
title=
"售后操作确认"
...
...
@@ -117,7 +122,7 @@ const AuditModal = props => {
</
FormItem
>
</
div
>
)
}
{
isRefuse
()
&&
(
{
isRefuse
()
&&
auditResult
[
1
]
===
3
&&
(
<
FormItem
label=
"拒绝原因"
>
{
getFieldDecorator
(
'
refuseDesc
'
,
{
initialValue
:
formData
.
refuseDesc
,
...
...
@@ -136,6 +141,24 @@ const AuditModal = props => {
)
}
</
FormItem
>
)
}
{
isRefuse
()
&&
auditResult
[
1
]
!==
3
&&
(
<
FormItem
label=
"补充说明"
>
{
getFieldDecorator
(
'
refuseDesc
'
,
{
initialValue
:
formData
.
refuseDesc
,
rules
:
[
{
message
:
'
请填写补充说明!
'
,
},
],
})(
<
TextArea
placeholder=
"请填写补充说明"
allowClear
autoSize=
{
{
minRows
:
3
,
maxRows
:
6
}
}
/>,
)
}
</
FormItem
>
)
}
</
Form
>
</
Modal
>
);
...
...
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