新增门店订单与核销管理列表,对齐 Android 订单能力并完善账号级缓存。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -20,7 +20,7 @@ Main 模块负责登录后的主界面 Tab 容器,以及当前尚未迁移页
|
||||
- `statistics`:数据
|
||||
- `profile`:我的
|
||||
|
||||
`HomeRootView` 已接入真实的 `HomeView`,`OrdersRootView` 已接入真实的 `OrdersView`,`StatisticsRootView` 已接入真实的 `StatisticsView`,`ProfileRootView` 已接入真实的 `ProfileView`。
|
||||
`HomeRootView` 已接入真实的 `HomeView`,`OrdersRootView` 已按角色接入 `StoreOrderListView` 或 `StoreAdminOrderListView`,`StatisticsRootView` 已接入真实的 `StatisticsView`,`ProfileRootView` 已接入真实的 `ProfileView`。
|
||||
|
||||
## 导航流程
|
||||
|
||||
|
||||
@ -21,7 +21,17 @@ final class MainTabBadgeViewModel: ObservableObject {
|
||||
}
|
||||
|
||||
do {
|
||||
let result = try await api.writeOffList(scenicId: scenicId, storeId: storeId, page: 1, pageSize: 1)
|
||||
let result = try await api.writeOffList(
|
||||
scenicId: scenicId,
|
||||
storeId: storeId,
|
||||
page: 1,
|
||||
pageSize: 1,
|
||||
orderStatus: nil,
|
||||
orderVerifyStatus: nil,
|
||||
startTime: nil,
|
||||
endTime: nil,
|
||||
userPhone: nil
|
||||
)
|
||||
pendingWriteOffCount = min(result.total, 99)
|
||||
} catch {
|
||||
pendingWriteOffCount = nil
|
||||
|
||||
@ -14,10 +14,16 @@ struct HomeRootView: View {
|
||||
}
|
||||
}
|
||||
|
||||
/// 订单根视图,占位承载后续订单模块迁移内容。
|
||||
/// 订单根视图,按角色展示主订单列表或店长订单列表。
|
||||
struct OrdersRootView: View {
|
||||
@EnvironmentObject private var permissionContext: PermissionContext
|
||||
|
||||
var body: some View {
|
||||
OrdersView()
|
||||
if permissionContext.currentAppRole?.isStoreAdmin == true {
|
||||
StoreAdminOrderListView()
|
||||
} else {
|
||||
StoreOrderListView()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user