style(审核): 审核明细里商品名与金额加粗(供应商侧)
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s

用户要求:双方的这块商品名与金额的文字都加粗展示。
- 我方商品名 / 配送商品名加粗
- 协商价 / 当前售价 / 差额,以及「我方提交」明细的我方售价/建议售价/差额 加粗(保留涨红跌绿)
纯展示层,无逻辑改动。
This commit is contained in:
Ubuntu
2026-10-19 14:08:06 +08:00
parent 8dc56d8409
commit c9ef2597a8
@@ -403,7 +403,9 @@ export const QuoteDeliveryPriceProposalsPanel: React.FC<QuoteDeliveryPricePropos
</div>
) : (
<>
{line.sku_name || line.supplier_sku_code || '—'}
<span className="font-semibold text-gray-900 dark:text-gray-100">
{line.sku_name || line.supplier_sku_code || '—'}
</span>
<span className="ml-1 font-mono text-gray-400">
{line.supplier_sku_code || line.sku_code}
</span>
@@ -411,16 +413,18 @@ export const QuoteDeliveryPriceProposalsPanel: React.FC<QuoteDeliveryPricePropos
)}
</td>
<td className="px-1 py-0.5">
{line.delivery_sku_name || '—'}
<span className="font-semibold text-gray-900 dark:text-gray-100">
{line.delivery_sku_name || '—'}
</span>
{line.delivery_sku_code ? (
<span className="ml-1 font-mono text-gray-400">{line.delivery_sku_code}</span>
) : null}
</td>
<td className="px-1 py-0.5">{line.unit || '—'}</td>
<td className="px-1 py-0.5 text-right tabular-nums">
<td className="px-1 py-0.5 text-right tabular-nums font-semibold text-gray-900 dark:text-gray-100">
{formatPrice(line.after_sale_price)}
</td>
<td className="px-1 py-0.5 text-right tabular-nums">
<td className="px-1 py-0.5 text-right tabular-nums font-semibold text-gray-900 dark:text-gray-100">
{line.before_sale_price == null ? '—' : formatPrice(line.before_sale_price)}
</td>
{(() => {
@@ -429,7 +433,7 @@ export const QuoteDeliveryPriceProposalsPanel: React.FC<QuoteDeliveryPricePropos
const diff = before == null || !Number.isFinite(after) ? null : after - before;
return (
<td
className={`px-1 py-0.5 text-right tabular-nums ${
className={`px-1 py-0.5 text-right tabular-nums font-semibold ${
diff == null ? 'text-gray-400' : diff > 0 ? 'text-red-600' : diff < 0 ? 'text-emerald-600' : ''
}`}
>
@@ -560,15 +564,17 @@ export const QuoteDeliveryPriceProposalsPanel: React.FC<QuoteDeliveryPricePropos
: after - before;
return (
<tr key={`${line.change}-${line.sku_code}`} data-testid="proposal-detail-row">
<td className="px-1 py-0.5">{line.sku_name || line.sku_code}</td>
<td className="px-1 py-0.5 text-right tabular-nums">
<td className="px-1 py-0.5 font-semibold text-gray-900 dark:text-gray-100">
{line.sku_name || line.sku_code}
</td>
<td className="px-1 py-0.5 text-right tabular-nums font-semibold text-gray-900 dark:text-gray-100">
{formatPrice(line.before_sale_price)}
</td>
<td className="px-1 py-0.5 text-right tabular-nums">
<td className="px-1 py-0.5 text-right tabular-nums font-semibold text-gray-900 dark:text-gray-100">
{formatPrice(line.after_sale_price)}
</td>
<td
className={`px-1 py-0.5 text-right tabular-nums ${
className={`px-1 py-0.5 text-right tabular-nums font-semibold ${
diff == null
? 'text-gray-400'
: diff > 0