Files
xinlong-shop-taro/.workbuddy/memory/2025-07-17.md
赵忠林 48f8c4a343 fix(store): 修复门店订单管理页操作按钮与标签筛选问题
- 调整已关闭标签参数,移除待发货状态,避免混入错误订单
- 修改金额按钮仅在未付款状态下显示,确认收款后隐藏
- 确认完成按钮改为仅在已付款状态下显示,避免过早显示
- 优化订单操作按钮显示逻辑,确保按钮状态与订单支付状态一致
2026-07-17 01:26:31 +08:00

18 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 2025-07-17 工作日志
## 门店订单管理页修复pages/store/orders/index.tsx
三个问题修复:
1. **确认完成按钮过早显示**`getOrderActions` 中"确认完成"原来对所有可操作订单都显示,改为仅在 `order.payStatus === true`(已确认收款)后才显示,避免占用位置。
2. **确认收款后仍可修改金额**`getOrderActions` 中"修改金额"原来对所有可操作订单都显示,改为仅在 `!order.payStatus`(未付款)时显示。确认收款后修改金额按钮自动隐藏。
3. **已关闭 Tab 混入待发货订单**`TABS` 配置中 `pending`(已关闭)的 params 原来同时包含 `statusFilter: 1`(待发货)和 `statusFilter: 8`(已关闭),导致待发货订单也出现。已改为只查 `statusFilter: 8`
### 操作按钮逻辑总结(修复后)
- **修改金额**:仅未付款(`!payStatus`)时显示
- **确认收款**仅线下付款payType=9且未付款时显示
- **确认完成**:仅已付款(`payStatus === true`)时显示
- **关闭订单**:所有可操作订单(非已完成、非已关闭)均显示