refactor(dealer): 重构经销商申请页面

- 优化页面逻辑,支持查看和编辑现有申请- 调整表单字段,增加签约价格和签约时间- 修改审核状态显示文案
- 优化取消签约功能
-修复了一些小问题
This commit is contained in:
2025-09-03 12:47:57 +08:00
parent 70d539b186
commit 74690052c5
2 changed files with 29 additions and 29 deletions

View File

@@ -115,15 +115,20 @@ const CustomerIndex = () => {
updateShopDealerApply({
...customer,
applyStatus: 30
}).then(r => {
console.log(r)
}).then(() => {
Taro.showToast({
title: '取消成功',
icon: 'success'
});
fetchCustomerData().then();
fetchStatusCounts().then();
})
};
// 初始化数据
useEffect(() => {
fetchCustomerData();
fetchStatusCounts();
fetchCustomerData().then();
fetchStatusCounts().then();
}, [fetchCustomerData, fetchStatusCounts]);
// 当activeTab变化时重新获取数据
@@ -134,7 +139,7 @@ const CustomerIndex = () => {
// 渲染客户项
const renderCustomerItem = (customer: CustomerUser) => (
<View key={customer.userId} className="bg-white rounded-lg p-4 mb-3 shadow-sm">
<View className="flex items-center mb-3">
<View className="flex items-center mb-3" onClick={() => navTo(`/dealer/customer/add?id=${customer.applyId}`, true)}>
<View className="flex-1">
<View className="flex items-center justify-between mb-1">
<Text className="font-semibold text-gray-800 mr-2">