star-cloud/app/Services
sky121113 c3e60b8746 [FEAT] 新增商品 Excel 批量匯入與模板下載功能
1. 新增 ProductImportService 服務,實作 Excel 商品檔案解析、欄位驗證、多租戶 company_id 歸屬處理及資料批量寫入/更新邏輯。
2. 在 ProductController 新增 import 與 downloadTemplate 動作,處理檔案接收驗證與匯出,並在匯入後自動重建該公司商品目錄快取。
3. routes/web.php 新增商品下載模板與 Excel 匯入的專用路由。
4. 重構 products/index.blade.php,新增極簡奢華風商品匯入 Modal、檔案拖放/選擇區,並採用 Alpine.js 進行彈窗開啟與非同步上傳 API 交互。
5. 擴充 components/page-header.blade.php,使頁面主標頭支援渲染多個操作按鈕 (actions 插槽),以配合新增的「匯入商品」按鈕。
6. 同步更新 lang/zh_TW.json 與 lang/en.json,對齊「商品匯入成功」、「請選擇公司」等相關語系翻譯。
7. 微調 AdvertisementController,維持全站 Controller 進度對齊。
2026-05-28 11:19:00 +08:00
..
Machine [FEAT] 強化遠端指令中心的操作備註功能 2026-05-12 17:15:53 +08:00
Notification [STYLE] 將溫度過低告警側邊條顏色調整為警示紅色 2026-05-21 17:09:00 +08:00
Product [FEAT] 優化商品操作紀錄清單與多語系支援,並修復全域快取錯誤 2026-05-14 11:52:01 +08:00
Transaction [FIX] 補齊與優化來店禮、通行碼、取貨碼之多語系與介面欄位呈現 2026-05-22 14:46:26 +08:00
ProductImportService.php [FEAT] 新增商品 Excel 批量匯入與模板下載功能 2026-05-28 11:19:00 +08:00
StaffCardImportService.php [FIX] 員工卡匯入時自動清除欄位前後空白字元 2026-05-19 11:40:59 +08:00