Commit 4e5e2a47 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:

parent 916006d4
......@@ -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){
......
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment