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); });