[RELEASE] 晉升 demo 至 main - 統一庫存與效期商品規格

1. 統一「庫存與效期」與「機台庫存概覽」中商品 ID 的多語系顯示為「商品 ID」
2. 移除「庫存與效期」桌面列表商品欄位中重複的效期顯示
3. 縮小「機台庫存概覽」中商品儲存格的效期文字至 text-xs,與商品 ID 保持大小一致
This commit is contained in:
sky121113 2026-06-05 16:55:17 +08:00
commit d457e2095d
3 changed files with 12 additions and 18 deletions

View File

@ -1535,7 +1535,7 @@
"Product Cost": "商品成本",
"Product Count": "商品數量",
"Product Details": "商品明細",
"Product ID": "商品編號",
"Product ID": "商品 ID",
"Product Image": "商品圖片",
"Product Info": "商品資訊",
"Product Items": "商品品項",

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">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">{{ __('Product ID') }}: <span x-text="slot.product.id"></span></div>
</template>
</div>
</template>
@ -776,17 +776,11 @@
<div>
<div class="text-base font-black text-slate-800 dark:text-slate-200"
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">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>
</template>
<span class="text-sm font-bold text-slate-400 uppercase tracking-widest"
x-text="slot.expiry_date ? '{{ __('Expiry') }}: ' + slot.expiry_date : ''">
</span>
</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>
</div>
</template>
</div>
</div>
</td>
@ -838,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">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">{{ __('Product 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">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">{{ __('Product 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,12 +368,12 @@
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">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">{{ __('Product 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>
</template>
<span class="text-sm font-bold text-slate-400 uppercase tracking-widest"
<span class="text-xs font-bold text-slate-400 uppercase tracking-widest"
x-text="slot.expiry_date ? '{{ __('Expiry') }}: ' + slot.expiry_date : ''">
</span>
</div>
@ -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">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">{{ __('Product 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>