From 925a398654af2d28a55e97dfd45ecde9117ba913 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Tue, 6 Aug 2024 16:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=AF=E5=BE=AE=EF=BC=9A=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=20=E4=BB=8E=E5=BA=93=E5=AD=98=E7=8A=B6=E6=80=81=E5=92=8C?= =?UTF-8?q?=E5=88=B0=E5=BA=93=E5=AD=98=E7=8A=B6=E6=80=81=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 --- .../inventorychange/inventorychangeRequestMain/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue index 3fd65259a..945297a7d 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue @@ -445,6 +445,11 @@ const submitForm = async (formType, submitData) => { if(data.masterId){ data.id = data.masterId } + let findInventoryStatus = tableData.value.find(item=>item.fromInventoryStatus&&item.toInventoryStatus&&item.fromInventoryStatus==item.toInventoryStatus) + if(findInventoryStatus){ + message.warning('从库存状态和到库存状态不能相同') + return + } data.subList = tableData.value // 拼接子表数据参数 const duplicateItems = tableData.value.filter((item, index) => { return tableData.value.findIndex((el) => el.itemCode === item.itemCode) !== index;