|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
import { useEffect, useState } from 'react'
|
|
|
|
|
import { Table, Form, Modal, Button, Radio, Input, Flex, Card, Select, Typography, InputNumber, Checkbox, DatePicker, Space } from 'antd'
|
|
|
|
|
import { useState } from 'react'
|
|
|
|
|
import { Table, Form, Modal, Button, Radio, Input, Flex, Card, Select, InputNumber, Checkbox, DatePicker, Space } from 'antd'
|
|
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
|
import { CloseOutlined, StarTwoTone, PlusOutlined, ExclamationCircleFilled } from '@ant-design/icons';
|
|
|
|
|
import { CloseOutlined, StarTwoTone, PlusOutlined, ExclamationCircleFilled } from '@ant-design/icons'
|
|
|
|
|
import { useDatePresets } from '@/hooks/useDatePresets'
|
|
|
|
|
import dayjs from 'dayjs'
|
|
|
|
|
import useProductsStore from '@/stores/Products/Index'
|
|
|
|
@ -30,7 +30,7 @@ const PriceInput = (props) => {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (!('numberStart' in value)) {
|
|
|
|
|
setNumberStart(newNumber);
|
|
|
|
|
setNumberStart(newNumber)
|
|
|
|
|
}
|
|
|
|
|
triggerChange({
|
|
|
|
|
numberStart: newNumber,
|
|
|
|
@ -46,8 +46,8 @@ const PriceInput = (props) => {
|
|
|
|
|
}
|
|
|
|
|
triggerChange({
|
|
|
|
|
numberEnd: newNumber,
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const onAudultPriceChange = (e) => {
|
|
|
|
|
const newNumber = parseInt(e.target.value || '0', 10)
|
|
|
|
|
if (Number.isNaN(audultPrice)) {
|
|
|
|
@ -71,7 +71,7 @@ const PriceInput = (props) => {
|
|
|
|
|
triggerChange({
|
|
|
|
|
childrenPrice: newNumber,
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
return (
|
|
|
|
|
<Space.Compact id={id}>
|
|
|
|
|
<Input
|
|
|
|
@ -346,7 +346,7 @@ const ProductInfoQuotation = ({ editable, ...props }) => {
|
|
|
|
|
deleteQuotation(quotation.id)
|
|
|
|
|
},
|
|
|
|
|
onCancel() {
|
|
|
|
|
console.log('Cancel');
|
|
|
|
|
console.log('Cancel')
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}}>{t('Delete')}</Button>
|
|
|
|
@ -360,7 +360,6 @@ const ProductInfoQuotation = ({ editable, ...props }) => {
|
|
|
|
|
<>
|
|
|
|
|
<h2>{t('products:EditComponents.Quotation')}</h2>
|
|
|
|
|
<Table
|
|
|
|
|
// rowKey={'id'}
|
|
|
|
|
bordered
|
|
|
|
|
dataSource={quotationList}
|
|
|
|
|
columns={quotationColumns}
|
|
|
|
|