From 3a75b774abbbbc915aa46b4dbd995eedebc861eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=9B=BD?= <854933521@qq.com> Date: Tue, 5 Nov 2024 14:55:57 +0800 Subject: [PATCH] =?UTF-8?q?pages/issue/coms=20=E6=96=87=E4=BB=B6=E8=BF=81?= =?UTF-8?q?=E7=A7=BBVue2=E5=8D=87=E7=BA=A7Vue3=208/2-10/25?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/issue/coms/comScanIssuePack.vue | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/pages/issue/coms/comScanIssuePack.vue b/src/pages/issue/coms/comScanIssuePack.vue index 672f54fa..936e93f6 100644 --- a/src/pages/issue/coms/comScanIssuePack.vue +++ b/src/pages/issue/coms/comScanIssuePack.vue @@ -31,7 +31,7 @@ - + @@ -108,6 +108,8 @@ const comscan = ref() const balanceSelectRef = ref() const balanceQtyEditRef = ref() const toLocationAreaTypeList = ref([]) +const showItem = ref({}) +const receiptHint = ref(null) onMounted(() => { detailOptions.value = getDetailOption() scanOptions.value = getDetailEditRemoveOption() @@ -627,16 +629,13 @@ const expands = () => { // this.remove(item, index) // } // } -const swipeClick = (params, item) => { - const { text } = scanOptions.value[params[1]] - if (text == '详情') { - detail(item) - } else if (text == '编辑') { - edit(item) - } else if (text == '库位') { - showLocation(item) - } else if (text == '移除') { - remove(item) +const swipeClick = (e,item,index) => { + if (e.content.text == "详情") { + this.detail(item) + } else if (e.content.text == "编辑") { + this.edit(item) + } else if (e.content.text == "移除") { + this.remove(item, index) } } const edit = (item) => {