|
|
@ -176,12 +176,13 @@ const getDefaultPackUnit = async (packUnitList)=>{ |
|
|
|
list:packUnitList |
|
|
|
}) |
|
|
|
console.log('res',res) |
|
|
|
if(res&&res.list.length>0){ |
|
|
|
if(res&&res.length>0){ |
|
|
|
tableData.value.forEach(item=>{ |
|
|
|
if(!item['packUnit']){ |
|
|
|
let findItem = res.list.find(item1=>item1.itemCode == item.itemCode) |
|
|
|
let findItem = res.find(item1=>item1.itemCode == item.itemCode) |
|
|
|
if(findItem){ |
|
|
|
item['packUnit'] = findItem['packUnit'] |
|
|
|
item['packQty'] = findItem['packQty'] |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|