Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
shenshaokai
jinfa-platform
Commits
b2704b26
Commit
b2704b26
authored
Mar 21, 2022
by
许佳敏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix0318' into 'v2-220318'
fix: 处理销售订单取消订单传参id异常 See merge request linkseeks-design/pro-platform!3
parents
6367416c
25748335
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
index.tsx
src/pages/transaction/saleOrder/index.tsx
+3
-1
No files found.
src/pages/transaction/saleOrder/index.tsx
View file @
b2704b26
...
...
@@ -72,6 +72,7 @@ const SaleOrder: React.FC<SaleOrderProps> = () => {
const
serversRoles
=
roles
.
filter
(
item
=>
item
[
'roleType'
]
===
MEMBER_ROLE_TYPE_SERVICE_CONSUMER
)
const
{
token
}
=
(
getAuth
()
||
{})
const
fetchParams
=
useRef
<
any
>
({})
const
cancelId
=
useRef
()
const
loadingTableData
=
(
params
)
=>
{
fetchParams
.
current
=
{...
params
}
...
...
@@ -81,7 +82,7 @@ const SaleOrder: React.FC<SaleOrderProps> = () => {
// 提交取消
const
handleSubmit
=
()
=>
{
destroyActions
.
submit
().
then
(
async
({
values
}:
any
)
=>
{
const
result
=
await
run
({
orderId
:
values
.
id
,
reason
:
values
.
cancelReason
})
const
result
=
await
run
({
orderId
:
values
.
id
||
cancelId
.
current
,
reason
:
values
.
cancelReason
})
if
(
result
.
code
===
1000
)
{
destroyActions
.
reset
()
destoryRef
.
current
.
setVisible
(
false
)
...
...
@@ -170,6 +171,7 @@ const SaleOrder: React.FC<SaleOrderProps> = () => {
const
handleCancel
=
(
r
)
=>
{
destoryRef
.
current
.
setVisible
(
true
)
destroyActions
.
setFieldValue
(
'id'
,
r
.
orderId
)
cancelId
.
current
=
r
.
orderId
}
const
handleSuspend
=
(
r
)
=>
{
...
...
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