|
|
|
@ -1816,15 +1816,15 @@ const initPageInfo = async (idsArr = []) => {
|
|
|
|
|
for (let index = 0; index < details.goodsList.length; index++) { |
|
|
|
|
const element = details.goodsList[index]; |
|
|
|
|
|
|
|
|
|
const { arrPrice } = element; |
|
|
|
|
if (arrPrice && arrPrice.length > 0) { |
|
|
|
|
const { arrPirce } = element; |
|
|
|
|
if (arrPirce && arrPirce.length > 0) { |
|
|
|
|
// 价格赋值 |
|
|
|
|
for (let i = 0; i < details.priceArr.length; i++) { |
|
|
|
|
const value = details.priceArr[i]; |
|
|
|
|
element[value.key] = 0; |
|
|
|
|
|
|
|
|
|
for (let index = 0; index < arrPrice.length; index++) { |
|
|
|
|
const item = arrPrice[index]; |
|
|
|
|
for (let index = 0; index < arrPirce.length; index++) { |
|
|
|
|
const item = arrPirce[index]; |
|
|
|
|
|
|
|
|
|
if (item.itemName === value.name) |
|
|
|
|
element[value.key] = isNumber(item.cost) ? Number(item.cost) : 0; |
|
|
|
|