Files
shanxia2.0/docs/superpowers/specs/2026-06-28-pl-freight-settlement-split-design.md
T
zlwuandCursor 98aec80d71 feat(pl): 运费结算审批分流与车辆挂车号等 PL 能力完善
拆分运费审批/出款页面,补充结算发票附件与菜单 SQL,并同步前后端模型与车辆相关展示。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 21:00:31 +08:00

33 lines
1.3 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.
# 运费结算三菜单拆分 — 设计文档
> **日期**: 2026-06-28
> **状态**: 已确认
> **前置**: `docs/superpowers/specs/2026-06-25-pl-freight-settlement-design.md`
## 目标
将原「运费结算」单页四 Tab 拆为三个独立菜单,按角色分离:计划专员组单/结算、审批人审批、财务发放。
## 菜单结构
| 菜单 | 路由 | Tab | 数据范围 |
|------|------|-----|----------|
| 运费结算 | `/#/pl/freight` | 未结算计划 / 结算单 | 计划;结算单 `pending`/`approving`/`approved` |
| 运费结算审批 | `/#/pl/freight-approval` | 待审批 / 已审批 | `approving`;`approved`+`confirmed`(全部) |
| 运费财务发放 | `/#/pl/freight-disburse` | 待发放 / 已发放 | `approved`;`confirmed` |
## 关键决策
- **已审批 Tab**:展示租户内全部审批已完成结算单(选项 A)
- **发票信息**:审批通过后(`approved`)在「运费结算 → 结算单」Tab 维护
- **后端 tab 参数**:`bills` | `approval_pending` | `approval_done` | `disburse` | `settled`
- **编辑权限**:`pending` 全字段编辑;`approved` 仅发票字段 + 备注
## 业务流程
未结算计划 → 组单(草稿)→ 提交审批 → 审批页通过 → 结算页补发票 → 财务页发放 → 已发放
## SQL
`docs/sql/20260628_pl_freight_settlement_split_menu.sql`