Add quote management functionality with API and UI integration

- Introduced a new `quote` module, including routes, controllers, and services for managing quotes.
- Implemented API endpoints for listing, creating, updating, and deleting quotes, ensuring proper company code filtering for data access.
- Developed a comprehensive UI for quote management, allowing users to create, edit, and view quotes seamlessly.
- Enhanced the admin layout to include the new quote management page, improving navigation and accessibility for users.

These additions significantly enhance the application's capabilities in managing quotes, providing users with essential tools for their sales processes.
This commit is contained in:
kjs
2026-04-02 15:30:44 +09:00
parent d8aaacb8f7
commit ce99001970
12 changed files with 1949 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
import { Router } from "express";
import { authenticateToken } from "../middleware/authMiddleware";
import * as quoteController from "../controllers/quoteController";
const router = Router();
router.use(authenticateToken);
router.get("/list", quoteController.getList);
router.get("/generate-number", quoteController.generateNumber);
router.get("/:id", quoteController.getById);
router.post("/", quoteController.create);
router.put("/:id", quoteController.update);
router.delete("/:id", quoteController.remove);
export default router;