From 6e8d6b1c0d0950fdc6340c88b9345b8b0b6e9dc9 Mon Sep 17 00:00:00 2001 From: gxwebsoft <170083662@qq.com> Date: Tue, 10 Mar 2026 11:40:02 +0800 Subject: [PATCH] =?UTF-8?q?```=20fix(dealer):=20=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E9=87=8D=E5=A4=8D=E6=8A=A5=E5=A4=87=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加报备人身份验证逻辑,避免跨报备人抢单续报 - 当发现相同房号已被其他报备人报备时直接拦截提交 - 显示相应提示信息告知用户房号已报备 - 防止不同报备人对同一客户信息进行重复操作 ``` --- src/dealer/customer/add.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/dealer/customer/add.tsx b/src/dealer/customer/add.tsx index 147faf4..f84c24c 100644 --- a/src/dealer/customer/add.tsx +++ b/src/dealer/customer/add.tsx @@ -367,6 +367,17 @@ const AddShopDealerApply = () => { }); if (existingCustomer) { + // 报备人不同:直接拦截(避免跨报备人“抢单/续报”) + const existingReporterId = Number(existingCustomer.userId); + if (Number.isFinite(existingReporterId) && existingReporterId > 0 && existingReporterId !== submitUserId) { + Taro.showToast({ + title: '请改房号,该房号信息已报备', + icon: 'none', + duration: 2500 + }); + return false; + } + // 已签约/已取消:直接提示已报备 if (existingCustomer.applyStatus && existingCustomer.applyStatus !== 10) { Taro.showToast({