Commit dcd15d8e authored by 陈万宝's avatar 陈万宝

feat: 修改 显示数据问题

parent ac6fa35c
...@@ -494,7 +494,7 @@ const TakeawayGoodsInfo = forwardRef((props, ref) => { ...@@ -494,7 +494,7 @@ const TakeawayGoodsInfo = forwardRef((props, ref) => {
firstName = uniqueName[0] || ''; firstName = uniqueName[0] || '';
lastName = uniqueName?.slice(1).join(' ') || ''; lastName = uniqueName?.slice(1).join(' ') || '';
} }
return `${firstName} ${tempQuantity} ${tempUnit} ${lastName}`; return `${firstName} ${tempQuantity} ${tempUnit} ${lastName.replace('[object Object]', '')}`;
} }
}; };
const init = async () => { const init = async () => {
...@@ -611,7 +611,9 @@ const TakeawayGoodsInfo = forwardRef((props, ref) => { ...@@ -611,7 +611,9 @@ const TakeawayGoodsInfo = forwardRef((props, ref) => {
const lastName = specsNameList.slice(1)?.join(' '); const lastName = specsNameList.slice(1)?.join(' ');
// item.unique = item?.specs.map(itm => itm.specName).toString(); // item.unique = item?.specs.map(itm => itm.specName).toString();
// item.uniqueAll = item?.specs.map(itm => `${itm.specGroupName + itm.specName}`).toString(); // item.uniqueAll = item?.specs.map(itm => `${itm.specGroupName + itm.specName}`).toString();
item.unique = item?.specs.map(itm => `${itm.specGroupName + itm.specName}`).toString(); item.unique = item?.specs
.map(itm => `${itm.specGroupName + itm.specName}`)
.toString();
} }
return item; return item;
}); });
......
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