|
|
|
@@ -74,11 +74,13 @@ reference, not a copy of Feishu or Ant Design branding.
|
|
|
|
|
- List pages use a right-side operation column or card tail. Default row actions
|
|
|
|
|
are `查看详情`, `处理`, `继续编辑` or `查看进度`; low-frequency or risky actions
|
|
|
|
|
such as export, batch, void, download, payment and sensitive attachment
|
|
|
|
|
handling move to `更多`, `台账工具` or the detail page.
|
|
|
|
|
handling move to `更多`, clearly named permissioned actions, management
|
|
|
|
|
entries or the detail page.
|
|
|
|
|
- Business ledger pages use the same shape: page title and optional creation
|
|
|
|
|
action, visible common filters, table/card list and right-side operation
|
|
|
|
|
column. `台账工具` contains export, batch, statistics, templates, full-scope
|
|
|
|
|
views and advanced filters.
|
|
|
|
|
column. Do not use a generic `台账工具` entry; expose low-frequency abilities
|
|
|
|
|
through concrete names such as `导出`, `统计`, `筛选`, `导入`, `新建方式`,
|
|
|
|
|
`分类管理`, `批量处理` or `更多`.
|
|
|
|
|
- Business ledger first screens are single-column list pages. Do not use a
|
|
|
|
|
default left-list/right-detail workspace for procurement, contracts, projects,
|
|
|
|
|
assets, payments, AP or invoices. Open details through a detail route, drawer
|
|
|
|
@@ -90,8 +92,8 @@ reference, not a copy of Feishu or Ant Design branding.
|
|
|
|
|
- Ledger filters fit the first PC row around `search`, `status` and `scope`
|
|
|
|
|
when those capabilities exist. Supplier, legal entity, cost center, date
|
|
|
|
|
ranges, contract type, sensitivity, export and test-data toggles belong in
|
|
|
|
|
`筛选`, `台账工具` or a tab-specific advanced area; default-visible filters
|
|
|
|
|
should not occupy multiple rows.
|
|
|
|
|
`筛选`, `更多`, clearly named role-only actions or a tab-specific advanced
|
|
|
|
|
area; default-visible filters should not occupy multiple rows.
|
|
|
|
|
- Business list columns show object identity, counterpart/person, amount/date,
|
|
|
|
|
state and operation. `下一步` is not a default list column or right-side help
|
|
|
|
|
panel. Use short state labels such as `待补材料` or `待你处理`; longer guidance
|
|
|
|
@@ -118,7 +120,7 @@ reference, not a copy of Feishu or Ant Design branding.
|
|
|
|
|
| `工作台` | 工作台总览 | Compact counts, common entries, real reminders | No forced header action. Use `去处理`, `新建报销`, `查看全部` inside relevant sections; do not show helper sentences for ordinary items. |
|
|
|
|
|
| `待我处理` | 任务处理列表 | `待处理` / `已处理` tabs, count, minimal filters, task list | Row action is `处理`; `已处理记录` is a tab, not a separate header button. |
|
|
|
|
|
| `审批详情` | 详情工作区 | Summary, facts/evidence, right summary/action panel, history | One action bar: primary `通过`, secondary `退回`/`驳回`, `转审` in `更多`. |
|
|
|
|
|
| `报销` / `采购` / `合同` / `项目` / `资产` / `付款` / `应付账款` / `票据` | 业务台账列表 | One-row common filters plus table/card list | Header creation only when the route owns creation; risky tools in `台账工具` or detail; no default left-list/right-detail split. |
|
|
|
|
|
| `报销` / `采购` / `合同` / `项目` / `资产` / `付款` / `应付账款` / `票据` | 业务台账列表 | One-row common filters plus table/card list | Header creation only when the route owns creation; risky tools use `更多`, clearly named role-only actions or detail pages; no default left-list/right-detail split. |
|
|
|
|
|
| Business details | 详情工作区 | Summary, facts, evidence, relations, history | Right-side state/action panel on PC; bottom primary action on mobile. |
|
|
|
|
|
| `管理` | 管理配置页 | Grouped landing: `人员组织`, `审批流程`, `基础资料`, `系统设置`, `审计排障` | Management subpages use search/filter, table and right operation column. |
|
|
|
|
|
| `个人设置` | 管理配置页 variant | `个人资料`, `账号安全`, `通知偏好`, `企业微信绑定` | No employee dossier, permission matrix or org maintenance in the default profile path. |
|
|
|
|
@@ -339,11 +341,23 @@ matrices and actions explicit in each page.
|
|
|
|
|
main facts/evidence/history on the left, status/actions/compact summary on
|
|
|
|
|
the right. Keep the page's business fields, permission checks, state
|
|
|
|
|
conditions and API calls explicit in the page component.
|
|
|
|
|
- For business edit/create pages, prefer the thin components in
|
|
|
|
|
`client/src/components/patterns/BusinessEditTemplate.tsx`:
|
|
|
|
|
`BusinessEditTemplate`, `BusinessEditWorkspace`, `BusinessEditMain`,
|
|
|
|
|
`BusinessEditAside`, `BusinessEditSection`, `BusinessEditFormGrid`,
|
|
|
|
|
`BusinessEditValidationSummary` and `BusinessEditActionBar`. They standardize
|
|
|
|
|
title/back/status/action, sectioned form layout, validation summary and bottom
|
|
|
|
|
save/submit coordinates only; fields, permissions, mutations and dirty-state
|
|
|
|
|
decisions stay explicit in the page.
|
|
|
|
|
- `BusinessDetailActionPanel` is the default PC detail operation surface.
|
|
|
|
|
Use one primary action for save/create when the detail owns editing; use a
|
|
|
|
|
horizontal action bar for approval actions; move low-frequency actions into
|
|
|
|
|
`更多` or a clearly named grouped section. Do not add a second page-local
|
|
|
|
|
`操作` card or a separate `摘要` card under the same right column.
|
|
|
|
|
- Do not introduce or preserve a generic `台账工具` button on redesigned business
|
|
|
|
|
pages. Move each ability to a concrete enterprise action coordinate: `新建` /
|
|
|
|
|
`新建方式`, `筛选`, `导出`, `统计`, `批量处理`, row `更多`, detail action panel
|
|
|
|
|
or an explicitly named management entry such as `资产分类`.
|
|
|
|
|
- Do not create a configuration-driven page generator for reimbursement,
|
|
|
|
|
procurement, contracts, projects, assets, payments, AP or invoices. These
|
|
|
|
|
pages have different permissions, state transitions, attachment rules and
|
|
|
|
@@ -452,7 +466,7 @@ page-local action placement.
|
|
|
|
|
- List filters live in the first command bar below the page header. Search,
|
|
|
|
|
status, scope and other common filters stay on the left; ledger tools such as
|
|
|
|
|
export, batch, statistics, templates and advanced filters stay on the right or
|
|
|
|
|
inside `台账工具` / `更多`.
|
|
|
|
|
inside `筛选`, `更多` or concrete role-only action groups.
|
|
|
|
|
- Row-level actions live at the right edge of a table row or at the tail of a
|
|
|
|
|
card. Prefer `查看详情`, `查看处理` and `继续编辑` over broad verbs that hide the
|
|
|
|
|
result.
|
|
|
|
@@ -567,8 +581,8 @@ of exposing every allowed tool at once.
|
|
|
|
|
they must not duplicate approval action buttons.
|
|
|
|
|
- Finance and cashier views may expose authorized reimbursement, payment,
|
|
|
|
|
invoice, AP, receipt and exception operations. Full-scope, export, batch,
|
|
|
|
|
delegated creation and statistics tools belong in `台账工具`, `更多` or
|
|
|
|
|
role-only panels.
|
|
|
|
|
delegated creation and statistics tools belong in concrete actions such as
|
|
|
|
|
`导出`, `统计`, `批量处理`, `新建方式`, `更多` or role-only panels.
|
|
|
|
|
- Owner and project-lead views emphasize team/project scope, blockers, risks and
|
|
|
|
|
approvals. They should not drift into system configuration unless the route is
|
|
|
|
|
a management route.
|
|
|
|
@@ -666,8 +680,8 @@ screen.
|
|
|
|
|
to the current user and the next action.
|
|
|
|
|
- Place common filters on the left side of the command bar below the page
|
|
|
|
|
header. Put export, batch, statistics, templates, full-scope, advanced
|
|
|
|
|
filters, delegated creation and low-frequency module links in `台账工具`,
|
|
|
|
|
`更多` or role-only panels.
|
|
|
|
|
filters, delegated creation and low-frequency module links in `筛选`,
|
|
|
|
|
concrete right-side actions, `更多` or role-only panels.
|
|
|
|
|
- Batch actions appear only after selection, as a contextual command bar or
|
|
|
|
|
bottom sticky bar. High-risk batch actions such as approve, pay, delete or
|
|
|
|
|
publish require summary confirmation and result details.
|
|
|
|
@@ -686,13 +700,13 @@ screen.
|
|
|
|
|
boundary. The list is for discovery, filtering, status reading and navigation.
|
|
|
|
|
High-risk or sensitive actions such as contract download, archive, payment,
|
|
|
|
|
export, batch processing, void/cancel and sensitive attachment viewing belong
|
|
|
|
|
in detail workspaces, detail command panels or `台账工具`, with permission,
|
|
|
|
|
audit and confirmation.
|
|
|
|
|
in detail workspaces, detail command panels, concrete role-only actions or
|
|
|
|
|
`更多`, with permission, audit and confirmation.
|
|
|
|
|
- Default ledger scope follows the current task role: ordinary employees see
|
|
|
|
|
`我发起` / `我相关`, owners and project leads see `我负责` / `项目相关`, finance
|
|
|
|
|
sees `待复核` / `待付款` / `异常`, and admins may enter or switch to `全范围`.
|
|
|
|
|
Full scope, export and batch commands stay in `台账工具` or role-only panels,
|
|
|
|
|
not ordinary first screens.
|
|
|
|
|
Full scope, export and batch commands stay in concrete role-only actions or
|
|
|
|
|
panels, not ordinary first screens.
|
|
|
|
|
- Contract ledgers in V1 are registration, archive, due/renewal reminder and
|
|
|
|
|
relation surfaces for project, procurement and payment context. Do not design
|
|
|
|
|
`/contracts-registry` as e-signature, legal-review, clause-library,
|
|
|
|
@@ -725,8 +739,8 @@ screen.
|
|
|
|
|
creation; `应付账款` shows pending payment, exceptions, risks and differences
|
|
|
|
|
before export; `票据` shows OCR status, failed invoices and bindable invoices
|
|
|
|
|
before broad-scope handover tools. Batch creation, export, full-scope views
|
|
|
|
|
and agency-accounting handover controls live in `台账工具` or selected-context
|
|
|
|
|
panels, never as the first-screen primary action.
|
|
|
|
|
and agency-accounting handover controls live in concrete role-only actions,
|
|
|
|
|
`更多` or selected-context panels, never as the first-screen primary action.
|
|
|
|
|
- Payment actions require the finance/payment context: amount, payee or target
|
|
|
|
|
object, source records, offline payment explanation, evidence completeness,
|
|
|
|
|
receipt requirement and correction boundary. Do not place `标记已付款`,
|
|
|
|
@@ -749,7 +763,8 @@ and management workflows.
|
|
|
|
|
- `cd client && npm run typecheck`
|
|
|
|
|
- `cd client && npm run build`
|
|
|
|
|
- Focused Playwright or screenshot checks when changing list filters, command
|
|
|
|
|
bars, `台账工具`, batch selection behavior, empty states or mobile list cards.
|
|
|
|
|
bars, advanced action placement, batch selection behavior, empty states or
|
|
|
|
|
mobile list cards.
|
|
|
|
|
|
|
|
|
|
## Convention: Asset Registry Pages
|
|
|
|
|
|
|
|
|
@@ -920,8 +935,8 @@ state, facts and consequences before acting.
|
|
|
|
|
- List and ledger rows show only evidence completeness summaries, missing
|
|
|
|
|
evidence hints and a detail entry. Invoice preview, attachment download,
|
|
|
|
|
contract file viewing, receipt download, evidence deletion and bulk packaging
|
|
|
|
|
belong in detail workspaces, detail command panels, `台账工具` or authorized
|
|
|
|
|
audit paths.
|
|
|
|
|
belong in detail workspaces, detail command panels, `更多`, concrete
|
|
|
|
|
role-only actions or authorized audit paths.
|
|
|
|
|
- Sensitive evidence such as invoices, contracts, receipts and attachments must
|
|
|
|
|
be permissioned; download and export belong in `更多` or audit paths when
|
|
|
|
|
appropriate.
|
|
|
|
@@ -1070,8 +1085,8 @@ summary unless a permissioned workflow requires more.
|
|
|
|
|
- Download, batch download, export, print, attachment packaging, contract text
|
|
|
|
|
export and finance ledger export must be controlled by server permissions and
|
|
|
|
|
data scope.
|
|
|
|
|
- Export is never the primary first-screen action. Put exports in `台账工具`,
|
|
|
|
|
`更多` or role-only finance/admin panels.
|
|
|
|
|
- Export is never the primary first-screen action. Put exports in a concrete
|
|
|
|
|
`导出` action, `更多` or role-only finance/admin panels.
|
|
|
|
|
- Before exporting sensitive ledgers, explain scope and sensitive contents.
|
|
|
|
|
Finance, contract, asset and invoice exports should write audit records.
|
|
|
|
|
- Export file names use business numbers and dates. Do not concatenate complete
|
|
|
|
|