[FIX] 修正庫存流水帳篩選選單與 B009 錯字

1. 解決庫存流水帳貨道下拉選單中「所有貨道」選項被組件隱藏的問題。
2. 修正 zh_TW.json 中 B009 同步備註的錯字(廢道 -> 貨道)。
This commit is contained in:
sky121113 2026-05-07 15:19:48 +08:00
parent 6decba6cb6
commit 6070cdd7b8
2 changed files with 5 additions and 4 deletions

View File

@ -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",

View File

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