From 19a4a2eaca583ff3546a7518485589b89c4c8cc2 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Thu, 20 Mar 2025 14:11:34 +0800 Subject: [PATCH] FWHL-306 --- .../onlinesettlement/settlementConfiguration/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/wms/issueManage/onlinesettlement/settlementConfiguration/index.vue b/src/views/wms/issueManage/onlinesettlement/settlementConfiguration/index.vue index 7d4c08246..75c01879e 100644 --- a/src/views/wms/issueManage/onlinesettlement/settlementConfiguration/index.vue +++ b/src/views/wms/issueManage/onlinesettlement/settlementConfiguration/index.vue @@ -236,10 +236,16 @@ const handleAddTable = (type)=>{ const handleDeleteTable = (item, index, type) => { if(type == 'from'){ // 来源 - tableDataFrom.value.splice(index, 1) + let itemIndex = tableDataFrom.value.indexOf(item) + if(itemIndex>-1){ + tableDataFrom.value.splice(itemIndex, 1) + } }else { // 目标 - tableDataTo.value.splice(index, 1) + let itemIndex = tableDataTo.value.indexOf(item) + if(itemIndex>-1){ + tableDataTo.value.splice(itemIndex, 1) + } } } // 批量删除