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
03c49b94
Commit
03c49b94
authored
Mar 23, 2022
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix0318' into 'v2-220318'
fix: 处理商品编辑情况下修改货品无法同步的问题 See merge request linkseeks-design/pro-platform!15
parents
5d2f14bb
bec1f924
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
selectGoodsForm.tsx
...es/commodity/products/addProductsItem/selectGoodsForm.tsx
+3
-1
No files found.
src/pages/commodity/products/addProductsItem/selectGoodsForm.tsx
View file @
03c49b94
...
...
@@ -24,7 +24,7 @@ const SelectGoodsForm: React.FC<{}> = (props) => {
const
[
selectGoodsRow
,
setSelectGoodsRow
]
=
useState
<
GetProductGoodsGetGoodsListResponseDetail
[]
>
([])
// 模态框选择的行数据
const
[
selectedGoodsRowKeys
,
setSelectedGoodsRowKeys
]
=
useState
<
Array
<
number
>>
([])
const
{
ProductStore
}
=
store
const
{
productInfoByEdit
,
selectCategoryId
,
selectBrandId
}
=
ProductStore
const
{
productInfoByEdit
,
selectCategoryId
,
selectBrandId
,
setIsRecombination
}
=
ProductStore
useEffect
(()
=>
{
// 品类 品牌变动重新渲染货品表格 清空选择 清空store
...
...
@@ -107,6 +107,7 @@ const SelectGoodsForm: React.FC<{}> = (props) => {
ProductStore
.
setSelectedGoods
([])
setIsSelectGoods
(
value
.
target
.
checked
)
setIsChecked
(
value
.
target
.
checked
)
setIsRecombination
(
true
)
}
const
rowSelection
=
{
...
...
@@ -115,6 +116,7 @@ const SelectGoodsForm: React.FC<{}> = (props) => {
ProductStore
.
setSelectedGoods
(
selectedRows
)
setSelectGoodsRow
(
selectedRows
);
setSelectedGoodsRowKeys
(
selectedRowKeys
);
setIsRecombination
(
true
)
}
}
...
...
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