refactor: separate LOT management to dedicated page

- Create new /lot page with two tabs:
  1. LOT: component management (formerly in /admin/pricing)
  2. Сопоставления: partnumber ↔ LOT mappings (formerly in Warehouse tab)
- Remove LOT tab from Pricing Admin page
- Remove stock mappings section from Warehouse tab
- Update main menu: LOT link now points to /lot
- Default tab in Pricing Admin changed to Estimate
- Add Lot() handler in web.go
- Add /lot route in main.go

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Mikhail Chusavitin
2026-02-10 16:13:04 +03:00
parent 9b07262514
commit c8ad43677d
5 changed files with 683 additions and 61 deletions

View File

@@ -542,6 +542,7 @@ func setupRouter(cfg *config.Config, configPath string, connMgr *db.ConnectionMa
})
router.GET("/", webHandler.Index)
router.GET("/lot", webHandler.Lot)
router.GET("/pricelists", webHandler.Pricelists)
router.GET("/pricelists/:id", webHandler.PricelistDetail)
router.GET("/admin/pricing", webHandler.AdminPricing)