From 6070cdd7b84830adcfd03ee7980ebb2706b3cdd0 Mon Sep 17 00:00:00 2001 From: sky121113 Date: Thu, 7 May 2026 15:19:48 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]=20=E4=BF=AE=E6=AD=A3=E5=BA=AB=E5=AD=98?= =?UTF-8?q?=E6=B5=81=E6=B0=B4=E5=B8=B3=E7=AF=A9=E9=81=B8=E9=81=B8=E5=96=AE?= =?UTF-8?q?=E8=88=87=20B009=20=E9=8C=AF=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 解決庫存流水帳貨道下拉選單中「所有貨道」選項被組件隱藏的問題。 2. 修正 zh_TW.json 中 B009 同步備註的錯字(廢道 -> 貨道)。 --- lang/zh_TW.json | 2 +- .../views/admin/warehouses/machine-inventory.blade.php | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lang/zh_TW.json b/lang/zh_TW.json index 765acc2..94b1dd5 100644 --- a/lang/zh_TW.json +++ b/lang/zh_TW.json @@ -1840,7 +1840,7 @@ "mins ago": "分鐘前", "movement.note.initial_sync_report": "B009 首次同步初始化貨道庫存(新增貨道: :slot_no,初始庫存: :new)", "movement.note.manual_adjustment": "後台手動修改貨道庫存(舊: :old → 新: :new)", - "movement.note.product_changed_and_adjusted": "B009 廢道商品變更並調整庫存(庫存 :old → :new)", + "movement.note.product_changed_and_adjusted": "B009 貨道商品變更並調整庫存(庫存 :old → :new)", "movement.note.replenishment_correction": "B009 盤點回報修正(舊: :old → 新: :new)", "movement.note.slot_decommissioned_by_b009": "B009 全量同步:貨道 :slot_no 不在回報清單中,庫存 :old 歸零並移除", "movement.note.remote_dispense_queued": "遠端出貨指令 (B055),指令 ID: :id", diff --git a/resources/views/admin/warehouses/machine-inventory.blade.php b/resources/views/admin/warehouses/machine-inventory.blade.php index def8572..a3ee369 100644 --- a/resources/views/admin/warehouses/machine-inventory.blade.php +++ b/resources/views/admin/warehouses/machine-inventory.blade.php @@ -918,7 +918,6 @@ document.addEventListener('alpine:init', () => { select.className = 'hidden'; const config = { - placeholder: '{{ __("All Slots") }}', hasSearch: true, searchPlaceholder: '{{ __("Search...") }}', isHidePlaceholder: false, @@ -934,9 +933,10 @@ document.addEventListener('alpine:init', () => { select.setAttribute('data-hs-select', JSON.stringify(config)); const allOpt = document.createElement('option'); - allOpt.value = ''; + allOpt.value = 'all'; allOpt.textContent = '{{ __("All Slots") }}'; allOpt.setAttribute('data-title', '{{ __("All Slots") }}'); + if (!this.movementsFilter.slot_no) allOpt.selected = true; select.appendChild(allOpt); this.movementsSlots.forEach(slotNo => { @@ -950,7 +950,8 @@ document.addEventListener('alpine:init', () => { wrapper.appendChild(select); select.addEventListener('change', (e) => { - this.movementsFilter.slot_no = e.target.value; + const val = e.target.value; + this.movementsFilter.slot_no = (val === 'all') ? '' : val; this.loadMovements(1); });