From de538a01620f70b17d8b8a8ec8891b2cf3669605 Mon Sep 17 00:00:00 2001 From: sky121113 Date: Mon, 27 Apr 2026 14:16:53 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]=20=E5=84=AA=E5=8C=96=E5=81=B4=E9=82=8A?= =?UTF-8?q?=E6=AC=84=E7=B8=AE=E6=94=B6=E4=BB=8B=E9=9D=A2=E8=88=87=E7=B6=AD?= =?UTF-8?q?=E4=BF=AE=E7=B4=80=E9=8C=84=E5=A4=9A=E7=A7=9F=E6=88=B6=E7=9B=B8?= =?UTF-8?q?=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 優化側邊欄 (Sidebar) 縮收邏輯:新增子選單與文字標籤在縮放時的過渡動畫與顯示控制。 2. 修正維修紀錄 (Maintenance Records) 結構:透過 Migration 將 company_id 設為 nullable,支援系統層級的維修日誌。 3. 新增補貨單狀態更新 Modal:實作智慧補貨流程中的狀態切換確認視窗。 4. 簡化登入紀錄 UI:移除複雜的 Timeline 線條與點狀裝飾,回歸極簡奢華風視覺核心。 --- ..._nullable_in_maintenance_records_table.php | 28 ++ .../modal-replenishment-status.blade.php | 41 +++ .../layouts/partials/sidebar-menu.blade.php | 274 ++++++++++-------- .../profile/partials/login-history.blade.php | 7 +- 4 files changed, 222 insertions(+), 128 deletions(-) create mode 100644 database/migrations/2026_04_27_120143_make_company_id_nullable_in_maintenance_records_table.php create mode 100644 resources/views/admin/warehouses/partials/modal-replenishment-status.blade.php diff --git a/database/migrations/2026_04_27_120143_make_company_id_nullable_in_maintenance_records_table.php b/database/migrations/2026_04_27_120143_make_company_id_nullable_in_maintenance_records_table.php new file mode 100644 index 0000000..69e3df8 --- /dev/null +++ b/database/migrations/2026_04_27_120143_make_company_id_nullable_in_maintenance_records_table.php @@ -0,0 +1,28 @@ +foreignId('company_id')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('maintenance_records', function (Blueprint $table) { + $table->foreignId('company_id')->nullable(false)->change(); + }); + } +}; diff --git a/resources/views/admin/warehouses/partials/modal-replenishment-status.blade.php b/resources/views/admin/warehouses/partials/modal-replenishment-status.blade.php new file mode 100644 index 0000000..8c64601 --- /dev/null +++ b/resources/views/admin/warehouses/partials/modal-replenishment-status.blade.php @@ -0,0 +1,41 @@ +{{-- 狀態更新確認 Modal --}} +
+
+
+ +
+
+
+ + + +
+
+

+
+

+
+
+
+
+ + +
+
+
+
diff --git a/resources/views/layouts/partials/sidebar-menu.blade.php b/resources/views/layouts/partials/sidebar-menu.blade.php index cc7ab9a..72a02d7 100644 --- a/resources/views/layouts/partials/sidebar-menu.blade.php +++ b/resources/views/layouts/partials/sidebar-menu.blade.php @@ -2,24 +2,26 @@
  • - {{ __('Dashboard') }} + {{ __('Dashboard') }}
  • {{-- 2. 應用程式 (個人) --}}
  • - -
    +
    @@ -30,18 +32,20 @@ @can('menu.members') 3. 會員管理
  • - -
    +
  • @@ -52,37 +56,39 @@ @can('menu.machines') {{-- 4. 機台管理 --}}
  • - -
    +
    @@ -95,18 +101,20 @@ @can('menu.app') 5. APP管理
  • - -
    +
  • @@ -117,32 +125,34 @@ @can('menu.warehouses') {{-- 6. 倉庫管理 --}}
  • - -
    +
    @@ -153,19 +163,21 @@ @can('menu.sales') {{-- 7. 銷售管理 --}}
  • - -
    +
  • @@ -176,17 +188,19 @@ @can('menu.analysis') 8. 分析管理
  • - -
    +
  • @@ -198,16 +212,18 @@ @can('menu.audit') 9. 稽核管理
  • - -
    +
  • @@ -218,24 +234,26 @@ @can('menu.data-config') {{-- 10. 資料設定 --}}
  • - -
    +
    @@ -270,20 +288,22 @@ @can('menu.remote') {{-- 11. 遠端管理 --}}
  • - -
    +
    @@ -295,19 +315,21 @@ @can('menu.line') 12. Line管理
  • - -
    +
  • @@ -318,20 +340,22 @@ @can('menu.reservation') 13. 預約系統
  • - -
    +
  • @@ -341,16 +365,18 @@ @can('menu.special-permission') {{-- 14. 特殊權限 --}}
  • - -
    +
  • @@ -360,23 +386,25 @@ @can('menu.basic-settings') {{-- 14.5. 基本設定 --}}
  • - -
    +
    @@ -389,29 +417,31 @@ @can('menu.permissions') {{-- 15. 權限設定 --}}
  • - -
    +
    diff --git a/resources/views/profile/partials/login-history.blade.php b/resources/views/profile/partials/login-history.blade.php index 85a164a..9a03404 100644 --- a/resources/views/profile/partials/login-history.blade.php +++ b/resources/views/profile/partials/login-history.blade.php @@ -14,14 +14,9 @@
    - -
    -
    @forelse($user->loginLogs()->latest()->take(10)->get() as $log) -
    - -
    +