[RELEASE] 晉升 demo 至 main - 簡化商品 ID 顯示為 ID

1. 簡化「庫存與效期」與「機台庫存概覽」中商品 ID 的多語系標記,顯示文字改為「ID: {id}」
This commit is contained in:
sky121113 2026-06-05 16:58:02 +08:00
commit 098ab23e47
2 changed files with 6 additions and 6 deletions

View File

@ -699,7 +699,7 @@
<div class="text-base font-black truncate w-full opacity-90 tracking-tight"
x-text="slot.product.name"></div>
<template x-if="slot.product.id">
<div class="text-[10px] font-mono font-bold text-slate-400 dark:text-slate-500 uppercase tracking-widest mt-1">{{ __('Product ID') }}: <span x-text="slot.product.id"></span></div>
<div class="text-[10px] font-mono font-bold text-slate-400 dark:text-slate-500 uppercase tracking-widest mt-1">{{ __('ID') }}: <span x-text="slot.product.id"></span></div>
</template>
</div>
</template>
@ -778,7 +778,7 @@
x-text="slot.product?.name || '{{ __('Empty Slot') }}'"></div>
<template x-if="slot.product?.id">
<div class="mt-1">
<span class="text-xs font-bold text-slate-400 dark:text-slate-500 font-mono tracking-widest uppercase">{{ __('Product ID') }}: <span x-text="slot.product.id"></span></span>
<span class="text-xs font-bold text-slate-400 dark:text-slate-500 font-mono tracking-widest uppercase">{{ __('ID') }}: <span x-text="slot.product.id"></span></span>
</div>
</template>
</div>
@ -832,7 +832,7 @@
</div>
<div class="flex flex-wrap items-center gap-x-2 mt-1">
<template x-if="slot.product?.id">
<span class="text-[10px] font-mono font-bold text-slate-400 dark:text-slate-500 uppercase tracking-widest">{{ __('Product ID') }}: <span x-text="slot.product.id"></span></span>
<span class="text-[10px] font-mono font-bold text-slate-400 dark:text-slate-500 uppercase tracking-widest">{{ __('ID') }}: <span x-text="slot.product.id"></span></span>
</template>
<span class="text-[10px] text-slate-300 dark:text-slate-700">|</span>
<span class="text-[10px] font-mono font-bold text-slate-400 dark:text-slate-500 uppercase tracking-widest truncate" x-text="slot.product?.barcode || '--'"></span>

View File

@ -310,7 +310,7 @@
<div class="text-base font-black truncate w-full opacity-90 tracking-tight"
x-text="slot.product?.name || '{{ __('Empty') }}'"></div>
<template x-if="slot.product?.id">
<div class="text-[10px] font-mono font-bold text-slate-400 dark:text-slate-500 uppercase tracking-widest mt-1">{{ __('Product ID') }}: <span x-text="slot.product.id"></span></div>
<div class="text-[10px] font-mono font-bold text-slate-400 dark:text-slate-500 uppercase tracking-widest mt-1">{{ __('ID') }}: <span x-text="slot.product.id"></span></div>
</template>
<div class="flex items-baseline justify-center gap-1 mt-2">
<span class="text-2xl font-black tracking-tighter" x-text="slot.stock"></span>
@ -368,7 +368,7 @@
x-text="slot.product?.name || '{{ __('Empty Slot') }}'"></div>
<div class="flex flex-wrap items-center gap-x-2.5 gap-y-1 mt-1">
<template x-if="slot.product?.id">
<span class="text-xs font-bold text-slate-400 dark:text-slate-500 font-mono tracking-widest uppercase">{{ __('Product ID') }}: <span x-text="slot.product.id"></span></span>
<span class="text-xs font-bold text-slate-400 dark:text-slate-500 font-mono tracking-widest uppercase">{{ __('ID') }}: <span x-text="slot.product.id"></span></span>
</template>
<template x-if="slot.product?.id && slot.expiry_date">
<span class="text-xs text-slate-300 dark:text-slate-700">|</span>
@ -426,7 +426,7 @@
</div>
<div class="flex flex-wrap items-center gap-x-2 mt-1">
<template x-if="slot.product?.id">
<span class="text-[10px] font-mono font-bold text-slate-400 dark:text-slate-500 uppercase tracking-widest">{{ __('Product ID') }}: <span x-text="slot.product.id"></span></span>
<span class="text-[10px] font-mono font-bold text-slate-400 dark:text-slate-500 uppercase tracking-widest">{{ __('ID') }}: <span x-text="slot.product.id"></span></span>
</template>
<span class="text-[10px] text-slate-300 dark:text-slate-700">|</span>
<span class="text-[10px] font-mono font-bold text-slate-400 dark:text-slate-500 uppercase tracking-widest truncate" x-text="slot.product?.barcode || '--'"></span>