From b29d851c32adfcc809fff86b299d98f4f8c6f797 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Wed, 7 Aug 2024 13:16:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8E=E5=BA=93=E4=BD=8D=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=92=8C=E5=88=B0=E5=BA=93=E4=BD=8D=E4=BB=A3=E7=A0=81=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E7=9B=B8=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymove/inventorymoveRequestMain/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue index 88f278275..d7c1d4a8c 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue @@ -698,6 +698,11 @@ const submitForm = async (formType, submitData) => { if(data.masterId){ data.id = data.masterId } + let findLocation = tableData.value.find(item=>item.fromLocationCode&&item.toLocationCode&&item.fromLocationCode==item.toLocationCode) + if(findLocation){ + message.warning('从库位和到库位不能相同') + return + } data.subList = tableData.value // 拼接子表数据参数 let isExist = false tableData.value.forEach(item => {