From dd0ad2b34d5ad6c6a0d82dcee68dff3cd5561468 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Sat, 8 Nov 2025 15:29:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CustomerManagement.vue | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/components/CustomerManagement.vue b/components/CustomerManagement.vue index c501460..85e6ab7 100644 --- a/components/CustomerManagement.vue +++ b/components/CustomerManagement.vue @@ -266,12 +266,33 @@ const handleCall = (customer) => { // 处理更多 const handleMore = (customer) => { console.log('更多操作:', customer); - // 可以显示操作菜单 + // 显示操作菜单 uni.showActionSheet({ itemList: ['编辑客户', '删除客户', '查看详情'], success: (res) => { - console.log('选择了第' + (res.tapIndex + 1) + '个选项'); - // 根据选择执行相应操作 + if (res.tapIndex === 0) { + // 编辑客户 + uni.navigateTo({ + url: `/pages/customer/edit/index?id=${customer.id}` + }); + } else if (res.tapIndex === 1) { + // 删除客户 + uni.showModal({ + title: '确认删除', + content: `确定要删除客户"${customer.name}"吗?`, + success: (modalRes) => { + if (modalRes.confirm) { + // TODO: 实现删除客户API调用 + uni.$uv.toast('删除功能待实现'); + } + } + }); + } else if (res.tapIndex === 2) { + // 查看详情 + uni.navigateTo({ + url: `/pages/customer/detail/index?id=${customer.id}` + }); + } } }); };