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), }, {