diff --git a/src/stores/Products/Index.js b/src/stores/Products/Index.js index e326e10..618fb05 100644 --- a/src/stores/Products/Index.js +++ b/src/stores/Products/Index.js @@ -193,6 +193,7 @@ export const useProductsStore = create( const generatedList = [] defList.forEach(definition => { + // 增加多个有效日期批量设置: const mappedPriceList = definition?.priceList.map(price => { return { id: null, diff --git a/src/views/products/Detail/PriceCompactInput.jsx b/src/views/products/Detail/PriceCompactInput.jsx index dd246bb..c2b860e 100644 --- a/src/views/products/Detail/PriceCompactInput.jsx +++ b/src/views/products/Detail/PriceCompactInput.jsx @@ -1,7 +1,7 @@ import { useState } from 'react' import { Input, Space } from 'antd' -export const PriceCompactInput = (props) => { +const PriceCompactInput = (props) => { const { id, value = {}, onChange } = props const [numberStart, setNumberStart] = useState(0) const [numberEnd, setNumberEnd] = useState(0) @@ -104,4 +104,6 @@ export const PriceCompactInput = (props) => { /> ) -} \ No newline at end of file +} + +export default PriceCompactInput \ No newline at end of file diff --git a/src/views/products/Detail/ProductInfoQuotation.jsx b/src/views/products/Detail/ProductInfoQuotation.jsx index 3d59f44..7832b89 100644 --- a/src/views/products/Detail/ProductInfoQuotation.jsx +++ b/src/views/products/Detail/ProductInfoQuotation.jsx @@ -5,7 +5,7 @@ import { CloseOutlined, StarTwoTone, PlusOutlined, ExclamationCircleFilled } fro import { useDatePresets } from '@/hooks/useDatePresets' import dayjs from 'dayjs' import useProductsStore from '@/stores/Products/Index' -import PriceCompactInput from './PriceCompactInput' +import PriceCompactInput from '@/views/products/Detail/PriceCompactInput' const { RangePicker } = DatePicker @@ -290,16 +290,18 @@ const ProductInfoQuotation = ({ editable, ...props }) => { }} />} > - + + RMB + USD + THB + JPY + - + + 每人 + 每团 + { RMB USD + THB + JPY