From 3e5528eeb65413fde928ab2be08603b09501cce8 Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Tue, 27 Aug 2024 15:02:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E4=BB=B7=E7=B1=BB=E5=9E=8B=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=8F=90=E7=A4=BA=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/locales/en/products.json | 1 + public/locales/zh/products.json | 1 + src/views/products/Detail/ProductInfoQuotation.jsx | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/public/locales/en/products.json b/public/locales/en/products.json index 5ec35f9..7f4357f 100644 --- a/public/locales/en/products.json +++ b/public/locales/en/products.json @@ -105,6 +105,7 @@ "KM": "", "Description": "", "Remarks": "", + "PriceUnit": "报价单位:每人/每团", "UseDates": "数值越短,价格越优先。举例:英文导游1.1-12.31价300元, 8.1-8.31价400元,如走团时间为8月,自动取400元。", "NewTitle": { "6": "", diff --git a/public/locales/zh/products.json b/public/locales/zh/products.json index f4c4d2c..fbd6c94 100644 --- a/public/locales/zh/products.json +++ b/public/locales/zh/products.json @@ -105,6 +105,7 @@ "KM": "", "Description": "", "Remarks": "", + "PriceUnit": "报价单位:每人/每团", "UseDates": "数值越短,价格越优先。举例:英文导游1.1-12.31价300元, 8.1-8.31价400元,如走团时间为8月,自动取400元。", "NewTitle": { "6": "", diff --git a/src/views/products/Detail/ProductInfoQuotation.jsx b/src/views/products/Detail/ProductInfoQuotation.jsx index b1decb4..e6f0d70 100644 --- a/src/views/products/Detail/ProductInfoQuotation.jsx +++ b/src/views/products/Detail/ProductInfoQuotation.jsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import { Table, Form, Modal, Typography, Button, Radio, Input, Flex, Card, InputNumber, Checkbox, DatePicker, Space, App, Tooltip } from 'antd' +import { Table, Form, Modal, Button, Radio, Input, Flex, Card, InputNumber, Checkbox, DatePicker, Space, App, Tooltip } from 'antd' import { useTranslation } from 'react-i18next' import { CloseOutlined, StarTwoTone, PlusOutlined, ExclamationCircleFilled, QuestionCircleOutlined } from '@ant-design/icons' import { useDatePresets } from '@/hooks/useDatePresets' @@ -207,9 +207,9 @@ const ProductInfoQuotation = ({ editable, ...props }) => { { title: t('products:childrenPrice'), dataIndex: 'child_cost', width: '5rem' }, { title: t('products:currency'), dataIndex: 'currency', width: '4rem' }, { - title: t('products:unit_name'), + title: (<>{t('products:unit_name')} ), dataIndex: 'unit_id', - width: '4rem', + width: '6rem', render: (text) => t(`products:PriceUnit.${text}`), // (text === '0' ? '每人' : text === '1' ? '每团' : text), }, {