diff --git a/src/views/wms/issueManage/issue/issueRequestMain/index.vue b/src/views/wms/issueManage/issue/issueRequestMain/index.vue index d32b0d392..0a61065d8 100644 --- a/src/views/wms/issueManage/issue/issueRequestMain/index.vue +++ b/src/views/wms/issueManage/issue/issueRequestMain/index.vue @@ -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'] } } })