Commit 81dcc4b2 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix

parent 9d82081a
......@@ -199,11 +199,11 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
}else if(history.location.query?.id){ // 此时没有货品并且处于编辑状态 取接口返回的数据
let _goods: any[] = Object.values(productInfoByEdit.unitPriceAndPicList.map(_ => _.goods))
if(_goods.indexOf(null)===-1){
let goodsInApi : any = _goods.reduce((item, next)=>{
let goodsInApi : any = Object.values(_goods).reduce((item, next)=>{
item[next.id] = next
return item
},{})
_col.push({
title: '对应货品',
dataIndex: '对应货品',
......
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