|
|
@ -384,8 +384,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
nextTick(async () => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
if(formField == 'itemCode'){ |
|
|
|
|
|
|
|
const fromLocationCode =formRef.formModel.fromLocationCode//主数据选择的从库位代码 |
|
|
|
const toLocationCode =formRef.formModel.toLocationCode//主数据选择的到库位代码 |
|
|
|
if(toLocationCode==''){ |
|
|
|
message.warning('到库位代码不能为空'); |
|
|
|
return |
|
|
|
} |
|
|
|
val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']&&item1['fromBatch']==item['batch']&&item1['fromPackingNumber']==item['packingNumber']&&item1['origin_fromLocationCode']==item['locationCode']&&item1['fromInventoryStatus']==item['inventoryStatus'])) |
|
|
|
if(val.length==0) return |
|
|
|
val.forEach(async item=>{ |
|
|
|