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
黄庭坚
jinfa-platform
Commits
f4f6a588
Commit
f4f6a588
authored
Apr 14, 2022
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 当进行批量操作时批量操作完成后需要重新修改勾选数组
parent
4be7de76
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
1 deletion
+16
-1
index.tsx
src/pages/commodity/material/materialPendingAdd/index.tsx
+8
-1
index.tsx
...s/commodity/material/materialPendingExamChangeI/index.tsx
+2
-0
index.tsx
.../commodity/material/materialPendingExamChangeII/index.tsx
+2
-0
index.tsx
src/pages/commodity/material/materialPendingExamI/index.tsx
+2
-0
index.tsx
src/pages/commodity/material/materialPendingExamII/index.tsx
+2
-0
No files found.
src/pages/commodity/material/materialPendingAdd/index.tsx
View file @
f4f6a588
...
...
@@ -44,8 +44,11 @@ const MaterialQuery = () => {
}
setDeleteLoading
((
prev
)
=>
prev
.
concat
(
_row
.
id
))
try
{
const
{
selectedRowKeys
,
selectRow
}
=
selectRowFns
;
const
{
data
,
code
}
=
await
postProductGoodsDeleteBatchGoods
({
idList
:
[
_row
.
id
]
});
if
(
code
===
1000
)
{
selectRowFns
.
setSelectedRowKeys
(
selectedRowKeys
.
filter
((
_item
)
=>
_item
!==
_row
.
id
))
selectRowFns
.
setSelectRow
(
selectRow
.
filter
((
_item
)
=>
_item
.
id
!==
_row
.
id
))
formActions
.
submit
();
}
}
finally
{
...
...
@@ -86,8 +89,11 @@ const MaterialQuery = () => {
});
return
;
}
const
{
selectedRowKeys
,
selectRow
}
=
selectRowFns
;
const
{
data
,
code
}
=
await
postProductGoodsSubmit
({
id
:
_row
.
id
});
if
(
code
===
1000
)
{
selectRowFns
.
setSelectedRowKeys
(
selectedRowKeys
.
filter
((
_item
)
=>
_item
!==
_row
.
id
))
selectRowFns
.
setSelectRow
(
selectRow
.
filter
((
_item
)
=>
_item
.
id
!==
_row
.
id
))
formActions
.
submit
();
}
}
catch
(
e
)
{}
...
...
@@ -211,13 +217,14 @@ const MaterialQuery = () => {
try
{
const
{
data
,
code
}
=
await
postProductGoodsDeleteBatchGoods
({
idList
:
selectedRowKeys
})
if
(
code
===
1000
)
{
selectRowFns
.
setSelectedRowKeys
([])
selectRowFns
.
setSelectRow
([])
ref
.
current
.
reload
()
}
}
catch
(
e
)
{}
finally
{
setLoading
(
false
);
}
}
const
handleSearch
=
(
values
:
SearchParams
)
=>
{
...
...
src/pages/commodity/material/materialPendingExamChangeI/index.tsx
View file @
f4f6a588
...
...
@@ -76,6 +76,8 @@ const MaterialQuery = () => {
try
{
const
{
data
,
code
}
=
await
postProductGoodsGoodsExamineChangeBatch1
({
idList
:
selectedRowKeys
})
if
(
code
===
1000
)
{
selectRowFns
.
setSelectedRowKeys
([])
selectRowFns
.
setSelectRow
([])
ref
.
current
.
reload
()
}
}
catch
(
e
)
{}
...
...
src/pages/commodity/material/materialPendingExamChangeII/index.tsx
View file @
f4f6a588
...
...
@@ -80,6 +80,8 @@ const MaterialQuery = () => {
try
{
const
{
data
,
code
}
=
await
postProductGoodsGoodsExamineChangeBatch2
({
idList
:
selectedRowKeys
})
if
(
code
===
1000
)
{
selectRowFns
.
setSelectedRowKeys
([])
selectRowFns
.
setSelectRow
([])
ref
.
current
.
reload
()
}
}
catch
(
e
)
{}
...
...
src/pages/commodity/material/materialPendingExamI/index.tsx
View file @
f4f6a588
...
...
@@ -77,6 +77,8 @@ const MaterialQuery = () => {
try
{
const
{
data
,
code
}
=
await
postProductGoodsGoodsExamineBatch1
({
idList
:
selectedRowKeys
})
if
(
code
===
1000
)
{
selectRowFns
.
setSelectedRowKeys
([])
selectRowFns
.
setSelectRow
([])
ref
.
current
.
reload
()
}
}
catch
(
e
)
{}
...
...
src/pages/commodity/material/materialPendingExamII/index.tsx
View file @
f4f6a588
...
...
@@ -76,6 +76,8 @@ const MaterialQuery = () => {
try
{
const
{
data
,
code
}
=
await
postProductGoodsGoodsExamineBatch2
({
idList
:
selectedRowKeys
})
if
(
code
===
1000
)
{
selectRowFns
.
setSelectedRowKeys
([])
selectRowFns
.
setSelectRow
([])
ref
.
current
.
reload
()
}
}
catch
(
e
)
{}
...
...
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