perf: 修改旺季、淡季;加粗不分人等、不限

main
LiaoYijun 2 months ago
parent a8fb0bbded
commit a68824ca80

@ -44,7 +44,7 @@ const ProductInfoQuotation = ({ editable, ...props }) => {
const batchSetupInitialValues = { const batchSetupInitialValues = {
'defList': [ 'defList': [
// //
{ {
'useDateList': [{'useDate': getYearRange(switchParams.use_year)}], 'useDateList': [{'useDate': getYearRange(switchParams.use_year)}],
'unitId': '0', 'unitId': '0',
@ -85,7 +85,7 @@ const ProductInfoQuotation = ({ editable, ...props }) => {
} }
] ]
}, },
// //
{ {
'useDateList': [ 'useDateList': [
{ {
@ -293,7 +293,7 @@ const ProductInfoQuotation = ({ editable, ...props }) => {
{fields.map((field, index) => ( {fields.map((field, index) => (
<Card <Card
size='small' size='small'
title={index == 0 ? '旺季' : index == 1 ? '淡季' : '其他'} title={index == 0 ? '全年' : index == 1 ? '特殊时间段' : '其他'}
key={field.key} key={field.key}
extra={index == 0 ? <StarTwoTone twoToneColor='#eb2f96' /> : <CloseOutlined onClick={() => { extra={index == 0 ? <StarTwoTone twoToneColor='#eb2f96' /> : <CloseOutlined onClick={() => {
remove(field.name) remove(field.name)
@ -461,7 +461,7 @@ const ProductInfoQuotation = ({ editable, ...props }) => {
if (!groupMaxUnlimit) quotationForm.setFieldValue('group_size_max', 999) if (!groupMaxUnlimit) quotationForm.setFieldValue('group_size_max', 999)
setGroupSizeUnlimit(false) setGroupSizeUnlimit(false)
} }
}}>不分人等(0~1000)</Checkbox> }}><span className='font-bold'>不分人等(0~1000)</span></Checkbox>
<Form.Item <Form.Item
label={t('products:group_size')} label={t('products:group_size')}
name='group_size_min' name='group_size_min'
@ -483,7 +483,7 @@ const ProductInfoQuotation = ({ editable, ...props }) => {
quotationForm.setFieldValue('group_size_max', 999) quotationForm.setFieldValue('group_size_max', 999)
setGroupMaxUnlimit(false) setGroupMaxUnlimit(false)
} }
}}>不限(1000)</Checkbox> }}><span className='font-bold'>不限(1000)</span></Checkbox>
<Form.Item <Form.Item
label={t('products:group_size')} label={t('products:group_size')}
name='group_size_max' name='group_size_max'

@ -26,10 +26,8 @@ function PickYear() {
allowClear={false} allowClear={false}
picker="year" picker="year"
styles={{ styles={{
popup: { root: {
root: { color: 'red'
color: 'red'
}
} }
}} }}
open={true} open={true}

Loading…
Cancel
Save