|
|
@ -139,6 +139,8 @@ const ProductInfoQuotation = ({ editable, ...props }) => {
|
|
|
|
|
|
|
|
|
|
|
|
const [isQuotationModalOpen, setQuotationModalOpen] = useState(false)
|
|
|
|
const [isQuotationModalOpen, setQuotationModalOpen] = useState(false)
|
|
|
|
const [isBatchSetupModalOpen, setBatchSetupModalOpen] = useState(false)
|
|
|
|
const [isBatchSetupModalOpen, setBatchSetupModalOpen] = useState(false)
|
|
|
|
|
|
|
|
const [groupSizeUnlimit, setGroupSizeUnlimit] = useState(false)
|
|
|
|
|
|
|
|
const [groupMaxUnlimit, setGroupMaxUnlimit] = useState(false)
|
|
|
|
const { modal, notification } = App.useApp()
|
|
|
|
const { modal, notification } = App.useApp()
|
|
|
|
const [quotationForm] = Form.useForm()
|
|
|
|
const [quotationForm] = Form.useForm()
|
|
|
|
const [batchSetupForm] = Form.useForm()
|
|
|
|
const [batchSetupForm] = Form.useForm()
|
|
|
@ -445,6 +447,18 @@ const ProductInfoQuotation = ({ editable, ...props }) => {
|
|
|
|
<Radio value='1'>每团</Radio>
|
|
|
|
<Radio value='1'>每团</Radio>
|
|
|
|
</Radio.Group>
|
|
|
|
</Radio.Group>
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
<Checkbox onChange={e => {
|
|
|
|
|
|
|
|
if (e.target.checked) {
|
|
|
|
|
|
|
|
quotationForm.setFieldValue('group_size_min', 0)
|
|
|
|
|
|
|
|
quotationForm.setFieldValue('group_size_max', 1000)
|
|
|
|
|
|
|
|
setGroupSizeUnlimit(true)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
quotationForm.setFieldValue('group_size_min', 1)
|
|
|
|
|
|
|
|
if (!groupMaxUnlimit) quotationForm.setFieldValue('group_size_max', 999)
|
|
|
|
|
|
|
|
setGroupSizeUnlimit(false)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}}>不分人等(0~1000)</Checkbox>
|
|
|
|
<Form.Item
|
|
|
|
<Form.Item
|
|
|
|
label={t('products:group_size')}
|
|
|
|
label={t('products:group_size')}
|
|
|
|
name='group_size_min'
|
|
|
|
name='group_size_min'
|
|
|
@ -455,8 +469,18 @@ const ProductInfoQuotation = ({ editable, ...props }) => {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]}
|
|
|
|
]}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<InputNumber style={{ width: '100%' }} />
|
|
|
|
<InputNumber disabled={groupSizeUnlimit} min='0' max='999' style={{ width: '100%' }} />
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Checkbox disabled={groupSizeUnlimit} onChange={e => {
|
|
|
|
|
|
|
|
if (e.target.checked) {
|
|
|
|
|
|
|
|
quotationForm.setFieldValue('group_size_max', 1000)
|
|
|
|
|
|
|
|
setGroupMaxUnlimit(true)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
quotationForm.setFieldValue('group_size_max', 999)
|
|
|
|
|
|
|
|
setGroupMaxUnlimit(false)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}}>不限(1000)</Checkbox>
|
|
|
|
<Form.Item
|
|
|
|
<Form.Item
|
|
|
|
label={t('products:group_size')}
|
|
|
|
label={t('products:group_size')}
|
|
|
|
name='group_size_max'
|
|
|
|
name='group_size_max'
|
|
|
@ -467,7 +491,7 @@ const ProductInfoQuotation = ({ editable, ...props }) => {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]}
|
|
|
|
]}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<InputNumber style={{ width: '100%' }} />
|
|
|
|
<InputNumber disabled={groupSizeUnlimit || groupMaxUnlimit} min='0' max='999' style={{ width: '100%' }} />
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
<Form.Item
|
|
|
|
<Form.Item
|
|
|
|
label={t('products:use_dates')}
|
|
|
|
label={t('products:use_dates')}
|
|
|
|