Commit Graph

211 Commits

Author SHA1 Message Date
Your Name 0f2d5db8a3 feature(office-support): add equipment management and electricity bill attachment
Equipment management (new):
- Equipment CRUD with code, name, note, optional photo (max 10MB)
- Barcode scanner using @zxing/browser:
  - Defaults to back camera on mobile, autofocus + 2x zoom
  - Reads any orientation (rotates 12 angles per cycle for arbitrary tilt)
  - Manual "Capture & decode" fallback (18 angles)
  - Horizontal aiming line + haptic feedback on success
- Assign workflow with full history (user <-> warehouse, every state recorded)
- Statistics view: equipments grouped by current holder (Accordion + KPIs)
- Image lightbox: view original at any zoom, open-in-new-tab, pinch-zoom on mobile
- Client-side resize for >10MB uploads to fit PHP upload limit

Electricity bill:
- Attachment (PDF/image) upload, view, replace, remove

Routes, API endpoints, Mantine tab integration, and DB migrations included.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 14:36:42 +07:00
nguyentrungthat 8d86fc2182 Update OfficeSupport.tsx 2026-04-29 14:28:56 +07:00
nguyentrungthat 8d5199342d Update 2026-04-29 14:13:19 +07:00
nguyentrungthat baa3216c69 Add electricity bills module (API, model, PDF)
Introduce an Electricity Bills feature: adds ElectricityBill model, controller with CRUD + PDF export, Blade PDF template, and a migration to create the electricity_bills table. Registers routes (with admin permission middleware) and persists generated PDFs to public storage. Adds ResultSuccess/ResultError helpers to base Controller and updates composer to include dompdf and DBAL dependencies. Also includes frontend updates (Admin API, DataTable, Navbar, new OfficeSupport page and styles, route and CRUD helper adjustments) to support the new functionality.
2026-04-29 13:44:34 +07:00
Hoang Vi 2c94e91668 fix(setting): update hr permission 2026-04-18 07:52:39 +07:00
Hoang Vi f494367683 feat(setting): add setting saturday work 2026-04-09 16:11:18 +07:00
dbdbd9 56d2889297 update timekeeping, leave UI 2025-08-05 16:08:48 +07:00
dbdbd9 d335803cf8 update handle for separated user 2025-08-05 15:14:50 +07:00
dbdbd9 ee281986b8 update permission display for leave management 2025-07-01 16:36:21 +07:00
dbdbd9 d064b242e6 add update note status 2025-07-01 13:40:48 +07:00
dbdbd9 705e8f9216 adjust UI, add send mail when delete note/update refuse ticket 2025-06-30 14:58:06 +07:00
dbdbd9 034b9eee2c update handle calculate onleave ticket in next months 2025-06-30 10:57:02 +07:00
dbdbd9 40f80579dc update UI leave management, add func update old data 2025-06-27 09:45:21 +07:00
dbdbd9 fb6c58f1c0 handle onleave new user, adjust background jobs 2025-06-24 15:39:11 +07:00
dbdbd9 c2c9322e7d update delete note, add update ticket 2025-06-21 11:11:02 +07:00
dbdbd9 3263bce784 fix refactor function check leave day, update handle ticket send mail 2025-06-20 14:29:47 +07:00
Truong Vo 177296a324 fix build 2025-05-07 16:49:47 +07:00
Truong Vo d5936087ff fix build 2025-05-07 16:49:15 +07:00
Truong Vo 951c3be613 fix build 2025-05-07 16:48:14 +07:00
Truong Vo b5a7740d9f Bổ sung form xác nhận trước khi xóa note 2025-05-07 15:13:37 +07:00
Truong Vo 7dc31bf75b Bổ sung xóa ngày phép 2025-05-07 11:33:52 +07:00
Truong Vo 462d896e57 Hiệu chỉnh add ticket 2025-04-25 17:03:24 +07:00
Truong Vo 44fa6b55f7 Hiệu chỉnh add ticket 2025-04-25 10:29:35 +07:00
Truong Vo d3c1d9bf60 Hiệu chỉnh chức năng ngày phép 2025-04-24 15:19:12 +07:00
Truong Vo 65c4dbcf88 Hiệu chỉnh chức năng ngày phép 2025-04-24 09:55:03 +07:00
Truong Vo af5721682b [Ngày Phép] Bổ sung chức năng cập nhật ngày nghỉ cho ngày nghỉ đặt biệt (3 ngày nghỉ đám cưới) 2025-04-15 14:07:20 +07:00
Truong Vo 1f9ab744ae Merge branch 'master' into truong-leave-day 2025-04-04 10:39:00 +07:00
Joseph d2c0e0b95d update logic upload file 2025-03-27 17:08:49 +07:00
Joseph 4da48df8d7 update logic upload file 2025-03-27 17:05:32 +07:00
Joseph c6a9fc28a3 update url 2025-03-26 08:56:06 +07:00
Joseph 9a9a94e5d4 update download link 2025-03-14 15:32:13 +07:00
Joseph d803d69b72 update download link 2025-03-14 15:29:58 +07:00
Joseph d1f889c996 update search datatable 2025-03-14 15:16:04 +07:00
dbdbd9 60925a83af fix search, show file 2025-03-14 14:26:57 +07:00
dbdbd9 88870e075c adjust Create, Update logic, add permission 2025-03-14 10:06:49 +07:00
dbdbd9 20745381db fix lib type 2025-03-13 15:09:22 +07:00
Truong Vo 8ce0d957b1 [Ngày Phép] Cập nhật lại tên cột cho bảng ngày nghỉ phép năm 2025-03-13 14:54:37 +07:00
Truong Vo 86f2bb12fc [Ngày Phép] Cập nhật lại tên cột cho bảng ngày nghỉ phép năm 2025-03-13 14:50:57 +07:00
dbdbd9 78bdca4e23 update permission 2025-03-13 14:48:26 +07:00
dbdbd9 e026b70e66 fix show file document detail, update document 2025-03-13 14:14:43 +07:00
dbdbd9 0c5f56d30c add BE, FE Document 2025-03-12 16:48:05 +07:00
Truong Vo 0ebe4c772e Bổ sung biểu đồ drawio cho trang allocation 2025-02-21 11:11:37 +07:00
Truong Vo 281c8ad98a Bổ sung biểu đồ drawio cho trang allocation 2025-02-21 10:51:27 +07:00
nguentrungthat 15880f8bd1 Update StaffEvaluation.tsx 2025-02-17 16:39:35 +07:00
nguentrungthat f5e4d7b405 Update view detail Working review 2025-02-17 16:14:52 +07:00
nguentrungthat 5cdfaafe03 fic build 2025-02-14 08:03:05 +07:00
nguentrungthat 846df81d44 Update Working review 2025-02-13 17:01:52 +07:00
nguentrungthat f05334ea34 Update 2025-02-07 15:23:03 +07:00
nguentrungthat 174c8889ce Update Project Review, export 2025-02-07 14:42:31 +07:00
root 07d28e24cd add script detect face 2025-01-17 14:50:09 +07:00