本文档用于产品评审、培训讲解、联调验收时快速确认:哪个角色做了什么操作,会影响哪些状态字段。
order_status(订单主状态)
pending_payment:待支付pending_confirm:待收货completed:已完成cancelled:已取消delivery_status(订单配送状态)
pending_dispatch:待分配配送delivering:配送中delivered:配送完成pay_status(订单支付状态)
pending_payment:待支付paid:已支付refunding:退款中refunded:已退款deliverer_status(配送员履约状态)
pending_pickup:待取货delivering:送货中delivered:送货成功supplier_prepare_status(供应商备货状态)
pending_prepare:待备货prepared:备货完成picked_up:取货完成口径:订单
delivery_status主要跟随deliverer_status的进度变化。
| 角色 | 操作 | 触发前(典型) | 变更后(核心字段) | 说明 |
|---|---|---|---|---|
| 客户 | 提交线上支付订单 | 新建订单 | order_status=pending_paymentdelivery_status=pending_dispatchpay_status=pending_payment |
进入待支付 |
| 客户 | 提交线下支付订单 | 新建订单 | order_status=pending_confirmdelivery_status=pending_dispatchpay_status=paid |
线下单默认按已支付处理 |
| 客户 | 线上支付成功 | order_status=pending_paymentpay_status=pending_payment |
order_status -> pending_confirmpay_status -> paid |
进入待收货阶段 |
| 运营 | 分配配送员 | delivery_status=pending_dispatch |
delivery_status -> deliveringdeliverer_status=pending_pickupsupplier_prepare_status=pending_prepare |
创建或更新配送任务 |
| 供应商 | 完成备货 | supplier_prepare_status=pending_prepare |
supplier_prepare_status -> prepared |
不直接变更订单状态 |
| 配送员 | 确认取货 | deliverer_status=pending_pickupsupplier_prepare_status=prepared |
supplier_prepare_status -> picked_updeliverer_status 保持/推进为 delivering |
具体以接口实现为准 |
| 配送员 | 确认送达 | deliverer_status=delivering |
deliverer_status -> delivereddelivery_status -> delivered |
订单进入“配送完成” |
| 客户 | 确认收货 | order_status=pending_confirmdelivery_status=delivered |
order_status -> completed |
正常完结 |
| 系统 | 超时自动确认收货 | order_status=pending_confirmdelivery_status=delivered |
order_status -> completed |
与客户手动收货等效 |
| 运营 | 取消订单 | 非 completed/cancelled |
order_status -> cancelledpay_status -> refunding/refunded(按退款流程) |
关闭订单履约 |
pending_payment / pending_dispatch / pending_paymentpending_confirm / pending_dispatch / paidpending_confirm / delivering / paidpending_confirm / delivered / paidcompleted / delivered / paidpending_confirm / pending_dispatch / paidpending_confirm / delivering / paidpending_confirm / delivered / paidcompleted / delivered / paidorder_status)order_statusdelivery_statuspay_statusdeliverer_statussupplier_prepare_statusdelivery_status 进入 deliveringsupplier_prepare_statusdelivery_status=deliveredorder_status=completedorder_status=cancelled 且退款状态进入退款链路pending_delivery、partial_delivered)作为业务流转状态