Browse Source

HL-5932 发料申请默认包装规格修改

hella_online_20240913
陈薪名 2 months ago
parent
commit
d1805dd94d
  1. 5
      src/views/wms/issueManage/issue/issueRequestMain/index.vue

5
src/views/wms/issueManage/issue/issueRequestMain/index.vue

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

Loading…
Cancel
Save