diff --git a/src/i18n/locales/en/quotes.ts b/src/i18n/locales/en/quotes.ts index 4ffae9f..b0e115e 100644 --- a/src/i18n/locales/en/quotes.ts +++ b/src/i18n/locales/en/quotes.ts @@ -113,6 +113,7 @@ export const quotes: MessageDict = { 'form.importFromLibrary': 'Import from customer library', 'form.importing': 'Importing…', 'form.newSku': 'New product', + 'form.newSkuHint': 'Fill category/unit/price, then it is applied to this line', 'form.refreshSku': 'Refresh', 'form.addRow': 'Add row', 'form.skusEmptyWarn': diff --git a/src/i18n/locales/id/quotes.ts b/src/i18n/locales/id/quotes.ts index 6fc8be7..6e1383f 100644 --- a/src/i18n/locales/id/quotes.ts +++ b/src/i18n/locales/id/quotes.ts @@ -116,6 +116,7 @@ export const quotes: MessageDict = { 'form.importFromLibrary': 'Impor dari pustaka pelanggan', 'form.importing': 'Mengimpor…', 'form.newSku': 'Produk baru', + 'form.newSkuHint': 'Isi kategori/satuan/harga, lalu diterapkan ke baris ini', 'form.refreshSku': 'Muat ulang', 'form.addRow': 'Tambah baris', 'form.skusEmptyWarn': diff --git a/src/i18n/locales/zh-CN/quotes.ts b/src/i18n/locales/zh-CN/quotes.ts index 9bfd011..807ecb9 100644 --- a/src/i18n/locales/zh-CN/quotes.ts +++ b/src/i18n/locales/zh-CN/quotes.ts @@ -111,6 +111,7 @@ export const quotes: MessageDict = { 'form.importFromLibrary': '从客户商品库导入', 'form.importing': '导入中…', 'form.newSku': '新建商品', + 'form.newSkuHint': '填分类/单位/价格后自动回填本行', 'form.refreshSku': '刷新', 'form.addRow': '添加行', 'form.skusEmptyWarn': diff --git a/src/pages/customers/QuoteVersionManagement.tsx b/src/pages/customers/QuoteVersionManagement.tsx index 2a7581b..fffad55 100644 --- a/src/pages/customers/QuoteVersionManagement.tsx +++ b/src/pages/customers/QuoteVersionManagement.tsx @@ -1812,7 +1812,15 @@ export const QuoteVersionManagement: React.FC = () => { }} options={quoteSkuOptions} compact + className="w-full" + maxListHeight="max-h-56" + allowCreateFromQuery alwaysShowCreate + createEmptyLabel={t('quotes.form.newSku')} + createFromQueryLabel={(q) => + q.trim() ? `${t('quotes.form.newSku')}「${q}」` : t('quotes.form.newSku') + } + createFromQueryHint={t('quotes.form.newSkuHint')} onCreateFromQuery={(q) => { setCreateProductInitialName(q); setCreateProductError('');