diff --git a/server/tests/skuCostQuoteSheetReadonly.test.ts b/server/tests/skuCostQuoteSheetReadonly.test.ts index 7baeb27..dd403db 100644 --- a/server/tests/skuCostQuoteSheetReadonly.test.ts +++ b/server/tests/skuCostQuoteSheetReadonly.test.ts @@ -27,7 +27,7 @@ describe('成本排行只读报价单展示', () => { expect(types).toContain('sale_price_targets'); expect(page).toContain('quoteMin'); expect(page).toContain('quoteMax'); - expect(page).toContain("t('finance.cost.rank.sourceQuote'"); + expect(page).toContain("t('finance.cost.rank.sourceQuoteLabel'"); expect(page).toContain("target.closest('input, button, a, label')"); expect(page).toContain("setExpandedSkuCode((cur) => (cur === sku.sku_code ? null : sku.sku_code))"); expect(page).not.toContain("t('finance.cost.rank.grossAmt')\n }`}"); diff --git a/src/i18n/locales/en/finance.ts b/src/i18n/locales/en/finance.ts index 65e2106..ffc787c 100644 --- a/src/i18n/locales/en/finance.ts +++ b/src/i18n/locales/en/finance.ts @@ -147,6 +147,7 @@ export const finance: MessageDict = { 'cost.rank.sales': 'Sales ¥{amount}', 'cost.rank.unitCost': 'Unit cost ¥{amount}', 'cost.rank.marginPct': 'Margin {pct}%', +'cost.rank.sourceQuoteLabel': 'Quote', 'cost.rank.sourceQuote': 'Quote sale price {price}', 'cost.rank.quoteSheets': 'Quote sheets', 'cost.rank.quoteNearSale': ' (quote cost ≈ sale price)', diff --git a/src/i18n/locales/id/finance.ts b/src/i18n/locales/id/finance.ts index b7990cf..1f2104b 100644 --- a/src/i18n/locales/id/finance.ts +++ b/src/i18n/locales/id/finance.ts @@ -147,6 +147,7 @@ export const finance: MessageDict = { 'cost.rank.sales': 'Jual ¥{amount}', 'cost.rank.unitCost': 'Biaya satuan ¥{amount}', 'cost.rank.marginPct': 'Margin {pct}%', +'cost.rank.sourceQuoteLabel': 'Penawaran', 'cost.rank.sourceQuote': 'Harga jual penawaran {price}', 'cost.rank.quoteSheets': 'Lembar penawaran', 'cost.rank.quoteNearSale': ' (biaya kuota ≈ harga jual)', diff --git a/src/i18n/locales/zh-CN/finance.ts b/src/i18n/locales/zh-CN/finance.ts index 1a76db7..1bd0eda 100644 --- a/src/i18n/locales/zh-CN/finance.ts +++ b/src/i18n/locales/zh-CN/finance.ts @@ -147,6 +147,7 @@ export const finance: MessageDict = { 'cost.rank.sales': '销售 ¥{amount}', 'cost.rank.unitCost': '单位成本 ¥{amount}', 'cost.rank.marginPct': '毛利率 {pct}%', +'cost.rank.sourceQuoteLabel': '报价单', 'cost.rank.sourceQuote': '报价单 销售价 {price}', 'cost.rank.quoteSheets': '报价单', 'cost.rank.quoteNearSale': '(报价成本≈售价)', diff --git a/src/pages/finance/costAccounting/CostAccountingPanel.tsx b/src/pages/finance/costAccounting/CostAccountingPanel.tsx index 510b3c0..c9b34db 100644 --- a/src/pages/finance/costAccounting/CostAccountingPanel.tsx +++ b/src/pages/finance/costAccounting/CostAccountingPanel.tsx @@ -2748,16 +2748,20 @@ export const CostAccountingPanel: React.FC = ({
{quoteRange ? ( - - {t('finance.cost.rank.sourceQuote', { price: quoteRange })} - + <> + + {t('finance.cost.rank.sourceQuoteLabel')} + + {t('finance.cost.col.salePrice')} {quoteRange} + · {t('finance.cost.rank.unitCost', { amount: rankUnitCost.toFixed(2) })} + ) : ( <> {t('finance.cost.rank.purchase', { amount: rankPurchaseAmount.toLocaleString() })} {t('finance.cost.rank.sales', { amount: sku.sales_amount.toLocaleString() })} + {t('finance.cost.rank.unitCost', { amount: rankUnitCost.toFixed(2) })} )} - {t('finance.cost.rank.unitCost', { amount: rankUnitCost.toFixed(2) })} {t('finance.cost.rank.marginPct', { pct: rankMarginPct.toFixed(1) })} {marginApproxZero ? t('finance.cost.rank.quoteNearSale') : ''}