Skip to content

Conversation

@y393920685
Copy link

@y393920685 y393920685 commented Aug 15, 2025

Description

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.

Checklist

ℹ️ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in CONTRIBUTING.

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs:dev command.
  • Run the tests with pnpm test.
  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Summary by CodeRabbit

  • New Features

    • Added Basic, Inbound, Stock, and Finance sections with pages for banks, brands, colors, units, customers, suppliers, stores, products, purchases, stock current, product records, and bank records.
    • Enabled auto‑pinyin generation in forms.
    • Added zh-CN translations for basic, finance, inbound, and stock.
  • Style

    • Introduced custom button styles; improved tables with borders, overflow handling, and pagination; hid default form actions.
    • Disabled right‑click context menu globally.
  • Chores

    • Removed demo/Vben routes and About page.
    • Removed production analytics script.
    • Updated dev task and proxy configuration.

@changeset-bot
Copy link

changeset-bot bot commented Aug 15, 2025

⚠️ No Changeset found

Latest commit: f6a5e0c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 15, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Adds numerous new API client modules, routes, locales, stores, and pages for basic data (bank, brand, color, customer, product, store, supplier, unit), inbound purchase workflows, stock views, and finance records. Updates configs, dependencies, UI adapters, and proxy settings; removes demos/vben routes and pages; introduces CSS and form default change.

Changes

Cohort / File(s) Summary of changes
VS Code setup
/.vscode/settings.json, /.vscode/tasks.json
Disable terminal tabs; add default npm dev task for apps/web-antd.
Environment and build config
apps/web-antd/.env.development, apps/web-antd/vite.config.mts, apps/web-antd/index.html
Disable VITE_NITRO_MOCK; update proxy targets and add /static proxy; remove Baidu analytics injection.
Deps, CSS, bootstrap, main
apps/web-antd/package.json, apps/web-antd/src/abc.css, apps/web-antd/src/bootstrap.ts, apps/web-antd/src/main.ts
Add pinyin-pro dependency; add button styles; import custom CSS; suppress contextmenu globally.
Adapter tweaks
apps/web-antd/src/adapter/component/index.ts, apps/web-antd/src/adapter/vxe-table.ts
Remove i18n placeholder fallback; adjust VXE grid defaults (borders, overflow, pager, height, rowConfig, proxy response mappings).
API – basic modules
apps/web-antd/src/api/basic/{bank.ts,brand.ts,color.ts,customer.ts,product.ts,store.ts,supplier.ts,unit.ts,index.ts}
Add typed CRUD and list/all endpoints for basic entities; add barrel export.
API – inbound
apps/web-antd/src/api/inbound/{purchase.ts,index.ts}
Add purchase API (list/init/get/create/update/delete/audit/unaudit); add barrel export.
API – stock
apps/web-antd/src/api/stock/{current.ts,index.ts}
Add current stock list API; add barrel export.
API – system
apps/web-antd/src/api/system/{role.ts,user.ts,index.ts}
Add role and user CRUD/list APIs; add barrel export.
API – root index
apps/web-antd/src/api/index.ts
Re-export basic, stock, system, inbound modules.
Router – added modules
apps/web-antd/src/router/routes/modules/{basic.ts,inbound.ts,stock.ts,finance.ts}
Add route groups for Basic, Inbound (Purchase, PurchaseList), Stock (Current, ProductRecord), and Finance (BankRecord).
Router – removed modules
apps/web-antd/src/router/routes/modules/{demos.ts,vben.ts}
Remove Demos and Vben route modules.
Locales – zh-CN added
apps/web-antd/src/locales/langs/zh-CN/{basic.json,finance.json,inbound.json,stock.json}
Add Chinese translations for basic, finance, inbound, and stock sections.
Locales – demos removed
apps/web-antd/src/locales/langs/en-US/demos.json, apps/web-antd/src/locales/langs/zh-CN/demos.json
Remove demos translations (en-US, zh-CN).
Store
apps/web-antd/src/store/{index.ts,purchase.ts}
Re-export purchase store; add purchase Pinia store with getPurchaseData.
Views – Basic pages and modals
apps/web-antd/src/views/basic/... (bank/, brand/, color/, customer/, product/, store/, supplier/, unit/)
Add CRUD list pages with VXE grids and corresponding modal forms; wired to new APIs.
Views – Inbound
apps/web-antd/src/views/inbound/purchase/{index.vue,modal.vue}, apps/web-antd/src/views/inbound/purchaseList/index.vue
Add purchase entry page with item grid and footer totals, product picker modal, and purchase list with navigation to detail via store.
Views – Stock
apps/web-antd/src/views/stock/{current/index.vue,productRecord/index.vue}
Add stock current list and product record list pages with filters.
Views – Finance
apps/web-antd/src/views/finance/bankRecord/index.vue
Add bank record listing with bank/date filters.
Views – removed
apps/web-antd/src/views/demos/antd/index.vue, apps/web-antd/src/views/_core/about/index.vue
Remove demo and about pages.
Core UI kit
packages/@core/ui-kit/form-ui/src/form-api.ts
Change default VbenFormProps: showDefaultActions false.

Sequence Diagram(s)

sequenceDiagram
  actor User
  participant PurchaseList as PurchaseList View
  participant Store as purchaseStore
  participant Router
  participant Purchase as Purchase View

  User->>PurchaseList: Open page / apply filters
  PurchaseList->>API: getPurchaseListApi(params)
  API-->>PurchaseList: PurchaseList[]
  User->>PurchaseList: Open detail (dblclick/click)
  alt Purchase tab exists
    PurchaseList->>User: Confirm switch?
  end
  PurchaseList->>Store: set { purchaseId, refreshView=true }
  PurchaseList->>Router: navigate('Purchase')
  Router-->>Purchase: Mount
  Purchase->>Store: read { purchaseId, refreshView }
  Purchase->>API: getPurchaseByIdApi(purchaseId)
  API-->>Purchase: Purchase data
  Purchase->>Purchase: Populate forms and grid
Loading
sequenceDiagram
  actor User
  participant Page as Basic Entity Page
  participant Grid as VXE Grid
  participant Modal as Entity Modal
  participant API

  User->>Grid: Search / paginate
  Grid->>API: get<Entity>ListApi(params)
  API-->>Grid: items
  User->>Page: Add/Edit/Delete
  alt Add/Edit
    Page->>Modal: open(data?)
    Modal->>API: create/update<Entity>Api(payload)
    API-->>Modal: result
    Modal-->>Page: emit('refresh', code)
    Page->>Grid: reload/query
  else Delete
    Page->>API: delete<Entity>Api(id)
    API-->>Page: affected
    Page->>Grid: query
  end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~55 minutes

Possibly related PRs

Suggested reviewers

  • anncwb
  • mynetfan
  • jinmao88

Poem

A rabbit taps code with gentle paws,
New routes and grids obey the laws.
Stocks and banks now dance in view,
Purchases hop from list to new.
Demos burrowed, fields in bloom—
Ship it swift—thump-thump, zoom! 🐇✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 4efebb8 and f6a5e0c.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (68)
  • .vscode/settings.json (1 hunks)
  • .vscode/tasks.json (1 hunks)
  • apps/web-antd/.env.development (1 hunks)
  • apps/web-antd/index.html (0 hunks)
  • apps/web-antd/package.json (1 hunks)
  • apps/web-antd/src/abc.css (1 hunks)
  • apps/web-antd/src/adapter/component/index.ts (1 hunks)
  • apps/web-antd/src/adapter/vxe-table.ts (1 hunks)
  • apps/web-antd/src/api/basic/bank.ts (1 hunks)
  • apps/web-antd/src/api/basic/brand.ts (1 hunks)
  • apps/web-antd/src/api/basic/color.ts (1 hunks)
  • apps/web-antd/src/api/basic/customer.ts (1 hunks)
  • apps/web-antd/src/api/basic/index.ts (1 hunks)
  • apps/web-antd/src/api/basic/product.ts (1 hunks)
  • apps/web-antd/src/api/basic/store.ts (1 hunks)
  • apps/web-antd/src/api/basic/supplier.ts (1 hunks)
  • apps/web-antd/src/api/basic/unit.ts (1 hunks)
  • apps/web-antd/src/api/inbound/index.ts (1 hunks)
  • apps/web-antd/src/api/inbound/purchase.ts (1 hunks)
  • apps/web-antd/src/api/index.ts (1 hunks)
  • apps/web-antd/src/api/stock/current.ts (1 hunks)
  • apps/web-antd/src/api/stock/index.ts (1 hunks)
  • apps/web-antd/src/api/system/index.ts (1 hunks)
  • apps/web-antd/src/api/system/role.ts (1 hunks)
  • apps/web-antd/src/api/system/user.ts (1 hunks)
  • apps/web-antd/src/bootstrap.ts (1 hunks)
  • apps/web-antd/src/locales/langs/en-US/demos.json (0 hunks)
  • apps/web-antd/src/locales/langs/zh-CN/basic.json (1 hunks)
  • apps/web-antd/src/locales/langs/zh-CN/demos.json (0 hunks)
  • apps/web-antd/src/locales/langs/zh-CN/finance.json (1 hunks)
  • apps/web-antd/src/locales/langs/zh-CN/inbound.json (1 hunks)
  • apps/web-antd/src/locales/langs/zh-CN/stock.json (1 hunks)
  • apps/web-antd/src/main.ts (1 hunks)
  • apps/web-antd/src/router/routes/modules/basic.ts (1 hunks)
  • apps/web-antd/src/router/routes/modules/demos.ts (0 hunks)
  • apps/web-antd/src/router/routes/modules/inbound.ts (1 hunks)
  • apps/web-antd/src/router/routes/modules/stock.ts (1 hunks)
  • apps/web-antd/src/router/routes/modules/vben.ts (0 hunks)
  • apps/web-antd/src/router/routes/modules/​finance.ts (1 hunks)
  • apps/web-antd/src/store/index.ts (1 hunks)
  • apps/web-antd/src/store/purchase.ts (1 hunks)
  • apps/web-antd/src/views/_core/about/index.vue (0 hunks)
  • apps/web-antd/src/views/_core/authentication/login.vue (3 hunks)
  • apps/web-antd/src/views/basic/bank/index.vue (1 hunks)
  • apps/web-antd/src/views/basic/bank/modal.vue (1 hunks)
  • apps/web-antd/src/views/basic/brand/index.vue (1 hunks)
  • apps/web-antd/src/views/basic/brand/modal.vue (1 hunks)
  • apps/web-antd/src/views/basic/color/index.vue (1 hunks)
  • apps/web-antd/src/views/basic/color/modal.vue (1 hunks)
  • apps/web-antd/src/views/basic/customer/index.vue (1 hunks)
  • apps/web-antd/src/views/basic/customer/modal.vue (1 hunks)
  • apps/web-antd/src/views/basic/product/index.vue (1 hunks)
  • apps/web-antd/src/views/basic/product/modal.vue (1 hunks)
  • apps/web-antd/src/views/basic/store/index.vue (1 hunks)
  • apps/web-antd/src/views/basic/store/modal.vue (1 hunks)
  • apps/web-antd/src/views/basic/supplier/index.vue (1 hunks)
  • apps/web-antd/src/views/basic/supplier/modal.vue (1 hunks)
  • apps/web-antd/src/views/basic/unit/index.vue (1 hunks)
  • apps/web-antd/src/views/basic/unit/modal.vue (1 hunks)
  • apps/web-antd/src/views/demos/antd/index.vue (0 hunks)
  • apps/web-antd/src/views/finance/bankRecord/index.vue (1 hunks)
  • apps/web-antd/src/views/inbound/purchase/index.vue (1 hunks)
  • apps/web-antd/src/views/inbound/purchase/modal.vue (1 hunks)
  • apps/web-antd/src/views/inbound/purchaseList/index.vue (1 hunks)
  • apps/web-antd/src/views/stock/current/index.vue (1 hunks)
  • apps/web-antd/src/views/stock/productRecord/index.vue (1 hunks)
  • apps/web-antd/vite.config.mts (1 hunks)
  • packages/@core/ui-kit/form-ui/src/form-api.ts (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@y393920685 y393920685 closed this by deleting the head repository Aug 15, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant