```
fix(dealer): 解决客户重复报备问题 - 添加报备人身份验证逻辑,避免跨报备人抢单续报 - 当发现相同房号已被其他报备人报备时直接拦截提交 - 显示相应提示信息告知用户房号已报备 - 防止不同报备人对同一客户信息进行重复操作 ```
This commit is contained in:
@@ -367,6 +367,17 @@ const AddShopDealerApply = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (existingCustomer) {
|
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) {
|
if (existingCustomer.applyStatus && existingCustomer.applyStatus !== 10) {
|
||||||
Taro.showToast({
|
Taro.showToast({
|
||||||
|
|||||||
Reference in New Issue
Block a user