From 312a0c6b6133e9c53ccedeec5d7166701f0b89f3 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Tue, 6 Aug 2024 16:21:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=AF=E5=BE=AE=EF=BC=9A=E4=BB=8E=E5=BA=93?= =?UTF-8?q?=E4=BD=8D=E5=92=8C=E5=88=B0=E5=BA=93=E4=BD=8D=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=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 d2f758aee..6ebd124ba 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 => {