feat(credit): 重构订单管理页面并优化公司模块功能

- 新增 company/add 和 company/edit 页面路由配置
- 移除 Banner.tsx 中的调试日志
- 从 find.tsx 中移除未使用的 total 状态变量
- 更新 credit/order/index.config.ts 页面标题为订单管理并添加自定义导航栏样式
- 从 credit/company/index.tsx 中移除内联添加客户的对话框相关代码
- 将添加客户按钮跳转到独立的 /credit/company/add 页面
- 为公司列表项添加编辑功能点击事件,可跳转至 /credit/company/edit?id=xx
- 优化信用订单页面结构,替换为新的订单管理界面
- 实现订单搜索、筛选、日期范围选择等功能
- 添加订单统计信息展示(总数、本金、利息)
- 实现模拟数据加载和分页功能
This commit is contained in:
2026-03-05 12:50:57 +08:00
parent 31098f889b
commit f4a1fab4cb
11 changed files with 1035 additions and 762 deletions

View File

@@ -56,7 +56,6 @@ const Find = () => {
const [storeList, setStoreList] = useState<ShopStoreView[]>([])
const [loading, setLoading] = useState(false)
const [hasMore, setHasMore] = useState(true)
const [total, setTotal] = useState(0)
const [userLngLat, setUserLngLat] = useState<LngLat | null>(null)
const pageRef = useRef(1)
@@ -86,7 +85,6 @@ const Find = () => {
latestListRef.current = []
setStoreList([])
setHasMore(true)
setTotal(0)
}
try {
@@ -112,7 +110,6 @@ const Find = () => {
setStoreList(nextList)
const count = typeof res?.count === 'number' ? res.count : nextList.length
setTotal(count)
setHasMore(nextList.length < count)
if (resList.length > 0) {