diff --git a/src/api/shop/shopDealerApply/model/index.ts b/src/api/shop/shopDealerApply/model/index.ts index 2860c66..5e89cf7 100644 --- a/src/api/shop/shopDealerApply/model/index.ts +++ b/src/api/shop/shopDealerApply/model/index.ts @@ -45,6 +45,7 @@ export interface ShopDealerApply { */ export interface ShopDealerApplyParam extends PageParam { applyId?: number; + type?: number; mobile?: string; userId?: number; keywords?: string; diff --git a/src/dealer/customer/index.tsx b/src/dealer/customer/index.tsx index 22a7bfc..da95cd3 100644 --- a/src/dealer/customer/index.tsx +++ b/src/dealer/customer/index.tsx @@ -36,7 +36,9 @@ const CustomerIndex = () => { setLoading(true); try { // 构建API参数,根据状态筛选 - const params: any = {}; + const params: any = { + type: 0 + }; const applyStatus = mapCustomerStatusToApplyStatus(statusFilter || activeTab); if (applyStatus !== undefined) { params.applyStatus = applyStatus; @@ -91,10 +93,10 @@ const CustomerIndex = () => { try { // 并行获取各状态的数量 const [allRes, pendingRes, signedRes, cancelledRes] = await Promise.all([ - pageShopDealerApply({}), // 全部 - pageShopDealerApply({applyStatus: 10}), // 跟进中 - pageShopDealerApply({applyStatus: 20}), // 已签约 - pageShopDealerApply({applyStatus: 30}) // 已取消 + pageShopDealerApply({type:0}), // 全部 + pageShopDealerApply({applyStatus: 10,type:0}), // 跟进中 + pageShopDealerApply({applyStatus: 20,type:0}), // 已签约 + pageShopDealerApply({applyStatus: 30,type:0}) // 已取消 ]); setStatusCounts({ diff --git a/src/dealer/customer/trading.tsx b/src/dealer/customer/trading.tsx index 243fc75..7dee048 100644 --- a/src/dealer/customer/trading.tsx +++ b/src/dealer/customer/trading.tsx @@ -23,7 +23,9 @@ const CustomerTrading = () => { setLoading(true); try { // 构建API参数,根据状态筛选 - const params: any = {}; + const params: any = { + type: 3 + }; const res = await pageShopDealerApply(params); if (res?.list) {