diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue index 4ca8b93bd..76641c3c3 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue @@ -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=>{