马远东 11 months ago
parent
commit
efaa024466
  1. 8
      src/views/distribution/inventory/CreateOrder.vue

8
src/views/distribution/inventory/CreateOrder.vue

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

Loading…
Cancel
Save