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
4e5e2a47
Commit
4e5e2a47
authored
Sep 15, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
parent
916006d4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
addProducts.tsx
src/pages/commodity/products/addProducts.tsx
+1
-1
productAttributeForm.tsx
...mmodity/products/addProductsItem/productAttributeForm.tsx
+3
-3
No files found.
src/pages/commodity/products/addProducts.tsx
View file @
4e5e2a47
...
...
@@ -108,7 +108,7 @@ const AddProducts: React.FC<{}> = (props) => {
_itme
.
customerAttribute
=
{
id
:
_itme
.
customerAttributeId
}
delete
_itme
.
attributeName
delete
_itme
.
isPrice
delete
_itme
.
customerAttributeId
// delete _itme.customerAttributeId
})
let
_bacsicForm
=
{...
values
[
0
]}
if
(
values
.
length
>
0
){
...
...
src/pages/commodity/products/addProductsItem/productAttributeForm.tsx
View file @
4e5e2a47
...
...
@@ -129,8 +129,8 @@ const ProductAttributeForm: React.FC<Iprops> = (props) => {
// 遍历 排空
let
resultParams
=
_resultParams
.
filter
((
_item
:
any
)
=>
_item
.
customerAttributeValueList
.
length
!=
0
)
//
console.log(resultParams,'resultParams') // 最终传输数据
setProductSelectAttribute
(
resultParams
)
//......存在数据冗余 导致价格列表属性出错
console
.
log
(
resultParams
,
'resultParams'
)
// 最终传输数据
setProductSelectAttribute
(
resultParams
)
}
/* 编辑情况下,利用商品信息中的属性值转换为结果参数,用于后续表格生成 */
...
...
@@ -144,7 +144,7 @@ const ProductAttributeForm: React.FC<Iprops> = (props) => {
isPrice
:
attributeLists
.
filter
(
_item
=>
_item
.
name
===
item
.
customerAttribute
.
name
)[
0
]?.
isPrice
}
})
//
console.log(_selectAttributeByEdit, '__selectAttributeByEdit__', attributeLists)
console
.
log
(
_selectAttributeByEdit
,
'__selectAttributeByEdit__'
,
attributeLists
)
paramsArray
=
_selectAttributeByEdit
setProductSelectAttribute
(
_selectAttributeByEdit
)
}
...
...
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