diff --git a/public/locales/en/products.json b/public/locales/en/products.json
index 74e08bb..02689b7 100644
--- a/public/locales/en/products.json
+++ b/public/locales/en/products.json
@@ -116,5 +116,26 @@
"Weekdays": "Weekdays"
},
+ "FormTooltip": {
+ "Type": "Product Type",
+ "Title": "Title",
+ "Code": "Code",
+ "City": "City",
+ "Dept": "Department",
+ "Duration": "Duration",
+ "RecommendsRate": "RecommendsRate",
+ "OpenHours": "Open Hours",
+ "OpenWeekdays": "Open Weekdays",
+ "DisplayToC": "Display Type",
+ "KM": "KM",
+ "Description": "Description",
+ "Remarks": "Remarks"
+ },
+
+ "LgcModal": {
+ "title": "Add language",
+ "placeholder": "Pick a language"
+ },
+
"#": "Product"
}
diff --git a/public/locales/zh/products.json b/public/locales/zh/products.json
index fdb7785..1778f9d 100644
--- a/public/locales/zh/products.json
+++ b/public/locales/zh/products.json
@@ -104,5 +104,25 @@
"Weekdays": "周末",
"Operation": "Operation"
},
+ "FormTooltop": {
+ "Type": "Product Type",
+ "Title": "Title",
+ "Code": "Code",
+ "City": "City",
+ "dept": "Department",
+ "Duration": "Duration",
+ "RecommendsRate": "RecommendsRate",
+ "OpenHours": "Open Hours",
+ "OpenWeekdays": "Open Weekdays",
+ "DisplayToC": "Display Type",
+ "KM": "KM",
+ "Description": "Description",
+ "Remarks": "Remarks"
+ },
+
+ "LgcModal": {
+ "title": "添加语种",
+ "placeholder": "选择语种"
+ },
"#": "产品"
}
diff --git a/src/hooks/useProductsSets.js b/src/hooks/useProductsSets.js
index 904c653..b83efad 100644
--- a/src/hooks/useProductsSets.js
+++ b/src/hooks/useProductsSets.js
@@ -166,7 +166,7 @@ export const useNewProductRecord = () => {
'id': '',
'adult_cost': 0,
'child_cost': 0,
- 'currency': 'CNY',
+ 'currency': 'RMB',
'unit_id': '1',
'unit_name': '每团',
'group_size_min': 1,
diff --git a/src/views/products/Detail/CopyProducts.jsx b/src/views/products/Detail/CopyProducts.jsx
index a460e95..40fbca5 100644
--- a/src/views/products/Detail/CopyProducts.jsx
+++ b/src/views/products/Detail/CopyProducts.jsx
@@ -48,7 +48,7 @@ export const CopyProductsForm = ({ action, initialValues, onFormInstanceReady, s
{/* disabledDate={(current) => current <= dayjs([source.sourceYear, 12, 31])} */}
-
+
);
diff --git a/src/views/products/Detail/NewProductModal.jsx b/src/views/products/Detail/NewProductModal.jsx
index 09ed31e..4903d4e 100644
--- a/src/views/products/Detail/NewProductModal.jsx
+++ b/src/views/products/Detail/NewProductModal.jsx
@@ -10,7 +10,7 @@ import { useDefaultLgc } from '@/i18n/LanguageSwitcher';
import dayjs from 'dayjs'
export const NewProductsForm = ({ initialValues, onFormInstanceReady, ...props }) => {
- const { t } = useTranslation();
+ const { t } = useTranslation('products');
const [form] = Form.useForm();
useEffect(() => {
@@ -21,10 +21,10 @@ export const NewProductsForm = ({ initialValues, onFormInstanceReady, ...props }
return (
+
-
+
diff --git a/src/views/products/Detail/ProductInfoForm.jsx b/src/views/products/Detail/ProductInfoForm.jsx
index 6579916..c99cdef 100644
--- a/src/views/products/Detail/ProductInfoForm.jsx
+++ b/src/views/products/Detail/ProductInfoForm.jsx
@@ -178,7 +178,7 @@ function getFields(props) {
item(
'title',
99,
-
+
,
fieldProps?.title?.col || midCol
@@ -186,7 +186,7 @@ function getFields(props) {
item(
'code',
99,
-
+
,
fieldProps?.code?.col || midCol
@@ -194,7 +194,7 @@ function getFields(props) {
item(
'city',
99,
-
+
,
fieldProps?.city?.col || midCol
@@ -210,7 +210,7 @@ function getFields(props) {
item(
'duration',
99,
-
+
{/* */}
,
@@ -219,7 +219,7 @@ function getFields(props) {
item(
'km',
99,
-
+
,
fieldProps?.km?.col || midCol
@@ -227,7 +227,7 @@ function getFields(props) {
item(
'recommends_rate',
99,
-
+
{/* */}