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
linweijiong
jinfa-platform
Commits
6cdba9dd
Commit
6cdba9dd
authored
Nov 10, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理不选货品的商品编辑时候显示异常
parent
4cfd3adc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
addProducts.tsx
src/pages/commodity/products/addProducts.tsx
+1
-1
No files found.
src/pages/commodity/products/addProducts.tsx
View file @
6cdba9dd
...
@@ -94,7 +94,7 @@ const AddProducts: React.FC<{}> = (props) => {
...
@@ -94,7 +94,7 @@ const AddProducts: React.FC<{}> = (props) => {
// 预先设置选择货品
// 预先设置选择货品
let
unitPicList
=
data
.
unitPriceAndPicList
.
map
(
item
=>
item
.
goods
)
let
unitPicList
=
data
.
unitPriceAndPicList
.
map
(
item
=>
item
.
goods
)
let
selectGoods
=
Object
.
values
(
unitPicList
.
reduce
((
item
,
next
)
=>
{
let
selectGoods
=
Object
.
values
(
unitPicList
.
reduce
((
item
,
next
)
=>
{
item
[
next
.
id
]
=
next
;
item
[
next
?
.
id
]
=
next
;
return
item
return
item
},{}))
},{}))
setSelectedGoods
(
selectGoods
)
setSelectedGoods
(
selectGoods
)
...
...
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