|
|
@ -13,7 +13,7 @@ function PickYear() {
|
|
|
|
<Col span={4}>
|
|
|
|
<Col span={4}>
|
|
|
|
<Flex gap="middle" vertical>
|
|
|
|
<Flex gap="middle" vertical>
|
|
|
|
<Typography.Title className="text-center" level={3}>
|
|
|
|
<Typography.Title className="text-center" level={3}>
|
|
|
|
请选择采购年份
|
|
|
|
请选择产品年份
|
|
|
|
</Typography.Title>
|
|
|
|
</Typography.Title>
|
|
|
|
<DatePicker
|
|
|
|
<DatePicker
|
|
|
|
className="w-full"
|
|
|
|
className="w-full"
|
|
|
@ -25,6 +25,13 @@ function PickYear() {
|
|
|
|
maxDate={dayjs().add(2, "year")}
|
|
|
|
maxDate={dayjs().add(2, "year")}
|
|
|
|
allowClear={false}
|
|
|
|
allowClear={false}
|
|
|
|
picker="year"
|
|
|
|
picker="year"
|
|
|
|
|
|
|
|
styles={{
|
|
|
|
|
|
|
|
popup: {
|
|
|
|
|
|
|
|
root: {
|
|
|
|
|
|
|
|
color: 'red'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}}
|
|
|
|
open={true}
|
|
|
|
open={true}
|
|
|
|
onOk={(date) => {
|
|
|
|
onOk={(date) => {
|
|
|
|
const useYear = date.year();
|
|
|
|
const useYear = date.year();
|
|
|
|