From 89e9a83be8f781b30da5a1d19909494d25619972 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 27 Oct 2026 17:54:12 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=88=90=E6=9C=AC=E6=8E=92=E8=A1=8C):=20?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=E6=8A=A5=E4=BB=B7=E6=9D=A5=E6=BA=90=E8=A1=8C?= =?UTF-8?q?=E4=B8=8E=E4=B8=BB=E7=B3=BB=E7=BB=9F=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 报价单标签弱化、销售价与单位成本用分隔符、毛利率只保留一处;仍不含二期铅笔改价。 --- server/tests/skuCostQuoteSheetReadonly.test.ts | 2 +- src/i18n/locales/en/finance.ts | 1 + src/i18n/locales/id/finance.ts | 1 + src/i18n/locales/zh-CN/finance.ts | 1 + .../finance/costAccounting/CostAccountingPanel.tsx | 12 ++++++++---- 5 files changed, 12 insertions(+), 5 deletions(-) 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') : ''}