From f28d969bb1d37d4024559c8ec7364ff2ef641566 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Fri, 18 Oct 2024 17:21:28 +0800 Subject: [PATCH] =?UTF-8?q?YT-436:=E9=80=89=E6=8B=A9=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E4=B9=8B=E5=89=8D=E5=BF=85=E9=A1=BB=E9=80=89=E6=8B=A9=E5=88=B0?= =?UTF-8?q?=E5=BA=93=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymove/inventorymoveRecordMainNew/index.vue | 5 +++++ 1 file changed, 5 insertions(+) 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=>{