|
|
|
@ -1,9 +1,10 @@
|
|
|
|
|
import { useState } from 'react'
|
|
|
|
|
import { useState, useEffect } from 'react'
|
|
|
|
|
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'
|
|
|
|
|
import dayjs from 'dayjs'
|
|
|
|
|
|
|
|
|
|
import useProductsStore from '@/stores/Products/Index'
|
|
|
|
|
import PriceCompactInput from '@/views/products/Detail/PriceCompactInput'
|
|
|
|
|
import { formatGroupSize } from '@/hooks/useProductsSets'
|
|
|
|
@ -148,8 +149,15 @@ const ProductInfoQuotation = ({ editable, ...props }) => {
|
|
|
|
|
|
|
|
|
|
const datePresets = useDatePresets()
|
|
|
|
|
|
|
|
|
|
const [quotationList, newEmptyQuotation, appendQuotationList, saveOrUpdateQuotation, deleteQuotation] =
|
|
|
|
|
useProductsStore((state) => [state.quotationList, state.newEmptyQuotation, state.appendQuotationList, state.saveOrUpdateQuotation, state.deleteQuotation])
|
|
|
|
|
const [quotationList, newEmptyQuotation, appendQuotationList, saveOrUpdateQuotation, deleteQuotation, switchParams] =
|
|
|
|
|
useProductsStore((state) => [
|
|
|
|
|
state.quotationList, state.newEmptyQuotation, state.appendQuotationList, state.saveOrUpdateQuotation, state.deleteQuotation,
|
|
|
|
|
state.switchParams
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
console.info('switchParams: ', switchParams)
|
|
|
|
|
}, [switchParams])
|
|
|
|
|
|
|
|
|
|
const triggerChange = (changedValue) => {
|
|
|
|
|
onChange?.(
|
|
|
|
|