Laservall_solidworks_inject/bom-ui
Ling f13d646f7d feat: add match material functionality to BOM server and UI
- Implemented MatchMaterialHandler to handle material matching requests.
- Added new DTOs for match material requests and responses.
- Updated BomHttpServer to register the new match material API endpoint.
- Enhanced the UI with a new button to trigger material matching.
- Added modal to display matching results and confirm updates to material codes.
- Integrated API calls to fetch matching material codes from the PLM system.
2026-04-09 17:06:24 +08:00
..
src feat: add match material functionality to BOM server and UI 2026-04-09 17:06:24 +08:00
.gitignore 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
README.md 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
eslint.config.js 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
index.html 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
package-lock.json 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
package.json 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
tsconfig.app.json 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
tsconfig.json 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
tsconfig.node.json 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00
vite.config.ts 新增 BOM 管理服务端 API 与前端集成支持 2026-03-20 09:33:27 +08:00

README.md

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])